MoSync 3.0.1
IX_WIDGET.h File Reference

Classes

struct  MAWidgetEventData
 A struct that holds the data associated with a widget event. More...

Defines

#define MAW_EVENT_POINTER_PRESSED   2
 A pointer pressed event has occurred.
#define MAW_EVENT_POINTER_RELEASED   3
 A pointer released event has occurred.
#define MAW_EVENT_CONTENT_LOADED   4
 This event is not used and has been deprecated.
#define MAW_EVENT_CLICKED   5
 Sent when something is clicked.
#define MAW_EVENT_ITEM_CLICKED   6
 Sent when an item in a list view is clicked.
#define MAW_EVENT_TAB_CHANGED   7
 Sent when a tab widget has changed to a new tab.
#define MAW_EVENT_GL_VIEW_READY   8
 Sent when an GLView has been initialized and is ready for setup.
#define MAW_EVENT_WEB_VIEW_URL_CHANGED   9
 Sent when the URL of a web view changes.
#define MAW_EVENT_STACK_SCREEN_POPPED   10
 Sent when a screen has been popped from a stack screen.
#define MAW_EVENT_SLIDER_VALUE_CHANGED   11
 Sent when the progress level has been changed. This includes changes that were initiated by the user through a touch gesture, or arrow key/trackball as well as changes that were initiated programmatically.
#define MAW_EVENT_DATE_PICKER_VALUE_CHANGED   12
 Sent when the user changes the date in a Date Picker.
#define MAW_EVENT_TIME_PICKER_VALUE_CHANGED   13
 Sent when the user changes the time in a Time Picker.
#define MAW_EVENT_NUMBER_PICKER_VALUE_CHANGED   14
 Sent when the user changes the value in a Number Picker.
#define MAW_EVENT_VIDEO_STATE_CHANGED   15
 Sent from the Video View when the state of the video has changed.
#define MAW_EVENT_EDIT_BOX_EDITING_DID_BEGIN   16
 Sent from the Edit box when it gains focus(the user selects the widget). The virtual keyboard is shown.
#define MAW_EVENT_EDIT_BOX_EDITING_DID_END   17
 Sent from the Edit box when it loses focus. The virtual keyboard is hidden.
#define MAW_EVENT_EDIT_BOX_TEXT_CHANGED   18
 Sent from the Edit box when the text was changed.
#define MAW_EVENT_EDIT_BOX_RETURN   19
 Sent from the Edit box when the return button was pressed. On iphone platform the virtual keyboard is not closed after receiving this event. The virtual keyboard can be hided by setting the MAW_EDIT_BOX_SHOW_KEYBOARD to "false". Not available on Windows Phone 7.1.
#define MAW_EVENT_WEB_VIEW_CONTENT_LOADING   20
 A WebView widget reports status of loading page content. Event parameter status is set to one of the following values: MAW_CONSTANT_STARTED MAW_CONSTANT_DONE MAW_CONSTANT_STOPPED MAW_CONSTANT_ERROR.
#define MAW_EVENT_WEB_VIEW_HOOK_INVOKED   21
 A web view hook has captured a url.
#define MAW_EVENT_DIALOG_DISMISSED   22
#define MAW_CONSTANT_MOSYNC_SCREEN_HANDLE   0
 A handle to the MoSync canvas screen. Use maWidgetScreenShow with this handle to show the initial mosync canvas.
#define MAW_CONSTANT_FILL_AVAILABLE_SPACE   -1
 If set to the width or height of a widget and the parent is either a vertical or horizontal layout it tries to fill the available space in that dimension. If there are multiple widgets specified with this constant, the space will then be shared equally. If the parent isn't a horizontal or vertical layout it just resizes the child to the size of its parent.
#define MAW_CONSTANT_WRAP_CONTENT   -2
 If set to the width or height of a widget it will be as big as its content in that dimension.
#define MAW_CONSTANT_STARTED   1
 Loading a page has started. Used in #MAW_EVENT_WEB_VIEW_CONTENT_LOADED.
#define MAW_CONSTANT_DONE   2
 Loading a page is done. Used in #MAW_EVENT_WEB_VIEW_CONTENT_LOADED.
#define MAW_CONSTANT_STOPPED   3
 Loading a page has stopped (aborted). Used in #MAW_EVENT_WEB_VIEW_CONTENT_LOADED.
#define MAW_CONSTANT_ERROR   -1
 Loading a page has failed. Used in #MAW_EVENT_WEB_VIEW_CONTENT_LOADED.
