Package: gdk
Accessor gdk:device-vendor-id
Lambda Listgdk:device-vendor-id (object) SyntaxArgumentsDetails The accessor for the vendor-id slot of the gdk:device class returns the vendor ID of this device, or nil
if this information could not be obtained.
This ID is retrieved from the device, and is thus constant for it. This function, together with the gdk:device-product-id function, can be used to, for example, compose GSettings paths to store settings for this device. Examplesstatic GSettings * get_device_settings (GdkDevice *device) { const gchar *vendor, *product; GSettings *settings; GdkDevice *device; gchar *path; | See also |
2025-08-31