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.
- Managed
Texture Id - 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.
- Widget
Id - Identifies a widget in the yakui DOM.
- Yakui
- The entrypoint for yakui.
Enums§
- Cross
Axis Alignment - 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.
- Main
Axis Align Items - Defines alignment for items within a container’s main axis when there is space left.
- Main
Axis Alignment - Defines alignment along a container’s main axis.
- Main
Axis Size - Defines sizing along a container’s main axis.
- Texture
Id - 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