[][src]Struct conrod_core::render::Primitive

pub struct Primitive<'a> {
    pub id: Id,
    pub kind: PrimitiveKind<'a>,
    pub scizzor: Rect,
    pub rect: Rect,
}

Data required for rendering a single primitive widget.

Fields

id: Id

The id of the widget within the widget graph.

kind: PrimitiveKind<'a>

State and style for this primitive widget.

scizzor: Rect

The Rect to which the primitive widget should be cropped.

Only parts of the widget within this Rect should be drawn.

rect: Rect

The bounding rectangle for the Primitive.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Primitive<'a>

impl<'a> !Send for Primitive<'a>

impl<'a> !Sync for Primitive<'a>

impl<'a> Unpin for Primitive<'a>

impl<'a> !UnwindSafe for Primitive<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.