Struct i_slint_compiler::layout::GridLayoutElement
source · [−]pub struct GridLayoutElement {
pub col: u16,
pub row: u16,
pub colspan: u16,
pub rowspan: u16,
pub item: LayoutItem,
}
Expand description
An element in a GridLayout
Fields
col: u16
row: u16
colspan: u16
rowspan: u16
item: LayoutItem
Implementations
sourceimpl GridLayoutElement
impl GridLayoutElement
pub fn col_or_row_and_span(&self, orientation: Orientation) -> (u16, u16)
Trait Implementations
sourceimpl Clone for GridLayoutElement
impl Clone for GridLayoutElement
sourcefn clone(&self) -> GridLayoutElement
fn clone(&self) -> GridLayoutElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GridLayoutElement
impl !Send for GridLayoutElement
impl !Sync for GridLayoutElement
impl Unpin for GridLayoutElement
impl !UnwindSafe for GridLayoutElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more