[][src]Module orbtk_api::macros

Structs

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.

ComponentBox

This struct is used to store a component with its type id. Used for dynamic component adding.

ComponentBuilder

The TypeComponentBuilder is used to build a set of type key based components.

ComponentStore

The TypeComponentStore stores the components of all entities. It could be used to borrow the components of the entities.

DirtySize

Size with width, height and dirty flag.

Entity

Represents an entity.

EntityBuilder

The entity builder is used to create an entity with components.

EntityComponentManager

The EntityComponentManager represents the main entity and component storage.

EntityStore

VecEntityStore is the default vector based implementation of an entity store.

LinearGradientStop

Describes a position on a colorful gradient.

PhantomContext

Default type if you don't want to use a context.

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

Selector

The selector is used to read a property value from the Theme.

SharedComponentBox

This struct is used to store a shared component with its type id. Used for dynamic component adding.

Size

A Size specified by width and height.

String16

A UTF-16 encoded, growable string.

StringComponentBuilder

The StringComponentBuilder is used to build a set of string key based components.

StringComponentStore

The StringComponentStore stores the components of entities and uses strings as component keys. It could be used to borrow the components of the entities.

Style
Theme
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.

World

The World struct represents the main interface of the library. It used as storage of entities, components and systems.

Enums

Alignment

Used to align a widget vertical or horizontal.

Brush

A Brushdescribes how a shape is filled or stroked.

Filter

Used to filter stuff such as the on_changed callback.

NotFound

Not found error.

Orientation

Is used to control the orientation of the Stack.

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.

Component

This trait is used to internal handle all components types. This trait is implicitly implemented for all other types.

System

This trait is used to interact with the components of entities. It could read and write to the components.

Type Definitions

Priority

The run order of a system. The systems will be executed by priority from small to great.