Struct xcb::base::Event [−][src]
Event
wraps a pointer to xcb_*_event_t
this pointer will be freed when the Event
goes out of scope
Fields
ptr: *mut T
Implementations
impl<T> Event<T>
[src]
pub fn response_type(&self) -> u8
[src]
impl Event<xcb_key_press_event_t>
[src]
pub fn detail(&self) -> Keycode
[src]
The keycode (a number representing a physical key on the keyboard) of the key which was pressed.
pub fn time(&self) -> Timestamp
[src]
Time when the event was generated (in milliseconds).
pub fn root(&self) -> Window
[src]
The root window of child
.
pub fn event(&self) -> Window
[src]
pub fn child(&self) -> Window
[src]
pub fn root_x(&self) -> i16
[src]
The X coordinate of the pointer relative to the root
window at the time of
the event.
pub fn root_y(&self) -> i16
[src]
The Y coordinate of the pointer relative to the root
window at the time of
the event.
pub fn event_x(&self) -> i16
[src]
If same_screen
is true, this is the X coordinate relative to the event
window’s origin. Otherwise, event_x
will be set to zero.
pub fn event_y(&self) -> i16
[src]
If same_screen
is true, this is the Y coordinate relative to the event
window’s origin. Otherwise, event_y
will be set to zero.
pub fn state(&self) -> u16
[src]
The logical state of the pointer buttons and modifier keys just prior to the event.
pub fn same_screen(&self) -> bool
[src]
Whether the event
window is on the same screen as the root
window.
pub fn new(
response_type: u8,
detail: Keycode,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> KeyPressEvent
[src]
response_type: u8,
detail: Keycode,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> KeyPressEvent
Constructs a new KeyPressEvent
response_type
must be set to one of:
- KEY_PRESS
- KEY_RELEASE
impl Event<xcb_button_press_event_t>
[src]
pub fn detail(&self) -> Button
[src]
The keycode (a number representing a physical key on the keyboard) of the key which was pressed.
pub fn time(&self) -> Timestamp
[src]
Time when the event was generated (in milliseconds).
pub fn root(&self) -> Window
[src]
The root window of child
.
pub fn event(&self) -> Window
[src]
pub fn child(&self) -> Window
[src]
pub fn root_x(&self) -> i16
[src]
The X coordinate of the pointer relative to the root
window at the time of
the event.
pub fn root_y(&self) -> i16
[src]
The Y coordinate of the pointer relative to the root
window at the time of
the event.
pub fn event_x(&self) -> i16
[src]
If same_screen
is true, this is the X coordinate relative to the event
window’s origin. Otherwise, event_x
will be set to zero.
pub fn event_y(&self) -> i16
[src]
If same_screen
is true, this is the Y coordinate relative to the event
window’s origin. Otherwise, event_y
will be set to zero.
pub fn state(&self) -> u16
[src]
The logical state of the pointer buttons and modifier keys just prior to the event.
pub fn same_screen(&self) -> bool
[src]
Whether the event
window is on the same screen as the root
window.
pub fn new(
response_type: u8,
detail: Button,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> ButtonPressEvent
[src]
response_type: u8,
detail: Button,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> ButtonPressEvent
Constructs a new ButtonPressEvent
response_type
must be set to one of:
- BUTTON_PRESS
- BUTTON_RELEASE
impl Event<xcb_motion_notify_event_t>
[src]
pub fn detail(&self) -> u8
[src]
The keycode (a number representing a physical key on the keyboard) of the key which was pressed.
pub fn time(&self) -> Timestamp
[src]
Time when the event was generated (in milliseconds).
pub fn root(&self) -> Window
[src]
The root window of child
.
pub fn event(&self) -> Window
[src]
pub fn child(&self) -> Window
[src]
pub fn root_x(&self) -> i16
[src]
The X coordinate of the pointer relative to the root
window at the time of
the event.
pub fn root_y(&self) -> i16
[src]
The Y coordinate of the pointer relative to the root
window at the time of
the event.
pub fn event_x(&self) -> i16
[src]
If same_screen
is true, this is the X coordinate relative to the event
window’s origin. Otherwise, event_x
will be set to zero.
pub fn event_y(&self) -> i16
[src]
If same_screen
is true, this is the Y coordinate relative to the event
window’s origin. Otherwise, event_y
will be set to zero.
pub fn state(&self) -> u16
[src]
The logical state of the pointer buttons and modifier keys just prior to the event.
pub fn same_screen(&self) -> bool
[src]
Whether the event
window is on the same screen as the root
window.
pub fn new(
detail: u8,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> MotionNotifyEvent
[src]
detail: u8,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> MotionNotifyEvent
Constructs a new MotionNotifyEvent
response_type
will be set automatically to MOTION_NOTIFY
impl Event<xcb_enter_notify_event_t>
[src]
pub fn detail(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn root(&self) -> Window
[src]
The root window for the final cursor position.
pub fn event(&self) -> Window
[src]
The window on which the event was generated.
pub fn child(&self) -> Window
[src]
If the event
window has subwindows and the final pointer position is in one
of them, then child
is set to that subwindow, XCB_WINDOW_NONE
otherwise.
pub fn root_x(&self) -> i16
[src]
The pointer X coordinate relative to root
’s origin at the time of the event.
pub fn root_y(&self) -> i16
[src]
The pointer Y coordinate relative to root
’s origin at the time of the event.
pub fn event_x(&self) -> i16
[src]
If event
is on the same screen as root
, this is the pointer X coordinate
relative to the event window’s origin.
pub fn event_y(&self) -> i16
[src]
If event
is on the same screen as root
, this is the pointer Y coordinate
relative to the event window’s origin.
pub fn state(&self) -> u16
[src]
pub fn mode(&self) -> u8
[src]
pub fn same_screen_focus(&self) -> u8
[src]
pub fn new(
response_type: u8,
detail: u8,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
mode: u8,
same_screen_focus: u8
) -> EnterNotifyEvent
[src]
response_type: u8,
detail: u8,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
mode: u8,
same_screen_focus: u8
) -> EnterNotifyEvent
Constructs a new EnterNotifyEvent
response_type
must be set to one of:
- ENTER_NOTIFY
- LEAVE_NOTIFY
impl Event<xcb_focus_in_event_t>
[src]
pub fn detail(&self) -> u8
[src]
pub fn event(&self) -> Window
[src]
The window on which the focus event was generated. This is the window used by the X server to report the event.
pub fn mode(&self) -> u8
[src]
pub fn new(
response_type: u8,
detail: u8,
event: Window,
mode: u8
) -> FocusInEvent
[src]
response_type: u8,
detail: u8,
event: Window,
mode: u8
) -> FocusInEvent
Constructs a new FocusInEvent
response_type
must be set to one of:
- FOCUS_IN
- FOCUS_OUT
impl Event<xcb_keymap_notify_event_t>
[src]
pub fn keys(&self) -> &[u8]
[src]
pub fn new(keys: [u8; 31]) -> KeymapNotifyEvent
[src]
Constructs a new KeymapNotifyEvent
response_type
will be set automatically to KEYMAP_NOTIFY
impl Event<xcb_expose_event_t>
[src]
pub fn window(&self) -> Window
[src]
The exposed (damaged) window.
pub fn x(&self) -> u16
[src]
The X coordinate of the left-upper corner of the exposed rectangle, relative to
the window
’s origin.
pub fn y(&self) -> u16
[src]
The Y coordinate of the left-upper corner of the exposed rectangle, relative to
the window
’s origin.
pub fn width(&self) -> u16
[src]
The width of the exposed rectangle.
pub fn height(&self) -> u16
[src]
The height of the exposed rectangle.
pub fn count(&self) -> u16
[src]
The amount of Expose
events following this one. Simple applications that do
not want to optimize redisplay by distinguishing between subareas of its window
can just ignore all Expose events with nonzero counts and perform full
redisplays on events with zero counts.
pub fn new(
window: Window,
x: u16,
y: u16,
width: u16,
height: u16,
count: u16
) -> ExposeEvent
[src]
window: Window,
x: u16,
y: u16,
width: u16,
height: u16,
count: u16
) -> ExposeEvent
Constructs a new ExposeEvent
response_type
will be set automatically to EXPOSE
impl Event<xcb_graphics_exposure_event_t>
[src]
pub fn drawable(&self) -> Drawable
[src]
pub fn x(&self) -> u16
[src]
pub fn y(&self) -> u16
[src]
pub fn width(&self) -> u16
[src]
pub fn height(&self) -> u16
[src]
pub fn minor_opcode(&self) -> u16
[src]
pub fn count(&self) -> u16
[src]
pub fn major_opcode(&self) -> u8
[src]
pub fn new(
drawable: Drawable,
x: u16,
y: u16,
width: u16,
height: u16,
minor_opcode: u16,
count: u16,
major_opcode: u8
) -> GraphicsExposureEvent
[src]
drawable: Drawable,
x: u16,
y: u16,
width: u16,
height: u16,
minor_opcode: u16,
count: u16,
major_opcode: u8
) -> GraphicsExposureEvent
Constructs a new GraphicsExposureEvent
response_type
will be set automatically to GRAPHICS_EXPOSURE
impl Event<xcb_no_exposure_event_t>
[src]
pub fn drawable(&self) -> Drawable
[src]
pub fn minor_opcode(&self) -> u16
[src]
pub fn major_opcode(&self) -> u8
[src]
pub fn new(
drawable: Drawable,
minor_opcode: u16,
major_opcode: u8
) -> NoExposureEvent
[src]
drawable: Drawable,
minor_opcode: u16,
major_opcode: u8
) -> NoExposureEvent
Constructs a new NoExposureEvent
response_type
will be set automatically to NO_EXPOSURE
impl Event<xcb_visibility_notify_event_t>
[src]
pub fn window(&self) -> Window
[src]
pub fn state(&self) -> u8
[src]
pub fn new(window: Window, state: u8) -> VisibilityNotifyEvent
[src]
Constructs a new VisibilityNotifyEvent
response_type
will be set automatically to VISIBILITY_NOTIFY
impl Event<xcb_create_notify_event_t>
[src]
pub fn parent(&self) -> Window
[src]
pub fn window(&self) -> Window
[src]
pub fn x(&self) -> i16
[src]
pub fn y(&self) -> i16
[src]
pub fn width(&self) -> u16
[src]
pub fn height(&self) -> u16
[src]
pub fn border_width(&self) -> u16
[src]
pub fn override_redirect(&self) -> bool
[src]
pub fn new(
parent: Window,
window: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
override_redirect: bool
) -> CreateNotifyEvent
[src]
parent: Window,
window: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
override_redirect: bool
) -> CreateNotifyEvent
Constructs a new CreateNotifyEvent
response_type
will be set automatically to CREATE_NOTIFY
impl Event<xcb_destroy_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
The reconfigured window or its parent, depending on whether StructureNotify
or SubstructureNotify
was selected.
pub fn window(&self) -> Window
[src]
The window that is destroyed.
pub fn new(event: Window, window: Window) -> DestroyNotifyEvent
[src]
Constructs a new DestroyNotifyEvent
response_type
will be set automatically to DESTROY_NOTIFY
impl Event<xcb_unmap_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
The reconfigured window or its parent, depending on whether StructureNotify
or SubstructureNotify
was selected.
pub fn window(&self) -> Window
[src]
The window that was unmapped.
pub fn from_configure(&self) -> bool
[src]
Set to 1 if the event was generated as a result of a resizing of the window’s
parent when window
had a win_gravity of UnmapGravity
.
pub fn new(
event: Window,
window: Window,
from_configure: bool
) -> UnmapNotifyEvent
[src]
event: Window,
window: Window,
from_configure: bool
) -> UnmapNotifyEvent
Constructs a new UnmapNotifyEvent
response_type
will be set automatically to UNMAP_NOTIFY
impl Event<xcb_map_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
The window which was mapped or its parent, depending on whether
StructureNotify
or SubstructureNotify
was selected.
pub fn window(&self) -> Window
[src]
The window that was mapped.
pub fn override_redirect(&self) -> bool
[src]
Window managers should ignore this window if override_redirect
is 1.
pub fn new(
event: Window,
window: Window,
override_redirect: bool
) -> MapNotifyEvent
[src]
event: Window,
window: Window,
override_redirect: bool
) -> MapNotifyEvent
Constructs a new MapNotifyEvent
response_type
will be set automatically to MAP_NOTIFY
impl Event<xcb_map_request_event_t>
[src]
pub fn parent(&self) -> Window
[src]
The parent of window
.
pub fn window(&self) -> Window
[src]
The window to be mapped.
pub fn new(parent: Window, window: Window) -> MapRequestEvent
[src]
Constructs a new MapRequestEvent
response_type
will be set automatically to MAP_REQUEST
impl Event<xcb_reparent_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
pub fn window(&self) -> Window
[src]
pub fn parent(&self) -> Window
[src]
pub fn x(&self) -> i16
[src]
pub fn y(&self) -> i16
[src]
pub fn override_redirect(&self) -> bool
[src]
pub fn new(
event: Window,
window: Window,
parent: Window,
x: i16,
y: i16,
override_redirect: bool
) -> ReparentNotifyEvent
[src]
event: Window,
window: Window,
parent: Window,
x: i16,
y: i16,
override_redirect: bool
) -> ReparentNotifyEvent
Constructs a new ReparentNotifyEvent
response_type
will be set automatically to REPARENT_NOTIFY
impl Event<xcb_configure_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
The reconfigured window or its parent, depending on whether StructureNotify
or SubstructureNotify
was selected.
pub fn window(&self) -> Window
[src]
The window whose size, position, border, and/or stacking order was changed.
pub fn above_sibling(&self) -> Window
[src]
If XCB_NONE
, the window
is on the bottom of the stack with respect to
sibling windows. However, if set to a sibling window, the window
is placed on
top of this sibling window.
pub fn x(&self) -> i16
[src]
The X coordinate of the upper-left outside corner of window
, relative to the
parent window’s origin.
pub fn y(&self) -> i16
[src]
The Y coordinate of the upper-left outside corner of window
, relative to the
parent window’s origin.
pub fn width(&self) -> u16
[src]
The inside width of window
, not including the border.
pub fn height(&self) -> u16
[src]
The inside height of window
, not including the border.
pub fn border_width(&self) -> u16
[src]
The border width of window
.
pub fn override_redirect(&self) -> bool
[src]
Window managers should ignore this window if override_redirect
is 1.
pub fn new(
event: Window,
window: Window,
above_sibling: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
override_redirect: bool
) -> ConfigureNotifyEvent
[src]
event: Window,
window: Window,
above_sibling: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
override_redirect: bool
) -> ConfigureNotifyEvent
Constructs a new ConfigureNotifyEvent
response_type
will be set automatically to CONFIGURE_NOTIFY
impl Event<xcb_configure_request_event_t>
[src]
pub fn stack_mode(&self) -> u8
[src]
pub fn parent(&self) -> Window
[src]
pub fn window(&self) -> Window
[src]
pub fn sibling(&self) -> Window
[src]
pub fn x(&self) -> i16
[src]
pub fn y(&self) -> i16
[src]
pub fn width(&self) -> u16
[src]
pub fn height(&self) -> u16
[src]
pub fn border_width(&self) -> u16
[src]
pub fn value_mask(&self) -> u16
[src]
pub fn new(
stack_mode: u8,
parent: Window,
window: Window,
sibling: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
value_mask: u16
) -> ConfigureRequestEvent
[src]
stack_mode: u8,
parent: Window,
window: Window,
sibling: Window,
x: i16,
y: i16,
width: u16,
height: u16,
border_width: u16,
value_mask: u16
) -> ConfigureRequestEvent
Constructs a new ConfigureRequestEvent
response_type
will be set automatically to CONFIGURE_REQUEST
impl Event<xcb_gravity_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
pub fn window(&self) -> Window
[src]
pub fn x(&self) -> i16
[src]
pub fn y(&self) -> i16
[src]
pub fn new(event: Window, window: Window, x: i16, y: i16) -> GravityNotifyEvent
[src]
Constructs a new GravityNotifyEvent
response_type
will be set automatically to GRAVITY_NOTIFY
impl Event<xcb_resize_request_event_t>
[src]
pub fn window(&self) -> Window
[src]
pub fn width(&self) -> u16
[src]
pub fn height(&self) -> u16
[src]
pub fn new(window: Window, width: u16, height: u16) -> ResizeRequestEvent
[src]
Constructs a new ResizeRequestEvent
response_type
will be set automatically to RESIZE_REQUEST
impl Event<xcb_circulate_notify_event_t>
[src]
pub fn event(&self) -> Window
[src]
Either the restacked window or its parent, depending on whether
StructureNotify
or SubstructureNotify
was selected.
pub fn window(&self) -> Window
[src]
The restacked window.
pub fn place(&self) -> u8
[src]
pub fn new(
response_type: u8,
event: Window,
window: Window,
place: u8
) -> CirculateNotifyEvent
[src]
response_type: u8,
event: Window,
window: Window,
place: u8
) -> CirculateNotifyEvent
Constructs a new CirculateNotifyEvent
response_type
must be set to one of:
- CIRCULATE_NOTIFY
- CIRCULATE_REQUEST
impl Event<xcb_property_notify_event_t>
[src]
pub fn window(&self) -> Window
[src]
The window whose associated property was changed.
pub fn atom(&self) -> Atom
[src]
The property’s atom, to indicate which property was changed.
pub fn time(&self) -> Timestamp
[src]
A timestamp of the server time when the property was changed.
pub fn state(&self) -> u8
[src]
pub fn new(
window: Window,
atom: Atom,
time: Timestamp,
state: u8
) -> PropertyNotifyEvent
[src]
window: Window,
atom: Atom,
time: Timestamp,
state: u8
) -> PropertyNotifyEvent
Constructs a new PropertyNotifyEvent
response_type
will be set automatically to PROPERTY_NOTIFY
impl Event<xcb_selection_clear_event_t>
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn owner(&self) -> Window
[src]
pub fn selection(&self) -> Atom
[src]
pub fn new(
time: Timestamp,
owner: Window,
selection: Atom
) -> SelectionClearEvent
[src]
time: Timestamp,
owner: Window,
selection: Atom
) -> SelectionClearEvent
Constructs a new SelectionClearEvent
response_type
will be set automatically to SELECTION_CLEAR
impl Event<xcb_selection_request_event_t>
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn owner(&self) -> Window
[src]
pub fn requestor(&self) -> Window
[src]
pub fn selection(&self) -> Atom
[src]
pub fn target(&self) -> Atom
[src]
pub fn property(&self) -> Atom
[src]
pub fn new(
time: Timestamp,
owner: Window,
requestor: Window,
selection: Atom,
target: Atom,
property: Atom
) -> SelectionRequestEvent
[src]
time: Timestamp,
owner: Window,
requestor: Window,
selection: Atom,
target: Atom,
property: Atom
) -> SelectionRequestEvent
Constructs a new SelectionRequestEvent
response_type
will be set automatically to SELECTION_REQUEST
impl Event<xcb_selection_notify_event_t>
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn requestor(&self) -> Window
[src]
pub fn selection(&self) -> Atom
[src]
pub fn target(&self) -> Atom
[src]
pub fn property(&self) -> Atom
[src]
pub fn new(
time: Timestamp,
requestor: Window,
selection: Atom,
target: Atom,
property: Atom
) -> SelectionNotifyEvent
[src]
time: Timestamp,
requestor: Window,
selection: Atom,
target: Atom,
property: Atom
) -> SelectionNotifyEvent
Constructs a new SelectionNotifyEvent
response_type
will be set automatically to SELECTION_NOTIFY
impl Event<xcb_colormap_notify_event_t>
[src]
pub fn window(&self) -> Window
[src]
The window whose associated colormap is changed, installed or uninstalled.
pub fn colormap(&self) -> Colormap
[src]
The colormap which is changed, installed or uninstalled. This is XCB_NONE
when the colormap is changed by a call to FreeColormap
.
pub fn new_(&self) -> bool
[src]
pub fn state(&self) -> u8
[src]
pub fn new(
window: Window,
colormap: Colormap,
new_: bool,
state: u8
) -> ColormapNotifyEvent
[src]
window: Window,
colormap: Colormap,
new_: bool,
state: u8
) -> ColormapNotifyEvent
Constructs a new ColormapNotifyEvent
response_type
will be set automatically to COLORMAP_NOTIFY
impl Event<xcb_client_message_event_t>
[src]
pub fn format(&self) -> u8
[src]
Specifies how to interpret data
. Can be either 8, 16 or 32.
pub fn window(&self) -> Window
[src]
pub fn type_(&self) -> Atom
[src]
An atom which indicates how the data should be interpreted by the receiving client.
pub fn data<'a>(&'a self) -> &'a ClientMessageData
[src]
The data itself (20 bytes max).
pub fn new(
format: u8,
window: Window,
type_: Atom,
data: ClientMessageData
) -> ClientMessageEvent
[src]
format: u8,
window: Window,
type_: Atom,
data: ClientMessageData
) -> ClientMessageEvent
Constructs a new ClientMessageEvent
response_type
will be set automatically to CLIENT_MESSAGE
impl Event<xcb_mapping_notify_event_t>
[src]
pub fn request(&self) -> u8
[src]
pub fn first_keycode(&self) -> Keycode
[src]
The first number in the range of the altered mapping.
pub fn count(&self) -> u8
[src]
The number of keycodes altered.
pub fn new(request: u8, first_keycode: Keycode, count: u8) -> MappingNotifyEvent
[src]
Constructs a new MappingNotifyEvent
response_type
will be set automatically to MAPPING_NOTIFY
impl Event<xcb_ge_generic_event_t>
[src]
pub fn new() -> GeGenericEvent
[src]
Constructs a new GeGenericEvent
response_type
will be set automatically to GE_GENERIC
impl Event<xcb_xkb_new_keyboard_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn old_device_i_d(&self) -> u8
[src]
pub fn min_key_code(&self) -> Keycode
[src]
pub fn max_key_code(&self) -> Keycode
[src]
pub fn old_min_key_code(&self) -> Keycode
[src]
pub fn old_max_key_code(&self) -> Keycode
[src]
pub fn request_major(&self) -> u8
[src]
pub fn request_minor(&self) -> u8
[src]
pub fn changed(&self) -> u16
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
old_device_i_d: u8,
min_key_code: Keycode,
max_key_code: Keycode,
old_min_key_code: Keycode,
old_max_key_code: Keycode,
request_major: u8,
request_minor: u8,
changed: u16
) -> NewKeyboardNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
old_device_i_d: u8,
min_key_code: Keycode,
max_key_code: Keycode,
old_min_key_code: Keycode,
old_max_key_code: Keycode,
request_major: u8,
request_minor: u8,
changed: u16
) -> NewKeyboardNotifyEvent
Constructs a new NewKeyboardNotifyEvent
response_type
will be set automatically to NEW_KEYBOARD_NOTIFY
impl Event<xcb_xkb_map_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn ptr_btn_actions(&self) -> u8
[src]
pub fn changed(&self) -> u16
[src]
pub fn min_key_code(&self) -> Keycode
[src]
pub fn max_key_code(&self) -> Keycode
[src]
pub fn first_type(&self) -> u8
[src]
pub fn n_types(&self) -> u8
[src]
pub fn first_key_sym(&self) -> Keycode
[src]
pub fn n_key_syms(&self) -> u8
[src]
pub fn first_key_act(&self) -> Keycode
[src]
pub fn n_key_acts(&self) -> u8
[src]
pub fn first_key_behavior(&self) -> Keycode
[src]
pub fn n_key_behavior(&self) -> u8
[src]
pub fn first_key_explicit(&self) -> Keycode
[src]
pub fn n_key_explicit(&self) -> u8
[src]
pub fn first_mod_map_key(&self) -> Keycode
[src]
pub fn n_mod_map_keys(&self) -> u8
[src]
pub fn first_v_mod_map_key(&self) -> Keycode
[src]
pub fn n_v_mod_map_keys(&self) -> u8
[src]
pub fn virtual_mods(&self) -> u16
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
ptr_btn_actions: u8,
changed: u16,
min_key_code: Keycode,
max_key_code: Keycode,
first_type: u8,
n_types: u8,
first_key_sym: Keycode,
n_key_syms: u8,
first_key_act: Keycode,
n_key_acts: u8,
first_key_behavior: Keycode,
n_key_behavior: u8,
first_key_explicit: Keycode,
n_key_explicit: u8,
first_mod_map_key: Keycode,
n_mod_map_keys: u8,
first_v_mod_map_key: Keycode,
n_v_mod_map_keys: u8,
virtual_mods: u16
) -> MapNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
ptr_btn_actions: u8,
changed: u16,
min_key_code: Keycode,
max_key_code: Keycode,
first_type: u8,
n_types: u8,
first_key_sym: Keycode,
n_key_syms: u8,
first_key_act: Keycode,
n_key_acts: u8,
first_key_behavior: Keycode,
n_key_behavior: u8,
first_key_explicit: Keycode,
n_key_explicit: u8,
first_mod_map_key: Keycode,
n_mod_map_keys: u8,
first_v_mod_map_key: Keycode,
n_v_mod_map_keys: u8,
virtual_mods: u16
) -> MapNotifyEvent
Constructs a new MapNotifyEvent
response_type
will be set automatically to MAP_NOTIFY
impl Event<xcb_xkb_state_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn mods(&self) -> u8
[src]
pub fn base_mods(&self) -> u8
[src]
pub fn latched_mods(&self) -> u8
[src]
pub fn locked_mods(&self) -> u8
[src]
pub fn group(&self) -> u8
[src]
pub fn base_group(&self) -> i16
[src]
pub fn latched_group(&self) -> i16
[src]
pub fn locked_group(&self) -> u8
[src]
pub fn compat_state(&self) -> u8
[src]
pub fn grab_mods(&self) -> u8
[src]
pub fn compat_grab_mods(&self) -> u8
[src]
pub fn lookup_mods(&self) -> u8
[src]
pub fn compat_loockup_mods(&self) -> u8
[src]
pub fn ptr_btn_state(&self) -> u16
[src]
pub fn changed(&self) -> u16
[src]
pub fn keycode(&self) -> Keycode
[src]
pub fn event_type(&self) -> u8
[src]
pub fn request_major(&self) -> u8
[src]
pub fn request_minor(&self) -> u8
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
mods: u8,
base_mods: u8,
latched_mods: u8,
locked_mods: u8,
group: u8,
base_group: i16,
latched_group: i16,
locked_group: u8,
compat_state: u8,
grab_mods: u8,
compat_grab_mods: u8,
lookup_mods: u8,
compat_loockup_mods: u8,
ptr_btn_state: u16,
changed: u16,
keycode: Keycode,
event_type: u8,
request_major: u8,
request_minor: u8
) -> StateNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
mods: u8,
base_mods: u8,
latched_mods: u8,
locked_mods: u8,
group: u8,
base_group: i16,
latched_group: i16,
locked_group: u8,
compat_state: u8,
grab_mods: u8,
compat_grab_mods: u8,
lookup_mods: u8,
compat_loockup_mods: u8,
ptr_btn_state: u16,
changed: u16,
keycode: Keycode,
event_type: u8,
request_major: u8,
request_minor: u8
) -> StateNotifyEvent
Constructs a new StateNotifyEvent
response_type
will be set automatically to STATE_NOTIFY
impl Event<xcb_xkb_controls_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn num_groups(&self) -> u8
[src]
pub fn changed_controls(&self) -> u32
[src]
pub fn enabled_controls(&self) -> u32
[src]
pub fn enabled_control_changes(&self) -> u32
[src]
pub fn keycode(&self) -> Keycode
[src]
pub fn event_type(&self) -> u8
[src]
pub fn request_major(&self) -> u8
[src]
pub fn request_minor(&self) -> u8
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
num_groups: u8,
changed_controls: u32,
enabled_controls: u32,
enabled_control_changes: u32,
keycode: Keycode,
event_type: u8,
request_major: u8,
request_minor: u8
) -> ControlsNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
num_groups: u8,
changed_controls: u32,
enabled_controls: u32,
enabled_control_changes: u32,
keycode: Keycode,
event_type: u8,
request_major: u8,
request_minor: u8
) -> ControlsNotifyEvent
Constructs a new ControlsNotifyEvent
response_type
will be set automatically to CONTROLS_NOTIFY
impl Event<xcb_xkb_indicator_state_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn state(&self) -> u32
[src]
pub fn state_changed(&self) -> u32
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
state: u32,
state_changed: u32
) -> IndicatorStateNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
state: u32,
state_changed: u32
) -> IndicatorStateNotifyEvent
Constructs a new IndicatorStateNotifyEvent
response_type
will be set automatically to INDICATOR_STATE_NOTIFY
impl Event<xcb_xkb_indicator_map_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn state(&self) -> u32
[src]
pub fn map_changed(&self) -> u32
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
state: u32,
map_changed: u32
) -> IndicatorMapNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
state: u32,
map_changed: u32
) -> IndicatorMapNotifyEvent
Constructs a new IndicatorMapNotifyEvent
response_type
will be set automatically to INDICATOR_MAP_NOTIFY
impl Event<xcb_xkb_names_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn changed(&self) -> u16
[src]
pub fn first_type(&self) -> u8
[src]
pub fn n_types(&self) -> u8
[src]
pub fn first_level_name(&self) -> u8
[src]
pub fn n_level_names(&self) -> u8
[src]
pub fn n_radio_groups(&self) -> u8
[src]
pub fn n_key_aliases(&self) -> u8
[src]
pub fn changed_group_names(&self) -> u8
[src]
pub fn changed_virtual_mods(&self) -> u16
[src]
pub fn first_key(&self) -> Keycode
[src]
pub fn n_keys(&self) -> u8
[src]
pub fn changed_indicators(&self) -> u32
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
changed: u16,
first_type: u8,
n_types: u8,
first_level_name: u8,
n_level_names: u8,
n_radio_groups: u8,
n_key_aliases: u8,
changed_group_names: u8,
changed_virtual_mods: u16,
first_key: Keycode,
n_keys: u8,
changed_indicators: u32
) -> NamesNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
changed: u16,
first_type: u8,
n_types: u8,
first_level_name: u8,
n_level_names: u8,
n_radio_groups: u8,
n_key_aliases: u8,
changed_group_names: u8,
changed_virtual_mods: u16,
first_key: Keycode,
n_keys: u8,
changed_indicators: u32
) -> NamesNotifyEvent
Constructs a new NamesNotifyEvent
response_type
will be set automatically to NAMES_NOTIFY
impl Event<xcb_xkb_compat_map_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn changed_groups(&self) -> u8
[src]
pub fn first_s_i(&self) -> u16
[src]
pub fn n_s_i(&self) -> u16
[src]
pub fn n_total_s_i(&self) -> u16
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
changed_groups: u8,
first_s_i: u16,
n_s_i: u16,
n_total_s_i: u16
) -> CompatMapNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
changed_groups: u8,
first_s_i: u16,
n_s_i: u16,
n_total_s_i: u16
) -> CompatMapNotifyEvent
Constructs a new CompatMapNotifyEvent
response_type
will be set automatically to COMPAT_MAP_NOTIFY
impl Event<xcb_xkb_bell_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn bell_class(&self) -> u8
[src]
pub fn bell_i_d(&self) -> u8
[src]
pub fn percent(&self) -> u8
[src]
pub fn pitch(&self) -> u16
[src]
pub fn duration(&self) -> u16
[src]
pub fn name(&self) -> Atom
[src]
pub fn window(&self) -> Window
[src]
pub fn event_only(&self) -> bool
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
bell_class: u8,
bell_i_d: u8,
percent: u8,
pitch: u16,
duration: u16,
name: Atom,
window: Window,
event_only: bool
) -> BellNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
bell_class: u8,
bell_i_d: u8,
percent: u8,
pitch: u16,
duration: u16,
name: Atom,
window: Window,
event_only: bool
) -> BellNotifyEvent
Constructs a new BellNotifyEvent
response_type
will be set automatically to BELL_NOTIFY
impl Event<xcb_xkb_action_message_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn keycode(&self) -> Keycode
[src]
pub fn press(&self) -> bool
[src]
pub fn key_event_follows(&self) -> bool
[src]
pub fn mods(&self) -> u8
[src]
pub fn group(&self) -> u8
[src]
pub fn message(&self) -> &[String8]
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
keycode: Keycode,
press: bool,
key_event_follows: bool,
mods: u8,
group: u8,
message: [String8; 8]
) -> ActionMessageEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
keycode: Keycode,
press: bool,
key_event_follows: bool,
mods: u8,
group: u8,
message: [String8; 8]
) -> ActionMessageEvent
Constructs a new ActionMessageEvent
response_type
will be set automatically to ACTION_MESSAGE
impl Event<xcb_xkb_access_x_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn keycode(&self) -> Keycode
[src]
pub fn detailt(&self) -> u16
[src]
pub fn slow_keys_delay(&self) -> u16
[src]
pub fn debounce_delay(&self) -> u16
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
keycode: Keycode,
detailt: u16,
slow_keys_delay: u16,
debounce_delay: u16
) -> AccessXNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
keycode: Keycode,
detailt: u16,
slow_keys_delay: u16,
debounce_delay: u16
) -> AccessXNotifyEvent
Constructs a new AccessXNotifyEvent
response_type
will be set automatically to ACCESS_X_NOTIFY
impl Event<xcb_xkb_extension_device_notify_event_t>
[src]
pub fn xkb_type(&self) -> u8
[src]
pub fn time(&self) -> Timestamp
[src]
pub fn device_i_d(&self) -> u8
[src]
pub fn reason(&self) -> u16
[src]
pub fn led_class(&self) -> u16
[src]
pub fn led_i_d(&self) -> u16
[src]
pub fn leds_defined(&self) -> u32
[src]
pub fn led_state(&self) -> u32
[src]
pub fn first_button(&self) -> u8
[src]
pub fn n_buttons(&self) -> u8
[src]
pub fn supported(&self) -> u16
[src]
pub fn unsupported(&self) -> u16
[src]
pub fn new(
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
reason: u16,
led_class: u16,
led_i_d: u16,
leds_defined: u32,
led_state: u32,
first_button: u8,
n_buttons: u8,
supported: u16,
unsupported: u16
) -> ExtensionDeviceNotifyEvent
[src]
xkb_type: u8,
time: Timestamp,
device_i_d: u8,
reason: u16,
led_class: u16,
led_i_d: u16,
leds_defined: u32,
led_state: u32,
first_button: u8,
n_buttons: u8,
supported: u16,
unsupported: u16
) -> ExtensionDeviceNotifyEvent
Constructs a new ExtensionDeviceNotifyEvent
response_type
will be set automatically to EXTENSION_DEVICE_NOTIFY
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Event<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for Event<T>
impl<T> !Sync for Event<T>
impl<T> Unpin for Event<T>
impl<T> UnwindSafe for Event<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,