Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setTextSelectionEndObject :: MonadIO m => TextSelection -> Ptr Object -> m ()gi-atk GI.Atk.Structs.TextSelection Set the value of the “end_object” field. When overloading is enabled, this is equivalent to
set textSelection [ #endObject := value ]
setTextSelectionEndOffset :: MonadIO m => TextSelection -> Int32 -> m ()gi-atk GI.Atk.Structs.TextSelection Set the value of the “end_offset” field. When overloading is enabled, this is equivalent to
set textSelection [ #endOffset := value ]
pattern
KEY_VendorHome :: Word32gi-gdk3 GI.Gdk.Constants No description available in the introspection data.
constructDeviceVendorId :: (IsDevice o, MonadIO m) => Text -> m (GValueConstruct o)gi-gdk3 GI.Gdk.Objects.Device Construct a GValueConstruct with valid value for the “vendor-id” property. This is rarely needed directly, but it is used by new.
deviceGetVendorId :: (HasCallStack, MonadIO m, IsDevice a) => a -> m (Maybe Text)gi-gdk3 GI.Gdk.Objects.Device Returns the vendor ID of this device, or Nothing if this information couldn't be obtained. This ID is retrieved from the device, and is thus constant for it. This function, together with deviceGetProductId, can be used to eg. compose Settings paths to store settings for this device.
C code
static GSettings * get_device_settings (GdkDevice *device) { const gchar *vendor, *product; GSettings *settings; GdkDevice *device; gchar *path; vendor = gdk_device_get_vendor_id (device); product = gdk_device_get_product_id (device); path = g_strdup_printf ("/org/example/app/devices/%s:%s/", vendor, product); settings = g_settings_new_with_path (DEVICE_SCHEMA, path); g_free (path); return settings; }
Since: 3.16getDeviceVendorId :: (MonadIO m, IsDevice o) => o -> m (Maybe Text)gi-gdk3 GI.Gdk.Objects.Device Get the value of the “vendor-id” property. When overloading is enabled, this is equivalent to
get device #vendorId
pattern
KEY_VendorHome :: Word32gi-gdk4 GI.Gdk.Constants No description available in the introspection data.
constructDeviceVendorId :: (IsDevice o, MonadIO m) => Text -> m (GValueConstruct o)gi-gdk4 GI.Gdk.Objects.Device Construct a GValueConstruct with valid value for the “vendor-id” property. This is rarely needed directly, but it is used by new.
deviceGetVendorId :: (HasCallStack, MonadIO m, IsDevice a) => a -> m (Maybe Text)gi-gdk4 GI.Gdk.Objects.Device Returns the vendor ID of this device. This ID is retrieved from the device, and does not change. This function, together with deviceGetProductId, can be used to eg. compose GSettings paths to store settings for this device.
c code
static GSettings * get_device_settings (GdkDevice *device) { const char *vendor, *product; GSettings *settings; GdkDevice *device; char *path; vendor = gdk_device_get_vendor_id (device); product = gdk_device_get_product_id (device); path = g_strdup_printf ("/org/example/app/devices/%s:%s/", vendor, product); settings = g_settings_new_with_path (DEVICE_SCHEMA, path); g_free (path); return settings; }
getDeviceVendorId :: (MonadIO m, IsDevice o) => o -> m (Maybe Text)gi-gdk4 GI.Gdk.Objects.Device Get the value of the “vendor-id” property. When overloading is enabled, this is equivalent to
get device #vendorId