Struct rg3d::platform::unix::x11::ffi::XButtonEvent [−]
#[repr(C)]pub struct XButtonEvent {}
Fields
type_: i32
serial: u64
send_event: i32
display: *mut _XDisplay
window: u64
root: u64
subwindow: u64
time: u64
x: i32
y: i32
x_root: i32
y_root: i32
state: u32
same_screen: i32
Trait Implementations
impl AsMut<XButtonEvent> for XEvent
impl AsMut<XButtonEvent> for XEvent
pub fn as_mut(&mut self) -> &mut XButtonEvent
pub fn as_mut(&mut self) -> &mut XButtonEvent
Performs the conversion.
impl AsRef<XButtonEvent> for XEvent
impl AsRef<XButtonEvent> for XEvent
pub fn as_ref(&self) -> &XButtonEvent
pub fn as_ref(&self) -> &XButtonEvent
Performs the conversion.
impl Clone for XButtonEvent
impl Clone for XButtonEvent
pub fn clone(&self) -> XButtonEvent
pub fn clone(&self) -> XButtonEvent
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for XButtonEvent
impl Debug for XButtonEvent
impl<'a> From<&'a XButtonEvent> for XEvent
impl<'a> From<&'a XButtonEvent> for XEvent
pub fn from(other: &'a XButtonEvent) -> XEvent
pub fn from(other: &'a XButtonEvent) -> XEvent
Performs the conversion.
impl<'a> From<&'a XEvent> for XButtonEvent
impl<'a> From<&'a XEvent> for XButtonEvent
pub fn from(xevent: &'a XEvent) -> XButtonEvent
pub fn from(xevent: &'a XEvent) -> XButtonEvent
Performs the conversion.
impl From<XButtonEvent> for XEvent
impl From<XButtonEvent> for XEvent
pub fn from(other: XButtonEvent) -> XEvent
pub fn from(other: XButtonEvent) -> XEvent
Performs the conversion.
impl From<XEvent> for XButtonEvent
impl From<XEvent> for XButtonEvent
pub fn from(xevent: XEvent) -> XButtonEvent
pub fn from(xevent: XEvent) -> XButtonEvent
Performs the conversion.
impl PartialEq<XButtonEvent> for XButtonEvent
impl PartialEq<XButtonEvent> for XButtonEvent
pub fn eq(&self, other: &XButtonEvent) -> bool
pub fn eq(&self, other: &XButtonEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &XButtonEvent) -> bool
pub fn ne(&self, other: &XButtonEvent) -> bool
This method tests for !=
.
impl Copy for XButtonEvent
impl StructuralPartialEq for XButtonEvent
Auto Trait Implementations
impl RefUnwindSafe for XButtonEvent
impl !Send for XButtonEvent
impl !Sync for XButtonEvent
impl Unpin for XButtonEvent
impl UnwindSafe for XButtonEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.