Struct native_windows_gui::constants::Pen
[−]
[src]
pub struct Pen { pub start_cap: CapStyle, pub end_cap: CapStyle, pub dash_cap: CapStyle, pub line_join: LineJoin, pub miter_limit: f32, pub dash_style: DashStyle, pub dash_offset: f32, }
Describe how lines should be painted. Used when painting in a canvas
Members:
• start_cap
: The cap applied to the start of all the open figures in a stroked geometry.
• end_cap
: The cap applied to the end of all the open figures in a stroked geometry.
• dash_cap
: The shape at either end of each dash segment.
• line_join
: A value that describes how segments are joined. This value is ignored for a vertex if the segment flags specify that the segment should have a smooth join.
• miter_limit
: The limit of the thickness of the join on a mitered corner. This value is always treated as though it is greater than or equal to 1.0f.
• dash_style
: A value that specifies whether the stroke has a dash pattern and, if so, the dash style.
• dash_offset
: A value that specifies an offset in the dash sequence. A positive dash offset value shifts the dash pattern, in units of stroke width,
toward the start of the stroked geometry. A negative dash offset value shifts the dash pattern, in units of stroke width, toward the end of the stroked geometry.
Fields
start_cap: CapStyle
end_cap: CapStyle
dash_cap: CapStyle
line_join: LineJoin
miter_limit: f32
dash_style: DashStyle
dash_offset: f32
Trait Implementations
impl Clone for Pen
[src]
fn clone(&self) -> Pen
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more