[][src]Crate orbtk

Re-exports

pub use orbtk_proc_macros as proc_macros;

Modules

api
behaviors

Behavior widgets are provides a default set of event actions like mouse event handling. Use them as child to expand the event behavior of your widget.

colors
css_engine
ecs
fonts
material_font_icons
prelude
proc_macros
render
shell
theme
tree
utils
widgets

Macros

Debug

Derive macro generating an impl of the trait Debug.

into_property_source
trigger_event
widget

Used to define a widget, with properties and event handlers.

Structs

AbsoluteLayout

Place widgets absolute on the screen.

ActivateEvent
ActivateEventHandler
Application

The Application represents the entry point of an OrbTk based application.

AttachedProperty

Used ot generate attached properties.

Border

Describes a border of a shape with border brush, thickness and radius.

BorderBuilder

Used to build a border, specifying additional details.

BuildContext

Used to create an entity for a widget with its properties as components.

Button

The Button widget can be clicked by user. It's used to perform an action.

Canvas

Canvas is used to render 3D graphics.

ChangedEvent
ChangedEventHandler
CheckBox

The CheckBox widget can be switch its selected state. It contains a selection box and a text.

CleanupSystem

Handles the inner cleanup while window is closing.

ClearRenderObject
ClickEvent
ClickEventHandler

Used to handle click events. Could be attached to a widget.

Color

A r g b a color.

Column

Used to define the column of the Grid.

ColumnBuilder

Used to build a column, specifying additional details.

Columns

Helper struct used inside of the columns Property.

ColumnsBuilder

Used to build a columns, specifying additional details.

ComboBox

The ComboBox represents an selection widget with a drop-down list.

ComboBoxItem

The ComboBoxItem describes an item inside of a ComboBox.

ComboBoxItemState

The ComboBoxItemState handles the interaction an selection of a ComboBoxItem.

ComboBoxState

The ComboBoxState is used to manipulate the position of the thumb of the slider widget.

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.

Constraint

Constraint describes a box constraint.

ConstraintBuilder

Used to build a constraint, specifying additional details.

Container

The Container layout widget surrounds its child with a padding. Draws a box around the child.

Context

The Context is provides access for the states to objects they could work with.

Cursor

The Cursor widget represents a text cursor used to mark text.

CursorState
DefaultRenderObject
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.

EventBox
EventQueue
EventQueueIterator
EventStateSystem

The EventStateSystem pops events from the event queue and delegates the events to the corresponding event handlers of the widgets and updates the states.

FixedSizeLayout

Fixed size layout is defined by fixed bounds like the size of an image or the size of a text.

FocusEventHandler
FontIconBlock

The FontIconBlock widget is used to draw text. It is not interactive.

FontIconRenderObject
Global

The Global struct is used to define global properties that could be access application width.

GlobalMouseUpEvent
GlobalMouseUpEventHandler

Defines an event handler for a global mouse up event. Global mouse up events could not be handled.

Grid

The Grid defines a flexible grid area that consists of columns and rows.

GridLayout

Orders its children in a grid layout with columns and rows. If no columns and rows are defined the grid layout could also be used as an alignment layout.

HashMap

A hash map implemented with quadratic probing and SIMD lookup.

HashSet

A hash set implemented as a HashMap where the value is ().

Image
ImageRenderObject

Used to render an image.

ImageWidget

The ImageWidget widget is used to draw an image. It is not interactive.

InitSystem

This system is used to initializes the widgets.

ItemsWidget

The ItemsWidget is a simple no interactive items drawer widget.

ItemsWidgetState
KeyDownEvent
KeyDownEventHandler

Used to handle key down events. Could be attached to a widget.

KeyUpEvent
KeyboardState

Contains the state information for the keyboard.

LayoutSystem

The LayoutSystem builds per iteration the layout of the current ui. The layout parts are calculated by the layout objects of layout widgets.

LinearGradientStop

Describes a position on a colorful gradient.

ListView

The ListView is an items drawer widget with selectable items.

ListViewItem

The ListViewItem describes an item inside of a ListView.

ListViewItemState

The ListViewItemState handles the interaction an selection of a ListViewItem.

ListViewState

The ListViewState generates the list box items and handles the selected indices.

MessageBox

A message box is a container for wrapping a message.

MouseDownEvent
MouseDownEventHandler

Used to handle mouse down events. Could be attached to a widget.

MouseMoveEvent
MouseMoveEventHandler

Used to handle mouse down events. Could be attached to a widget.

MouseUpEvent
MouseUpEventHandler

Used to handle mouse down events. Could be attached to a widget.

Overlay

The Overlay is used to draw its children on the top of all other widgets in the tree.

PaddingLayout

Add padding to the widget.

PipelineRenderObject
Point
Popup

The Popup is used to display content that floats over the main content.

PopupLayout

Add padding to the widget.

PopupState

The PopupStates handles the open and close behavior the the Popup.

PostLayoutStateSystem

The PostLayoutStateSystem calls the update_post_layout methods of widget states.

Rc

A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'.

Rectangle

Describes a new visual rectangle.

RectangleRenderObject
RefCell

A mutable memory location with dynamically checked borrow rules

Registry

The struct Registry represents a global registry. It is used to register and call global elements like services.

RenderPipeline

RenderPipeline object.

RenderSystem

