gtkmm 4.16.0
|
A physical tool associated to a Gdk::Device. More...
#include <gdkmm/devicetool.h>
Public Types | |
enum class | Type { UNKNOWN , PEN , ERASER , BRUSH , PENCIL , AIRBRUSH , MOUSE , LENS } |
Public Member Functions | |
DeviceTool (DeviceTool && src) noexcept | |
DeviceTool & | operator= (DeviceTool && src) noexcept |
~DeviceTool () noexcept override | |
GdkDeviceTool * | gobj () |
Provides access to the underlying C GObject. | |
const GdkDeviceTool * | gobj () const |
Provides access to the underlying C GObject. | |
GdkDeviceTool * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
guint64 | get_serial () const |
Gets the serial number of this tool. | |
guint64 | get_hardware_id () const |
Gets the hardware ID of this tool, or 0 if it's not known. | |
Type | get_tool_type () const |
Gets the Gdk::DeviceTool::Type of the tool. | |
AxisFlags | get_axes () const |
Gets the axes of the tool. | |
Glib::PropertyProxy_ReadOnly< guint64 > | property_serial () const |
The serial number of the tool. | |
Glib::PropertyProxy_ReadOnly< Type > | property_tool_type () const |
The type of the tool. | |
Glib::PropertyProxy_ReadOnly< AxisFlags > | property_axes () const |
The axes of the tool. | |
Glib::PropertyProxy_ReadOnly< guint64 > | property_hardware_id () const |
The hardware ID of the tool. | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gdk::DeviceTool > | wrap (GdkDeviceTool * object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
A physical tool associated to a Gdk::Device.
|
strong |
|
noexcept |
|
overridenoexcept |
AxisFlags Gdk::DeviceTool::get_axes | ( | ) | const |
Gets the axes of the tool.
guint64 Gdk::DeviceTool::get_hardware_id | ( | ) | const |
Gets the hardware ID of this tool, or 0 if it's not known.
When non-zero, the identifier is unique for the given tool model, meaning that two identical tools will share the same hardware_id, but will have different serial numbers (see get_serial()).
This is a more concrete (and device specific) method to identify a Gdk::DeviceTool
than get_tool_type(), as a tablet may support multiple devices with the same Gdk::DeviceTool::Type
, but different hardware identifiers.
guint64 Gdk::DeviceTool::get_serial | ( | ) | const |
Gets the serial number of this tool.
This value can be used to identify a physical tool (eg. a tablet pen) across program executions.
Type Gdk::DeviceTool::get_tool_type | ( | ) | const |
Gets the Gdk::DeviceTool::Type
of the tool.
|
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.
GdkDeviceTool * Gdk::DeviceTool::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
noexcept |
Glib::PropertyProxy_ReadOnly< AxisFlags > Gdk::DeviceTool::property_axes | ( | ) | const |
The axes of the tool.
Default value: 0
Glib::PropertyProxy_ReadOnly< guint64 > Gdk::DeviceTool::property_hardware_id | ( | ) | const |
The hardware ID of the tool.
Default value: 0
Glib::PropertyProxy_ReadOnly< guint64 > Gdk::DeviceTool::property_serial | ( | ) | const |
The serial number of the tool.
Default value: 0
Glib::PropertyProxy_ReadOnly< Type > Gdk::DeviceTool::property_tool_type | ( | ) | const |
The type of the tool.
Default value: Gdk::DeviceTool::Type::UNKNOWN
|
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. |