pub struct Theme {
pub name: String,
pub background: String,
pub canvas_padding: f64,
pub node_styles: HashMap<NodeType, NodeStyle>,
pub group_style: GroupStyle,
pub connection_style: ConnectionStyle,
pub font: FontConfig,
}Fields§
§name: String§background: String§canvas_padding: f64§node_styles: HashMap<NodeType, NodeStyle>§group_style: GroupStyle§connection_style: ConnectionStyle§font: FontConfigImplementations§
Source§impl Theme
impl Theme
pub fn node_style(&self, node_type: &NodeType) -> &NodeStyle
pub fn group_fill(&self, depth: usize) -> &str
pub fn group_stroke(&self, depth: usize) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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