pub struct SelectionBoxInput {
pub rect: CanvasRect,
pub options: SelectionBoxOptions,
}Expand description
Renderer-neutral input for a canvas-space marquee selection gesture.
Fields§
§rect: CanvasRect§options: SelectionBoxOptionsImplementations§
Source§impl SelectionBoxInput
impl SelectionBoxInput
pub fn new(rect: CanvasRect, options: SelectionBoxOptions) -> Self
pub fn from_drag( start: CanvasPoint, current: CanvasPoint, options: SelectionBoxOptions, ) -> Self
pub fn replace(rect: CanvasRect) -> Self
pub fn replace_from_drag(start: CanvasPoint, current: CanvasPoint) -> Self
pub fn additive(rect: CanvasRect) -> Self
pub fn additive_from_drag(start: CanvasPoint, current: CanvasPoint) -> Self
Trait Implementations§
Source§impl Clone for SelectionBoxInput
impl Clone for SelectionBoxInput
Source§fn clone(&self) -> SelectionBoxInput
fn clone(&self) -> SelectionBoxInput
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 moreimpl Copy for SelectionBoxInput
Source§impl Debug for SelectionBoxInput
impl Debug for SelectionBoxInput
Source§impl<'de> Deserialize<'de> for SelectionBoxInput
impl<'de> Deserialize<'de> for SelectionBoxInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SelectionBoxInput
impl PartialEq for SelectionBoxInput
Source§fn eq(&self, other: &SelectionBoxInput) -> bool
fn eq(&self, other: &SelectionBoxInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionBoxInput
impl Serialize for SelectionBoxInput
impl StructuralPartialEq for SelectionBoxInput
Auto Trait Implementations§
impl Freeze for SelectionBoxInput
impl RefUnwindSafe for SelectionBoxInput
impl Send for SelectionBoxInput
impl Sync for SelectionBoxInput
impl Unpin for SelectionBoxInput
impl UnsafeUnpin for SelectionBoxInput
impl UnwindSafe for SelectionBoxInput
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