pub struct ButtonEvent { /* private fields */ }Implementations§
Source§impl ButtonEvent
impl ButtonEvent
pub fn root(&self) -> Window
pub fn subwindow(&self) -> Window
pub fn time(&self) -> Time
pub fn x(&self) -> i32
pub fn y(&self) -> i32
pub fn x_root(&self) -> u32
pub fn y_root(&self) -> u32
pub fn state(&self) -> c_uint
pub fn same_screen(&self) -> Bool
pub fn new( kind: EventType, serial: c_ulong, display: &dyn GenericDisplay, sender_window: &Window, fse: bool, root: Window, subwindow: Window, time: Time, x: i32, y: i32, x_root: u32, y_root: u32, state: c_uint, button: c_uint, same_screen: Bool, ) -> Result<Self, FlutterbugError>
Trait Implementations§
Source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
Source§fn clone(&self) -> ButtonEvent
fn clone(&self) -> ButtonEvent
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 ButtonEvent
impl Debug for ButtonEvent
Source§impl DerivesAnEvent for ButtonEvent
impl DerivesAnEvent for ButtonEvent
Source§impl DerivesEvent<XButtonEvent> for ButtonEvent
impl DerivesEvent<XButtonEvent> for ButtonEvent
Source§fn from_evstruct(ev: XButtonEvent) -> Result<Self, FlutterbugError>
fn from_evstruct(ev: XButtonEvent) -> Result<Self, FlutterbugError>
Derive this item from the native struct.
Source§fn inner(&self) -> Result<XButtonEvent, FlutterbugError>
fn inner(&self) -> Result<XButtonEvent, FlutterbugError>
Get the raw inner event.
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl !Send for ButtonEvent
impl !Sync for ButtonEvent
impl Unpin 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