pub struct ButtonEvent {
pub phase: ButtonPhase,
pub button: MouseButton,
pub pos: Vec2,
pub clicks: Option<u32>,
pub cell: Option<(u32, u32)>,
pub line: Option<u32>,
pub byte: Option<usize>,
}Expand description
A {kind:"button"} event: a non-primary button an onButton node
claimed, captured by it from press to release.
Fields§
§phase: ButtonPhase§pos: Vec2Where the pointer is.
clicks: Option<u32>The driver’s click count, on the press only.
cell: Option<(u32, u32)>On a cells grid: the (row, col) under the pointer, clamped to
the grid.
line: Option<u32>Inside an onKey sink that draws role="line" rows: the line and
the byte in its text, as a drag carries them.
byte: Option<usize>Trait Implementations§
Source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
impl Copy for ButtonEvent
Source§impl Debug for ButtonEvent
impl Debug for ButtonEvent
Source§impl PartialEq for ButtonEvent
impl PartialEq for ButtonEvent
impl StructuralPartialEq for ButtonEvent
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnsafeUnpin for ButtonEvent
impl UnwindSafe for ButtonEvent
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