Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Dazzle.Objects.ThemeManager
Description
No description available in the introspection data.
Synopsis
- newtype ThemeManager = ThemeManager (ManagedPtr ThemeManager)
- class (GObject o, IsDescendantOf ThemeManager o) => IsThemeManager o
- toThemeManager :: (MonadIO m, IsThemeManager o) => o -> m ThemeManager
- themeManagerAddResources :: (HasCallStack, MonadIO m, IsThemeManager a) => a -> Text -> m ()
- themeManagerNew :: (HasCallStack, MonadIO m) => m ThemeManager
- themeManagerRemoveResources :: (HasCallStack, MonadIO m, IsThemeManager a) => a -> Text -> m ()
Exported types
newtype ThemeManager Source #
Memory-managed wrapper type.
Constructors
ThemeManager (ManagedPtr ThemeManager) |
Instances
Eq ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager | |
GObject ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager | |
ManagedPtrNewtype ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager Methods toManagedPtr :: ThemeManager -> ManagedPtr ThemeManager | |
TypedObject ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager | |
HasParentTypes ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager | |
IsGValue (Maybe ThemeManager) Source # | Convert |
Defined in GI.Dazzle.Objects.ThemeManager Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ThemeManager -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ThemeManager) | |
type ParentTypes ThemeManager Source # | |
Defined in GI.Dazzle.Objects.ThemeManager type ParentTypes ThemeManager = '[Object] |
class (GObject o, IsDescendantOf ThemeManager o) => IsThemeManager o Source #
Type class for types which can be safely cast to ThemeManager
, for instance with toThemeManager
.
Instances
(GObject o, IsDescendantOf ThemeManager o) => IsThemeManager o Source # | |
Defined in GI.Dazzle.Objects.ThemeManager |
toThemeManager :: (MonadIO m, IsThemeManager o) => o -> m ThemeManager Source #
Cast to ThemeManager
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addResources, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, removeResources, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
addResources
themeManagerAddResources Source #
Arguments
:: (HasCallStack, MonadIO m, IsThemeManager a) | |
=> a |
|
-> Text |
|
-> m () |
This will automatically register resources found within resourcePath
.
If resourcePath
starts with "resource://", embedded GResources
will be
used to locate the theme files. Otherwise, resourcePath
is expected to be
a path on disk that may or may not exist.
If the resourcePath
contains a directory named "themes", that directory
will be traversed for files matching the theme name and variant. For
example, if using the Adwaita theme, "themes/Adwaita.css" will be loaded. If
the dark variant is being used, "themes/Adwaita-dark.css" will be loaeded. If
no matching theme file is located, "themes/shared.css" will be loaded.
When the current theme changes, the CSS will be reloaded to adapt.
The "icons" sub-directory will be used to locate icon themes.
new
themeManagerNew :: (HasCallStack, MonadIO m) => m ThemeManager Source #
No description available in the introspection data.
removeResources
themeManagerRemoveResources Source #
Arguments
:: (HasCallStack, MonadIO m, IsThemeManager a) | |
=> a |
|
-> Text |
|
-> m () |
This removes the CSS providers that were registered using resourcePath
.
You must have previously called themeManagerAddResources
for
this function to do anything.
Since icons cannot be unloaded, previously loaded icons will continue to be available even after calling this function.