pub struct DynamicStyleSpec { /* private fields */ }Expand description
Serializable style overrides attached to a DynamicNodeSpec.
Implementations§
Source§impl DynamicStyleSpec
Style accessor and Style conversion helpers for DynamicStyleSpec.
impl DynamicStyleSpec
Style accessor and Style conversion helpers for DynamicStyleSpec.
Sourcepub fn padding_px(&self) -> Option<f32>
pub fn padding_px(&self) -> Option<f32>
Sourcepub fn font_size_px(&self) -> Option<f32>
pub fn font_size_px(&self) -> Option<f32>
Sourcepub fn background_hex_value(&self) -> Option<u32>
pub fn background_hex_value(&self) -> Option<u32>
Sourcepub fn color_hex_value(&self) -> Option<u32>
pub fn color_hex_value(&self) -> Option<u32>
Sourcepub fn border_width_px(&self) -> Option<f32>
pub fn border_width_px(&self) -> Option<f32>
Sourcepub fn border_hex_value(&self) -> Option<u32>
pub fn border_hex_value(&self) -> Option<u32>
Source§impl DynamicStyleSpec
impl DynamicStyleSpec
pub fn get_mut_width(&mut self) -> &mut Option<f32>
pub fn set_width(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_height(&mut self) -> &mut Option<f32>
pub fn set_height(&mut self, val: Option<f32>) -> &mut Self
pub fn get_full_width(&self) -> bool
pub fn get_mut_full_width(&mut self) -> &mut bool
pub fn set_full_width(&mut self, val: bool) -> &mut Self
pub fn get_mut_padding(&mut self) -> &mut Option<f32>
pub fn set_padding(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_gap(&mut self) -> &mut Option<f32>
pub fn set_gap(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_radius(&mut self) -> &mut Option<f32>
pub fn set_radius(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_font_size(&mut self) -> &mut Option<f32>
pub fn set_font_size(&mut self, val: Option<f32>) -> &mut Self
pub fn get_bold(&self) -> bool
pub fn get_mut_bold(&mut self) -> &mut bool
pub fn set_bold(&mut self, val: bool) -> &mut Self
pub fn get_mut_background_hex(&mut self) -> &mut Option<u32>
pub fn set_background_hex(&mut self, val: Option<u32>) -> &mut Self
pub fn get_mut_color_hex(&mut self) -> &mut Option<u32>
pub fn set_color_hex(&mut self, val: Option<u32>) -> &mut Self
pub fn get_mut_border_width(&mut self) -> &mut Option<f32>
pub fn set_border_width(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_border_hex(&mut self) -> &mut Option<u32>
pub fn set_border_hex(&mut self, val: Option<u32>) -> &mut Self
pub fn get_columns(&self) -> u16
pub fn get_mut_columns(&mut self) -> &mut u16
pub fn set_columns(&mut self, val: u16) -> &mut Self
pub fn get_flex_grow(&self) -> f32
pub fn get_mut_flex_grow(&mut self) -> &mut f32
pub fn set_flex_grow(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for DynamicStyleSpec
impl Clone for DynamicStyleSpec
impl Copy for DynamicStyleSpec
Source§impl Debug for DynamicStyleSpec
impl Debug for DynamicStyleSpec
Source§impl Default for DynamicStyleSpec
impl Default for DynamicStyleSpec
Source§impl<'de> Deserialize<'de> for DynamicStyleSpecwhere
DynamicStyleSpec: Default,
impl<'de> Deserialize<'de> for DynamicStyleSpecwhere
DynamicStyleSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DynamicStyleSpec
impl PartialEq for DynamicStyleSpec
Source§impl Serialize for DynamicStyleSpec
impl Serialize for DynamicStyleSpec
impl StructuralPartialEq for DynamicStyleSpec
Auto Trait Implementations§
impl Forget for DynamicStyleSpec
impl Freeze for DynamicStyleSpec
impl Move for DynamicStyleSpec
impl RefUnwindSafe for DynamicStyleSpec
impl Send for DynamicStyleSpec
impl Sync for DynamicStyleSpec
impl Unpin for DynamicStyleSpec
impl UnsafeUnpin for DynamicStyleSpec
impl UnwindSafe for DynamicStyleSpec
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