Struct conrod::DrawArgs
[−]
[src]
pub struct DrawArgs<'a, W, C: 'a> where W: Widget { pub state: &'a W::State, pub style: &'a W::Style, pub theme: &'a Theme, pub glyph_cache: &'a GlyphCache<C>, pub depth: Depth, pub rect: Rect, pub drag_state: State, pub maybe_floating: Option<Floating>, }
Arguments for the Widget::draw method in a struct to simplify the method signature.
Fields
state: &'a W::State
The current state of the Widget.
style: &'a W::Style
The current style of the Widget.
theme: &'a Theme
The active Theme within the Ui.
glyph_cache: &'a GlyphCache<C>
The Ui's GlyphCache (for determining text width).
depth: Depth
The Widget's z-axis position relative to its sibling widgets.
rect: Rect
The rectangle describing the Widget's area.
drag_state: State
The current state of the dragged Widget, if it is draggable.
maybe_floating: Option<Floating>
Floating state for the widget if it is floating.