Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
settingsGetDouble :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Doublegi-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
settingsGetEnum :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int32gi-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
settingsGetFlags :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Word32gi-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
settingsGetHasUnapplied :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Boolgi-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
settingsGetInt :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int32gi-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
settingsGetInt64 :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Int64gi-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
-
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.
settingsGetRange :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m GVariantgi-gio GI.Gio.Objects.Settings Deprecated: (Since version 2.40)Use settingsSchemaKeyGetRange instead.
settingsGetString :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Textgi-gio GI.Gio.Objects.Settings Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for strings. It is a programmer error to give a key that isn't specified as having a string type in the schema for settings. Since: 2.26
settingsGetStrv :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m [Text]gi-gio GI.Gio.Objects.Settings A convenience variant of g_settings_get() for string arrays. It is a programmer error to give a key that isn't specified as having an array of strings type in the schema for settings. Since: 2.26