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

pub struct LinearLayout { /* fields omitted */ }

Arranges its children linearly according to its orientation.

Methods

impl LinearLayout
[src]

Creates a new layout with the given orientation.

Modifies the weight of the last child added.

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

Adds a child to the layout.

Chainable variant.

Adds a child to the layout.

Returns the number of children.

Returns true if this view has no children.

Returns index of focused inner view

Creates a new vertical layout.

Creates a new horizontal layout.

Returns a reference to a child.

Returns a mutable reference to a child.

Removes a child.

If i is within bounds, the removed child will be returned.

Trait Implementations

impl View for LinearLayout
[src]

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

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

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

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

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

Called when an event is received (key press, mouse event, ...). Read more

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

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

What part of the view is important and should be visible? Read more

Auto Trait Implementations

impl !Send for LinearLayout

impl !Sync for LinearLayout