| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GtkSource.Objects.StyleSchemeManager
Contents
Description
No description available in the introspection data.
Synopsis
- newtype StyleSchemeManager = StyleSchemeManager (ManagedPtr StyleSchemeManager)
- class GObject o => IsStyleSchemeManager o
- toStyleSchemeManager :: (MonadIO m, IsStyleSchemeManager o) => o -> m StyleSchemeManager
- noStyleSchemeManager :: Maybe StyleSchemeManager
- styleSchemeManagerAppendSearchPath :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> Text -> m ()
- styleSchemeManagerForceRescan :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> m ()
- styleSchemeManagerGetDefault :: (HasCallStack, MonadIO m) => m StyleSchemeManager
- styleSchemeManagerGetScheme :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> Text -> m StyleScheme
- styleSchemeManagerGetSchemeIds :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> m (Maybe [Text])
- styleSchemeManagerGetSearchPath :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> m [Text]
- styleSchemeManagerNew :: (HasCallStack, MonadIO m) => m StyleSchemeManager
- styleSchemeManagerPrependSearchPath :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> Text -> m ()
- styleSchemeManagerSetSearchPath :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) => a -> Maybe [Text] -> m ()
- getStyleSchemeManagerSchemeIds :: (MonadIO m, IsStyleSchemeManager o) => o -> m (Maybe [Text])
- clearStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m ()
- constructStyleSchemeManagerSearchPath :: IsStyleSchemeManager o => [Text] -> IO (GValueConstruct o)
- getStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m [Text]
- setStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> [Text] -> m ()
Exported types
newtype StyleSchemeManager Source #
Memory-managed wrapper type.
Constructors
| StyleSchemeManager (ManagedPtr StyleSchemeManager) |
Instances
class GObject o => IsStyleSchemeManager o Source #
Type class for types which can be safely cast to StyleSchemeManager, for instance with toStyleSchemeManager.
Instances
toStyleSchemeManager :: (MonadIO m, IsStyleSchemeManager o) => o -> m StyleSchemeManager Source #
Cast to StyleSchemeManager, for types for which this is known to be safe. For general casts, use castTo.
noStyleSchemeManager :: Maybe StyleSchemeManager Source #
A convenience alias for Nothing :: Maybe StyleSchemeManager.
Methods
appendSearchPath
styleSchemeManagerAppendSearchPath Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> Text |
|
| -> m () |
Appends path to the list of directories where the manager looks for
style scheme files.
See styleSchemeManagerSetSearchPath for details.
forceRescan
styleSchemeManagerForceRescan Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> m () |
Mark any currently cached information about the available style scehems
as invalid. All the available style schemes will be reloaded next time
the manager is accessed.
getDefault
styleSchemeManagerGetDefault Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m StyleSchemeManager | Returns: a |
Returns the default StyleSchemeManager instance.
getScheme
styleSchemeManagerGetScheme Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> Text |
|
| -> m StyleScheme | Returns: a |
Looks up style scheme by id.
getSchemeIds
styleSchemeManagerGetSchemeIds Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> m (Maybe [Text]) | Returns:
a |
Returns the ids of the available style schemes.
getSearchPath
styleSchemeManagerGetSearchPath Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> m [Text] | Returns: a |
Returns the current search path for the manager.
See styleSchemeManagerSetSearchPath for details.
new
styleSchemeManagerNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m StyleSchemeManager | Returns: a new |
Creates a new style manager. If you do not need more than one style
manager then use styleSchemeManagerGetDefault instead.
prependSearchPath
styleSchemeManagerPrependSearchPath Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> Text |
|
| -> m () |
Prepends path to the list of directories where the manager looks
for style scheme files.
See styleSchemeManagerSetSearchPath for details.
setSearchPath
styleSchemeManagerSetSearchPath Source #
Arguments
| :: (HasCallStack, MonadIO m, IsStyleSchemeManager a) | |
| => a |
|
| -> Maybe [Text] | |
| -> m () |
Sets the list of directories where the manager looks for
style scheme files.
If path is Nothing, the search path is reset to default.
Properties
schemeIds
No description available in the introspection data.
getStyleSchemeManagerSchemeIds :: (MonadIO m, IsStyleSchemeManager o) => o -> m (Maybe [Text]) Source #
Get the value of the “scheme-ids” property.
When overloading is enabled, this is equivalent to
get styleSchemeManager #schemeIds
searchPath
No description available in the introspection data.
clearStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m () Source #
Set the value of the “search-path” property to Nothing.
When overloading is enabled, this is equivalent to
clear #searchPath
constructStyleSchemeManagerSearchPath :: IsStyleSchemeManager o => [Text] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “search-path” property. This is rarely needed directly, but it is used by new.
getStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> m [Text] Source #
Get the value of the “search-path” property.
When overloading is enabled, this is equivalent to
get styleSchemeManager #searchPath
setStyleSchemeManagerSearchPath :: (MonadIO m, IsStyleSchemeManager o) => o -> [Text] -> m () Source #
Set the value of the “search-path” property.
When overloading is enabled, this is equivalent to
setstyleSchemeManager [ #searchPath:=value ]