Struct conrod::widget::PreUpdateCache [] [src]

pub struct PreUpdateCache {
    pub type_id: TypeId,
    pub id: Id,
    pub maybe_parent_id: Option<Id>,
    pub maybe_x_positioned_relatively_id: Option<Id>,
    pub maybe_y_positioned_relatively_id: Option<Id>,
    pub rect: Rect,
    pub depth: Depth,
    pub kid_area: KidArea,
    pub maybe_floating: Option<Floating>,
    pub crop_kids: bool,
    pub maybe_x_scroll_state: Option<StateX>,
    pub maybe_y_scroll_state: Option<StateY>,
    pub maybe_graphics_for: Option<Id>,
    pub is_over: IsOverFn,
}

Fields

The Widget's unique type identifier.

The Widget's unique Id.

The Widget's parent's unique index (if it has a parent).

If this Widget is relatively positioned to another Widget, this will be the index of the Widget to which this Widget is relatively positioned along the x axis.

If this Widget is relatively positioned to another Widget, this will be the index of the Widget to which this Widget is relatively positioned along the y axis.

The Rect describing the Widget's position and dimensions.

The z-axis depth - affects the render order of sibling widgets.

The area upon which the Widget's children widgets will be placed.

Floating data for the Widget if there is some.

Whether or not the children of the Widget should be cropped to its kid_area.

Scrolling data for the Widget's x axis if there is some.

Scrolling data for the Widget's y axis if there is some.

Whether or not the Widget has been instantiated as a graphical element for some other widget.

A function describing whether or not a given point is over the widget.