Enum i_slint_compiler::layout::Layout
source · [−]pub enum Layout {
GridLayout(GridLayout),
PathLayout(PathLayout),
BoxLayout(BoxLayout),
}
Variants
GridLayout(GridLayout)
PathLayout(PathLayout)
BoxLayout(BoxLayout)
Implementations
sourceimpl Layout
impl Layout
pub fn rect(&self) -> &LayoutRect
pub fn rect_mut(&mut self) -> &mut LayoutRect
pub fn geometry(&self) -> Option<&LayoutGeometry>
sourceimpl Layout
impl Layout
sourcepub fn visit_named_references(
&mut self,
visitor: &mut impl FnMut(&mut NamedReference)
)
pub fn visit_named_references(
&mut self,
visitor: &mut impl FnMut(&mut NamedReference)
)
Call the visitor for each NamedReference stored in the layout
Trait Implementations
sourceimpl From<GridLayout> for Layout
impl From<GridLayout> for Layout
sourcefn from(original: GridLayout) -> Layout
fn from(original: GridLayout) -> Layout
Performs the conversion.
sourceimpl From<PathLayout> for Layout
impl From<PathLayout> for Layout
sourcefn from(original: PathLayout) -> Layout
fn from(original: PathLayout) -> Layout
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Layout
impl !Send for Layout
impl !Sync for Layout
impl Unpin for Layout
impl !UnwindSafe for Layout
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