Struct components::services::LayoutSystem
source · [−]pub struct LayoutSystem { /* private fields */ }
Implementations
sourceimpl LayoutSystem
impl LayoutSystem
pub fn new_leaf(style: Style, measure: MeasureFunc) -> Result<Node, Error>
pub fn new_node(style: Style, children: Vec<Node>) -> Result<Node, Error>
pub fn set_measure(
node: Node,
measure: Option<MeasureFunc>
) -> Result<(), Error>
pub fn add_child(node: Node, child: Node) -> Result<(), Error>
pub fn set_children(node: Node, children: Vec<Node>) -> Result<(), Error>
pub fn remove_child(node: Node, child: Node) -> Result<Node, Error>
pub fn remove_child_at_index(node: Node, index: usize) -> Result<Node, Error>
pub fn replace_child_at_index(
node: Node,
index: usize,
child: Node
) -> Result<Node, Error>
pub fn children(node: Node) -> Result<Vec<Node>, Error>
pub fn child_count(node: Node) -> Result<usize, Error>
pub fn set_style(node: Node, style: Style) -> Result<(), Error>
pub fn style(node: Node) -> Result<Style, Error>
pub fn layout(node: Node) -> Result<Layout, Error>
pub fn mark_dirty(node: Node) -> Result<(), Error>
pub fn dirty(node: Node) -> Result<bool, Error>
pub fn compute_layout(node: Node, size: Size<Number>) -> Result<(), Error>
Trait Implementations
impl Send for LayoutSystem
impl Sync for LayoutSystem
Auto Trait Implementations
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<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.