Struct conrod::Canvas [−] [src]

pub struct Canvas {
    pub kind: Kind,
    pub xy: Point,
    pub element: Element,
    pub padding: Padding,
    pub set_since_last_drawn: bool,
}

The kind of Canvas.

Fields

kind

The Kind of Canvas (i.e. Split, Floating, etc).

xy

The position of the Canvas within the window.

element

The Element used for drawing the Canvas.

padding

Padding for the Canvas describes the distance between each edge and its Widget's.

set_since_last_drawn

Has the Canvas been set since the last time the Ui was drawn?

Methods

impl Canvas

fn empty() -> Canvas

An empty Canvas

Trait Implementations

Derived Implementations

impl Debug for Canvas

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Canvas

fn clone(&self) -> Canvas

fn clone_from(&mut self, source: &Self)