Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

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

  1. settingsGetBoolean :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Bool

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for booleans. It is a programmer error to give a key that isn't specified as having a boolean type in the schema for settings. Since: 2.26

  2. settingsGetChild :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Settings

    gi-gio GI.Gio.Objects.Settings

    Creates a child settings object which has a base path of base-path/@name, where base-path is the base path of settings. The schema for the child settings object must have been declared in the schema of settings using a <child> element. The created child settings object will inherit the Settings:delayApply mode from settings. Since: 2.26

  3. settingsGetDefaultValue :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m (Maybe GVariant)

    gi-gio GI.Gio.Objects.Settings

    Gets the "default value" of a key. This is the value that would be read if settingsReset were to be called on the key. Note that this may be a different value than returned by settingsSchemaKeyGetDefaultValue if the system administrator has provided a default value. Comparing the return values of settingsGetDefaultValue and settingsGetValue is not sufficient for determining if a value has been set because the user may have explicitly set the value to something that happens to be equal to the default. The difference here is that if the default changes in the future, the user's key will still be set. This function may be useful for adding an indication to a UI of what the default value was before the user set it. It is a programmer error to give a key that isn't contained in the schema for settings. Since: 2.40

  4. settingsGetDouble :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Double

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for doubles. It is a programmer error to give a key that isn't specified as having a 'double' type in the schema for settings. Since: 2.26

  5. settingsGetEnum :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int32

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored in settings for key and converts it to the enum value that it represents. In order to use this function the type of the value must be a string and it must be marked in the schema file as an enumerated type. It is a programmer error to give a key that isn't contained in the schema for settings or is not marked as an enumerated type. If the value stored in the configuration database is not a valid value for the enumerated type then this function will return the default value. Since: 2.26

  6. settingsGetFlags :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Word32

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored in settings for key and converts it to the flags value that it represents. In order to use this function the type of the value must be an array of strings and it must be marked in the schema file as a flags type. It is a programmer error to give a key that isn't contained in the schema for settings or is not marked as a flags type. If the value stored in the configuration database is not a valid value for the flags type then this function will return the default value. Since: 2.26

  7. settingsGetHasUnapplied :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Bool

    gi-gio GI.Gio.Objects.Settings

    Returns whether the Settings object has any unapplied changes. This can only be the case if it is in 'delayed-apply' mode. Since: 2.26

  8. settingsGetInt :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int32

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for 32-bit integers. It is a programmer error to give a key that isn't specified as having a int32 type in the schema for settings. Since: 2.26

  9. settingsGetInt64 :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int64

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for 64-bit integers. It is a programmer error to give a key that isn't specified as having a int64 type in the schema for settings. Since: 2.50

  10. settingsGetMapped :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> SettingsGetMapping -> m (Ptr ())

    gi-gio GI.Gio.Objects.Settings

    Gets the value that is stored at key in settings, subject to application-level validation/mapping. You should use this function when the application needs to perform some processing on the value of the key (for example, parsing). The mapping function performs that processing. If the function indicates that the processing was unsuccessful (due to a parse error, for example) then the mapping is tried again with another value. This allows a robust 'fall back to defaults' behaviour to be implemented somewhat automatically. The first value that is tried is the user's setting for the key. If the mapping function fails to map this value, other values may be tried in an unspecified order (system or site defaults, translated schema default values, untranslated schema default values, etc). If the mapping function fails for all possible values, one additional attempt is made: the mapping function is called with a Nothing value. If the mapping function still indicates failure at this point then the application will be aborted. The result parameter for the mapping function is pointed to a gpointer which is initially set to Nothing. The same pointer is given to each invocation of mapping. The final value of that gpointer is what is returned by this function. Nothing is valid; it is returned just as any other value would be.

Page 276 of many | Previous | Next