Pixmaps
Handling pixmaps for applications.
GPE provides a set of functions for maintaining a shared icons to avoid
loading icon sets multiple times. These icons are loaded into an internal
storage list and identified by a name string.
Used by: Most GPE applications.
@shortname:
@filename:
@pixbuf:
This function is used to load a set of icons into memory and makes them
accessible for the applications. Usually you will have a fixed set of pixmaps
to load for each application on startup. The function will display an error
message if loading of an icon fails.
@Param1: List of icon defintions, terminated by NULL.
@Returns: TRUE on success.
Get an icon by name from storage list.
@name: Icon name to find.
@Returns: Pixbuf pointer on success, NULL on failure.
As GTK uses icons in several sizes for different purposes this function
renders a given icon to one of the common GTK icon sizes.
@name: Icon to use.
@size: GTK icon size to use.
@Returns: A new allocated pixbuf containing the icon of the desired size.
This function is used to get an icon which is not necessarily loaded when
the function is called. The icon is taken from internal storage if it is
already available and tried to load from a file with the same name like
the name passed to the function otherwise.
@name: Icon name to get.
@error: Returned error information if function fails.
@Returns: Pixbuf of icon or NULL on failure.
[Deprecated - do not use.]
@name:
@pixmap:
@bitmap:
@Returns:
Set the icon of a window from a named icon in storage list.
@window: Window to set icon for.
@icon: Icon name.