| ||||||||||||||||
| ||||||||||||||||
Description | ||||||||||||||||
This module provides access to IconFactory, IconSet and IconSource. TODO
| ||||||||||||||||
Synopsis | ||||||||||||||||
Documentation | ||||||||||||||||
data IconFactory | ||||||||||||||||
| ||||||||||||||||
iconFactoryNew :: IO IconFactory | ||||||||||||||||
Create a new IconFactory.
| ||||||||||||||||
iconFactoryAdd :: IconFactory -> String -> IconSet -> IO () | ||||||||||||||||
Add an IconSet to an IconFactory.
| ||||||||||||||||
iconFactoryAddDefault :: IconFactory -> IO () | ||||||||||||||||
Add all entries of the IconFactory to the applications stock object database. | ||||||||||||||||
iconFactoryLookup :: IconFactory -> String -> IO (Maybe IconSet) | ||||||||||||||||
Looks up the stock id in the icon factory, returning an icon set if found, otherwise Nothing.
| ||||||||||||||||
iconFactoryLookupDefault :: String -> IO (Maybe IconSet) | ||||||||||||||||
Looks for an icon in the list of default icon factories.
| ||||||||||||||||
iconFactoryRemoveDefault :: IconFactory -> IO () | ||||||||||||||||
Remove an IconFactory from the application's stock database. | ||||||||||||||||
data IconSet | ||||||||||||||||
iconSetNew :: IO IconSet | ||||||||||||||||
Create a new IconSet.
| ||||||||||||||||
iconSetNewFromPixbuf :: Pixbuf -> IO IconSet | ||||||||||||||||
Creates a new IconSet with the given pixbuf as the default/fallback source image. If you don't add any additional IconSource to the icon set, all variants of the icon will be created from the pixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted. | ||||||||||||||||
iconSetAddSource :: IconSet -> IconSource -> IO () | ||||||||||||||||
Add an IconSource (an Icon with attributes) to an IconSet.
| ||||||||||||||||
iconSetRenderIcon :: WidgetClass widget => IconSet -> TextDirection -> StateType -> IconSize -> widget -> IO Pixbuf | ||||||||||||||||
iconSetGetSizes :: IconSet -> IO [IconSize] | ||||||||||||||||
Obtains a list of icon sizes this icon set can render. | ||||||||||||||||
data IconSource | ||||||||||||||||
iconSourceNew :: IO IconSource | ||||||||||||||||
Create a new IconSource.
| ||||||||||||||||
data TextDirection | ||||||||||||||||
| ||||||||||||||||
iconSourceGetDirection :: IconSource -> IO (Maybe TextDirection) | ||||||||||||||||
Retrieve the TextDirection of this IconSource.
| ||||||||||||||||
iconSourceSetDirection :: IconSource -> TextDirection -> IO () | ||||||||||||||||
Mark this IconSource that it should only apply to the specified TextDirection. | ||||||||||||||||
iconSourceGetFilename :: IconSource -> IO (Maybe String) | ||||||||||||||||
Retrieve the filename this IconSource was based on.
| ||||||||||||||||
iconSourceSetFilename :: IconSource -> FilePath -> IO () | ||||||||||||||||
Load an icon picture from this filename. | ||||||||||||||||
iconSourceGetPixbuf :: IconSource -> IO (Maybe Pixbuf) | ||||||||||||||||
Retrieves the source pixbuf, or Nothing if none is set. | ||||||||||||||||
iconSourceSetPixbuf :: IconSource -> Pixbuf -> IO () | ||||||||||||||||
Sets a pixbuf to use as a base image when creating icon variants for IconSet. | ||||||||||||||||
iconSourceGetSize :: IconSource -> IO (Maybe IconSize) | ||||||||||||||||
Retrieve the IconSize of this IconSource.
| ||||||||||||||||
iconSourceSetSize :: IconSource -> IconSize -> IO () | ||||||||||||||||
Set this IconSource to a specific size. | ||||||||||||||||
iconSourceResetSize :: IconSource -> IO () | ||||||||||||||||
Reset the IconSize of this IconSource so that is matches anything. | ||||||||||||||||
data StateType | ||||||||||||||||
| ||||||||||||||||
iconSourceGetState :: IconSource -> IO (Maybe StateType) | ||||||||||||||||
Retrieve the StateType of this IconSource.
| ||||||||||||||||
iconSourceSetState :: IconSource -> StateType -> IO () | ||||||||||||||||
Mark this icon to be used only with this specific state. | ||||||||||||||||
iconSourceResetState :: IconSource -> IO () | ||||||||||||||||
Reset the StateType of this IconSource so that is matches anything. | ||||||||||||||||
type IconSize = Int | ||||||||||||||||
iconSizeMenu :: IconSize | ||||||||||||||||
iconSizeSmallToolbar :: IconSize | ||||||||||||||||
iconSizeLargeToolbar :: IconSize | ||||||||||||||||
iconSizeButton :: IconSize | ||||||||||||||||
iconSizeDialog :: IconSize | ||||||||||||||||
iconSizeCheck :: IconSize -> IO Bool | ||||||||||||||||
Check if a given IconSize is registered.
| ||||||||||||||||
iconSizeRegister :: Int -> String -> Int -> IO IconSize | ||||||||||||||||
Register a new IconSize. | ||||||||||||||||
iconSizeRegisterAlias :: IconSize -> String -> IO () | ||||||||||||||||
Register an additional alias for a name. | ||||||||||||||||
iconSizeFromName :: String -> IO IconSize | ||||||||||||||||
Lookup an IconSize by name.
| ||||||||||||||||
iconSizeGetName :: IconSize -> IO (Maybe String) | ||||||||||||||||
Lookup the name of an IconSize.
| ||||||||||||||||
Produced by Haddock version 0.6 |