Struct gdk::Device
[−]
pub struct Device(_, _);
Methods
impl Device
[src]
fn get_associated_device(&self) -> Option<Device>
fn get_axis_use(&self, index_: u32) -> AxisUse
fn get_device_type(&self) -> DeviceType
fn get_display(&self) -> Display
fn get_has_cursor(&self) -> bool
fn get_key(&self, index_: u32) -> Option<(u32, ModifierType)>
fn get_mode(&self) -> InputMode
fn get_n_axes(&self) -> i32
fn get_n_keys(&self) -> i32
fn get_name(&self) -> Option<String>
fn get_position(&self) -> (Screen, i32, i32)
fn get_source(&self) -> InputSource
fn get_window_at_position(&self) -> (Option<Window>, i32, i32)
fn get_window_at_position_double(&self) -> (Option<Window>, f64, f64)
fn grab<'a, P: Into<Option<&'a Cursor>>>(
&self,
window: &Window,
grab_ownership: GrabOwnership,
owner_events: bool,
event_mask: EventMask,
cursor: P,
time_: u32
) -> GrabStatus
&self,
window: &Window,
grab_ownership: GrabOwnership,
owner_events: bool,
event_mask: EventMask,
cursor: P,
time_: u32
) -> GrabStatus
fn list_axes(&self) -> Vec<Atom>
fn list_slave_devices(&self) -> Vec<Device>
fn set_axis_use(&self, index_: u32, use_: AxisUse)
fn set_key(&self, index_: u32, keyval: u32, modifiers: ModifierType)
fn set_mode(&self, mode: InputMode) -> bool
fn ungrab(&self, time_: u32)
fn warp(&self, screen: &Screen, x: i32, y: i32)
fn get_property_device_manager(&self) -> Option<DeviceManager>
fn get_property_input_mode(&self) -> InputMode
fn set_property_input_mode(&self, input_mode: InputMode)
fn get_property_input_source(&self) -> InputSource
fn get_property_type(&self) -> DeviceType
fn grab_info_libgtk_only<P: IsA<Device>>(
display: &Display,
device: &P
) -> Option<(Window, bool)>
display: &Display,
device: &P
) -> Option<(Window, bool)>
fn connect_changed<F: Fn(&Device) + 'static>(&self, f: F) -> u64
impl Device
[src]
Trait Implementations
impl Clone for Device
fn clone(&self) -> Device
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Device
impl Hash for Device
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for Device
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Device
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.