package Device_List is new Generic_List (Gdk.Device.Gdk_Device);
package Gdk_Device_Type_Properties is new Generic_Internal_Discrete_Property (Gdk_Device_Type);
type Gdk_Device_Record is new GObject_Record with null record;
type Gdk_Device is access all Gdk_Device_Record'Class;
type Gdk_Device_Type is ( Gdk_Device_Type_Master, Gdk_Device_Type_Slave, Gdk_Device_Type_Floating);
type Property_Gdk_Device_Type is new Gdk_Device_Type_Properties.Property;
Associated_Device_Property : constant Glib.Properties.Property_Boxed;
Device_Manager_Property : constant Glib.Properties.Property_Boxed;
Display_Property : constant Glib.Properties.Property_Boxed;
Has_Cursor_Property : constant Glib.Properties.Property_Boolean;
Input_Mode_Property : constant Glib.Properties.Property_Boxed;
Input_Source_Property : constant Glib.Properties.Property_Boxed;
N_Axes_Property : constant Glib.Properties.Property_Uint;
Name_Property : constant Glib.Properties.Property_String;
The_Type_Property : constant Glib.Properties.Property_Boxed;
Signal_Changed : constant Glib.Signal_Name := "changed";
function Convert
| ( | R | : Gdk.Device.Gdk_Device) return System.Address; |
function Convert
| ( | R | : System.Address) return Gdk.Device.Gdk_Device; |
function Get_Type return Glib.GType;
function Get_Associated_Device
| ( | Self | : not null access Gdk_Device_Record) return Gdk_Device; |
function Get_Axis_Use
| ( | Self | : not null access Gdk_Device_Record; |
| Index | : Guint) return Gdk_Axis_Use; |
procedure Set_Axis_Use
| ( | Self | : not null access Gdk_Device_Record; |
| Index | : Guint; | |
| GUse | : Gdk_Axis_Use); |
function Get_Device_Type
| ( | Self | : not null access Gdk_Device_Record) return Gdk_Device_Type; |
function Get_Display
| ( | Self | : not null access Gdk_Device_Record) return Gdk.Display.Gdk_Display; |
function Get_Has_Cursor
| ( | Self | : not null access Gdk_Device_Record) return Boolean; |
function Get_Mode
| ( | Self | : not null access Gdk_Device_Record) return Gdk_Input_Mode; |
function Set_Mode
| ( | Self | : not null access Gdk_Device_Record; |
| Mode | : Gdk_Input_Mode) return Boolean; |
function Get_N_Axes
| ( | Self | : not null access Gdk_Device_Record) return Gint; |
function Get_N_Keys
| ( | Self | : not null access Gdk_Device_Record) return Gint; |
function Get_Name
| ( | Self | : not null access Gdk_Device_Record) return UTF8_String; |
function Get_Source
| ( | Self | : not null access Gdk_Device_Record) return Gdk_Input_Source; |
procedure Get_State
| ( | Self | : not null access Gdk_Device_Record; |
| Window | : Gdk.Gdk_Window; | |
| Axes | : in out Gdouble; | |
| Mask | : in out Gdk.Types.Gdk_Modifier_Type); |
function Grab
| ( | Self | : not null access Gdk_Device_Record; |
| Window | : Gdk.Gdk_Window; | |
| Grab_Ownership | : Gdk_Grab_Ownership; | |
| Owner_Events | : Boolean; | |
| Event_Mask | : Gdk.Event.Gdk_Event_Mask; | |
| Cursor | : Gdk.Gdk_Cursor; | |
| Time | : Guint32) return Gdk_Grab_Status; |
procedure Set_Key
| ( | Self | : not null access Gdk_Device_Record; |
| Index | : Guint; | |
| Keyval | : Guint; | |
| Modifiers | : Gdk.Types.Gdk_Modifier_Type); |
procedure Ungrab
| ( | Self | : not null access Gdk_Device_Record; |
| Time | : Guint32); |
procedure Warp
| ( | Self | : not null access Gdk_Device_Record; |
| Screen | : not null access Gdk.Screen.Gdk_Screen_Record'Class; | |
| X | : Gint; | |
| Y | : Gint); |
procedure Get_Window_At_Position
| ( | Self | : not null access Gdk_Device_Record; |
| Win_X | : out Gint; | |
| Win_Y | : out Gint; | |
| Window | : out Gdk.Gdk_Window); |
procedure Set_Device
| ( | Event | : Gdk.Event.Gdk_Event; |
| Device | : not null access Gdk_Device_Record); |
procedure Set_Source_Device
| ( | Event | : Gdk.Event.Gdk_Event; |
| Device | : not null access Gdk_Device_Record); |
The Gdk.Device.Gdk_Device object represents a single input device, such as a keyboard, a mouse, a touchpad, etc.
See the Gdk.Device_Manager.Gdk_Device_Manager documentation for more information about the various kinds of master and slave devices, and their relationships.