org.gnu.gtk

Class IconTheme

public class IconTheme extends GObject

Constructor Summary
IconTheme()
Method Summary
static voidaddBuiltinIcon(String name, int size, Pixbuf pixbuf)
voidappendSearchPath(String path)
static IconThemegetDefault()
static IconThemegetForSceen(Screen screen)
IconSize[]getIconSizes(String iconName)
Returns an array of {@link org.gnu.gtk.IconSize} describing the sizes at which the icon is available without scaling.
String[]getSearchPath()
booleanhasIcon(String iconName)
String[]listIcons(String context)
PixbufloadIcon(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.
IconInfolookupIcon(String name, int size, IconLookupFlags flags)
voidprependSearchPath(String path)
booleanrescanIfNeeded()
voidsetCustomtTheme(String name)
voidsetScreen(Screen screen)
voidsetSearchPath(String[] path)

Constructor Detail

IconTheme

public IconTheme()

Method Detail

addBuiltinIcon

public static void addBuiltinIcon(String name, int size, Pixbuf pixbuf)

appendSearchPath

public void appendSearchPath(String path)

getDefault

public static IconTheme getDefault()

getForSceen

public static IconTheme getForSceen(Screen screen)

getIconSizes

public IconSize[] getIconSizes(String iconName)
Returns an array of {@link org.gnu.gtk.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.

getSearchPath

public String[] getSearchPath()

hasIcon

public boolean hasIcon(String iconName)

listIcons

public String[] listIcons(String context)

loadIcon

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

Parameters: name size flags

Returns: The rendered pixbuf, or null if the icon is not found.

lookupIcon

public IconInfo lookupIcon(String name, int size, IconLookupFlags flags)

prependSearchPath

public void prependSearchPath(String path)

rescanIfNeeded

public boolean rescanIfNeeded()

setCustomtTheme

public void setCustomtTheme(String name)

setScreen

public void setScreen(Screen screen)

setSearchPath

public void setSearchPath(String[] path)