addBuiltinIcon
public static void addBuiltinIcon(String name,
int size,
Pixbuf pixbuf)
appendSearchPath
public void appendSearchPath(String path)
getDefault
public static IconTheme getDefault()
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.
name
- size
- 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)