|
MoSync 3.0.1
|
Functions | |
| MAWidgetHandle | maWidgetCreate (const char *widgetType) |
| int | maWidgetDestroy (MAWidgetHandle widget) |
| int | maWidgetAddChild (MAWidgetHandle parent, MAWidgetHandle child) |
| int | maWidgetInsertChild (MAWidgetHandle parent, MAWidgetHandle child, int index) |
| int | maWidgetRemoveChild (MAWidgetHandle child) |
| int | maWidgetModalDialogShow (MAWidgetHandle dialogHandle) |
| int | maWidgetModalDialogHide (MAWidgetHandle dialogHandle) |
| int | maWidgetScreenShow (MAWidgetHandle screenHandle) |
| int | maWidgetStackScreenPush (MAWidgetHandle stackScreen, MAWidgetHandle newScreen) |
| int | maWidgetStackScreenPop (MAWidgetHandle stackScreen) |
| int | maWidgetSetProperty (MAWidgetHandle widget, const char *property, const char *value) |
| int | maWidgetGetProperty (MAWidgetHandle widget, const char *property, char *value, int bufSize) |
The set of functions available for the Widget API.
| MAWidgetHandle maWidgetCreate | ( | const char * | widgetType | ) |
Creates a new widget of the specified type.
| widgetType | A String representing the type of the widget to create. |
References maIOCtl().
| int maWidgetDestroy | ( | MAWidgetHandle | widget | ) |
Frees the memory and resources held by the given widget. Destryoing a widget with children will also cause its children to be destroyed. Once a handle has been destroyed it cannot be referenced by the maWidget* functions.
| widget | A handle to the widget to be destroyed. |
References maIOCtl().
| int maWidgetAddChild | ( | MAWidgetHandle | parent, |
| MAWidgetHandle | child | ||
| ) |
Adds a widget to the given parent as a child. Letting the parent widget layout the child.
| parent | The widget layout to which the child will be added. |
| child | The widget that will be added to the parent. |
References maIOCtl().
| int maWidgetInsertChild | ( | MAWidgetHandle | parent, |
| MAWidgetHandle | child, | ||
| int | index | ||
| ) |
Inserts a widget to the given parent as a child at an index. Letting the parent widget layout the child.
| parent | The widget layout in which the child will be inserted. |
| child | The widget that will be added to the parent. |
| index | The index where the widget should be inserted (-1 means last) |
References maIOCtl().
| int maWidgetRemoveChild | ( | MAWidgetHandle | child | ) |
Removes a child widget from its parent (but does not destroy it). Removing a currently visible top-level widget causes the MoSync view to become visible.
References maIOCtl().
| int maWidgetModalDialogShow | ( | MAWidgetHandle | dialogHandle | ) |
Shows a dialog widget.
| dialogHandle | The handle of the dialog that will be shown. |
References maIOCtl().
| int maWidgetModalDialogHide | ( | MAWidgetHandle | dialogHandle | ) |
Hides/Dismisses a currently displayed dialog.
| dialogHandle | The handle of the dialog that will be hidden. |
References maIOCtl().
| int maWidgetScreenShow | ( | MAWidgetHandle | screenHandle | ) |
Shows a screen. If native UI hasn't been initialized, it is also initialized and disables regular MoSync drawing.
| screenHandle | The handle to the screen. |
References maIOCtl().
| int maWidgetStackScreenPush | ( | MAWidgetHandle | stackScreen, |
| MAWidgetHandle | newScreen | ||
| ) |
Pushes a screen to the given screen stack, hides the current screen and shows the pushed screen it. Pushing it to the stack will make it automatically go back to the previous screen when popped.
| stackScreen | A handle to a MAW_STACK_SCREEN. |
| newScreen | A handle to either a MAW_SCREEN or a MAW_TAB_SCREEN. The handle cannot exist in the stack already. |
References maIOCtl().
| int maWidgetStackScreenPop | ( | MAWidgetHandle | stackScreen | ) |
Pops a screen from a screen stack, hides the current screen and shows the popped screen before the If there is no previous screen in the screen stack, an empty screen will be shown.
| stackScreen | A handle to a MAW_STACK_SCREEN to pop from. |
References maIOCtl().
| int maWidgetSetProperty | ( | MAWidgetHandle | widget, |
| const char * | property, | ||
| const char * | value | ||
| ) |
Sets a specified property on the given widget.
| widget | Handle to the widget. |
| property | A string representing which property to set. |
| value | The value which will be assigned to the property. |
References maIOCtl().
| int maWidgetGetProperty | ( | MAWidgetHandle | widget, |
| const char * | property, | ||
| char * | value, | ||
| int | bufSize | ||
| ) |
Retrieves a specified property from the given widget.
| widget | Handle to the widget. |
| property | A string representing which property to set. |
| value | A buffer that will hold the value of the property, represented as a string. |
| bufSize | Size of the buffer. |
References maIOCtl().