Crate yakui

Crate yakui 

Source
Expand description

yakui packages and re-exports the runtime and built-in widgets for yakui, a declarative UI library for games.

Everything in this crate is exported from yakui_core and yakui_widgets.

You might also be interested in:

Re-exports§

pub use yakui_widgets::widgets;

Modules§

colors
Defines built-in colors that look pretty good.
context
Provides access to the currently active DOM.
dom
Defines yakui’s DOM, which holds the hierarchy of widgets and their implementation details.
event
Defines the events that can be sent to yakui and handled by widgets.
font
geometry
Defines common geometry types used by yakui.
input
Defines how yakui responds to input and delegates it to widgets.
layout
Defines yakui’s layout protocol and Layout DOM.
paint
Defines primitives for painting widgets, including the Paint DOM.
shapes
style
text_renderer
util
widget
Defines traits for building widgets.

Structs§

Alignment
Defines alignment within a container.
Color
An sRGB color with alpha.
Constraints
Defines box constraints used for layout.
Dim
Describes a length consisting of one or more measurements added together.
Dim2
A size or position in 2D based on one or more measurements added together.
ManagedTextureId
Identifies a texture that is managed by yakui.
Pivot
Defines a reference point for a widget.
Rect
A bounding rectangle with floating point coordinates.
Response
Wraps the response returned by a widget when it is updated.
URect
A bounding rectangle with positive integer coordinates.
UVec2
A 2-dimensional vector.
Vec2
A 2-dimensional vector.
Vec4
A 4-dimensional vector.
WidgetId
Identifies a widget in the yakui DOM.
Yakui
The entrypoint for yakui.

Enums§

CrossAxisAlignment
Defines alignment along a container’s cross axis.
Direction
Defines the direction that a container will lay out its children.
FlexFit
Defines how a flexible container should size its children.
Flow
Defines how an object participates in layout.
MainAxisAlignItems
Defines alignment for items within a container’s main axis when there is space left.
MainAxisAlignment
Defines alignment along a container’s main axis.
MainAxisSize
Defines sizing along a container’s main axis.
TextureId
Identifies a texture that may be managed by yakui or handled by the user.

Functions§

align
See Align.
button
See Button.
canvas
See Canvas.
center
See Align.
checkbox
See Checkbox.
colored_box
See ColoredBox.
colored_box_container
See ColoredBox.
colored_circle
See Circle.
column
See List.
constrained
See ConstrainedBox.
countgrid_column
See CountGrid.
countgrid_row
See CountGrid.
divider
See Divider.
draggable
See Draggable.
expanded
See Flexible.
flexible
See Flexible.
image
See Image.
label
See Text.
max_width
See MaxWidth.
nineslice
See NineSlice.
offset
See Offset.
opaque
See Opaque.
pad
See Pad.
reflow
See Reflow.
row
See List.
scroll_vertical
See Scrollable.
slider
See Slider.
spacer
See Spacer.
stack
See Stack.
text
See Text.
textbox
See TextBox.
use_state