Struct conrod::Split [−] [src]

pub struct Split<'a> {
    // some fields omitted
}

A type of Canvas for flexibly designing and guiding widget layout as splits of a window.

Methods

impl<'a> Split<'a>

fn new(id: CanvasId) -> Split<'a>

Construct a default Canvas.

fn length(self, length: Length) -> Split<'a>

Set the dimension of the Split.

fn flow(self, dir: Direction, splits: &'a [Split<'a>]) -> Split<'a>

Set the child Canvas Splits of the current Canvas flowing in a given direction.

fn flow_down(self, splits: &'a [Split<'a>]) -> Split<'a>

Set the child Canvasses flowing downwards.

fn flow_up(self, splits: &'a [Split<'a>]) -> Split<'a>

Set the child Canvasses flowing upwards.

fn flow_right(self, splits: &'a [Split<'a>]) -> Split<'a>

Set the child Canvasses flowing to the right.

fn flow_left(self, splits: &'a [Split<'a>]) -> Split<'a>

Set the child Canvasses flowing to the left.

fn pad_left(self, pad: Scalar) -> Split<'a>

Set the padding from the left edge.

fn pad_right(self, pad: Scalar) -> Split<'a>

Set the padding from the right edge.

fn pad_top(self, pad: Scalar) -> Split<'a>

Set the padding from the top edge.

fn pad_bottom(self, pad: Scalar) -> Split<'a>

Set the padding from the bottom edge.

fn pad(self, pad: Scalar) -> Split<'a>

Set the padding for all edges.

fn margin_left(self, pad: Scalar) -> Split<'a>

Set the margin from the left edge.

fn margin_right(self, pad: Scalar) -> Split<'a>

Set the margin from the right edge.

fn margin_top(self, pad: Scalar) -> Split<'a>

Set the margin from the top edge.

fn margin_bottom(self, pad: Scalar) -> Split<'a>

Set the margin from the bottom edge.

fn margin(self, pad: Scalar) -> Split<'a>

Set the margin for all edges.

fn set<C, W>(self, ui: &mut Ui<C, W>) where W: CustomWidget

Store the Canvas and it's children within the Ui. Each Canvas can be accessed via it's unique identifier CanvasId.

Trait Implementations

impl<'a> Colorable for Split<'a>

fn color(self, color: Color) -> Self

fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn rgb(self, r: f32, g: f32, b: f32) -> Self

fn hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn hsl(self, h: f32, s: f32, l: f32) -> Self

impl<'a> Frameable for Split<'a>

fn frame(self, width: f64) -> Self

fn frame_color(self, color: Color) -> Self

fn frame_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self

fn frame_rgb(self, r: f32, g: f32, b: f32) -> Self

fn frame_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self

fn frame_hsl(self, h: f32, s: f32, l: f32) -> Self