#[non_exhaustive]pub struct XGuideLine {
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 XGuideLine
impl XGuideLine
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 XGuideLine
impl Clone for XGuideLine
Source§fn clone(&self) -> XGuideLine
fn clone(&self) -> XGuideLine
Returns a duplicate of the value. Read more
1.0.0 · 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 XGuideLine
impl Debug for XGuideLine
Source§impl Default for XGuideLine
impl Default for XGuideLine
Source§impl<X: Tick, Y: Tick> From<XGuideLine> for InnerLayout<X, Y>
impl<X: Tick, Y: Tick> From<XGuideLine> for InnerLayout<X, Y>
Source§fn from(inner: XGuideLine) -> Self
fn from(inner: XGuideLine) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> From<XGuideLine> for Vec<InnerLayout<X, Y>>
impl<X: Tick, Y: Tick> From<XGuideLine> for Vec<InnerLayout<X, Y>>
Source§fn from(inner: XGuideLine) -> Self
fn from(inner: XGuideLine) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> IntoInner<X, Y> for XGuideLine
impl<X: Tick, Y: Tick> IntoInner<X, Y> for XGuideLine
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 XGuideLine
impl PartialEq for XGuideLine
impl StructuralPartialEq for XGuideLine
Auto Trait Implementations§
impl Freeze for XGuideLine
impl RefUnwindSafe for XGuideLine
impl Send for XGuideLine
impl Sync for XGuideLine
impl Unpin for XGuideLine
impl UnwindSafe for XGuideLine
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>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
Marker: ?Sized,
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>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
Marker: ?Sized,
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.