|
gtkmm
4.4.0
|
A Gdk::Seat object represents a collection of input devices that belong to a user. More...
#include <gdkmm/seat.h>
Inherits Object.
Public Types | |
| enum | Capabilities { Capabilities::NONE = 0x0, Capabilities::POINTER = 1 << 0, Capabilities::TOUCH = 1 << 1, Capabilities::TABLET_STYLUS = 1 << 2, Capabilities::KEYBOARD = 1 << 3, Capabilities::TABLET_PAD = 1 << 4, Capabilities::ALL_POINTING = 0x7, Capabilities::ALL = 0xF } |
| Flags describing the seat capabilities. More... | |
Public Member Functions | |
| Seat (Seat&& src) noexcept | |
| Seat& | operator= (Seat&& src) noexcept |
| ~Seat () noexcept override | |
| GdkSeat* | gobj () |
| Provides access to the underlying C GObject. More... | |
| const GdkSeat* | gobj () const |
| Provides access to the underlying C GObject. More... | |
| GdkSeat* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
| Glib::RefPtr< Display > | get_display () |
Returns the GdkDisplay this seat belongs to. More... | |
| Glib::RefPtr< const Display > | get_display () const |
Returns the GdkDisplay this seat belongs to. More... | |
| Capabilities | get_capabilities () const |
Returns the capabilities this GdkSeat currently has. More... | |
| std::vector< Glib::RefPtr< Device > > | get_devices (Capabilities capabilities) |
| Returns the devices that match the given capabilities. More... | |
| std::vector< Glib::RefPtr< const Device > > | get_devices (Capabilities capabilities) const |
| Returns the devices that match the given capabilities. More... | |
| std::vector< Glib::RefPtr< DeviceTool > > | get_tools () |
Returns all GdkDeviceTools that are known to the application. More... | |
| std::vector< Glib::RefPtr< const DeviceTool > > | get_tools () const |
Returns all GdkDeviceTools that are known to the application. More... | |
| Glib::RefPtr< Device > | get_pointer () |
| Returns the device that routes pointer events. More... | |
| Glib::RefPtr< const Device > | get_pointer () const |
| Returns the device that routes pointer events. More... | |
| Glib::RefPtr< Device > | get_keyboard () |
| Returns the device that routes keyboard events. More... | |
| Glib::RefPtr< const Device > | get_keyboard () const |
| Returns the device that routes keyboard events. More... | |
| Glib::SignalProxy< void(const Glib::RefPtr< Device >&)> | signal_device_added () |
| Glib::SignalProxy< void(const Glib::RefPtr< Device >&)> | signal_device_removed () |
| Glib::SignalProxy< void(const Glib::RefPtr< DeviceTool >&)> | signal_tool_added () |
| Glib::SignalProxy< void(const Glib::RefPtr< DeviceTool >&)> | signal_tool_removed () |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Display > > | property_display () const |
GdkDisplay of this seat. More... | |
Static Public Member Functions | |
| static GType | get_type () |
| Get the GType for this class, for use with the underlying GObject type system. More... | |
Protected Member Functions | |
| Seat () | |
Related Functions | |
(Note that these are not member functions.) | |
| Glib::RefPtr< Gdk::Seat > | wrap (GdkSeat* object, bool take_copy=false) |
| A Glib::wrap() method for this object. More... | |
A Gdk::Seat object represents a collection of input devices that belong to a user.
|
noexcept |
|
overridenoexcept |
|
protected |
| Capabilities Gdk::Seat::get_capabilities | ( | ) | const |
Returns the capabilities this GdkSeat currently has.
| std::vector<Glib::RefPtr<Device> > Gdk::Seat::get_devices | ( | Capabilities | capabilities | ) |
Returns the devices that match the given capabilities.
| capabilities | Capabilities to get devices for. |
GdkDevices. | std::vector<Glib::RefPtr<const Device> > Gdk::Seat::get_devices | ( | Capabilities | capabilities | ) | const |
Returns the devices that match the given capabilities.
| capabilities | Capabilities to get devices for. |
GdkDevices. | Glib::RefPtr<Display> Gdk::Seat::get_display | ( | ) |
Returns the GdkDisplay this seat belongs to.
GdkDisplay. This object is owned by GTK and must not be freed. | Glib::RefPtr<const Display> Gdk::Seat::get_display | ( | ) | const |
Returns the GdkDisplay this seat belongs to.
GdkDisplay. This object is owned by GTK and must not be freed. | Glib::RefPtr<Device> Gdk::Seat::get_keyboard | ( | ) |
Returns the device that routes keyboard events.
GdkDevice with keyboard capabilities. This object is owned by GTK and must not be freed. | Glib::RefPtr<const Device> Gdk::Seat::get_keyboard | ( | ) | const |
Returns the device that routes keyboard events.
GdkDevice with keyboard capabilities. This object is owned by GTK and must not be freed. | Glib::RefPtr<Device> Gdk::Seat::get_pointer | ( | ) |
Returns the device that routes pointer events.
GdkDevice with pointer capabilities. This object is owned by GTK and must not be freed. | Glib::RefPtr<const Device> Gdk::Seat::get_pointer | ( | ) | const |
Returns the device that routes pointer events.
GdkDevice with pointer capabilities. This object is owned by GTK and must not be freed. | std::vector<Glib::RefPtr<DeviceTool> > Gdk::Seat::get_tools | ( | ) |
Returns all GdkDeviceTools that are known to the application.
| std::vector<Glib::RefPtr<const DeviceTool> > Gdk::Seat::get_tools | ( | ) | const |
Returns all GdkDeviceTools that are known to the application.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
| GdkSeat* Gdk::Seat::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Display> > Gdk::Seat::property_display | ( | ) | const |
GdkDisplay of this seat.
| Glib::SignalProxy<void(const Glib::RefPtr<Device>&)> Gdk::Seat::signal_device_added | ( | ) |
void on_my_device_added(const Glib::RefPtr<Device>& device)Flags: Run Last
Emitted when a new input device is related to this seat.
| device | The newly added GdkDevice. |
| Glib::SignalProxy<void(const Glib::RefPtr<Device>&)> Gdk::Seat::signal_device_removed | ( | ) |
void on_my_device_removed(const Glib::RefPtr<Device>& device)Flags: Run Last
Emitted when an input device is removed (e.g. unplugged).
| device | The just removed GdkDevice. |
| Glib::SignalProxy<void(const Glib::RefPtr<DeviceTool>&)> Gdk::Seat::signal_tool_added | ( | ) |
void on_my_tool_added(const Glib::RefPtr<DeviceTool>& device)Flags: Run Last
Emitted whenever a new tool is made known to the seat.
The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the [signal Gdk.Device::tool-changed] signal accordingly.
A same tool may be used by several devices.
| device | The new GdkDeviceTool known to the seat. |
| Glib::SignalProxy<void(const Glib::RefPtr<DeviceTool>&)> Gdk::Seat::signal_tool_removed | ( | ) |
void on_my_tool_removed(const Glib::RefPtr<DeviceTool>& device)Flags: Run Last
Emitted whenever a tool is no longer known to this seat.
| device | The just removed GdkDeviceTool. |
|
related |
A Glib::wrap() method for this object.
| object | The C instance. |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
1.8.10