|
MoSync 3.0.1
|
A struct that holds the data associated with a widget event. More...
#include <IX_WIDGET.h>
Public Attributes | |
| int | eventType |
| Determines which kind of widget event that has occurred. See Widget event types for the possible values. | |
| MAWidgetHandle | widgetHandle |
| Handle to the widget that sent the event. | |
| union { | |
| int listItemIndex | |
| The index when a MAW_EVENT_CLICKED event is receieved for a list view. | |
| int searchBarButton | |
| The type of button that was clicked when a MAW_EVENT_CLICKED event is receieved for a searchbar. The type of searchbar button clicked: | |
| int checked | |
| The new state of the checkbox when a MAW_EVENT_CLICKED event is receieved for a checkbox or toggle button. | |
| int tabIndex | |
| The new tab index when a MAW_EVENT_TAB_CHANGED event is received. | |
| int status | |
| Used by event MAW_EVENT_WEB_VIEW_CONTENT_LOADING. One of: MAW_CONSTANT_STARTED MAW_CONSTANT_DONE MAW_CONSTANT_STOPPED MAW_CONSTANT_ERROR. | |
| struct { | |
| int hookType | |
| The type of hook that has been invoked. One of: MAW_CONSTANT_SOFT MAW_CONSTANT_HARD MAW_CONSTANT_MESSAGE. | |
| MAHandle urlData | |
| The handle to url data. This is string data, there is NO null terminating character. The encoding of the data is determined by the application. The data object MUST be deallocated with maDestroyPlaceholder after it has been used, since each event allocates a new data object for the url data (which could end up consuming all memory). | |
| } | |
| struct { | |
| MAWidgetHandle fromScreen | |
| The handle to the screen that was popped from the stack screen. | |
| MAWidgetHandle toScreen | |
| The handle to the screen that will be shown. If there is no screen to pop to, this will be the same as widgetHandle. | |
| } | |
| int sliderValue | |
| struct { | |
| int dayOfMonth | |
| The day value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received. | |
| int month | |
| The month value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received. | |
| int year | |
| The year value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received. | |
| } | |
| struct { | |
| int hour | |
| The hour value when a MAW_EVENT_TIME_PICKER_VALUE_CHANGED event is received. | |
| int minute | |
| The minute value when a MAW_EVENT_TIME_PICKER_VALUE_CHANGED event is received. | |
| } | |
| int numberPickerValue | |
| int videoViewState | |
| int optionDialogButtonIndex | |
| }; | |
A struct that holds the data associated with a widget event.
Determines which kind of widget event that has occurred. See Widget event types for the possible values.
Handle to the widget that sent the event.
The index when a MAW_EVENT_CLICKED event is receieved for a list view.
The type of button that was clicked when a MAW_EVENT_CLICKED event is receieved for a searchbar. The type of searchbar button clicked:
The new state of the checkbox when a MAW_EVENT_CLICKED event is receieved for a checkbox or toggle button.
The new tab index when a MAW_EVENT_TAB_CHANGED event is received.
Used by event MAW_EVENT_WEB_VIEW_CONTENT_LOADING. One of: MAW_CONSTANT_STARTED MAW_CONSTANT_DONE MAW_CONSTANT_STOPPED MAW_CONSTANT_ERROR.
The type of hook that has been invoked. One of: MAW_CONSTANT_SOFT MAW_CONSTANT_HARD MAW_CONSTANT_MESSAGE.
The handle to url data. This is string data, there is NO null terminating character. The encoding of the data is determined by the application. The data object MUST be deallocated with maDestroyPlaceholder after it has been used, since each event allocates a new data object for the url data (which could end up consuming all memory).
The handle to the screen that was popped from the stack screen.
The handle to the screen that will be shown. If there is no screen to pop to, this will be the same as widgetHandle.
The value of the slider when a MAW_EVENT_SLIDER_VALUE_CHANGED event is received.
The day value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received.
The month value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received.
The year value when a MAW_EVENT_DATE_PICKER_VALUE_CHANGED event is received.
The hour value when a MAW_EVENT_TIME_PICKER_VALUE_CHANGED event is received.
The minute value when a MAW_EVENT_TIME_PICKER_VALUE_CHANGED event is received.
The value of the number picker when a MAW_EVENT_NUMBER_PICKER_VALUE_CHANGED event is received.
The new state of the Video view when a MAW_EVENT_VIDEO_STATE_CHANGED event is received. One of the MAW_VIDEO_WIDGET_STATE constants.
Send by the OptionDialog view when a EVENT_TYPE_OPTIONS_BOX_BUTTON_CLICKED event is received.
| union { ... } |