pub struct DrawingProperties {
pub color: Color32,
pub line_width: f32,
pub line_style: LineStyle,
pub transparency: u8,
pub fill_color: Option<Color32>,
pub fill_enabled: bool,
pub extend_left: bool,
pub extend_right: bool,
pub show_price_labels: bool,
pub show_coordinates: bool,
}Expand description
Expandable properties for drawings
These are shown when a drawing item is expanded in the tree.
Fields§
§color: Color32Primary color
line_width: f32Line width (1-5 pixels)
line_style: LineStyleLine style
transparency: u8Transparency (0-100%)
fill_color: Option<Color32>Fill color (for shapes)
fill_enabled: boolWhether fill is enabled
extend_left: boolExtend line to left
extend_right: boolExtend line to right
show_price_labels: boolShow price labels
show_coordinates: boolShow coordinates
Trait Implementations§
Source§impl Clone for DrawingProperties
impl Clone for DrawingProperties
Source§fn clone(&self) -> DrawingProperties
fn clone(&self) -> DrawingProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DrawingProperties
impl Debug for DrawingProperties
Source§impl Default for DrawingProperties
impl Default for DrawingProperties
Source§impl PartialEq for DrawingProperties
impl PartialEq for DrawingProperties
impl StructuralPartialEq for DrawingProperties
Auto Trait Implementations§
impl Freeze for DrawingProperties
impl RefUnwindSafe for DrawingProperties
impl Send for DrawingProperties
impl Sync for DrawingProperties
impl Unpin for DrawingProperties
impl UnsafeUnpin for DrawingProperties
impl UnwindSafe for DrawingProperties
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more