pub struct LayoutEngine {
pub direction: Direction,
pub align: Align,
pub justify: Justify,
pub wrap: bool,
pub gap: f32,
}Fields§
§direction: Direction§align: Align§justify: Justify§wrap: bool§gap: f32Implementations§
Source§impl LayoutEngine
impl LayoutEngine
pub fn row() -> Self
pub fn column() -> Self
pub fn with_align(self, a: Align) -> Self
pub fn with_justify(self, j: Justify) -> Self
pub fn with_gap(self, g: f32) -> Self
pub fn with_wrap(self) -> Self
pub fn arrange( &self, container: Rect, items: &[LayoutItem], ) -> Vec<LayoutResult>
Auto Trait Implementations§
impl Freeze for LayoutEngine
impl RefUnwindSafe for LayoutEngine
impl Send for LayoutEngine
impl Sync for LayoutEngine
impl Unpin for LayoutEngine
impl UnsafeUnpin for LayoutEngine
impl UnwindSafe for LayoutEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more