#[non_exhaustive]pub struct YGuideLine {
pub align: RwSignal<AlignOver>,
pub width: RwSignal<f64>,
pub colour: RwSignal<Colour>,
}Expand description
Builds a mouse guide line. Aligned over the mouse position or nearest data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.align: RwSignal<AlignOver>Alignment of the guide line.
width: RwSignal<f64>Width of the guide line.
colour: RwSignal<Colour>Colour of the guide line.
Implementations§
Source§impl YGuideLine
impl YGuideLine
Sourcepub fn over_mouse() -> Self
pub fn over_mouse() -> Self
Creates a new guide line aligned over the mouse position.
Sourcepub fn with_colour(self, colour: impl Into<Colour>) -> Self
pub fn with_colour(self, colour: impl Into<Colour>) -> Self
Sets the colour of the guide line.
Trait Implementations§
Source§impl Clone for YGuideLine
impl Clone for YGuideLine
Source§fn clone(&self) -> YGuideLine
fn clone(&self) -> YGuideLine
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 YGuideLine
impl Debug for YGuideLine
Source§impl Default for YGuideLine
impl Default for YGuideLine
Source§impl<X: Tick, Y: Tick> From<YGuideLine> for InnerLayout<X, Y>
impl<X: Tick, Y: Tick> From<YGuideLine> for InnerLayout<X, Y>
Source§fn from(inner: YGuideLine) -> Self
fn from(inner: YGuideLine) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> From<YGuideLine> for Vec<InnerLayout<X, Y>>
impl<X: Tick, Y: Tick> From<YGuideLine> for Vec<InnerLayout<X, Y>>
Source§fn from(inner: YGuideLine) -> Self
fn from(inner: YGuideLine) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> IntoInner<X, Y> for YGuideLine
impl<X: Tick, Y: Tick> IntoInner<X, Y> for YGuideLine
Source§fn into_inner(self) -> InnerLayout<X, Y>
fn into_inner(self) -> InnerLayout<X, Y>
Create an inner layout from the type. See IntoInner for details.
Source§impl PartialEq for YGuideLine
impl PartialEq for YGuideLine
Source§fn eq(&self, other: &YGuideLine) -> bool
fn eq(&self, other: &YGuideLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YGuideLine
Auto Trait Implementations§
impl Freeze for YGuideLine
impl RefUnwindSafe for YGuideLine
impl Send for YGuideLine
impl Sync for YGuideLine
impl Unpin for YGuideLine
impl UnsafeUnpin for YGuideLine
impl UnwindSafe for YGuideLine
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
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 moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.