Struct native_windows_gui::GridLayoutItem
source · [−]pub struct GridLayoutItem {
pub col: u32,
pub row: u32,
pub col_span: u32,
pub row_span: u32,
/* private fields */
}
Expand description
A control item in a GridLayout
Fields
col: u32
The column position of the control in the layout
row: u32
The row position of the control in the layout
col_span: u32
The number column this item should span. Should be 1 for single column item.
row_span: u32
The number row this item should span. Should be 1 for single row item.
Implementations
sourceimpl GridLayoutItem
impl GridLayoutItem
sourcepub fn new<W: Into<ControlHandle>>(
c: W,
col: u32,
row: u32,
col_span: u32,
row_span: u32
) -> GridLayoutItem
pub fn new<W: Into<ControlHandle>>(
c: W,
col: u32,
row: u32,
col_span: u32,
row_span: u32
) -> GridLayoutItem
Initialize a new grid layout item
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GridLayoutItem
impl !Send for GridLayoutItem
impl !Sync for GridLayoutItem
impl Unpin for GridLayoutItem
impl UnwindSafe for GridLayoutItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more