Struct dsntk_model::DmnStyle
source · pub struct DmnStyle {
pub id: String,
pub fill_color: Option<DcColor>,
pub stroke_color: Option<DcColor>,
pub font_color: Option<DcColor>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub font_italic: Option<bool>,
pub font_bold: Option<bool>,
pub font_underline: Option<bool>,
pub font_strike_through: Option<bool>,
pub label_horizontal_alignment: Option<DcAlignmentKind>,
pub label_vertical_alignment: Option<DcAlignmentKind>,
}Expand description
DmnStyle is used to keep some non-normative visual attributes such as color and font.
Fields§
§id: StringA unique identifier for this style so it can be referenced. Only styles defined in the Dmndi can be referenced by DmnDiagramElement and DmnDiagram.
fill_color: Option<DcColor>The color use to fill the shape.Does not apply to DmnEdge. Default is white.
stroke_color: Option<DcColor>The color use to draw the shape borders. Default is black.
font_color: Option<DcColor>The color use to draw the label. Default is black.
font_family: Option<String>A comma-separated list of Font Name that can be used to display the text. Default is Arial.
font_size: Option<f64>The size in points of the font to use to display the text. Default is 8 points.
font_italic: Option<bool>If the text should be displayed in Italic. Default is false.
font_bold: Option<bool>If the text should be displayed in Bold. Default is false.
font_underline: Option<bool>If the text should be underlined. Default is false.
font_strike_through: Option<bool>If the text should be stroked through. Default is false.
label_horizontal_alignment: Option<DcAlignmentKind>How text should be positioned horizontally within the Label bounds. Default depends on the DmnDiagramElement the label is attached to (see 13.5).
label_vertical_alignment: Option<DcAlignmentKind>How the text should be positioned vertically inside the Label bounds.
Default depends on the DmnDiagramElement the label is attached to (see 13.5).
Start means top and end means bottom.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmnStyle
impl RefUnwindSafe for DmnStyle
impl Send for DmnStyle
impl Sync for DmnStyle
impl Unpin for DmnStyle
impl UnwindSafe for DmnStyle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)