Skip to main content

Module style

Module style 

Source
Expand description

Appearance options shared by every backend.

Structs§

ImageSize
The size an image is shown at: a fixed width or height in points, or ImageSize::FIT for the image’s own. Fixing only one keeps the image’s shape. repr(C) because compiled apps store it as is.
LabelStyle
repr(C) because compiled apps store it as is.
StackStyle
repr(C) because compiled apps store it as is.

Enums§

Align
Placement of children across a stack’s axis.
Axis
Backdrop
What a window is drawn on, in each platform’s own materials.
ButtonStyle
Icon
Symbols from the platform’s own icon set: SF Symbols on macOS, Segoe Fluent Icons on Windows. Nothing is bundled with the app.
Justify
Distribution of children along a stack’s axis.
Surface
What a stack is drawn on. Each surface is one native view behind the stack’s children, using the platform’s own materials and colors.
TextAlign
Placement of text within its frame.
TextColor
Semantic text colors, so text follows the system appearance and accent color.
TextStyle
The platform’s system text styles, so apps follow the system font and accessibility sizes.
ToggleStyle
How a control that turns a bool on and off looks.

Functions§

sets_size 🔒