MoSync 3.3
Widget types

Defines

#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. When creating a list view object the MAW_LIST_VIEW_TYPE property must be immediately set.
#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. Available on iOS, WindowsPhone and Android. 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 on Android, iOS and Windows Phone 7. 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. On Windows Phone, it's a Popup having inside a StackPanel which contains all the controls added to the dialog 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. The paroramaView is a screen container which may contain more then one screen. A screen can spann over the hardware screen width. In order to enable this you will have to set the width property of a screen to a certain value. For more information regarding this control please check the following link: http://msdn.microsoft.com/en-us/library/ff941104(v=vs.92).aspx.
#define MAW_RADIO_BUTTON   "RadioButton"
 A radio button available only on Android. A radio button can only have a MAW_RADIO_GROUP parent. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group. Initially, all of the radio buttons are unchecked. While it is not possible to uncheck a particular radio button, the radio group can be cleared to remove the checked state. See Radio Button properties for the properties available.
#define MAW_RADIO_GROUP   "RadioGroup"
 A radio group is available only on Android. This class is used to create a multiple-exclusion scope for a set of the RADIO_BUTTONS . See Radio Group properties for the properties available.
#define MAW_RATING_BAR   "RatingBar"
 A RatingBar is an extension of Slider and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. When using a RatingBar that supports user interaction, placing widgets to the left or right of the RatingBar is discouraged. See Rating Bar properties for the properties available.
#define MAW_MAP   "Map"
 The map widget will contain the google map (on iOS and Android) and the bing map (on Windows Phone) controls and will allow the user to interract with the map. See Map properties for the properties available.
#define MAW_MAP_PIN   "MapPin"
 A map pin can pe placend on the map at a given set of coordinates and responds to click events. See Map pin properties for the properties available.
#define MAW_LIST_VIEW_SECTION   "ListViewSection"
 A list section widget is used to group one or more MAW_LIST_VIEW_ITEM widgets. Only MAW_LIST_VIEW_ITEM objects can be added to this list widget. None of the widget's properties applies to this widget, as it only acts like a widget container. When creating a list section the MAW_LIST_VIEW_SECTION_TYPE property must be immediately set. See List View Section Properties for the available properties. Platform: iOS and Android.
#define MAW_CUSTOM_PICKER   "CustomPicker"
 A spinning-wheel widget used to shown one or more items(layout widgets). Only MAW_HORIZONTAL_LAYOUT, MAW_RELATIVE_LAYOUT or MAW_VERTICAL_LAYOUT objects can be added as children. Platform: Android, iOS and WP7.

Detailed Description

The available widget types for maWidgetCreate().


Define Documentation

#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.

The screen stack can be pushed or popped. Pushing a given screen will hide the current screen and display the pushed screen. Popping a screen hides the current screen and shows the previous screen in the stack. See maWidgetStackScreenPush() and maWidgetStackScreenPop().

Navigation between the screens in the stack is handled according to the norm on the specific platform. On iPhone a navigation bar is added to each pushed screen that can be used to go back, while on Android there is no extra UI added and the back button is used to go back to the previous screen. See Stack screen properties for the properties available.

#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. When creating a list view object the MAW_LIST_VIEW_TYPE property must be immediately set.

#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.

See Progress bar properties for the properties available.

#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.

See Activity Indicator properties for the properties available.

#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.

See Slider properties for the properties available.

#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.

See Date Picker properties for the properties available.

#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. Available on iOS, WindowsPhone and Android. 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 on Android, iOS and Windows Phone 7. 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. On Windows Phone, it's a Popup having inside a StackPanel which contains all the controls added to the dialog 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. The paroramaView is a screen container which may contain more then one screen. A screen can spann over the hardware screen width. In order to enable this you will have to set the width property of a screen to a certain value. For more information regarding this control please check the following link: http://msdn.microsoft.com/en-us/library/ff941104(v=vs.92).aspx.

Available only on Windows Phone 7 See Panorama View properties for the properties available

#define MAW_RADIO_BUTTON   "RadioButton"

A radio button available only on Android. A radio button can only have a MAW_RADIO_GROUP parent. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group. Initially, all of the radio buttons are unchecked. While it is not possible to uncheck a particular radio button, the radio group can be cleared to remove the checked state. See Radio Button properties for the properties available.

#define MAW_RADIO_GROUP   "RadioGroup"

A radio group is available only on Android. This class is used to create a multiple-exclusion scope for a set of the RADIO_BUTTONS . See Radio Group properties for the properties available.

#define MAW_RATING_BAR   "RatingBar"

A RatingBar is an extension of Slider and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. When using a RatingBar that supports user interaction, placing widgets to the left or right of the RatingBar is discouraged. See Rating Bar properties for the properties available.

#define MAW_MAP   "Map"

The map widget will contain the google map (on iOS and Android) and the bing map (on Windows Phone) controls and will allow the user to interract with the map. See Map properties for the properties available.

#define MAW_MAP_PIN   "MapPin"

A map pin can pe placend on the map at a given set of coordinates and responds to click events. See Map pin properties for the properties available.

#define MAW_LIST_VIEW_SECTION   "ListViewSection"

A list section widget is used to group one or more MAW_LIST_VIEW_ITEM widgets. Only MAW_LIST_VIEW_ITEM objects can be added to this list widget. None of the widget's properties applies to this widget, as it only acts like a widget container. When creating a list section the MAW_LIST_VIEW_SECTION_TYPE property must be immediately set. See List View Section Properties for the available properties. Platform: iOS and Android.

#define MAW_CUSTOM_PICKER   "CustomPicker"

A spinning-wheel widget used to shown one or more items(layout widgets). Only MAW_HORIZONTAL_LAYOUT, MAW_RELATIVE_LAYOUT or MAW_VERTICAL_LAYOUT objects can be added as children. Platform: Android, iOS and WP7.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines