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>
[src]

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

Construct a default Canvas Split.

fn length(self, length: Scalar) -> 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, mgn: Scalar) -> Split<'a>

Set the margin from the left edge.

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

Set the margin from the right edge.

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

Set the margin from the top edge.

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

Set the margin from the bottom edge.

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

Set the margin for all edges.

fn vertical_scrolling(self, scrollable: bool) -> Self

Set whether or not the Canvas' KidArea is scrollable (the default is false). If a widget is scrollable and it has children widgets that fall outside of its KidArea, the KidArea will become scrollable.

fn horizontal_scrolling(self, scrollable: bool) -> Self

Set whether or not the Canvas' KidArea is scrollable (the default is false). If a widget is scrollable and it has children widgets that fall outside of its KidArea, the KidArea will become scrollable.

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

Store the Canvas and its children within the Ui.

Trait Implementations

impl<'a> Colorable for Split<'a>
[src]

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

Set the color of the widget.

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

Set the color of the widget from rgba values.

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

Set the color of the widget from rgb values.

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

Set the color of the widget from hsla values.

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

Set the color of the widget from hsl values.

impl<'a> Frameable for Split<'a>
[src]

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

Set the width of the widget's frame.

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

Set the color of the widget's frame.

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

Set the color of the widget's frame with rgba values.

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

Set the color of the widget's frame with rgb values.

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

Set the color of the widget's frame with hsla values.

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

Set the color of the widget's frame with hsl values.