org.gnu.gtk

Class IconTheme


public class IconTheme
extends GObject

Field Summary

Fields inherited from class org.gnu.glib.GObject

eventsInitialized

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()
protected static void
gtk_icon_theme_add_builtin_icon(String iconName, int size, Handle pixbuf)
protected static void
gtk_icon_theme_append_search_path(Handle itheme, String path)
protected static Handle
gtk_icon_theme_get_default()
protected static String
gtk_icon_theme_get_example_icon_name(Handle itheme)
protected static Handle
gtk_icon_theme_get_for_screen(Handle screen)
protected static String[]
gtk_icon_theme_get_search_path(Handle itheme)
protected static int
gtk_icon_theme_get_type()
protected static boolean
gtk_icon_theme_has_icon(Handle itheme, String iconName)
protected static String[]
gtk_icon_theme_list_icons(Handle itheme, String context)
protected static Handle
gtk_icon_theme_load_icon(Handle itheme, String iconName, int size, int iconLookupflags, Handle error)
protected static Handle
gtk_icon_theme_lookup_icon(Handle itheme, String iconName, int size, int iconLookupFlags)
protected static Handle
gtk_icon_theme_new()
protected static void
gtk_icon_theme_prepend_search_path(Handle itheme, String path)
protected static boolean
gtk_icon_theme_rescan_if_needed(Handle itheme)
protected static void
gtk_icon_theme_set_custom_theme(Handle itheme, String name)
protected static void
gtk_icon_theme_set_screen(Handle itheme, Handle screen)
protected static void
gtk_icon_theme_set_search_path(Handle itheme, String[] path, int pathlen)
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)

Methods inherited from class org.gnu.glib.GObject

addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, equals, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, hashCode, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setHandle, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify

Constructor Details

IconTheme

public IconTheme()

Method Details

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 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()


gtk_icon_theme_add_builtin_icon

protected static final void gtk_icon_theme_add_builtin_icon(String iconName,
                                                            int size,
                                                            Handle pixbuf)


gtk_icon_theme_append_search_path

protected static final void gtk_icon_theme_append_search_path(Handle itheme,
                                                              String path)


gtk_icon_theme_get_default

protected static final Handle gtk_icon_theme_get_default()


gtk_icon_theme_get_example_icon_name

protected static final String gtk_icon_theme_get_example_icon_name(Handle itheme)


gtk_icon_theme_get_for_screen

protected static final Handle gtk_icon_theme_get_for_screen(Handle screen)


gtk_icon_theme_get_search_path

protected static final String[] gtk_icon_theme_get_search_path(Handle itheme)


gtk_icon_theme_get_type

protected static final int gtk_icon_theme_get_type()


gtk_icon_theme_has_icon

protected static final boolean gtk_icon_theme_has_icon(Handle itheme,
                                                       String iconName)


gtk_icon_theme_list_icons

protected static final String[] gtk_icon_theme_list_icons(Handle itheme,
                                                          String context)


gtk_icon_theme_load_icon

protected static final Handle gtk_icon_theme_load_icon(Handle itheme,
                                                       String iconName,
                                                       int size,
                                                       int iconLookupflags,
                                                       Handle error)


gtk_icon_theme_lookup_icon

protected static final Handle gtk_icon_theme_lookup_icon(Handle itheme,
                                                         String iconName,
                                                         int size,
                                                         int iconLookupFlags)


gtk_icon_theme_new

protected static final Handle gtk_icon_theme_new()


gtk_icon_theme_prepend_search_path

protected static final void gtk_icon_theme_prepend_search_path(Handle itheme,
                                                               String path)


gtk_icon_theme_rescan_if_needed

protected static final boolean gtk_icon_theme_rescan_if_needed(Handle itheme)


gtk_icon_theme_set_custom_theme

protected static final void gtk_icon_theme_set_custom_theme(Handle itheme,
                                                            String name)


gtk_icon_theme_set_screen

protected static final void gtk_icon_theme_set_screen(Handle itheme,
                                                      Handle screen)


gtk_icon_theme_set_search_path

protected static final void gtk_icon_theme_set_search_path(Handle itheme,
                                                           String[] path,
                                                           int pathlen)


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. If the icons is not found this method will return null.

Parameters:
name -
size -
flags -

Returns:


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)