[−][src]Struct yoga::Node
Methods
impl Node[src]
impl Nodepub fn new() -> Node[src]
pub fn new() -> Nodepub fn reset(&mut self)[src]
pub fn reset(&mut self)pub fn apply_styles<'a, I>(&mut self, styles: I) where
I: IntoIterator<Item = &'a FlexStyle>, [src]
pub fn apply_styles<'a, I>(&mut self, styles: I) where
I: IntoIterator<Item = &'a FlexStyle>, pub fn apply_style(&mut self, style: &FlexStyle)[src]
pub fn apply_style(&mut self, style: &FlexStyle)pub fn insert_child(&mut self, child: &mut Node, index: u32)[src]
pub fn insert_child(&mut self, child: &mut Node, index: u32)pub fn remove_child(&mut self, child: &mut Node)[src]
pub fn remove_child(&mut self, child: &mut Node)pub fn child_count(&self) -> u32[src]
pub fn child_count(&self) -> u32pub fn set_direction(&mut self, direction: Direction)[src]
pub fn set_direction(&mut self, direction: Direction)pub fn set_flex_direction(&mut self, direction: FlexDirection)[src]
pub fn set_flex_direction(&mut self, direction: FlexDirection)pub fn set_justify_content(&mut self, justify: Justify)[src]
pub fn set_justify_content(&mut self, justify: Justify)pub fn set_align_content(&mut self, align: Align)[src]
pub fn set_align_content(&mut self, align: Align)pub fn set_align_items(&mut self, align: Align)[src]
pub fn set_align_items(&mut self, align: Align)pub fn set_align_self(&mut self, align: Align)[src]
pub fn set_align_self(&mut self, align: Align)pub fn set_position_type(&mut self, position_type: PositionType)[src]
pub fn set_position_type(&mut self, position_type: PositionType)pub fn set_position(&mut self, edge: Edge, position: StyleUnit)[src]
pub fn set_position(&mut self, edge: Edge, position: StyleUnit)pub fn set_flex_wrap(&mut self, wrap: Wrap)[src]
pub fn set_flex_wrap(&mut self, wrap: Wrap)pub fn set_overflow(&mut self, overflow: Overflow)[src]
pub fn set_overflow(&mut self, overflow: Overflow)pub fn set_flex(&mut self, flex: f32)[src]
pub fn set_flex(&mut self, flex: f32)pub fn set_flex_grow(&mut self, flex_grow: f32)[src]
pub fn set_flex_grow(&mut self, flex_grow: f32)pub fn set_flex_shrink(&mut self, flex_shrink: f32)[src]
pub fn set_flex_shrink(&mut self, flex_shrink: f32)pub fn set_flex_basis(&mut self, flex_basis: StyleUnit)[src]
pub fn set_flex_basis(&mut self, flex_basis: StyleUnit)pub fn set_edge_position(&mut self, edge: Edge, position: f32)[src]
pub fn set_edge_position(&mut self, edge: Edge, position: f32)pub fn set_margin(&mut self, edge: Edge, margin: StyleUnit)[src]
pub fn set_margin(&mut self, edge: Edge, margin: StyleUnit)pub fn set_padding(&mut self, edge: Edge, padding: StyleUnit)[src]
pub fn set_padding(&mut self, edge: Edge, padding: StyleUnit)pub fn set_border(&mut self, edge: Edge, border: f32)[src]
pub fn set_border(&mut self, edge: Edge, border: f32)pub fn set_width(&mut self, width: StyleUnit)[src]
pub fn set_width(&mut self, width: StyleUnit)pub fn set_height(&mut self, height: StyleUnit)[src]
pub fn set_height(&mut self, height: StyleUnit)pub fn set_min_width(&mut self, min_width: StyleUnit)[src]
pub fn set_min_width(&mut self, min_width: StyleUnit)pub fn set_min_height(&mut self, min_height: StyleUnit)[src]
pub fn set_min_height(&mut self, min_height: StyleUnit)pub fn set_max_width(&mut self, max_width: StyleUnit)[src]
pub fn set_max_width(&mut self, max_width: StyleUnit)pub fn set_max_height(&mut self, max_height: StyleUnit)[src]
pub fn set_max_height(&mut self, max_height: StyleUnit)pub fn set_aspect_ratio(&mut self, aspect_ratio: f32)[src]
pub fn set_aspect_ratio(&mut self, aspect_ratio: f32)pub fn calculate_layout(
&mut self,
available_width: f32,
available_height: f32,
parent_direction: Direction
)[src]
pub fn calculate_layout(
&mut self,
available_width: f32,
available_height: f32,
parent_direction: Direction
)pub fn get_layout(&self) -> Layout[src]
pub fn get_layout(&self) -> Layoutpub fn get_child_count(&self) -> u32[src]
pub fn get_child_count(&self) -> u32pub fn get_child(&self, index: u32) -> NodeRef[src]
pub fn get_child(&self, index: u32) -> NodeRefpub fn get_style_direction(&self) -> Direction[src]
pub fn get_style_direction(&self) -> Directionpub fn get_flex_direction(&self) -> FlexDirection[src]
pub fn get_flex_direction(&self) -> FlexDirectionpub fn get_justify_content(&self) -> Justify[src]
pub fn get_justify_content(&self) -> Justifypub fn get_align_content(&self) -> Align[src]
pub fn get_align_content(&self) -> Alignpub fn get_align_items(&self) -> Align[src]
pub fn get_align_items(&self) -> Alignpub fn get_align_self(&self) -> Align[src]
pub fn get_align_self(&self) -> Alignpub fn get_position_type(&self) -> PositionType[src]
pub fn get_position_type(&self) -> PositionTypepub fn get_flex_wrap(&self) -> Wrap[src]
pub fn get_flex_wrap(&self) -> Wrappub fn get_overflow(&self) -> Overflow[src]
pub fn get_overflow(&self) -> Overflowpub fn get_flex_grow(&self) -> f32[src]
pub fn get_flex_grow(&self) -> f32pub fn get_flex_shrink(&self) -> f32[src]
pub fn get_flex_shrink(&self) -> f32pub fn get_flex_basis(&self) -> StyleUnit[src]
pub fn get_flex_basis(&self) -> StyleUnitpub fn get_style_position_left(&self) -> StyleUnit[src]
pub fn get_style_position_left(&self) -> StyleUnitpub fn get_style_position_right(&self) -> StyleUnit[src]
pub fn get_style_position_right(&self) -> StyleUnitpub fn get_style_position_top(&self) -> StyleUnit[src]
pub fn get_style_position_top(&self) -> StyleUnitpub fn get_style_position_bottom(&self) -> StyleUnit[src]
pub fn get_style_position_bottom(&self) -> StyleUnitpub fn get_style_position_start(&self) -> StyleUnit[src]
pub fn get_style_position_start(&self) -> StyleUnitpub fn get_style_position_end(&self) -> StyleUnit[src]
pub fn get_style_position_end(&self) -> StyleUnitpub fn get_style_margin_left(&self) -> StyleUnit[src]
pub fn get_style_margin_left(&self) -> StyleUnitpub fn get_style_margin_right(&self) -> StyleUnit[src]
pub fn get_style_margin_right(&self) -> StyleUnitpub fn get_style_margin_top(&self) -> StyleUnit[src]
pub fn get_style_margin_top(&self) -> StyleUnitpub fn get_style_margin_bottom(&self) -> StyleUnit[src]
pub fn get_style_margin_bottom(&self) -> StyleUnitpub fn get_style_margin_start(&self) -> StyleUnit[src]
pub fn get_style_margin_start(&self) -> StyleUnitpub fn get_style_margin_end(&self) -> StyleUnit[src]
pub fn get_style_margin_end(&self) -> StyleUnitpub fn get_style_padding_left(&self) -> StyleUnit[src]
pub fn get_style_padding_left(&self) -> StyleUnitpub fn get_style_padding_right(&self) -> StyleUnit[src]
pub fn get_style_padding_right(&self) -> StyleUnitpub fn get_style_padding_top(&self) -> StyleUnit[src]
pub fn get_style_padding_top(&self) -> StyleUnitpub fn get_style_padding_bottom(&self) -> StyleUnit[src]
pub fn get_style_padding_bottom(&self) -> StyleUnitpub fn get_style_padding_start(&self) -> StyleUnit[src]
pub fn get_style_padding_start(&self) -> StyleUnitpub fn get_style_padding_end(&self) -> StyleUnit[src]
pub fn get_style_padding_end(&self) -> StyleUnitpub fn get_style_border_left(&self) -> f32[src]
pub fn get_style_border_left(&self) -> f32pub fn get_style_border_right(&self) -> f32[src]
pub fn get_style_border_right(&self) -> f32pub fn get_style_border_top(&self) -> f32[src]
pub fn get_style_border_top(&self) -> f32pub fn get_style_border_bottom(&self) -> f32[src]
pub fn get_style_border_bottom(&self) -> f32pub fn get_style_border_start(&self) -> f32[src]
pub fn get_style_border_start(&self) -> f32pub fn get_style_border_end(&self) -> f32[src]
pub fn get_style_border_end(&self) -> f32pub fn get_style_width(&self) -> StyleUnit[src]
pub fn get_style_width(&self) -> StyleUnitpub fn get_style_height(&self) -> StyleUnit[src]
pub fn get_style_height(&self) -> StyleUnitpub fn get_style_min_width(&self) -> StyleUnit[src]
pub fn get_style_min_width(&self) -> StyleUnitpub fn get_style_min_height(&self) -> StyleUnit[src]
pub fn get_style_min_height(&self) -> StyleUnitpub fn get_style_max_width(&self) -> StyleUnit[src]
pub fn get_style_max_width(&self) -> StyleUnitpub fn get_style_max_height(&self) -> StyleUnit[src]
pub fn get_style_max_height(&self) -> StyleUnitpub fn get_layout_margin_left(&self) -> f32[src]
pub fn get_layout_margin_left(&self) -> f32pub fn get_layout_margin_right(&self) -> f32[src]
pub fn get_layout_margin_right(&self) -> f32pub fn get_layout_margin_top(&self) -> f32[src]
pub fn get_layout_margin_top(&self) -> f32pub fn get_layout_margin_bottom(&self) -> f32[src]
pub fn get_layout_margin_bottom(&self) -> f32pub fn get_layout_margin_start(&self) -> f32[src]
pub fn get_layout_margin_start(&self) -> f32pub fn get_layout_margin_end(&self) -> f32[src]
pub fn get_layout_margin_end(&self) -> f32pub fn get_layout_padding_left(&self) -> f32[src]
pub fn get_layout_padding_left(&self) -> f32pub fn get_layout_padding_right(&self) -> f32[src]
pub fn get_layout_padding_right(&self) -> f32pub fn get_layout_padding_top(&self) -> f32[src]
pub fn get_layout_padding_top(&self) -> f32pub fn get_layout_padding_bottom(&self) -> f32[src]
pub fn get_layout_padding_bottom(&self) -> f32pub fn get_layout_padding_start(&self) -> f32[src]
pub fn get_layout_padding_start(&self) -> f32pub fn get_layout_padding_end(&self) -> f32[src]
pub fn get_layout_padding_end(&self) -> f32pub fn get_layout_left(&self) -> f32[src]
pub fn get_layout_left(&self) -> f32pub fn get_layout_right(&self) -> f32[src]
pub fn get_layout_right(&self) -> f32pub fn get_layout_top(&self) -> f32[src]
pub fn get_layout_top(&self) -> f32pub fn get_layout_bottom(&self) -> f32[src]
pub fn get_layout_bottom(&self) -> f32pub fn get_layout_border_left(&self) -> f32[src]
pub fn get_layout_border_left(&self) -> f32pub fn get_layout_border_right(&self) -> f32[src]
pub fn get_layout_border_right(&self) -> f32pub fn get_layout_border_top(&self) -> f32[src]
pub fn get_layout_border_top(&self) -> f32pub fn get_layout_border_bottom(&self) -> f32[src]
pub fn get_layout_border_bottom(&self) -> f32pub fn get_layout_width(&self) -> f32[src]
pub fn get_layout_width(&self) -> f32pub fn get_layout_height(&self) -> f32[src]
pub fn get_layout_height(&self) -> f32pub fn get_layout_direction(&self) -> Direction[src]
pub fn get_layout_direction(&self) -> Directionpub fn is_dirty(&self) -> bool[src]
pub fn is_dirty(&self) -> boolpub fn copy_style(&self, src_node: &Node)[src]
pub fn copy_style(&self, src_node: &Node)pub fn set_display(&mut self, display: Display)[src]
pub fn set_display(&mut self, display: Display)pub fn set_measure_func(&mut self, func: MeasureFunc)[src]
pub fn set_measure_func(&mut self, func: MeasureFunc)pub fn set_baseline_func(&mut self, func: BaselineFunc)[src]
pub fn set_baseline_func(&mut self, func: BaselineFunc)pub fn set_context(&mut self, value: Option<Context>)[src]
pub fn set_context(&mut self, value: Option<Context>)pub fn get_context(node_ref: &NodeRef) -> Option<&Box<Any>>[src]
pub fn get_context(node_ref: &NodeRef) -> Option<&Box<Any>>pub fn get_context_mut(node_ref: &NodeRef) -> Option<&mut Box<Any>>[src]
pub fn get_context_mut(node_ref: &NodeRef) -> Option<&mut Box<Any>>pub fn get_own_context(&self) -> Option<&Box<Any>>[src]
pub fn get_own_context(&self) -> Option<&Box<Any>>pub fn get_own_context_mut(&self) -> Option<&mut Box<Any>>[src]
pub fn get_own_context_mut(&self) -> Option<&mut Box<Any>>pub fn drop_context(&mut self)[src]
pub fn drop_context(&mut self)Trait Implementations
impl PartialOrd<Node> for Node[src]
impl PartialOrd<Node> for Nodefn partial_cmp(&self, other: &Node) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Node) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Node) -> bool[src]
fn lt(&self, other: &Node) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Node) -> bool[src]
fn le(&self, other: &Node) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Node) -> bool[src]
fn gt(&self, other: &Node) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Node) -> bool[src]
fn ge(&self, other: &Node) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<Node> for Node[src]
impl PartialEq<Node> for Nodefn eq(&self, other: &Node) -> bool[src]
fn eq(&self, other: &Node) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Node) -> bool[src]
fn ne(&self, other: &Node) -> boolThis method tests for !=.
impl Ord for Node[src]
impl Ord for Nodefn cmp(&self, other: &Node) -> Ordering[src]
fn cmp(&self, other: &Node) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Drop for Node[src]
impl Drop for Nodeimpl Eq for Node[src]
impl Eq for Nodeimpl Debug for Node[src]
impl Debug for Nodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for Node[src]
impl Hash for NodeAuto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more