pub struct NodeStyle { /* private fields */ }Implementations§
Source§impl NodeStyle
impl NodeStyle
pub fn get_font(&self) -> &FontStyle
pub fn get_frame(&self) -> &FrameStyle
pub fn get_labelanchor(&self) -> LabelAnchor
pub fn get_labelfont(&self) -> &FontStyle
pub fn font(self, configure_font: impl FnOnce(FontStyle) -> FontStyle) -> Self
pub fn frame( self, configure_frame: impl FnOnce(FrameStyle) -> FrameStyle, ) -> Self
pub fn labelanchor(self, anchor: LabelAnchor) -> Self
pub fn labelfont( self, configure_labelfont: impl FnOnce(FontStyle) -> FontStyle, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeStyle
impl<'de> Deserialize<'de> for NodeStyle
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 RectStyling for NodeStyle
impl RectStyling for NodeStyle
fn get_background_color(&self) -> &str
fn get_background_opacity(&self) -> f32
fn get_border_radius(&self) -> f32
fn get_padding(&self) -> f32
fn get_margin(&self) -> f32
fn get_height(&self) -> Option<f32>
fn get_width(&self) -> Option<f32>
fn background_color<S: Display>(self, color: S) -> Self
fn background_opacity<I: Into<f64>>(self, opacity: I) -> Self
fn border_radius<I: Into<f64>>(self, radius: I) -> Self
fn padding<I: Into<f64>>(self, padding: I) -> Self
fn margin<I: Into<f64>>(self, margin: I) -> Self
Auto Trait Implementations§
impl Freeze for NodeStyle
impl RefUnwindSafe for NodeStyle
impl Send for NodeStyle
impl Sync for NodeStyle
impl Unpin for NodeStyle
impl UnwindSafe for NodeStyle
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