Struct iui::controls::LayoutGrid [−][src]
pub struct LayoutGrid { /* fields omitted */ }Lays out its children in a grid according to insertion instructions.
Methods
impl LayoutGrid[src]
impl LayoutGridpub fn show(&mut self, _ctx: &UI)[src]
pub fn show(&mut self, _ctx: &UI)pub fn hide(&mut self, _ctx: &UI)[src]
pub fn hide(&mut self, _ctx: &UI)pub unsafe fn from_raw(uiGrid: *mut uiGrid) -> LayoutGrid[src]
pub unsafe fn from_raw(uiGrid: *mut uiGrid) -> LayoutGridCreate an iui struct for this control from the raw pointer for it.
Unsafety
The given pointer must point to a valid control or memory unsafety may result.
pub fn ptr(&self) -> *mut uiGrid[src]
pub fn ptr(&self) -> *mut uiGridReturn the underlying pointer for this control.
impl LayoutGrid[src]
impl LayoutGridpub fn new(_ctx: &UI) -> Self[src]
pub fn new(_ctx: &UI) -> SelfCreates a new LayoutGrid.
pub fn padded(&self, _ctx: &UI) -> bool[src]
pub fn padded(&self, _ctx: &UI) -> boolReturns true if the LayoutGrid is padded and false if not.
pub fn set_padded(&mut self, _ctx: &UI, padded: bool)[src]
pub fn set_padded(&mut self, _ctx: &UI, padded: bool)Sets the padding state of the LayoutGrid
pub fn append<T: Into<Control>>(
&mut self,
_ctx: &UI,
control: T,
left: i32,
height: i32,
xspan: i32,
yspan: i32,
expand: GridExpand,
halign: GridAlignment,
valign: GridAlignment
)[src]
pub fn append<T: Into<Control>>(
&mut self,
_ctx: &UI,
control: T,
left: i32,
height: i32,
xspan: i32,
yspan: i32,
expand: GridExpand,
halign: GridAlignment,
valign: GridAlignment
)Adds a control to the LayoutGrid.
pub fn insert_at<T: Into<Control>, U: Into<Control>>(
&mut self,
_ctx: &UI,
control: T,
existing: U,
at: GridInsertionStrategy,
left: i32,
height: i32,
xspan: i32,
yspan: i32,
expand: GridExpand,
halign: GridAlignment,
valign: GridAlignment
)[src]
pub fn insert_at<T: Into<Control>, U: Into<Control>>(
&mut self,
_ctx: &UI,
control: T,
existing: U,
at: GridInsertionStrategy,
left: i32,
height: i32,
xspan: i32,
yspan: i32,
expand: GridExpand,
halign: GridAlignment,
valign: GridAlignment
)Inserts a control in to the LayoutGrid relative to an existing control.
Trait Implementations
impl Drop for LayoutGrid[src]
impl Drop for LayoutGridimpl Clone for LayoutGrid[src]
impl Clone for LayoutGridfn clone(&self) -> LayoutGrid[src]
fn clone(&self) -> LayoutGridReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Into<Control> for LayoutGrid[src]
impl Into<Control> for LayoutGridAuto Trait Implementations
impl !Send for LayoutGrid
impl !Send for LayoutGridimpl !Sync for LayoutGrid
impl !Sync for LayoutGrid