Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. 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.

  2. deviceGetProductId :: (HasCallStack, MonadIO m, IsDevice a) => a -> m (Maybe Text)

    gi-gdk3 GI.Gdk.Objects.Device

    Returns the product 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. See deviceGetVendorId for more information. Since: 3.16

  3. 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.16

  4. getDeviceProductId :: (MonadIO m, IsDevice o) => o -> m (Maybe Text)

    gi-gdk3 GI.Gdk.Objects.Device

    Get the value of the “product-id” property. When overloading is enabled, this is equivalent to

    get device #productId
    

  5. getDeviceVendorId :: (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
    

  6. constructDeviceToolHardwareId :: (IsDeviceTool o, MonadIO m) => Word64 -> m (GValueConstruct o)

    gi-gdk3 GI.Gdk.Objects.DeviceTool

    Construct a GValueConstruct with valid value for the “hardware-id” property. This is rarely needed directly, but it is used by new.

  7. deviceToolGetHardwareId :: (HasCallStack, MonadIO m, IsDeviceTool a) => a -> m Word64

    gi-gdk3 GI.Gdk.Objects.DeviceTool

    Gets the hardware ID of this tool, or 0 if it's not known. When non-zero, the identificator is unique for the given tool model, meaning that two identical tools will share the same hardwareId, but will have different serial numbers (see deviceToolGetSerial). This is a more concrete (and device specific) method to identify a DeviceTool than deviceToolGetToolType, as a tablet may support multiple devices with the same DeviceToolType, but having different hardware identificators. Since: 3.22

  8. getDeviceToolHardwareId :: (MonadIO m, IsDeviceTool o) => o -> m Word64

    gi-gdk3 GI.Gdk.Objects.DeviceTool

    Get the value of the “hardware-id” property. When overloading is enabled, this is equivalent to

    get deviceTool #hardwareId
    

  9. drawingContextIsValid :: (HasCallStack, MonadIO m, IsDrawingContext a) => a -> m Bool

    gi-gdk3 GI.Gdk.Objects.DrawingContext

    Checks whether the given DrawingContext is valid. Since: 3.22

  10. keymapHaveBidiLayouts :: (HasCallStack, MonadIO m, IsKeymap a) => a -> m Bool

    gi-gdk3 GI.Gdk.Objects.Keymap

    Determines if keyboard layouts for both right-to-left and left-to-right languages are in use. Since: 2.12

Page 1305 of many | Previous | Next