Expand description
Convenient imports for Ori.
Modules§
- Styling and theming.
Macros§
- Constructs an event at the debug level.
- Constructs an event at the error level.
- Create a horizontal
Stack. - Create a horizontal
Wrap. - Load a font from a file or directory.
- Constructs an event at the info level.
- Check if the target platform is desktop.
- Check if the target platform is mobile.
- Check if the target platform is web.
- Create a formatted
Text. - Constructs an event at the trace level.
- Create a vertical
Stack. - Create a vertical
Wrap. - Constructs an event at the warn level.
- Create a new
ZStackview.
Structs§
- An affine transformation in 2 dimensional space.
- A view that aligns its content.
- Alignment of content inside a container.
- A view that animates.
- The main application state.
- A builder for an
App. - A view that lays out its content with a fixed aspect ratio.
- A base context that is shared between all other contexts.
- Radi of the corners on a rounded rectangle.
- The border width of a rounded rectangle.
- A context for building the view tree.
- A view that hooks into the build cycle.
- A view that is built from a closure.
- A button.
- The style of a button.
- A canvas that can be drawn on.
- A checkbox.
- The style of a checkbox.
- A click handler.
- A clipboard.
- A collapsing view.
- The style of a collapsing view.
- A color with red, green, blue and alpha components.
- A color picker.
- The style of a color picker.
- A clonable channel for sending
Commands. - A view that constrains its content to a given space.
- A container view.
- The style of a container.
- A view that sets the cursor when hovered.
- A bezier curve.
- A view for creating custom window decorations.
- The context passed to the
AppDelegatetrait. - A context for drawing the view tree.
- A view that hooks into the draw cycle.
- A context for handling events.
- A view that handles events.
- The flex value of a view.
- A flexible view.
- A view that focuses on a part of the data.
- Attributes of a section of text.
- A font weight.
- An clonable image.
- Image data.
- A unique identifier for an
Image. - An event fired when a key is pressed.
- A view for creating views based on the available space.
- A context for laying out the view tree.
- A 2x2 matrix.
- A view that only builds the inner view when certain data changes.
- Modifiers for keyboard and pointer events.
- A view that bridges the gap between
impl Viewandimpl View<T>. - A view that adds padding to its content.
- A padding of a rectangle.
- A paint that can be used to fill or stroke a shape.
- A view that draws something.
- A paragraph of rich text, that can contain multiple segments with different
FontAttributes. - A pattern that can be used to fill a shape.
- A view that has separate
ViewStatefrom its content. - Contents of a view, in a sequence.
- The state of a
Pod. - A point in 2D space.
- The state of a pointer.
- A unique pointer id.
- A pointer was moved.
- A pointer button was pressed.
- A pointer button was released.
- A pointer wheel was scrolled.
- A view that can popup.
- A context for rebuilding the view tree.
- A view that handles rebuilds.
- A rectangle defined by its minimum and maximum points.
- A scrollable view.
- The style of a scroll view.
- The state of a
PodSeq. - A 2 dimensional size.
- A slider.
- The style of a
Slider. - Space available to lay out a view.
- A view that stacks it’s content in a line.
- A style for a
Stack. - Properties of a stroke.
- A style builder.
- A collection of
Styles. - A view that suspends rendering while a future is pending.
- A view that displays text.
- A text input.
- The style of a
TextInput. - The style of a
Text. - A theme.
- A view that displays some text when the content is hovered.
- The style of a
Tooltip. - A view that transforms its content.
- A transition.
- A view that creates a trigger around the content.
- A 2D vector.
- State associated with a
View. - A window.
- Event emitted when a window wants to close.
- A unique identifier for a window.
- A view that stores some additional data.
- A view that lays out it’s content in a line wrapping if it doesn’t fit.
- The style of a
Wrap. - A view that overlays its content on top of each other.
Enums§
- The alignment of items along the cross axis.
- Commands that can be sent to the application.
- An axis is a direction in which a layout is applied.
- Ways to blend two colors.
- A click event.
- A keyboard key-code.
- A mouse cursor icon.
- A transition easing curve.
- An event that can be sent to a view.
- Rule determining if a point is inside a shape.
- A font family, by default
FontFamily::SansSerif. - A source for a font.
- A font stretch.
- A font style.
- The justify content of a stack container.
- A keyboard key.
- A pointer button.
- Ways to fill a shape.
- Ways to draw the end of a stroke.
- Ways to join two segments of a stroke.
- Alignment of a section of text.
- Wrapping of a section of text.
- The sizing of a window.
Constants§
- A constant used to indicate that a dimension should fill the available space.
Traits§
- A view that supports dynamic dispatch.
- A delegate for handling events in an application.
- A trait for managing fonts and text layout.
- A convenience trait for rebuilding a
View. - A trait for stylable objects.
- A trait implemented by styles.
- A single UI component.
- A sequence of views.
Functions§
- Create a new
Alignedview. - Create a new
Animate. - Create a new
BoxedView. - Create a new
Aspectview. - Create a new
Containerwith background. - Create a new
Alignedview that aligns its content to the bottom. - Create a new
Alignedview that aligns its content to the bottom left. - Create a new
Alignedview that aligns its content to the bottom right. - Build a view from a closure.
- Create a new
Button. - Create a new
Alignedview that aligns its content to the center. - Create a new
Checkbox. - Create a new
Painterview that draws a circle. - Create a new
Collapsing. - Create a new
ColorPicker. - Create a new
Constrained view, constraining its content to a space. - Create a new
Container. - Create a new
CursorSetter. - A view for creating custom window decorations.
- Create an ease transition with the given
duration. - Create a new
Painterview that draws an ellipse. - Create a new expanded
Flexibleview. - Create a new
Flexibleview. - Create a new
Focus. - Create a new
Constrained view, constraining its content to a height. - Create a new color, with the given hex string.
- Create a new horizontal
Scroll. - Create a new color, with the given
hue,saturationandlightnesscomponents. - Create a new color, with the given
hue,saturation,lightnessandalphacomponents. - Create a horizontal
Stack. - Create a horizontal
Stack, with dynamic content. - Create a horizontal
Stack, with vector content. - Create a new color, with the given
hue,saturationandvaluecomponents. - Create a new color, with the given
hue,saturation,valueandalphacomponents. - Create a horizontal
Wrap. - Create a horizontal
Wrap, with dynamic content. - Create a horizontal
Wrap, with a vector of content. - A view for creating views based on the available space.
- Create a new
Alignedview that aligns its content to the left. - Create a linear transition with the given
duration. - Create a new
Constrained view, constraining its content to a maximum height. - Create a new
Constrained view, constraining its content to a maximum size. - Create a new
Constrained view, constraining its content to a maximum width. - Create a new
Memo. - Create a new
Constrained view, constraining its content to a minimum height. - Create a new
Constrained view, constraining its content to a minimum size. - Create a new
Constrained view, constraining its content to a minimum width. - Create a new color, with the given
hue,saturationandlightnesscomponents. - Create a new color, with the given
hue,saturation,lightnessandalphacomponents. - Create a new color, with the given
hue,saturationandvaluecomponents. - Create a new color, with the given
hue,saturation,valueandalphacomponents. - Create a new color, with the given
lightness,aandbcomponents. - Create a new color, with the given
lightness,a,bandalphacomponents. - Create a new color, with the given
lightness,chromaandhuecomponents. - Create a new color, with the given
lightness,chroma,hueandalphacomponents. - Create a new
BuildHandler. - Create a new
Clickable, that callson_clickwhen clicked. - Create a new
DrawHandler. - Create a new
EventHandler, with an after callback. - Create a new
EventHandler, with a before callback. - Create a new
Clickable, that callson_presswhen pressed. - Create a new
RebuildHandler. - Create a new
Clickable, that callson_releasewhen released. - A view that bridges the gap between
impl Viewandimpl View<T>. - Create a new
Padview. - Create a new
Padview adding padding to the bottom. - Create a new
Padview adding padding to the left. - Create a new
Padview adding padding to the right. - Create a new
Padview adding padding to the top. - Create a new
Painterview. - Create a new
Podview. - Create a new popup view.
- Convert a from points to pixels.
- Create a new
Painterview that draws a rectangle. - Create a new color, with the given
red,greenandbluecomponents. - Create a new color, with the given
red,green,blueandalphacomponents. - Create a new
Alignedview that aligns its content to the right. - Create a new
Transformview that rotates its content. - Create a new
Transformview that rotates its content in degrees. - Create a new
Transformview that scales its content. - Create a new
Constrained view, cosntraining its content to a size. - Create a new
Slider. - Create a new
Suspenseview. - Create a new
Text. - Create a new
TextInput. - Create a new
Tooltipview. - Create a new
Alignedview that aligns its content to the top. - Create a new
Alignedview that aligns its content to the top left. - Create a new
Alignedview that aligns its content to the top right. - Create a new
Transformview. - Animate a transition.
- Animate a view when active changes.
- Animate a view when focused changes.
- Animate a view when hovered changes.
- Create a new
Transformview that translates its content. - Create a new
Triggerview. - Create a new vertical
Scroll. - Create a vertical
Stack. - Create a vertical
Stack, with dynamic content. - Create a vertical
Stack, with vector content. - Create a vertical
Wrap. - Create a vertical
Wrap, with dynamic content. - Create a vertical
Wrap, with a vector of content. - Create a new
Constrained view, constraining its content to a width. - Create a new
WithStatethat replaces the data with the state. - Create a new
WithStatethat replaces the data with the state usingS::default(). - Create a new
WithState. - Create a new
WithStateusingS::default(). - Create a new view unwrapping some data from the state.
- Create a new view unwrapping some state from the data.
- Create a new
ZStackview.
Type Aliases§
- A boxed dynamic view.
- A lens used by
Focus.
Attribute Macros§
- Only include the annotated item on desktop platforms.
- Only include the annotated item on mobile platforms.
- Only include the annotated item on web platforms.
Derive Macros§
- Derive the builder pattern.
- Derive the
Rebuildtrait.