#define MAW_CONSTANT_SOFT   5
 The hook type is a soft hook. Used in MAW_EVENT_WEB_VIEW_HOOK_INVOKED.
#define MAW_CONSTANT_HARD   6
 The hook type is a hard hook. Used in MAW_EVENT_WEB_VIEW_HOOK_INVOKED.
#define MAW_CONSTANT_MESSAGE   7
 The hook type is a message sendt from JavaScript. Used in MAW_EVENT_WEB_VIEW_HOOK_INVOKED. This type of hook does not use any hook pattern, it is always sent from the browser, using a platform specific method (which is abstracted away in the libraries).
#define MAW_CONSTANT_ARROW_UP   1
 The popover arrow should point up. Used in MAW_MODAL_DIALOG_ARROW_POSITION.
#define MAW_CONSTANT_ARROW_DOWN   2
 The popover arrow should point down. Used in MAW_MODAL_DIALOG_ARROW_POSITION.
#define MAW_CONSTANT_ARROW_LEFT   4
 The popover arrow should point left. Used in MAW_MODAL_DIALOG_ARROW_POSITION.
#define MAW_CONSTANT_ARROW_RIGHT   8
 The popover arrow should point right. Used in MAW_MODAL_DIALOG_ARROW_POSITION.
#define MAW_CONSTANT_ARROW_ANY   15
 The popover arrow can point anywhere. Used in MAW_MODAL_DIALOG_ARROW_POSITION.
#define MAW_ALIGNMENT_LEFT   "left"
 Constant that represents a left aligned widget.
#define MAW_ALIGNMENT_RIGHT   "right"
 Constant that represents a right aligned widget.
#define MAW_ALIGNMENT_CENTER   "center"
 Constant that represents a center aligned widget.
#define MAW_ALIGNMENT_TOP   "top"
 Constant that represents a top aligned widget.
#define MAW_ALIGNMENT_BOTTOM   "bottom"
 Constant that represents a bottom aligned widget.
#define MAW_VIDEO_VIEW_ACTION_PLAY   1
 Play the video.
#define MAW_VIDEO_VIEW_ACTION_PAUSE   2
 Pause the video.
#define MAW_VIDEO_VIEW_ACTION_STOP   3
 Stop the video.
#define MAW_VIDEO_VIEW_STATE_PLAYING   1
 The video is playing.
#define MAW_VIDEO_VIEW_STATE_PAUSED   2
 The video is paused.
#define MAW_VIDEO_VIEW_STATE_STOPPED   3
 The video is stopped.
#define MAW_VIDEO_VIEW_STATE_FINISHED   4
 The video has finished playing.
#define MAW_VIDEO_VIEW_STATE_SOURCE_READY   5
 The source is ready to be played. NOTE: On Android this event is received after loading url/path. On iOS this event is received after PLAYING event is received. On WindowsPhone this event is received after media loding has finished.
