Struct raui::core::layout::default_layout_engine::DefaultLayoutEngine
source · 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 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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.