In the Inspector Panel, there are the parameters of the selected widgets. You can add styles and events to them.
All widgets have obligatory parameters, such as name, transformation, flags and states. Besides, there may be special settings, as well.
You should name the widget.
There cannot be a number, underscore or a special character at the beginning of the name. Having exported the code, you can find the widget by that name.
You should define the position and size of every widget and its alignment to its own parent.
X, Y - The X and Y position of the widget.
This value can be added in pixels or in percents. Percent value will refer to the size of the parent widget.
Width, Height - The width and height of the widget.
This value can be added in pixels, percents, or the content can define the parameters. Percent value will refer to the size of the parent widget, the content will copy the maximum size of the children widgets.
Align - The alignment of the widget to the parent.
Flags are different attributes, connected to the widgets, which can be enabled or disabled.
- Hidden - Make the object hidden. (Like it wasn't there at all.)
- Clickable - Make the object clickable by input devices
- Click focusable - Add focused state to the object when clicked
- Checkable - Toggle checked state when the object is clicked
- Snappable - If scroll snap is enabled on the parent it can snap to this object
- Press lock - Keep the object pressed even if the press slid from the object
- Event bubble - Propagate the events to the parent too
- Gesture bubble - Propagate the events to the parent too
- Adv hittest - Allow performing more accurate hit (click) test. E.g. accounting for rounded corners
- Ignore layout - Make the object positionable by the layouts
- Floating - Do not scroll the object when the parent scrolls and ignore layout
- Scrollable - Make the object scrollable
- Scroll elastic - Allow scrolling inside but with slower speed
- Scroll momentum - Make the object scroll further when "thrown"
- Scroll one - Allow scrolling only one snappable children
- Scroll chain - Allow propagating the scroll to a parent
- Scroll on focus - Automatically scroll object to make it visible when focused
- Scroll direction - Scrollbars are displayed according to a configured
- Scrollbar mode - Scrollbars are displayed according to a configured
mode. The following
- Off - Never show the scrollbars
- On - Always show the scrollbars
- Active - Show scroll bars while a object is being scrolled
- Auto - Show scroll bars when the content is large enough to be scrolled
The object can be in a combination of the following states:
- Clickable - Toggled or checked state
- Disable - Disabled state
- Focusable - Focused via keypad or encoder or clicked via touchpad/mouse
- Pressed - Being pressed
Styles can be used to add effects to widgets or their parts. You can add a custom background color, border, shadow, etc. In Style Settings, you can add or modify the values of these parameters.
You can create a custom style to each state.
Style Properties are the parameters to be set for the styles.
Styles - More information on styles in the Styles section
Event - More information on events in the Event section