[−][src]Trait orbtk::prelude::Layout
A layout is used to dynamic order the children of a widget.
Required methods
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
Arranges an sizes the children.
Implementors
impl Layout for FixedSizeLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
_parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
_parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
impl Layout for GridLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
impl Layout for PaddingLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
impl Layout for ScrollLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
impl Layout for StackLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
impl Layout for TextSelectionLayout
[src]
fn measure(
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
[src]
&self,
render_context_2_d: &mut RenderContext2D,
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> DirtySize
fn arrange(
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)
[src]
&self,
render_context_2_d: &mut RenderContext2D,
parent_size: (f64, f64),
entity: Entity,
ecm: &mut EntityComponentManager<Tree, StringComponentStore>,
layouts: &Rc<RefCell<BTreeMap<Entity, Box<dyn Layout + 'static>>>>,
theme: &Theme
) -> (f64, f64)