Crate rui

source ·

Macros

Structs

Enums

Constants

Traits

Functions

  • Switches between views according to a boolean.
  • Calls a function when the button is tapped.
  • Version of button which emits an action directly instead of taking a callback.
  • Canvas for GPU drawing with Vger. See https://github.com/audulus/vger-rs.
  • Renders a circle which expands to fill available space.
  • Specifies a menu command.
  • Switches between views according to a boolean.
  • Reads from the environment.
  • Calls calls a function with true if the view subtree returned by the function has the keyboard focus.
  • Horizontal slider built from other Views.
  • Horizontal stack of up to 128 Views in a tuple. Each item can be a different view type.
  • Knob for controlling a 0 to 1 floating point parameter.
  • Displays a list of items all of which are represented by the same View. See examples/list.rs.
  • Maps state into local state.
  • Passes a value to a function. Value can be updated by modifiers.
  • Renders a rectangle which expands to fill available space.
  • Call this function to run your UI.
  • Inserts a flexible space in a stack.
  • State allows you to associate some state with a view. This is what you’ll use for a data model, as well as per-view state. Your state should be efficiently clonable. Use Rc as necessary.
  • Shows a string as a label (not editable).
  • A multi-line text editor.
  • Toggle switch.
  • Vertical slider built from other Views.
  • Vertical stack of up to 128 Views in a tuple. Each item can be a different view type.
  • Convenience to get the context.
  • Convenience to retreive a reference to a value in the context.
  • Stack of up to 128 overlaid Views in a tuple. Each item can be a different view type.

Type Definitions