You can do many things with MoSync, and some things can be done in several different ways. This document will give you an overview of all these things.
Syscalls: maExit(), maPanic().
Recieve information about user input, communications and other asynchronous events.
Syscalls: maWait(), maGetEvent().
Libs: MAUtil::Environment, MAUtil::Moblet, MAUtil/CharInput.h
Create, read and write large binary objects, destroy any object, create new resource handles.
Syscalls: maCreateData(), maCreatePlaceholder(), maDestroyObject(), maGetDataSize(), maReadData(), maWriteData().
Libs: MAUtil::DataHandler
Load code and data from a binary object, which can be filled with anything from anywhere.
Syscalls: maLoadResources(), maLoadProgram().
Uses Resource management.
Useful for storing settings, high-scores, downloaded data and programs.
Syscalls: maOpenStore(), maWriteStore(), maReadStore(), maCloseStore().
Uses Resource management.
Draw pixels, lines, rectangles, triangles and images to either the screen or to a drawable image. Create new images, either empty or from compressed or uncompressed data. Use a clipping rectange to control drawing.
Syscalls: maSetColor(), maPlot(), maLine(), maFillRect(), maFillTriangleStrip(), maDrawImage(), maDrawText(), maGetTextSize(), maUpdateScreen(), maResetBacklight(), maGetScrSize(), maDrawRGB(), maDrawImageRegion(), maGetImageSize(), maGetImageData(), maSetDrawTarget(), maSetClipRect(), maGetClipRect(), maCreateImageFromData(), maCreateImageRaw(), maCreateDrawableImage().
Libs: MAUtil/Graphics.h
See also: Resource management.
Set up and draw layers of tiled graphics.
Syscalls: maInitLayer(), maDisposeLayer(), maChangeTileSet(), maDrawLayer(), maSetTile().
Play a sound, with volume control.
Syscalls: maSoundPlay(), maSoundStop(), maSoundIsPlaying(), maSoundGetVolume(), maSoundSetVolume().
See also: Resource management.
Check the current time and date, convert to C string.
Syscalls: maGetMilliSecondCount(), maTime(), maLocalTime().
Libs: matime.h
Speak to other machines using TCP, HTTP or a Bluetooth serial port.
Syscalls: maConnect(), maConnClose(), maConnRead(), maConnWrite(), maConnReadToData(), maConnWriteFromData(), maHttpCreate(), maHttpSetRequestHeader(), maHttpGetResponseHeader(), maHttpFinish().
Libs: MAUtil/Connection.h, MAUtil/Downloader.h
Uses Event handling.
See also: Resource management.
Search for Bluetooth devices in the vicinity and ask them what services they provide.
Syscalls: maBtStartDeviceDiscovery(), maBtGetNewDevice(), maBtStartServiceDiscovery(), maBtGetNextServiceSize(), maBtGetNewService().
Uses Event handling.
Libs: MAUtil/BluetoothDiscovery.h, MAUtil/mauuid.h
Syscalls: maGetKeys(), maVibrate(), maGetBatteryCharge(), maPlatformRequest(), maSendTextSMS().
Libs: maassert.h
Trigonometric functions, common constants, and others.
Syscalls: sin(), cos(), tan(), sqrt().
Libs: limits.h, madmath.h.
Allocate and free memory. Copy and set data.
Syscalls: memset(), memcpy().
Libs: maheap.h
Compare, copy, format and convert null-terminated 8-bit strings.
Syscalls: strcmp(), strcpy().
Libs: mactype.h, mastring.h, maxtoa.h, mavsprintf.h
Among them are variadric function helpers and random number generation.
Libs: maarg.h, mastdlib.h
A way to print text to the screen. Options include color and logging.
Libs: conprint.h
A subset of the buffered file I/O library.
Libs: MAFS/File.h
Libs: MAUtil::Vector, MAUtil::String, MAUtil::Map, MAUtil::Set, MAUtil/Geometry.h, MAUtil/util.h
Libs: MTXml/MTXml.h
- See also:
- MAUI.
Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by
1.4.6-NO