Struct iui::controls::HorizontalBox
[−]
[src]
pub struct HorizontalBox { /* fields omitted */ }
Lays out its children horizontally; see BoxExt
for functionality.
Methods
impl HorizontalBox
[src]
pub fn show(&mut self, _ctx: &UI)
[src]
pub fn hide(&mut self, _ctx: &UI)
[src]
pub unsafe fn from_raw(uiBox: *mut uiBox) -> HorizontalBox
[src]
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 uiBox
[src]
Return the underlying pointer for this control.
impl HorizontalBox
[src]
pub fn new(_ctx: &UI) -> HorizontalBox
[src]
Create a new horizontal box layout.
impl HorizontalBox
[src]
pub fn append<T: Into<Control>>(
&mut self,
_ctx: &UI,
child: T,
strategy: LayoutStrategy
)
[src]
&mut self,
_ctx: &UI,
child: T,
strategy: LayoutStrategy
)
Add a control to the end of the box, sized by the given layout strategy.
pub fn padded(&self, _ctx: &UI) -> bool
[src]
Determine whenther the box provides padding around its children.
pub fn set_padded(&mut self, _ctx: &UI, padded: bool)
[src]
Set whether or not the box should provide padding around its children.
Trait Implementations
impl Drop for HorizontalBox
[src]
impl Clone for HorizontalBox
[src]
fn clone(&self) -> HorizontalBox
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more