gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Objects.ThemeManager

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ThemeManager Source #

Memory-managed wrapper type.

Constructors

ThemeManager (ManagedPtr ThemeManager) 

Instances

Instances details
Eq ThemeManager Source # 
Instance details

Defined in GI.Dazzle.Objects.ThemeManager

GObject ThemeManager Source # 
Instance details

Defined in GI.Dazzle.Objects.ThemeManager

ManagedPtrNewtype ThemeManager Source # 
Instance details

Defined in GI.Dazzle.Objects.ThemeManager

Methods

toManagedPtr :: ThemeManager -> ManagedPtr ThemeManager

TypedObject ThemeManager Source # 
Instance details

Defined in GI.Dazzle.Objects.ThemeManager

Methods

glibType :: IO GType

HasParentTypes ThemeManager Source # 
Instance details

Defined in GI.Dazzle.Objects.ThemeManager

IsGValue (Maybe ThemeManager) Source #

Convert ThemeManager to and from GValue. See toGValue and fromGValue.

Instance details

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 # 
Instance details

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

Instances details
(GObject o, IsDescendantOf ThemeManager o) => IsThemeManager o Source # 
Instance details

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

addResources

themeManagerAddResources Source #

Arguments

:: (HasCallStack, MonadIO m, IsThemeManager a) 
=> a

self: a ThemeManager

-> Text

resourcePath: A path to a GResources directory

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

self: a ThemeManager

-> Text

resourcePath: A previously registered resources path

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