#[repr(C)]pub struct CompactNodeProps {Show 36 fields
pub width: u32,
pub height: u32,
pub min_width: u32,
pub max_width: u32,
pub min_height: u32,
pub max_height: u32,
pub flex_basis: u32,
pub font_size: u32,
pub border_top_color: u32,
pub border_right_color: u32,
pub border_bottom_color: u32,
pub border_left_color: u32,
pub padding_top: i16,
pub padding_right: i16,
pub padding_bottom: i16,
pub padding_left: i16,
pub margin_top: i16,
pub margin_right: i16,
pub margin_bottom: i16,
pub margin_left: i16,
pub border_top_width: i16,
pub border_right_width: i16,
pub border_bottom_width: i16,
pub border_left_width: i16,
pub top: i16,
pub right: i16,
pub bottom: i16,
pub left: i16,
pub border_spacing_h: i16,
pub border_spacing_v: i16,
pub tab_size: i16,
pub flex_grow: u16,
pub flex_shrink: u16,
pub z_index: i16,
pub border_styles_packed: u16,
pub _pad: [u8; 2],
}Expand description
Compact numeric properties for a single node (96 bytes). All dimensions use MSB-sentinel encoding.
Fields§
§width: u32§height: u32§min_width: u32§max_width: u32§min_height: u32§max_height: u32§flex_basis: u32§font_size: u32§border_top_color: u32§border_right_color: u32§border_bottom_color: u32§border_left_color: u32§padding_top: i16§padding_right: i16§padding_bottom: i16§padding_left: i16§margin_top: i16§margin_right: i16§margin_bottom: i16§margin_left: i16§border_top_width: i16§border_right_width: i16§border_bottom_width: i16§border_left_width: i16§top: i16§right: i16§bottom: i16§left: i16§border_spacing_h: i16§border_spacing_v: i16§tab_size: i16§flex_grow: u16§flex_shrink: u16§z_index: i16§border_styles_packed: u16Border styles packed: [3:0]=top, [7:4]=right, [11:8]=bottom, [15:12]=left
_pad: [u8; 2]Trait Implementations§
Source§impl Clone for CompactNodeProps
impl Clone for CompactNodeProps
Source§fn clone(&self) -> CompactNodeProps
fn clone(&self) -> CompactNodeProps
Returns a duplicate 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 CompactNodeProps
impl Debug for CompactNodeProps
Source§impl Default for CompactNodeProps
impl Default for CompactNodeProps
Source§impl PartialEq for CompactNodeProps
impl PartialEq for CompactNodeProps
impl Copy for CompactNodeProps
impl StructuralPartialEq for CompactNodeProps
Auto Trait Implementations§
impl Freeze for CompactNodeProps
impl RefUnwindSafe for CompactNodeProps
impl Send for CompactNodeProps
impl Sync for CompactNodeProps
impl Unpin for CompactNodeProps
impl UnsafeUnpin for CompactNodeProps
impl UnwindSafe for CompactNodeProps
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