[−][src]Module orbtk::prelude
Re-exports
pub use crate::proc_macros::*; |
Modules
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 | provides |
concurrent | |
fonts | provides |
material_icons_font | Icons in the |
platform | |
prelude | |
utils |
Macros
Debug | Derive macro generating an impl of the trait |
into_property_source | |
trigger_event | |
widget | Defines a new type of |
Structs
AbsoluteLayout | Place widgets absolute on the screen. |
ActivateEvent | |
ActivateEventHandler | |
Application | The |
AttachedProperty | Used ot generate attached properties. |
Border | Describes a border of a shape with border |
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 |
ButtonCtx | Represents a widget context that provides methods to access the properties of a widget. |
Canvas | Canvas is used to render 3D graphics. |
CanvasCtx | Represents a widget context that provides methods to access the properties of a widget. |
ChangedEvent | This event occurs when a property of a widget is updated. |
ChangedEventHandler | |
CheckBox | The |
CheckBoxCtx | Represents a widget context that provides methods to access the properties of a widget. |
CleanupSystem | Handles the inner cleanup while window is closing. |
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 |
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 |
ComboBoxCtx | Represents a widget context that provides methods to access the properties of a widget. |
ComboBoxItem | The |
ComboBoxItemCtx | Represents a widget context that provides methods to access the properties of a widget. |
ComboBoxItemState | The |
ComboBoxState | The |
ComponentBox | This struct is used to store a component with its type id. Used for dynamic component adding. |
ComponentBuilder | The |
ComponentStore | The |
Constraint |
|
ConstraintBuilder | Used to build a constraint, specifying additional details. |
Container | The |
ContainerCtx | Represents a widget context that provides methods to access the properties of a widget. |
Context | The |
ContextProvider | Temporary solution to share dependencies. Will be refactored soon. |
Cursor | The |
CursorCtx | Represents a widget context that provides methods to access the properties of a widget. |
CursorState | |
DefaultRenderObject | |
DefaultRenderPipeline | RenderPipeline object. |
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 | Internal wrapper for an event, including the strategy and source entity. |
EventQueue | The |
EventQueueIterator | |
EventStateSystem | The |
FixedSizeLayout | Fixed size layout is defined by fixed bounds like the size of an image or the size of a text. |
FocusEventHandler | |
Font | |
FontConfig | |
FontIconBlock | The |
FontIconBlockCtx | Represents a widget context that provides methods to access the properties of a widget. |
FontIconRenderObject | |
Global | The |
GlobalMouseUpEvent |
|
GlobalMouseUpEventHandler | Defines an event handler for a global mouse up event. Global mouse up events could not be handled. |
Grid | The |
GridCtx | Represents a widget context that provides methods to access the properties of a widget. |
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 |
Image | |
ImageRenderObject | Used to render an image. |
ImageWidget | The |
ImageWidgetCtx | Represents a widget context that provides methods to access the properties of a widget. |
InitSystem | This system is used to initializes the widgets. |
ItemsWidget | The |
ItemsWidgetCtx | Represents a widget context that provides methods to access the properties of a 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 |
LinearGradientStop | Describes a position on a colorful gradient. |
ListView | The |
ListViewCtx | Represents a widget context that provides methods to access the properties of a widget. |
ListViewItem | The |
ListViewItemCtx | Represents a widget context that provides methods to access the properties of a widget. |
ListViewItemState | The |
ListViewState | The |
Mouse | Represents the current mouse state of an mouse event. |
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. |
NumericBox |
|
NumericBoxCtx | Represents a widget context that provides methods to access the properties of a widget. |
NumericBoxState | |
Overlay | The |
OverlayCtx | Represents a widget context that provides methods to access the properties of a widget. |
PaddingLayout | Add padding to the widget. |
PhantomContext | Default type if you don't want to use a context. |
PipelineRenderObject | |
Point | A |
Popup | The |
PopupCtx | Represents a widget context that provides methods to access the properties of a widget. |
PopupLayout | Add padding to the widget. |
PopupState | The |
PostLayoutStateSystem | The |
ProgressBar | The |
ProgressBarCtx | Represents a widget context that provides methods to access the properties of a widget. |
Rc | A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'. |
Rectangle | A |
RectangleRenderObject | |
RefCell | A mutable memory location with dynamically checked borrow rules |
Registry | The struct |
RenderConfig | Defines the current configuration of the render ctx. |
RenderContext2D | The RenderContext2D provides a concurrent render ctx. |
RenderSystem | The |
RenderTarget | |
Row | Used to define the row of the |
RowBuilder | Used to build a row, specifying additional details. |
Rows | Helper struct used inside of the row Property. |
RowsBuilder | |
ScrollBar | The |
ScrollBarCtx | Represents a widget context that provides methods to access the properties of a widget. |
ScrollEvent |
|
ScrollEventHandler | Used to handle scroll events. Could be attached to a widget. |
ScrollIndicator | The |
ScrollIndicatorCtx | Represents a widget context that provides methods to access the properties of a widget. |
ScrollIndicatorState | The |
ScrollViewer | The |
ScrollViewerCtx | Represents a widget context that provides methods to access the properties of a widget. |
ScrollViewerMode |
|
ScrollViewerState | The |
SelectedEntities |
|
SelectedIndices |
|
SelectionChangedEvent | |
SelectionChangedEventHandler | |
Selector | The selector is used to read a property value from the |
Settings |
|
SharedComponentBox | This struct is used to store a shared component with its type id. Used for dynamic component adding. |
Size | A |
Slider | The |
SliderCtx | Represents a widget context that provides methods to access the properties of a widget. |
SliderState | The |
Stack | The |
StackCtx | Represents a widget context that provides methods to access the properties of a widget. |
StackLayout | Stacks visual the children widgets vertical or horizontal. |
StatesContext | The |
String16 | A UTF-16 encoded, growable string. |
StringComponentBuilder | The |
StringComponentStore | The |
Style | |
Switch | The |
SwitchCtx | Represents a widget context that provides methods to access the properties of a widget. |
SwitchState | State to handle the position of switch toggle. |
TabHeader | The |
TabHeaderCtx | Represents a widget context that provides methods to access the properties of a widget. |
TabHeaderState | The |
TabWidget | The |
TabWidgetCtx | Represents a widget context that provides methods to access the properties of a widget. |
TabWidgetState | Through the TabWidgetState it is possible to control the behaviour of TabWidget. Nearly every called function on TabWidgetState will not be executed immediatly, but they are instead stored and executed during the update phase, in the same order they are submitted. |
TextBlock | The |
TextBlockCtx | Represents a widget context that provides methods to access the properties of a widget. |
TextBox | The |
TextBoxCtx | Represents a widget context that provides methods to access the properties of a widget. |
TextMetrics | The TextMetrics struct represents the dimension of a text. |
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 | |
Thickness | Used to describes a thickness e.g a border thickness. |
ToggleButton | The |
ToggleButtonCtx | Represents a widget context that provides methods to access the properties of a widget. |
Tree | Base data structure to manage the entities of a window in a tree based structure. |
TreeIterator | Used to create an iterator for the tree. |
TypeId | A |
Value | Wraps a ron value and is used to support conversion to different types. |
WidgetContainer | The |
Window | The |
WindowAdapter | Represents a window. Each window has its own tree, event pipeline and shell. |
WindowCtx | Represents a widget context that provides methods to access the properties of a widget. |
WindowEventHandler | |
World | The |
Enums
Alignment | Used to align a widget vertical or horizontal. |
Brush | A |
ColumnWidth | Used to define the width of a grid column. |
EventError | |
EventStrategy | Defines the strategy of an event how it moves through the tree. |
Filter | Used to filter stuff such as the |
FocusEvent | Used to request keyboard focus on the window. |
InputAction | |
NotFound | Not found error. |
NotFound | Used as return type if a requested entity is not found on the tree. |
Orientation | Is used to control the orientation of the |
ParentType | Used to define the |
PropertySource | Use to build a property or to share it. |
RowHeight | Used to define the height of a grid row. |
ScrollMode | The |
SelectionMode | Represents a selection mode. |
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
ID_INPUT | |
STYLE_BTN | |
STYLE_INPUT | |
STYLE_PROGRESS_BAR | |
STYLE_PROGRESS_BAR_INDICATOR | |
STYLE_SCROLL_BAR | |
STYLE_SLIDER | |
STYLE_TEXT_BOX | |
STYLE_WINDOW |
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 |
|
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 | |
PipelineTrait | Used to implement a custom render pipeline. |
RenderObject | |
RenderPipeline | |
SelectionChangedHandler | |
State | Used to define a state of a |
System | This trait is used to interact with the components of entities. It could read and write to the components. |
Template | The |
Widget | The |
Functions
button | Gets a context wrapper to access the properties of the widget. |
canvas | Gets a context wrapper to access the properties of the widget. |
check_box | Gets a context wrapper to access the properties of the widget. |
check_mouse_condition | Checks if the given point is inside of a widget. |
combo_box | Gets a context wrapper to access the properties of the widget. |
combo_box_item | Gets a context wrapper to access the properties of the widget. |
container | Gets a context wrapper to access the properties of the widget. |
create_window | Creates a |
cursor | Gets a context wrapper to access the properties of the widget. |
dark_theme | Creates OrbTks default dark theme. |
find_parent | Finds th parent of the |
font_icon_block | Gets a context wrapper to access the properties of the widget. |
get_all_children | |
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. |
grid | Gets a context wrapper to access the properties of the widget. |
image_widget | Gets a context wrapper to access the properties of the widget. |
items_widget | Gets a context wrapper to access the properties of the widget. |
light_theme | Creates OrbTks default light theme. |
list_view | Gets a context wrapper to access the properties of the widget. |
list_view_item | Gets a context wrapper to access the properties of the widget. |
mark_as_dirty | Mark the widget and shared widgets as dirty. |
numeric_box | Gets a context wrapper to access the properties of the widget. |
overlay | Gets a context wrapper to access the properties of the widget. |
popup | Gets a context wrapper to access the properties of the widget. |
print_tree | |
progress_bar | Gets a context wrapper to access the properties of the widget. |
register_property | |
scroll_bar | Gets a context wrapper to access the properties of the widget. |
scroll_indicator | Gets a context wrapper to access the properties of the widget. |
scroll_viewer | Gets a context wrapper to access the properties of the widget. |
slider | Gets a context wrapper to access the properties of the widget. |
stack | Gets a context wrapper to access the properties of the widget. |
switch | Gets a context wrapper to access the properties of the widget. |
tab_header | Gets a context wrapper to access the properties of the widget. |
tab_widget | Gets a context wrapper to access the properties of the widget. |
text_block | Gets a context wrapper to access the properties of the widget. |
text_box | Gets a context wrapper to access the properties of the widget. |
toggle_button | Gets a context wrapper to access the properties of the widget. |
toggle_flag | Toggles the selector state`. |
window | Gets a context wrapper to access the properties of the widget. |
Type Definitions
ChangedHandlerFn | Used to define a property changed callback. |
EventHandlerMap | |
FocusHandlerFn | |
GlobalMouseHandlerFunction | Defines the global bouse handler function. |
KeyHandler | |
MouseHandlerFunction | Defines the mouse handler function. |
PositionHandlerFunction | |
Priority | The run order of a system. The systems will be executed by priority from small to great. |
TriggerHandler | |
WidgetBuildContext |