Trait rstk::grid::TkGridLayout[][src]

pub trait TkGridLayout: TkWidget {
    fn grid(&self) -> GridLayout { ... }
fn grid_configure(&self, option: &str, value: &str) { ... }
fn grid_forget(&self) { ... } }
Expand description

Common functions for widgets that can be arranged using GridLayouts

Provided methods

Creates a GridLayout instance for placing this widget within its parent.

Sets properties for widget layout directly through Tk: see Tk manual for options.

e.g. to set the “padx” value to “5” on a label:

label.grid_configure("padx", "5");

Removes this widget from layout.

Implementors