Skip to content

Mojo app style

mojo:mojo.app.Style

Class Style#

The Style class.

Constructors
New
Properties
BackgroundColor Background color.
Border Border rect.
BorderColor Border color.
Bounds Total style bounds. (read only)
DefaultFont Font to use when drawing text.
Font Font to use when drawing text.
IconColor Color to use when drawing icons.
Icons Custom icons.
Margin Margin rect.
Name Name of the style. (read only)
Padding Padding rect.
Skin
SkinColor
States (read only)
TextColor Color to use when drawing text.
Methods
AddState
Copy
DrawIcon
DrawText
GetState
MeasureText Measure text.
Render
Set