Packages
atspi-2
Atspi
Device
Device
add_key_grab
add_key_watcher
get_grab_by_id
get_locked_modifiers
get_modifier
grab_keyboard
map_modifier
notify_key
remove_key_grab
ungrab_keyboard
unmap_modifier
Device
Object Hierarchy:
Atspi.Device
Atspi.Device
Atspi.Device
GLib.Object
GLib.Object
GLib.Object->Atspi.Device
Description:
[
CCode
( type_id =
"atspi_device_get_type ()"
) ]
public
class
Device
:
Object
All known sub-classes:
DeviceLegacy
DeviceX11
Namespace:
Atspi
Package:
atspi-2
Content:
Creation methods:
public
Device
()
Creates a new
Device
with a specified callback function.
Methods:
public
virtual
void
add_key_grab
(
KeyDefinition
kd)
public
void
add_key_watcher
(
owned
KeyCallback
? callback)
Add a callback that will receive a notification whenever a key is pressed or released.
public
KeyDefinition
get_grab_by_id
(
uint
id)
public
virtual
uint
get_locked_modifiers
()
Returns the locked modifiers (ie, num lock, caps lock) associated with this keyboard.
public
virtual
uint
get_modifier
(
int
keycode)
Gets the modifier for a given keycode, if one exists.
public
virtual
bool
grab_keyboard
()
Attempts to grab the entire keyboard.
public
virtual
uint
map_modifier
(
int
keycode)
Maps the specified key code to a modifier so that it can be used in conjunction with other keys to create a key grab.
public
bool
notify_key
(
bool
pressed,
int
keycode,
int
keysym,
int
state,
string
text)
public
virtual
void
remove_key_grab
(
uint
id)
Removes the key grab specified by
id
.
public
virtual
void
ungrab_keyboard
()
Removes a keyboard grab added via a call to atspi_device_add_keyboard.
public
virtual
void
unmap_modifier
(
int
keycode)
Removes a mapped modifier from the given keycode.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref