[−][src]Struct polyhorn_yoga::Node
Implementations
impl Node
[src]
pub fn new() -> Node
[src]
pub fn new_with_config(config: &mut Config) -> Node
[src]
pub fn reset(&mut self)
[src]
pub fn mark_dirty(&mut self)
[src]
pub fn apply_styles<'a, I>(&mut self, styles: I) where
I: IntoIterator<Item = &'a FlexStyle>,
[src]
I: IntoIterator<Item = &'a FlexStyle>,
pub fn apply_style(&mut self, style: &FlexStyle)
[src]
pub fn insert_child(&mut self, child: &mut Node, index: u32)
[src]
pub fn remove_child(&mut self, child: &mut Node)
[src]
pub fn child_count(&self) -> u32
[src]
pub fn set_direction(&mut self, direction: Direction)
[src]
pub fn set_flex_direction(&mut self, direction: FlexDirection)
[src]
pub fn set_justify_content(&mut self, justify: Justify)
[src]
pub fn set_align_content(&mut self, align: Align)
[src]
pub fn set_align_items(&mut self, align: Align)
[src]
pub fn set_align_self(&mut self, align: Align)
[src]
pub fn set_position_type(&mut self, position_type: PositionType)
[src]
pub fn set_position(&mut self, edge: Edge, position: StyleUnit)
[src]
pub fn set_flex_wrap(&mut self, wrap: Wrap)
[src]
pub fn set_overflow(&mut self, overflow: Overflow)
[src]
pub fn set_flex(&mut self, flex: f32)
[src]
pub fn set_flex_grow(&mut self, flex_grow: f32)
[src]
pub fn set_flex_shrink(&mut self, flex_shrink: f32)
[src]
pub fn set_flex_basis(&mut self, flex_basis: StyleUnit)
[src]
pub fn set_edge_position(&mut self, edge: Edge, position: f32)
[src]
pub fn set_margin(&mut self, edge: Edge, margin: StyleUnit)
[src]
pub fn set_padding(&mut self, edge: Edge, padding: StyleUnit)
[src]
pub fn set_border(&mut self, edge: Edge, border: f32)
[src]
pub fn set_width(&mut self, width: StyleUnit)
[src]
pub fn set_height(&mut self, height: StyleUnit)
[src]
pub fn set_min_width(&mut self, min_width: StyleUnit)
[src]
pub fn set_min_height(&mut self, min_height: StyleUnit)
[src]
pub fn set_max_width(&mut self, max_width: StyleUnit)
[src]
pub fn set_max_height(&mut self, max_height: StyleUnit)
[src]
pub fn set_aspect_ratio(&mut self, aspect_ratio: f32)
[src]
pub fn calculate_layout(
&mut self,
available_width: f32,
available_height: f32,
parent_direction: Direction
)
[src]
&mut self,
available_width: f32,
available_height: f32,
parent_direction: Direction
)
pub fn get_layout(&self) -> Layout
[src]
pub fn get_child_count(&self) -> u32
[src]
pub fn get_child(&self, index: u32) -> NodeRef
[src]
pub fn get_style_direction(&self) -> Direction
[src]
pub fn get_flex_direction(&self) -> FlexDirection
[src]
pub fn get_justify_content(&self) -> Justify
[src]
pub fn get_align_content(&self) -> Align
[src]
pub fn get_align_items(&self) -> Align
[src]
pub fn get_align_self(&self) -> Align
[src]
pub fn get_position_type(&self) -> PositionType
[src]
pub fn get_flex_wrap(&self) -> Wrap
[src]
pub fn get_overflow(&self) -> Overflow
[src]
pub fn get_flex_grow(&self) -> f32
[src]
pub fn get_flex_shrink(&self) -> f32
[src]
pub fn get_flex_basis(&self) -> StyleUnit
[src]
pub fn get_style_position_left(&self) -> StyleUnit
[src]
pub fn get_style_position_right(&self) -> StyleUnit
[src]
pub fn get_style_position_top(&self) -> StyleUnit
[src]
pub fn get_style_position_bottom(&self) -> StyleUnit
[src]
pub fn get_style_position_start(&self) -> StyleUnit
[src]
pub fn get_style_position_end(&self) -> StyleUnit
[src]
pub fn get_style_margin_left(&self) -> StyleUnit
[src]
pub fn get_style_margin_right(&self) -> StyleUnit
[src]
pub fn get_style_margin_top(&self) -> StyleUnit
[src]
pub fn get_style_margin_bottom(&self) -> StyleUnit
[src]
pub fn get_style_margin_start(&self) -> StyleUnit
[src]
pub fn get_style_margin_end(&self) -> StyleUnit
[src]
pub fn get_style_padding_left(&self) -> StyleUnit
[src]
pub fn get_style_padding_right(&self) -> StyleUnit
[src]
pub fn get_style_padding_top(&self) -> StyleUnit
[src]
pub fn get_style_padding_bottom(&self) -> StyleUnit
[src]
pub fn get_style_padding_start(&self) -> StyleUnit
[src]
pub fn get_style_padding_end(&self) -> StyleUnit
[src]
pub fn get_style_border_left(&self) -> f32
[src]
pub fn get_style_border_right(&self) -> f32
[src]
pub fn get_style_border_top(&self) -> f32
[src]
pub fn get_style_border_bottom(&self) -> f32
[src]
pub fn get_style_border_start(&self) -> f32
[src]
pub fn get_style_border_end(&self) -> f32
[src]
pub fn get_style_width(&self) -> StyleUnit
[src]
pub fn get_style_height(&self) -> StyleUnit
[src]
pub fn get_style_min_width(&self) -> StyleUnit
[src]
pub fn get_style_min_height(&self) -> StyleUnit
[src]
pub fn get_style_max_width(&self) -> StyleUnit
[src]
pub fn get_style_max_height(&self) -> StyleUnit
[src]
pub fn get_layout_margin_left(&self) -> f32
[src]
pub fn get_layout_margin_right(&self) -> f32
[src]
pub fn get_layout_margin_top(&self) -> f32
[src]
pub fn get_layout_margin_bottom(&self) -> f32
[src]
pub fn get_layout_margin_start(&self) -> f32
[src]
pub fn get_layout_margin_end(&self) -> f32
[src]
pub fn get_layout_padding_left(&self) -> f32
[src]
pub fn get_layout_padding_right(&self) -> f32
[src]
pub fn get_layout_padding_top(&self) -> f32
[src]
pub fn get_layout_padding_bottom(&self) -> f32
[src]
pub fn get_layout_padding_start(&self) -> f32
[src]
pub fn get_layout_padding_end(&self) -> f32
[src]
pub fn get_layout_left(&self) -> f32
[src]
pub fn get_layout_right(&self) -> f32
[src]
pub fn get_layout_top(&self) -> f32
[src]
pub fn get_layout_bottom(&self) -> f32
[src]
pub fn get_layout_border_left(&self) -> f32
[src]
pub fn get_layout_border_right(&self) -> f32
[src]
pub fn get_layout_border_top(&self) -> f32
[src]
pub fn get_layout_border_bottom(&self) -> f32
[src]
pub fn get_layout_width(&self) -> f32
[src]
pub fn get_layout_height(&self) -> f32
[src]
pub fn get_layout_direction(&self) -> Direction
[src]
pub fn is_dirty(&self) -> bool
[src]
pub fn copy_style(&self, src_node: &Node)
[src]
pub fn set_display(&mut self, display: Display)
[src]
pub fn set_measure_func(&mut self, func: MeasureFunc)
[src]
pub fn set_baseline_func(&mut self, func: BaselineFunc)
[src]
pub fn set_context(&mut self, value: Option<Context>)
[src]
pub fn get_context(node_ref: &NodeRef) -> Option<&Box<dyn Any>>
[src]
pub fn get_context_mut(node_ref: &NodeRef) -> Option<&mut Box<dyn Any>>
[src]
pub fn get_own_context(&self) -> Option<&Box<dyn Any>>
[src]
pub fn get_own_context_mut(&self) -> Option<&mut Box<dyn Any>>
[src]
pub fn drop_context(&mut self)
[src]
Trait Implementations
impl Debug for Node
[src]
impl Drop for Node
[src]
impl Eq for Node
[src]
impl Hash for Node
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Node
[src]
pub fn cmp(&self, other: &Node) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Node> for Node
[src]
impl PartialOrd<Node> for Node
[src]
pub fn partial_cmp(&self, other: &Node) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Node) -> bool
[src]
pub fn le(&self, other: &Node) -> bool
[src]
pub fn gt(&self, other: &Node) -> bool
[src]
pub fn ge(&self, other: &Node) -> bool
[src]
impl StructuralEq for Node
[src]
impl StructuralPartialEq for Node
[src]
Auto Trait Implementations
impl RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,