#define MAW_VIDEO_VIEW_STATE_INTERRUPTED   6
 Playback is temporarily interruped(maybe there's no data in the buffer). NOTE: On WindowsPhone 7 this occurs when an error is encountered.
#define MAW_RES_OK   0
 Indicates that the call to a widget syscall was successful.
#define MAW_RES_ERROR   -2
 Indicates that the call to a widget syscall was unsuccessful.
#define MAW_RES_INVALID_PROPERTY_NAME   -2
 Indicates that the call to maWidgetSetProperty or maWidgetGetProperty received an invalid property name.
#define MAW_RES_INVALID_PROPERTY_VALUE   -3
 Indicates that the call to maWidgetSetProperty or maWidgetGetProperty received an invalid property value.
#define MAW_RES_INVALID_HANDLE   -4
 Indicates that the call to a widget function received an invalid handle.
#define MAW_RES_INVALID_TYPE_NAME   -5
 Indicates that the call maWidgetCreate received an invalid type name.
#define MAW_RES_INVALID_INDEX   -6
 Indicates that the call to maWidgetInsertChild received an invalid index.
#define MAW_RES_INVALID_STRING_BUFFER_SIZE   -7
 Indicates that the call maWidgetGetProperty needs a larger buffer.
#define MAW_RES_INVALID_SCREEN   -8
 Indicates that maWidgetScreenShow received an invalid (non-screen) widget handle.
#define MAW_RES_INVALID_LAYOUT   -9
 Indicates that the caller tried to add a widget to a non-layout.
#define MAW_RES_REMOVED_ROOT   -10
 Indicates that the caller tried to remove a visible root widget (screen) and the MoSync view will become visible.
#define MAW_RES_FEATURE_NOT_AVAILABLE   -11
 Indicates that a syscall tried to access a feature that is not supported by the current framework version.
#define MAW_RES_CANNOT_INSERT_DIALOG   -12
 Indicates that a syscall tried to add a dialog to a parent, which cannot be done because dialogs are in fact containers for other widgets.
#define MAW_SCREEN   "Screen"
 A screen is the root of all widgets currently visible on a screen. See Screen properties for the properties available.
#define MAW_TAB_SCREEN   "TabScreen"
 A tab screen is a special type of screen that can have any number of sub-screens each switchable using a tab bar. See Tab screen properties for the properties available.
#define MAW_STACK_SCREEN   "StackScreen"
 A stack screen is a special type of screen that manages navigation between a set of screens.
#define MAW_BUTTON   "Button"
 A button is a widget that represent a physical button that can be pressed. See Button properties for the properties available.
#define MAW_IMAGE   "Image"
 An image is a widget that can be used to display an image. See Image properties for the properties available.
#define MAW_IMAGE_BUTTON   "ImageButton"
 An image button is a button that will also affect the appearance of the background image when pressed. See Image button properties for the properties available.
#define MAW_LABEL   "Label"
 A label is a widget that can be used to display static non-editable text. See Label properties for the properties available.
#define MAW_EDIT_BOX   "EditBox"
 An editbox is an editable label. See Editbox properties for the properties available.
#define MAW_LIST_VIEW   "ListView"
 A list view is a vertical list of widgets that is also scrollable.
#define MAW_LIST_VIEW_ITEM   "ListViewItem"
 A list view item is a special kind of layout compatible with the list view. That has a predefined common layout for adding text, an icon etc. See List view item properties for the properties available.
#define MAW_CHECK_BOX   "CheckBox"
 A check box is a widget that acts like a physical switch. When pressed it will toggle its internal state that can either be checked or non-checked. See Check box properties for the properties available. If you want to display it with a "light" indicator, as it is on iOS use a Toggle Button instead.
#define MAW_HORIZONTAL_LAYOUT   "HorizontalLayout"
 A horizontal layout is a layout that stacks widgets in the horizontal axis. See Horizontal layout properties for the properties available.
#define MAW_VERTICAL_LAYOUT   "VerticalLayout"
 A vertical layout is a layout that stacks widgets in the vertical axis. See Vertical layout properties for the properties available.
#define MAW_RELATIVE_LAYOUT   "RelativeLayout"
 A relative layout is a layout that layouts widgets relative to its coordinate system. See Relative layout properties for the properties available.
#define MAW_SEARCH_BAR   "SearchBar"
 A search bar is a special kind of edit box that is used for searching. See Search bar properties for the properties available.
#define MAW_NAV_BAR   "NavBar"
 A nav bar is an iphone specific widget that shows a nav bar with an optional title and back button. See Nav bar properties for the properties available. See Navigation Bar properties for the properties available.
#define MAW_GL_VIEW   "GLView"
 A GL view is a widget that is used to display graphics rendered by the GPU using OpenGL|ES 1.0/1.1 calls. See GL view properties for the properties available.
#define MAW_GL2_VIEW   "GL2View"
 A GL view is a widget that is used to display graphics rendered by the GPU using OpenGL|ES 2.0 calls. See GL view properties for the properties available.
#define MAW_CAMERA_PREVIEW   "CameraPreview"
 A Camera preview widget is a widget that can bound to a camera and contain the live veiw data from the camera.
#define MAW_WEB_VIEW   "WebView"
 A web view is a widget used to render web pages. See Web view properties for the properties available.
#define MAW_PROGRESS_BAR   "ProgressBar"
 A progress bar is a visual indicator of progress in some operation. Displays a bar to the user representing how far the operation has progressed. A progress bar can also be made indeterminate, when the length of the task is unknown.
#define MAW_ACTIVITY_INDICATOR   "ActivityIndicator"
 An activity indicator is a visual indicator of progress in some operation. It shows a cyclic animation without an indication of progress. It is used when the length of the task is unknown.
#define MAW_SLIDER   "Slider"
 A Slider is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level.
#define MAW_DATE_PICKER   "DatePicker"
 A Date Picker is a widget for selecting a date. The date can be selected by a year, month, and day spinners. The minimal and maximal date from which dates to be selected can be customized. The picker is initialized with the current system date.
#define MAW_TIME_PICKER   "TimePicker"
 A Time Picker is a widget for selecting time of day, in 24 hour mode. The hour and each minute digit can be controlled by vertical spinners. The hour can be entered by keyboard input. Availabe only on iOS for the moment. See Time Picker properties for the properties available.
#define MAW_NUMBER_PICKER   "NumberPicker"
 A Number Picker is a widget that enables the user to select a number from a predefined range. Note: for the moment it is available only on iOS. See Number Picker properties for the properties available.
#define MAW_VIDEO_VIEW   "VideoView"
 A Video View displays a video file. By default, it has attached a controller view that typically contains the buttons like "Play/Pause", "Rewind", "Fast Forward" and a progress slider. See Video View properties for the properties available.
#define MAW_TOGGLE_BUTTON   "ToggleButton"
 A Toggle Button is a widget that acts like a physical switch. Displays checked/unchecked states as a button with a "light" indicator and by default accompanied with the text "ON" or "OFF". It is available only on Android, and it's similar to the Check Box on iOS. When pressed it will toggle its internal state that can either be checked or non-checked. See Toggle button properties for the properties available.
#define MAW_MODAL_DIALOG   "ModalDialog"
 A dialog is a sort of modal view, that can look different depending on the platform. A Dialog gets visible only after calling maWidgetModalDialogShow(). On Android it is a modal alert dialog. On iPad it is a PopoverController, and on iPhone it is a modal view. When a Dialog widget is created it is empty, it has no content. Any type of widget can be added inside it via maWidgetAddChild syscalls. To show a Dialog call maWidgetModalDialogShow(), to dismiss it call: maWidgetModalDialogHide(), and to delete it call maWidgetDestroy. See Modal Dialog properties for the properties available.
#define MAW_PANORAMA_VIEW   "PanoramaView"
 A panorama control is a Windows Phone 7 specific control Available only on Windows Phone 7 See Panorama View properties for the properties available.
#define MAW_WIDGET_LEFT   "left"
 Sets or gets the horizontal distance from the parent widget in a RelativeLayout.
#define MAW_WIDGET_TOP   "top"
 Specifies the vertical distance from the parent widget in a RelativeLayout.
#define MAW_WIDGET_WIDTH   "width"
 Sets or gets the width of a widget.
#define MAW_WIDGET_HEIGHT   "height"
 Sets or gets the height of a widget.
#define MAW_WIDGET_ALPHA   "alpha"
 Sets the transparency of the widget background. On Android this property is available for the moment only on Layouts and ImageWidget widgets.
#define MAW_WIDGET_BACKGROUND_COLOR   "backgroundColor"
 Specifies the background color of a widget.
#define MAW_WIDGET_VISIBLE   "visible"
 Sets whether the widget is visible or not. Layouts ignore invisible widgets.
#define MAW_WIDGET_ENABLED   "enabled"
 Sets whether the widget is enabled or not. If not, the widget is grayed out.
#define MAW_WIDGET_BACKGROUND_GRADIENT   "backgroundGradient"
 Specifies the background gradient of a widget. Currently implemented only on Android.
#define MAW_SCREEN_TITLE   "title"
 Sets the title of a screen. The screen title is used by tab screen to display a text on the tab indicator.
#define MAW_SCREEN_ICON   "icon"
 Sets an icon for a screen. The icon is used by a tab screen to display an icon on the tab indicator.
#define MAW_TAB_SCREEN_TITLE   "title"
#define MAW_TAB_SCREEN_ICON   "icon"
#define MAW_TAB_SCREEN_CURRENT_TAB   "currentTab"
 Sets or gets the currently open tab to the tab with the given index.
#define MAW_PANORAMA_VIEW_TITLE   "title"
#define MAW_PANORAMA_VIEW_CURRENT_SCREEN   "currentScreen"
 Sets or gets the currently shown screen to the screen with the given index.
#define MAW_PANORAMA_VIEW_BACKGROUND_IMAGE   "backgroundImage"
 Sets the background image of the view.
#define MAW_STACK_SCREEN_TITLE   "title"
#define MAW_STACK_SCREEN_ICON   "icon"
#define MAW_STACK_SCREEN_BACK_BUTTON_ENABLED   "backButtonEnabled"
 Specifies whether the back button automatically should pop the stack screen.
#define MAW_LABEL_TEXT   "text"
 Sets or gets the text that is displayed in the label.
#define MAW_LABEL_TEXT_VERTICAL_ALIGNMENT   "textVerticalAlignment"
 Sets the vertical alignment of the text inside the label. If the widget's height is WRAP_CONTENT this property has no effect.
#define MAW_LABEL_TEXT_HORIZONTAL_ALIGNMENT   "textHorizontalAlignment"
 Sets the horizontal alignment of the text inside the label. If the widget's height is WRAP_CONTENT this property has no effect.
#define MAW_LABEL_FONT_COLOR   "fontColor"
 Sets the font color of the label's text.
#define MAW_LABEL_FONT_SIZE   "fontSize"
 Sets the font size in points of the label's text.
#define MAW_LABEL_FONT_HANDLE   "fontHandle"
 Sets the typeface and style in which the text should be displayed.
#define MAW_LABEL_MAX_NUMBER_OF_LINES   "maxNumberOfLines"
 Sets the maximum number of lines used for rendering text. To remove any maximum limit, and use as many lines as needed, set the value of this property to 0.
#define MAW_BUTTON_TEXT   "text"
 Sets or gets the text that is displayed in the label.
#define MAW_BUTTON_TEXT_VERTICAL_ALIGNMENT   "textVerticalAlignment"
 Sets the vertical alignment of the text inside the button. If the widget's height is WRAP_CONTENT this property has no effect.
#define MAW_BUTTON_TEXT_HORIZONTAL_ALIGNMENT   "textHorizontalAlignment"
 Sets the horizontal alignment of the text inside the button. If the widget's width is WRAP_CONTENT this property has no effect.
#define MAW_BUTTON_FONT_COLOR   "fontColor"
 Sets the font color of the button's text.
#define MAW_BUTTON_FONT_SIZE   "fontSize"
 Sets the font size in points of the button's text.
#define MAW_BUTTON_FONT_HANDLE   "fontHandle"
 Sets the typeface and style in which the text should be displayed.
#define MAW_IMAGE_BUTTON_TEXT   "text"
 Sets or gets the text that is displayed in the label. Note: It is not available on Android, as native image buttons do not have text attached.
#define MAW_IMAGE_BUTTON_TEXT_VERTICAL_ALIGNMENT   "textVerticalAlignment"
 Sets the vertical alignment of the text inside the button. If the widget's height is WRAP_CONTENT this property has no effect.
#define MAW_IMAGE_BUTTON_TEXT_HORIZONTAL_ALIGNMENT   "textHorizontalAlignment"
 Sets the horizontal alignment of the text inside the button. If the widget's height is WRAP_CONTENT this property has no effect.
#define MAW_IMAGE_BUTTON_FONT_COLOR   "fontColor"
 Sets the font color of the button's text.
#define MAW_IMAGE_BUTTON_FONT_SIZE   "fontSize"
 Sets the font size in points of the button's text.
#define MAW_IMAGE_BUTTON_BACKGROUND_IMAGE   "backgroundImage"
#define MAW_IMAGE_BUTTON_IMAGE   "image"
#define MAW_IMAGE_BUTTON_FONT_HANDLE   "fontHandle"
 Sets the typeface and style in which the text should be displayed.
#define MAW_IMAGE_IMAGE   "image"
#define MAW_IMAGE_SCALE_MODE   "scaleMode"
 Specifies what type of scaling should be applied to the image.
#define MAW_EDIT_BOX_TYPE_ANY   0
#define MAW_EDIT_BOX_TYPE_EMAILADDR   1
#define MAW_EDIT_BOX_TYPE_NUMERIC   2
#define MAW_EDIT_BOX_TYPE_PHONENUMBER   3
#define MAW_EDIT_BOX_TYPE_URL   4
#define MAW_EDIT_BOX_TYPE_DECIMAL   5
#define MAW_EDIT_BOX_TYPE_SINGLE_LINE   6
#define MAW_EDIT_BOX_FLAG_PASSWORD   0
#define MAW_EDIT_BOX_FLAG_SENSITIVE   1
#define MAW_EDIT_BOX_FLAG_INITIAL_CAPS_WORD   2
#define MAW_EDIT_BOX_FLAG_INITIAL_CAPS_SENTENCE   3
#define MAW_EDIT_BOX_FLAG_INITIAL_CAPS_ALL_CHARACTERS   4
#define MAW_EDIT_BOX_TEXT   "text"
 Set or get the text entered in the edit box.
#define MAW_EDIT_BOX_PLACEHOLDER   "placeholder"
 Set a text in the edit box that acts as a placeholder when an edit box is empty.
#define MAW_EDIT_BOX_SHOW_KEYBOARD   "showKeyboard"
 Shows or hides the virtual keyboard. If shown the focus will be set to this widget.
#define MAW_EDIT_BOX_EDIT_MODE   "editMode"
 Specifies what editing mode the edit box should have.
#define MAW_EDIT_BOX_INPUT_MODE   "inputMode"
 Specifies what editing mode the edit box should have. Those flags are mutual exclusive, so the previous value is always ignored.
#define MAW_EDIT_BOX_INPUT_FLAG   "inputFlag"
 Specifies the editing flags applied to the edit box. Those flags are mutual exclusive, so the previous value is always ignored.
#define MAW_EDIT_BOX_FONT_COLOR   "fontColor"
 Sets the font color of the edit box's text.
#define MAW_EDIT_BOX_LINES_NUMBER   "linesNumber"
 Set the number of lines. Makes the edit box exactly this many lines tall. Note that setting this value overrides any other (minimum / maximum) number of lines or height setting. A single line edit box will set this value to 1. This property will automatically set MAW_EDIT_BOX_TYPE_ANY input mode, so that the edit box will become multiline. Available on Android only.
#define MAW_EDIT_BOX_MAX_LINES   "maxLines"
 Makes the edit box at most this many lines tall. Setting this value overrides any other (maximum) height setting. Available on Android only.
#define MAW_EDIT_BOX_MIN_LINES   "minLines"
 Makes the edit box at least this many lines tall. Setting this value overrides any other (minimum) height setting. Available on Android only.
#define MAW_EDIT_BOX_MAX_LENGTH   "maxLength"
 Sets or gets the maximum input lenght of the edit box. Setting this value enables multiline input mode by default. Available on Android, iOS and Windows Phone.
#define MAW_EDIT_BOX_PLACEHOLDER_FONT_COLOR   "placeholderFontColor"
 Sets the font color of the placeholder text when an edit box is empty.
#define MAW_LIST_VIEW_ITEM_TEXT   "text"
 Sets the text part of the list view item. If there is an icon the text will be placed to the right of it, otherwise near the left edge.
#define MAW_LIST_VIEW_ITEM_ICON   "icon"
 Sets an icon of the list view item that is placed to the left of the text.
#define MAW_LIST_VIEW_ITEM_ACCESSORY_TYPE   "accessoryType"
 Sets the type of list item displayed. Provides the corresponding icon in the right side of the list view.
#define MAW_LIST_VIEW_ITEM_FONT_COLOR   "fontColor"
 Sets the font color of the text part.
#define MAW_LIST_VIEW_ITEM_FONT_SIZE   "fontSize"
 Sets the font size in points of the text part.
#define MAW_LIST_VIEW_ITEM_FONT_HANDLE   "fontHandle"
 Sets the typeface and style in which the text should be displayed.
#define MAW_CHECK_BOX_CHECKED   "checked"
 Set or get the checked state of the checkbox.
#define MAW_TOGGLE_BUTTON_CHECKED   "checked"
 Set or get the checked state of the toggle button.
#define MAW_HORIZONTAL_LAYOUT_CHILD_VERTICAL_ALIGNMENT   "childVerticalAlignment"
 Sets how the children in the layout should be aligned in the vertical axis.
#define MAW_HORIZONTAL_LAYOUT_CHILD_HORIZONTAL_ALIGNMENT   "childHorizontalAlignment"
 Sets how the children in the layout should be aligned in the horizontal axis.
#define MAW_HORIZONTAL_LAYOUT_PADDING_TOP   "paddingTop"
 Sets the top padding.
#define MAW_HORIZONTAL_LAYOUT_PADDING_LEFT   "paddingLeft"
 Sets the left padding.
#define MAW_HORIZONTAL_LAYOUT_PADDING_RIGHT   "paddingRight"
 Sets the right padding.
#define MAW_HORIZONTAL_LAYOUT_PADDING_BOTTOM   "paddingBottom"
 Sets the bottom padding.
#define MAW_RELATIVE_LAYOUT_SCROLLABLE   "scrollable"
 Sets the isScrollable boolean.
#define MAW_VERTICAL_LAYOUT_CHILD_VERTICAL_ALIGNMENT   "childVerticalAlignment"
 Sets how the children in the layout should be aligned in the vertical axis.
#define MAW_VERTICAL_LAYOUT_CHILD_HORIZONTAL_ALIGNMENT   "childHorizontalAlignment"
 Sets how the children in the layout should be aligned in the horizontal axis.
#define MAW_VERTICAL_LAYOUT_PADDING_TOP   "paddingTop"
 Sets the top padding.
#define MAW_VERTICAL_LAYOUT_PADDING_LEFT   "paddingLeft"
 Sets the left padding.
#define MAW_VERTICAL_LAYOUT_PADDING_RIGHT   "paddingRight"
 Sets the right padding.
#define MAW_VERTICAL_LAYOUT_PADDING_BOTTOM   "paddingBottom"
 Sets the bottom padding.
#define MAW_VERTICAL_LAYOUT_SCROLLABLE   "scrollable"
 Sets the isScrollable boolean.
#define MAW_SEARCH_BAR_TEXT   "text"
 Set or get the current text of the search bar.
#define MAW_SEARCH_BAR_PLACEHOLDER   "placeholder"
 Set a text in the search bar that acts as a placeholder when an edit box is empty.
#define MAW_SEARCH_BAR_SHOW_KEYBOARD   "showKeyboard"
 Shows or hides the virtual keyboard. If shown the focus will be set to this widget.
#define MAW_GL_VIEW_INVALIDATE   "invalidate"
 Property that tells the gl view that it should be redrawn.
#define MAW_GL_VIEW_BIND   "bind"
 Property that tells the gl view that all following gl calls will apply to this view.
#define MAW_WEB_VIEW_URL   "url"
 Set or get the currently displayed url in the web view.
#define MAW_WEB_VIEW_HTML   "html"
 Set the currently displayed HTML data in the web view.
#define MAW_WEB_VIEW_BASE_URL   "baseUrl"
 Set the base URL used by the web-view when loading relative paths. The value of this URL is used when setting the MAW_WEB_VIEW_URL and MAW_WEB_VIEW_HTML properties. The default value for this property points to the Assets folder in the local file system ("file://pathToLocalFileSystem/Assets/").
#define MAW_WEB_VIEW_SOFT_HOOK   "softHook"
 Set the pattern used to "soft hook" urls, to get notified when pages are being loaded.
#define MAW_WEB_VIEW_HARD_HOOK   "hardHook"
 Set the pattern used to "hard hook" urls, to get notified and prevent loading of pages.
#define MAW_WEB_VIEW_NEW_URL   "newurl"
 Property to get a new url whenever the webview changes the url. See MAW_EVENT_WEB_VIEW_URL_CHANGED.
#define MAW_WEB_VIEW_HORIZONTAL_SCROLL_BAR_ENABLED   "horizontalScrollBarEnabled"
 Sets or gets whether the horizontal scrollbar should be drawn or not. Available only on Android for the moment.
#define MAW_WEB_VIEW_VERTICAL_SCROLL_BAR_ENABLED   "verticalScrollBarEnabled"
 Sets or gets whether the vertical scrollbar should be drawn or not. The scrollbar is drawn by default. Available only on Android for the moment.
#define MAW_WEB_VIEW_ENABLE_ZOOM   "enableZoom"
 Enable or disable the zoom controls of the web view.
#define MAW_WEB_VIEW_NAVIGATE   "navigate"
 Navigate forward or back the browsing history.
#define MAW_PROGRESS_BAR_MAX   "max"
 Sets or gets the range of the progress bar to 0..max.
#define MAW_PROGRESS_BAR_PROGRESS   "progress"
 Set or gets the current progress to the specified value.
#define MAW_PROGRESS_BAR_INCREMENT_PROGRESS   "incrementProgress"
 Increase the progress bar's progress by the specified amount.
#define MAW_ACTIVITY_INDICATOR_IN_PROGRESS   "inProgress"
 Sets if the indicator is still on or off. If set to false, it doesn't delete the widget just dismisses it.
#define MAW_SLIDER_MAX   "max"
 Sets or gets the range of the slider to 0..max.
#define MAW_SLIDER_VALUE   "value"
 Set or gets the current value to the slider.
#define MAW_SLIDER_INCREASE_VALUE   "increaseValue"
 Increase the current value of the slider by the specified amount.
#define MAW_SLIDER_DECREASE_VALUE   "decreaseValue"
 Decreases the current value of the slider by the specified amount.
#define MAW_DATE_PICKER_MAX_DATE   "maxDate"
 Sets or gets maximal date supported by this DatePicker in seconds since January 1, 1970 00:00:00. NOTE: On Android the default maximal date is 12/31/2100. NOTE: The property can be set on iOS only.
#define MAW_DATE_PICKER_MAX_DATE_YEAR   "maxdateyear"
 Sets or gets the year of the maximal date supported by this DatePicker. Note: On Android the default maximal date year is 2100. Note: On Windows Phone 7 and iOS the default maximal date year is 9999.
#define MAW_DATE_PICKER_MAX_DATE_MONTH   "maxdatemonth"
 Sets or gets the month of the maximal date supported by this DatePicker.
#define MAW_DATE_PICKER_MAX_DATE_DAY   "maxdateday"
 Sets or gets the day of the maximal date supported by this DatePicker.
#define MAW_DATE_PICKER_MIN_DATE   "minDate"
 Sets or gets minimal date supported by this DatePicker in seconds since January 1, 1970 00:00:00 Note: On Android the default minimal date is 01/01/1900.
#define MAW_DATE_PICKER_MIN_DATE_YEAR   "mindateyear"
 Sets or gets the year of the minimal date supported by this DatePicker. Note: On Android the default minimal date year is 1900. Note: On Windows Phone 7 and iOS the default minimal date year is 1.
#define MAW_DATE_PICKER_MIN_DATE_MONTH   "mindatemonth"
 Sets or gets the month of the minimal date supported by this DatePicker.
#define MAW_DATE_PICKER_MIN_DATE_DAY   "mindateday"
 Sets or gets the day of the minimal date supported by this DatePicker.
#define MAW_DATE_PICKER_YEAR   "year"
 Sets or gets the currently displayed year.
#define MAW_DATE_PICKER_MONTH   "month"
 Sets or gets the currently displayed month.
#define MAW_DATE_PICKER_DAY_OF_MONTH   "dayOfMonth"
 Sets or gets the currently displayed day of month.
#define MAW_TIME_PICKER_CURRENT_HOUR   "currentHour"
 Sets or gets the current hour in 24h mode( in the range: 0-23 ).
#define MAW_TIME_PICKER_CURRENT_MINUTE   "currentMinute"
 Sets or gets the current minute (0-59).
#define MAW_NUMBER_PICKER_VALUE   "value"
 Sets or gets the current value for the number picker. If the value is less than MAW_NUMBER_PICKER_MIN_VALUE property value, the current value is set to min. If the value is greater than MAW_NUMBER_PICKER_MAX_VALUE value, the current value is set to max.
#define MAW_NUMBER_PICKER_MIN_VALUE   "minValue"
 Sets or gets the min value of the picker.
#define MAW_NUMBER_PICKER_MAX_VALUE   "maxValue"
 Sets or gets the max value of the picker.
#define MAW_VIDEO_VIEW_PATH   "path"
 Sets the video path. Note: available only for Android.
#define MAW_VIDEO_VIEW_URL   "url"
 Sets the video url.
#define MAW_VIDEO_VIEW_ACTION   "action"
 Start,pause or stop the video playback.
#define MAW_VIDEO_VIEW_SEEK_TO   "seekTo"
 Seeks into the video.
#define MAW_VIDEO_VIEW_DURATION   "duration"
 Gets the video file duration.
#define MAW_VIDEO_VIEW_BUFFER_PERCENTAGE   "bufferPercentage"
 Gets the buffer percentage of the played video file.
#define MAW_VIDEO_VIEW_CURRENT_POSITION   "currentPosition"
 Gets the current position in the video file.
#define MAW_VIDEO_VIEW_CONTROL   "control"
 Show/hide video control. Default value is "true"(video control is shown). Platform: iOS.
#define MAW_NAV_BAR_TITLE   "title"
 Sets or gets the title.
#define MAW_NAV_BAR_ICON   "icon"
#define MAW_NAV_BAR_BACK_BTN   "backBtn"
 Sets the text for the back button. This can be set only when the navigation bar was attached to a screen that is not part of a stack screen. Note: this is available only on iOS. On Android the back behavior is handled by the device's back button.
#define MAW_NAV_BAR_TITLE_FONT_COLOR   "titleFontColor"
 Sets the font color of the title.
#define MAW_NAV_BAR_TITLE_FONT_SIZE   "titleFontSize"
 Sets the font size in points of the title.
#define MAW_NAV_BAR_TITLE_FONT_HANDLE   "titleFontHandle"
 Sets the typeface and style in which the title should be displayed.
#define MAW_MODAL_DIALOG_TITLE   "title"
 Sets or gets the title. If the property receives am empty string then the title bar becomes invisible.
#define MAW_MODAL_DIALOG_ARROW_POSITION   "arrowPosition"
 Sets the origin arrow position for a popover dialog. Note: This property is only available on the iPad.
#define MAW_MODAL_DIALOG_USER_CAN_DISMISS   "userCanDismiss"
 Allow or prohibits the user from dismissing a popover dialog by tapping outside of it. Note: This property is only available on the iPad.

Typedefs

typedef int MAWidgetHandle
typedef struct MAWidgetEventData MAWidgetEventData
 A struct that holds the data associated with a widget event.

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)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines