Module utils

Source

Structs§

Angle
The OrbTk way to handle angles
Border
Describes a border of a shape with border brush, thickness and radius.
BorderBuilder
Used to build a border, specifying additional details.
Color
A r g b a color.
Constraint
Constraint describes the constraints properties of a box entity.
ConstraintBuilder
Used to capture constraint properties.
DirtySize
Size with width, height and dirty flag. If the dirty flag is true, layout tasks will handle this objects in its arrange and measure tasks.
Gradient
Describes a colorful gradient.
GradientStop
Describes a position on a colorful gradient.
OnLinePos
Describes a position on a line
OnPlanePos
Describes a position on a plane
Point
A Point is specified by a x coordinate and an y coordinate.
Rectangle
A Rectangle is normally expressed as a top-left corner and a size
Size
A Size specified by width and height.
String16
A UTF-16 encoded, growable string.
Thickness
Used to describes a thickness e.g a border thickness.
Value
Wraps a ron value and is used to support conversion to different types.

Enums§

Alignment
Used to align a widget vertical or horizontal.
Brush
A Brush defines the fill pattern of shapes. The syntax allows to express fill patterns in several ways:
Expression
This object represents an expression used to define something. E.g. brushes are defined using an expression in there themes definition.
Filter
Used to filter stuff such as the on_changed callback.
GradientKind
Describes the kind of a gradient.
LinearGradientCoords
Describes the coordinates of a colorful linear gradient.
Number
Valid number types (64bit)
OnLinePosKind
This only is used to communicate the kind of OnLinePos we are using
Orientation
Is used to control the orientation of the Stack.
RelativeDir
Describes the relative position of the object.
SelectionMode
Represents a selection mode.
TextAlignment
Used to align a text.
TextBaseline
Text baseline being used when drawing text
Visibility
Is used to control the visibility of a widget

Traits§

Bordered
Contains a set of getters and setters to read and write to a border.

Functions§

f32_cmp
Compares two f32 values.
f64_cmp
Compares two f64 values.