[] [src] 板条箱orbtk

复用Re-exports

pub使用orbtk_proc_macros作为proc_macros;

模组Modules

接口api
行为behaviors

行为控件提供了一组默认的事件操作,例如鼠标事件处理。 将它们用作子项可以扩展窗口小部件的事件行为。

色彩colors
css引擎css_engine
实体组件系统ecs
字体fonts
素材-字体-图标material_font_icons
序幕prelude
渲染render
壳Shell
主题theme
树型tree
实用程序utils
控件widgets

宏Macros

Debug

派生宏,生成特征Debug的方法。

into_property_source
小部件

用于定义具有属性和事件处理程序的控件。

结构体Structs

应用程序Application

Application表示基于OrbTk的应用程序的入口点。

附加属性AttachedProperty

用于生成附加属性。

边框Border

用边框brush刷thickness厚度radius半径描述边框形状。

边框构建器BorderBuilder

用于构建边框,指定其他详细信息。

构建上下文BuildContext

用于为控件创建以其属性作为组件的实体。

按钮Button

用户可以单击Button控件, 来执行某个动作。

画布Canvas

画布用于渲染3D图形。

选择框CheckBox

CheckBox控件可以切换其选定状态。 它包含一个选择框和一个文本。

清除 渲染对象ClearRenderObject
点击事件ClickEvent
点击事件处理ClickEventHandler

用于处理点击事件。 可以附加到某个控件。

色彩Color

一种rgba色彩。

列Column

用于定义网格Grid的列。

列构建器ColumnBuilder

用于构建列,指定其他详细信息。

子列Columns

列属性内使用的辅助结构。

子列构建器ColumnsBuilder

用于构建子列,指定其他详细信息。

组件框ComponentBox

此结构存储具有类型ID的组件, 用于动态组件添加。

组件框构建器ComponentBuilder

TypeComponentBuilder用于构建一组基于类型关键字的组件。

组件库ComponentStore

TypeComponentStore存储所有实体的组件, 可用于借用实体的组件。

约束Constraint

约束Constraint描述了一个框约束。

约束构建器ConstraintBuilder

用于建立约束,指定其他详细信息。

容器Container

容器Container布局控件用于包住其子级。 在子级周围画一个盒子。

上下文Context

上下文Context用于提供对可以使用的对象的状态的访问。

光标Cursor

光标Cursor控件代表用于标记文本的文本光标。

光标状态CursorState
默认 渲染对象DefaultRenderObject
Dirty尺寸DirtySize

包含长宽和Dirty flag的尺寸

实体Entity

表示一个实体。

实体构建器EntityBuilder

实体构建器用于创建具有组件的实体。

实体、组件管理器EntityComponentManager

EntityComponentManager维护主要实体和组件存储库。

实体库EntityStore

VecEntityStore是实体存储的默认基于矢量的实现。

事件盒EventBox
事件队列迭代器EventQueueIterator
事件队列EventQueue
事件状态系统EventStateSystem

EventStateSystem从事件队列中弹出事件,并将事件委托给控件的相应事件处理程序并更新状态。

固定尺寸的布局FixedSizeLayout

固定大小的布局由固定边界像是图像的大小或文本的大小等来定义。

字体图标块FontIconBlock

FontIconBlock控件用于绘制文本。 它不是交互式的。

字体图标渲染对象FontIconRenderObject
全局Global

全局Global结构用于定义可以访问应用程序宽度的全局属性properties

网格Grid

Grid定义了一个由列和行组成的灵活网格区域。

网格布局GridLayout

在具有列和行的网格布局中排序其子级。 如果定义了列和行,则网格布局也可以用作对齐布局。

哈希图HashMap

通过二次探测和SIMD查找实现的哈希图。

图像Image
图像渲染对象ImageRenderObject

用于渲染图像。

图像控件ImageWidget

图像控件ImageWidget用于绘制图像。 它不是交互式的。

初始化系统InitSystem

该系统用于初始化控件。

项目控件ItemsWidget

ItemsWidget是一个简单的无交互项目抽屉控件。

项目控件状态ItemsWidgetState
按键事件KeyDownEvent
按键事件处理器KeyDownEventHandler

用于处理按键事件, 可以附加到某个控件。

按键抬起事件KeyUpEvent
键盘状态KeyboardState

包含键盘的状态信息。

布局系统LayoutSystem

LayoutSystem每次迭代都会构建当前ui的布局。 布局部件依据布局控件的布局对象计算。

线性渐变停止LinearGradientStop

描述彩色渐变上的位置。

浏览列表ListView

ListView是带有可选项目的项目抽屉控件。

浏览列表项目ListViewItem
浏览列表项目状态ListViewItemState
浏览列表状态ListViewState
消息盒MessageBox

消息盒是用于包装消息的容器。

鼠标按键事件MouseDownEvent
鼠标按键事件处理器MouseDownEventHandler

用于处理鼠标按下事件。 可以附加到某个控件。

鼠标移动事件MouseMoveEvent
鼠标按键抬起事件MouseUpEvent
鼠标按键抬起事件处理器MouseUpEventHandler

用于处理鼠标按键抬起事件。 可以附加到某个控件。

PaddingLayout

向小部件添加填充。

PipelineRenderObject
PostLayoutStateSystem

PostLayoutStateSystem调用小部件状态的update_post_layout方法。

指针Rc

单线程引用计数指针。 ‘Rc’代表“引用计数”。

矩形Rectangle

描述一个新的可视矩形。

RectangleRenderObject
RefCell

具有动态检查借位规则的可变内存位置

渲染管道

RenderPipeline对象。

渲染系统

RenderSystem遍历所有视觉控件,并使用其渲染对象在屏幕上绘制它们。

用于定义网格的行。

行构建器

用于构建行,指定其他详细信息。

行数

行属性内部使用的辅助结构。

行构建器
滚动条

ScrollBar小部件表示滚动容器内部的位置。

ScrollEvent
ScrollEventHandler
滚动指示器

ScrollIndicator小部件包含两个滚动条。

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.

SharedComponentBox

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

Stack

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

StackLayout

Stacks visual the children widgets vertical or horizontal.

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.

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 a event moves through the tree.

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

Traits

Any

A trait to emulate dynamic typing.

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.

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

Used to the a 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
KeyHandler
MouseHandlerFunction
Priority

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

WidgetBuildContext