pub struct DrawingOptions {
pub snap_to_price: bool,
pub snap_to_time: bool,
pub snap_distance: f32,
pub magnet_mode: bool,
pub magnet_distance: f32,
pub show_handles: bool,
pub handle_size: f32,
pub handle_color: [u8; 4],
pub handle_sel_color: [u8; 4],
}Expand description
Drawing interaction options
Fields§
§snap_to_price: boolEnable snap to OHLC prices
snap_to_time: boolEnable snap to candle open/close times
snap_distance: f32Snap distance in pixels
magnet_mode: boolEnable magnet mode (snap to nearby points)
magnet_distance: f32Magnet distance in pixels
show_handles: boolShow selection handles
handle_size: f32Handle size in pixels
handle_color: [u8; 4]Handle color (RGBA)
handle_sel_color: [u8; 4]Selected handle color (RGBA)
Trait Implementations§
Source§impl Clone for DrawingOptions
impl Clone for DrawingOptions
Source§fn clone(&self) -> DrawingOptions
fn clone(&self) -> DrawingOptions
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 DrawingOptions
impl Debug for DrawingOptions
Auto Trait Implementations§
impl Freeze for DrawingOptions
impl RefUnwindSafe for DrawingOptions
impl Send for DrawingOptions
impl Sync for DrawingOptions
impl Unpin for DrawingOptions
impl UnsafeUnpin for DrawingOptions
impl UnwindSafe for DrawingOptions
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