org.gnu.gtk
public class IconTheme extends GObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.IconTheme
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
IconTheme() |
Method Summary | |
---|---|
static void | addBuiltinIcon(String name, int size, Pixbuf pixbuf) |
void | appendSearchPath(String path) |
static IconTheme | getDefault() |
static IconTheme | getForSceen(Screen screen) |
IconSize[] | getIconSizes(String iconName)
Returns an array of IconSize describing the sizes at
which the icon is available without scaling. |
String[] | getSearchPath() |
boolean | hasIcon(String iconName) |
String[] | listIcons(String context) |
Pixbuf | loadIcon(String name, int size, IconLookupFlags flags)
Looks up an icon in an icon theme, scales it to the given size and
renders it into a pixbuf.
|
IconInfo | lookupIcon(String name, int size, IconLookupFlags flags) |
void | prependSearchPath(String path) |
boolean | rescanIfNeeded() |
void | setCustomtTheme(String name) |
void | setScreen(Screen screen) |
void | setSearchPath(String[] path) |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns an array of IconSize describing the sizes at which the icon is available without scaling. A size of -1 means that the icon is available in a scalable format.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf.Parameters: name size flags
Returns: The rendered pixbuf, or null if the icon is not found.