Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Text.Font.Choose.Config
Description
Load system fonts configuration.
Synopsis
- type Config = ForeignPtr Config'
- fini :: IO ()
- version :: Int
- initLoadConfig :: IO Config
- initLoadConfigAndFonts :: IO Config
- initFonts :: IO ()
- reinit :: IO ()
- bringUptoDate :: IO ()
- data Config'
- fcConfigDestroy :: FunPtr (Ptr Config' -> IO ())
Documentation
type Config = ForeignPtr Config' Source #
holds the internal representation of a configuration.
initLoadConfig :: IO Config Source #
Loads the default configuration file and returns the resulting configuration. Does not load any font information.
initLoadConfigAndFonts :: IO Config Source #
Loads the default configuration file and builds information about the available fonts. Returns the resulting configuration.
Loads the default configuration file and the fonts referenced therein and sets the default configuration to that result. Returns whether this process succeeded or not. If the default configuration has already been loaded, this routine does nothing and returns True.
Forces the default configuration file to be reloaded and resets the default configuration. Returns False if the configuration cannot be reloaded (due to configuration file errors, allocation failures or other issues) and leaves the existing configuration unchanged. Otherwise returns True.
bringUptoDate :: IO () Source #
Checks the rescan interval in the default configuration, checking the configuration
if the interval has passed and reloading the configuration if when any changes are detected.
Returns False if the configuration cannot be reloaded (see reinit
). Otherwise returns True.