pub struct DefaultLayoutEngine;
Implementations§
source§impl DefaultLayoutEngine
impl DefaultLayoutEngine
pub fn layout_node( size_available: Vec2, unit: &WidgetUnit, ) -> Option<LayoutNode>
pub fn layout_area_box( size_available: Vec2, unit: &AreaBox, ) -> Option<LayoutNode>
pub fn layout_content_box( size_available: Vec2, unit: &ContentBox, ) -> Option<LayoutNode>
pub fn layout_flex_box( size_available: Vec2, unit: &FlexBox, ) -> Option<LayoutNode>
pub fn layout_flex_box_wrapping( size_available: Vec2, unit: &FlexBox, ) -> LayoutNode
pub fn layout_flex_box_no_wrap( size_available: Vec2, unit: &FlexBox, ) -> LayoutNode
pub fn layout_grid_box( size_available: Vec2, unit: &GridBox, ) -> Option<LayoutNode>
pub fn layout_size_box( size_available: Vec2, unit: &SizeBox, ) -> Option<LayoutNode>
pub fn layout_image_box( size_available: Vec2, unit: &ImageBox, ) -> Option<LayoutNode>
pub fn layout_text_box( size_available: Vec2, unit: &TextBox, ) -> Option<LayoutNode>
Trait Implementations§
source§impl Clone for DefaultLayoutEngine
impl Clone for DefaultLayoutEngine
source§fn clone(&self) -> DefaultLayoutEngine
fn clone(&self) -> DefaultLayoutEngine
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultLayoutEngine
impl Debug for DefaultLayoutEngine
source§impl Default for DefaultLayoutEngine
impl Default for DefaultLayoutEngine
source§fn default() -> DefaultLayoutEngine
fn default() -> DefaultLayoutEngine
Returns the “default value” for a type. Read more
source§impl LayoutEngine<()> for DefaultLayoutEngine
impl LayoutEngine<()> for DefaultLayoutEngine
fn layout( &mut self, mapping: &CoordsMapping, tree: &WidgetUnit, ) -> Result<Layout, ()>
impl Copy for DefaultLayoutEngine
Auto Trait Implementations§
impl Freeze for DefaultLayoutEngine
impl RefUnwindSafe for DefaultLayoutEngine
impl Send for DefaultLayoutEngine
impl Sync for DefaultLayoutEngine
impl Unpin for DefaultLayoutEngine
impl UnwindSafe for DefaultLayoutEngine
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)