Expand description
Convenient imports for Ori.
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.
- 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
ZStack
view.
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
. - Radi of the corners on a
Quad
. - The border width of a
Quad
. - A context for building the view tree.
- A view that hooks into the build cycle.
- A button.
- The style of a button.
- A canvas that can be drawn on.
- A checkbox.
- The style of a
Checkbox
. - A click handler.
- Event emitted when a window wants to close.
- 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
Command
s. - A view that constrains its content to a given space.
- A container view.
- The style of a
Container
. - A bezier curve.
- The context passed to the
Delegate
trait. - A context for drawing the view tree.
- A view that hooks into the draw cycle.
- A dropdown view.
- A context for handling events.
- A view that handles events.
- A flexible view.
- A view that focuses on a part of the data.
- A font weight.
- A context for loading and rasterizing fonts.
- An clonable image.
- Image data.
- A unique identifier for an
Image
. - An event fired when a key is pressed.
- A view that builds its content based on the layout constraints.
- 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 View
andimpl 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 color palette.
- A pattern that can be used to fill a shape.
- A view that has separate
ViewState
from its content. - Contents of a view, in a sequence.
- 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 context for rebuilding the view tree.
- A view that handles rebuilds.
- A rectangle defined by its minimum and maximum points.
- A scrollable 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.
- The state of a
Pod
. - Properties of a stroke.
- A map of style values.
- A view that displays text.
- A convenient wrapper around a [
cosmic_text::Buffer
]. - A text input.
- The style of a text input.
- The style of a text.
- 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.
- 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.
- 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 keyboard key.
- 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.
- Ways to draw the end of a line.
- Ways to join two lines.
- A pointer button.
- Ways to fill a shape.
- Alignment of a section of text.
- Wrapping of a section of text.
- The sizing of a window.
Constants§
- FILLDeprecation plannedInfinity (∞). Use
f32::INFINITY
instead.
Traits§
- A view that supports dynamic dispatch.
- A clipboard.
- A delegate for handling events in an application.
- A convenience trait for rebuilding a
View
. - A trait for styling a value.
- A single UI component.
- A sequence of views.
Functions§
- Create a new
Aligned
view. - Create a new
Animate
. - Create a new
BoxedView
. - Create a new
Container
with background. - Create a new
Aligned
view that aligns its content to the bottom. - Create a new
Aligned
view that aligns its content to the bottom left. - Create a new
Aligned
view that aligns its content to the bottom right. - Create a new
Button
. - Create a new
Aligned
view that aligns its content to the center. - Create a new
Checkbox
. - Create a new
Painter
view that draws a circle. - Create a new
Clickable
. - Create a new
Collapsing
. - Create a new
ColorPicker
. - Create a new
Constrain
ed view, constraining its content to a space. - Create a new
Container
. - Create a new
Dropdown
view. - Create an ease transition with the given
duration
. - Create a new
Painter
view that draws an ellipse. - Create a new expanded
Flex
view. - Create a new
Flex
view. - Create a new
Focus
. - Create a new
Constrain
ed 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
,saturation
andlightness
components. - Create a new color, with the given
hue
,saturation
,lightness
andalpha
components. - Create a horizontal
Stack
. - Create a horizontal
Stack
, with dynamic content. - Create a horizontal
Stack
, with vector content. - Create a horizontal
Wrap
. - Create a horizontal
Wrap
, with dynamic content. - Create a horizontal
Wrap
, with a vector of content. - Create a new
LayoutBuilder
view. - Create a new
Aligned
view that aligns its content to the left. - Create a linear transition with the given
duration
. - Create a new
Constrain
ed view, constraining its content to a maximum height. - Create a new
Constrain
ed view, constraining its content to a maximum size. - Create a new
Constrain
ed view, constraining its content to a maximum width. - Create a new
Memo
. - Create a new
Constrain
ed view, constraining its content to a minimum height. - Create a new
Constrain
ed view, constraining its content to a minimum size. - Create a new
Constrain
ed view, constraining its content to a minimum width. - Create a new color, with the given
lightness
,a
andb
components. - Create a new color, with the given
lightness
,a
,b
andalpha
components. - Create a new
BuildHandler
. - Create a new
DrawHandler
. - Create a new
EventHandler
, with an after callback. - Create a new
EventHandler
, with a before callback. - Create a new
RebuildHandler
. - Create a new
Clickable
, with anon_release
callback. - A view that bridges the gap between
impl View
andimpl View<T>
. - Create a new
Pad
view. - Create a new
Pad
view adding padding to the bottom. - Create a new
Pad
view adding padding to the left. - Create a new
Pad
view adding padding to the right. - Create a new
Pad
view adding padding to the top. - Create a new
Painter
view. - Get the palette of the style.
- Create a new
Pod
view. - Create a new
Painter
view that draws a rectangle. - Create a new color, with the given
red
,green
andblue
components. - Create a new color, with the given
red
,green
,blue
andalpha
components. - Create a new
Aligned
view that aligns its content to the right. - Create a new
Transform
view that rotates its content. - Create a new
Transform
view that rotates its content in degrees. - Create a new
Transform
view that scales its content. - Create a new
Constrain
ed view, cosntraining its content to a size. - Create a new
Slider
. - Get a value from the current style.
- Get a value from the current style or a default value.
- Run a closure with the given style.
- Create a new
Text
. - Create a new
TextInput
. - Create a new
Tooltip
view. - Create a new
Aligned
view that aligns its content to the top. - Create a new
Aligned
view that aligns its content to the top left. - Create a new
Aligned
view that aligns its content to the top right. - Create a new
Transform
view. - Animate a transition.
- Animate a view when active changes.
- Animate a view when focused changes.
- Animate a view when hot changes.
- Create a new
Transform
view that translates its content. - Create a new
Trigger
view. - 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
Constrain
ed view, constraining its content to a width. - Create a new
WithState
. - Create a new
WithState
usingS::default()
. - Create a new view unwrapping some data from the state.
- Create a new view unwrapping some state from the data.
- Create a new
ZStack
view.
Type Aliases§
- A boxed dynamic view.
- A lens used by
Focus
.
Derive Macros§
- Derive the builder pattern.
- Derive the
Rebuild
trait.