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 LayoutGrid
pub 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) -> LayoutGrid
Create 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 uiGrid
Return the underlying pointer for this control.
impl LayoutGrid
[src]
impl LayoutGrid
pub fn new(_ctx: &UI) -> Self
[src]
pub fn new(_ctx: &UI) -> Self
Creates a new LayoutGrid
.
pub fn padded(&self, _ctx: &UI) -> bool
[src]
pub fn padded(&self, _ctx: &UI) -> bool
Returns 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 LayoutGrid
impl Clone for LayoutGrid
[src]
impl Clone for LayoutGrid
fn clone(&self) -> LayoutGrid
[src]
fn clone(&self) -> LayoutGrid
Returns 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 LayoutGrid
Auto Trait Implementations
impl !Send for LayoutGrid
impl !Send for LayoutGrid
impl !Sync for LayoutGrid
impl !Sync for LayoutGrid