MoSync 3.3
Vertical layout

Defines

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

Detailed Description

The available widget properties for a MAW_VERTICAL_LAYOUT. See Widget properties for more properties.


Define Documentation

#define MAW_VERTICAL_LAYOUT_CHILD_VERTICAL_ALIGNMENT   "childVerticalAlignment"

Sets how the children in the layout should be aligned in the vertical axis.

Valid values
One of the constants MAW_ALIGNMENT_TOP, MAW_ALIGNMENT_CENTER or MAW_ALIGNMENT_BOTTOM.
Operations
Set only.
Example
#define MAW_VERTICAL_LAYOUT_CHILD_HORIZONTAL_ALIGNMENT   "childHorizontalAlignment"

Sets how the children in the layout should be aligned in the horizontal axis.

Valid values
One of the constants MAW_ALIGNMENT_LEFT, MAW_ALIGNMENT_CENTER or MAW_ALIGNMENT_RIGHT.
Operations
Set only.
Example
#define MAW_VERTICAL_LAYOUT_PADDING_TOP   "paddingTop"

Sets the top padding.

Valid values
The top padding in pixels.
Operations
Set only.
Example
  // Set a 50px top padding.
        maWidgetSetProperty(verticalLayoutHandle, MAW_VERTICAL_LAYOUT_PADDING_TOP, "50");
#define MAW_VERTICAL_LAYOUT_PADDING_LEFT   "paddingLeft"

Sets the left padding.

Valid values
The left padding in pixels.
Operations
Set only.
Example
#define MAW_VERTICAL_LAYOUT_PADDING_RIGHT   "paddingRight"

Sets the right padding.

Valid values
The right padding in pixels.
Operations
Set only.
Example
#define MAW_VERTICAL_LAYOUT_PADDING_BOTTOM   "paddingBottom"

Sets the bottom padding.

Valid values
The bottom padding in pixels.
Operations
Set only.
Example
#define MAW_VERTICAL_LAYOUT_SCROLLABLE   "scrollable"

Sets the isScrollable boolean.

Valid values
"true" or "false", for "true" the layout will become scrollable otherwise it will become unscrollable
Operations
Set and get.
Example
        maWidgetSetProperty(verticalLayoutHandle, MAW_VERTICAL_LAYOUT_SCROLLABLE, "true");
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines