Struct cursive::views::LinearLayout [] [src]

pub struct LinearLayout { /* fields omitted */ }

Arranges its children linearly according to its orientation.

Methods

impl LinearLayout
[src]

[src]

Creates a new layout with the given orientation.

[src]

Modifies the weight of the last child added.

It is an error to call this before adding a child (and it will panic).

[src]

Adds a child to the layout.

Chainable variant.

[src]

Adds a child to the layout.

[src]

Returns index of focused inner view

[src]

Creates a new vertical layout.

[src]

Creates a new horizontal layout.

[src]

Returns a reference to a child.

[src]

Returns a mutable reference to a child.

Trait Implementations

impl View for LinearLayout
[src]

[src]

Draws the view with the given printer (includes bounds) and focus.

[src]

Returns true if the view content changed since last layout phase. Read more

[src]

Called once the size for this view has been decided, Read more

[src]

Returns the minimum size the view requires with the given restrictions. Read more

[src]

This view is offered focus. Will it take it? Read more

[src]

Called when a key was pressed. Read more

[src]

Runs a closure on the view identified by the given selector. Read more

[src]

Moves the focus to the view identified by the given selector. Read more

Auto Trait Implementations

impl !Send for LinearLayout

impl !Sync for LinearLayout