The RenderSystem iterates over all visual widgets and used its render objects to draw them on the screen.

Row

Used to define the row of the Grid.

RowBuilder

Used to build a row, specifying additional details.

Rows

Helper struct used inside of the row Property.

RowsBuilder
ScrollBar

The ScrollBar widget represents a position inside of a scroll container.

ScrollEvent
ScrollEventHandler

Used to handle scroll events. Could be attached to a widget.

ScrollIndicator

The ScrollIndicator widget contains two scroll bars.

ScrollIndicatorState

The ScrollIndicatorState handles the ScrollIndicator widget.

ScrollLayout

IMPORTANT: The scroll layout will only work for the text box now. A update will follow!!!!

ScrollViewer

The ScrollViewer defines a layout that is used to stack its children on the z-axis.

ScrollViewerMode

ScrollViewerMode describes the vertical and horizontal scroll behavior of the ScrollViewer.

ScrollViewerState

The ScrollViewerState handles the ScrollViewer widget.

SelectedEntities

SelectedEntities describes a list of selected entities.

SelectedIndices

SelectedIndices describes a list of selected indices.

Selector

Describes a css selector.

Settings

Settings represents a global settings service that could be use to serialize and deserialize data in the ron file format. Settings are stored in the user settings directory (depending on the operating system) under the a folder with the given application name.

SharedComponentBox

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

Slider

The Slider allows to use a value in a range of values.

SliderState

The SliderState is used to manipulate the position of the thumb of the slider widget.

Stack

The Stack defines a layout that is used to stack its children vertical or horizontal.

StackLayout

Stacks visual the children widgets vertical or horizontal.

StatesContext

The StatesContext provides access to the widget states.

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.

StringMessage

Used to sent a simple string message over the message channel.

Switch

The Switch widget can be switch between on and off.

SwitchState

State to handle the position of switch toggle.

TextBlock

The TextBlock widget is used to draw text. It is not interactive.

TextBox

The TextBox widget represents a single line text input widget.

TextBoxState

The TextBoxState handles the text processing of the TextBox widget.

TextRenderObject

Used to render a text.

TextSelection

Is used to mark the selection of a text.

TextSelectionLayout

The text selection layout is used to measure and arrange a text selection cursor.

Theme

Theme is the representation of a css styling.

ThemeBuilder

Used to build a theme, specifying additional details.

ThemeValue

Theme is the representation of a css styling.

Thickness

Used to describes a thickness e.g a border thickness.

ToggleButton

The ToggleButton widget can be clicked by user and could switch between selected / not selected. It's used to perform an action.

Tree

Base data structure to manage the entity entities of a window in a tree based structure.

TypeId

A TypeId represents a globally unique identifier for a type.

WidgetContainer

The WidgetContainer wraps the entity of a widget and provides access to its properties, its children properties and its parent properties.

Window

The Window widget provides access to the properties of a application window. It also contains global properties like keyboard modifier and focused widget.

WindowAdapter

Represents a window. Each window has its own tree, event pipeline and shell.

WindowEventHandler
World

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

WorldWrapper

Enums

Alignment

Used to align a widget vertical or horizontal.

Brush

A Brushdescribes how a shape is filled or stroked.

ColumnWidth

Used to define the width of a grid column.

EventError
EventStrategy

Defines the strategy of an event how it moves through the tree.

FocusEvent

Used to request keyboard focus on the window.

MessageError
NotFound

Not found error.

Orientation

Is used to control the orientation of the Stack.

ParentType

Used to define the parent_typeof a widget.

PropertySource

Use to build a property or to share it.

RowHeight

Used to define the height of a grid row.

ScrollMode

The ScrollMode defines the mode of a scroll direction.

SelectionMode

Represents a selection mode.

SelectorRelation
SystemEvent
TextAlignment

Used to align a text.

TextBaseline

Text baseline being used when drawing text

Visibility

Is used to control the visibility of a widget

WindowEvent

Statics

ELEMENT_SLIDER
ELEMENT_TEXT_BOX
ELEMENT_WINDOW
LIST_VIEW

Traits

ActivateHandler
Any

A trait to emulate dynamic typing.

AsAny
Bordered

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

ChangedHandler
Component

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

Debug

? formatting.

Event

Used to define an event.

EventHandler

This trait is used to define an event handler.

IntoPropertySource

Used to convert components / properties into a PropertySource object.

KeyDownHandler
Layout

A layout is used to dynamic order the children of a widget.

MouseHandler
RenderObject
State

Used to define a state of a widget.

System

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

Template

The Template trait provides the method for the widget template creation.

Widget

The Widget trait is used to define a new widget.

Functions

add_selector_to_widget

Adds the given pseudo_class to the css selector of the given widget.

check_mouse_condition

Checks if the given point is inside of a widget.

default_theme
get_property

Get the property of a widget.

get_property_or_value

Returns the value of a property of a widget if it exists otherwise the given value.

initialize
light_theme
print_tree
remove_selector_from_widget

Removes the given pseudo_class from the css selector of the given widget.

Type Definitions

EventHandlerMap
FocusHandlerFn
GlobalMouseHandlerFunction
KeyHandler
MouseHandlerFunction
Priority

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

TriggerHandler
WidgetBuildContext
WindowHandlerFn

Derive Macros

AsAny
Event
IntoHandler
Pipeline