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
fn grid(&self) -> GridLayout
fn grid(&self) -> GridLayout
Creates a GridLayout instance for placing this widget within its parent.
fn grid_configure(&self, option: &str, value: &str)
fn grid_configure(&self, option: &str, value: &str)
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");
fn grid_forget(&self)
fn grid_forget(&self)
Removes this widget from layout.