append
public void append(String iconFilename,
String text)
Append an icon to the end of the list.
iconFilename
- The file name for the icon to insert.text
- The text to display below the icon.
clear
public void clear()
Remove all icons from this list.
freeze
public void freeze()
Avoid excessive recomputes during insertion and deletion. You
should call thaw once the activity is complete.
getIconFilename
public String getIconFilename(int pos)
Retrieve the filename for an icon in the list.
pos
- The position of the icon to retrieve the filename.
getNumIcons
public int getNumIcons()
Get the number of icons in this list
- The number of icons in this list.
getSelectionMode
public SelectionMode getSelectionMode()
Retrieve the selection mode for this icon list.
- The selection mode for this list.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Canvas
gnome_icon_list_append
protected static final int gnome_icon_list_append(Handle gil,
String iconFilename,
String text)
gnome_icon_list_append_pixbuf
protected static final int gnome_icon_list_append_pixbuf(Handle gil,
Handle im,
String iconFilename,
String text)
gnome_icon_list_clear
protected static final void gnome_icon_list_clear(Handle gil)
gnome_icon_list_find_icon_from_filename
protected static final int gnome_icon_list_find_icon_from_filename(Handle gil,
String filename)
gnome_icon_list_focus_icon
protected static final void gnome_icon_list_focus_icon(Handle gil,
int idx)
gnome_icon_list_freeze
protected static final void gnome_icon_list_freeze(Handle gil)
gnome_icon_list_get_icon_at
protected static final int gnome_icon_list_get_icon_at(Handle gil,
int x,
int y)
gnome_icon_list_get_icon_filename
protected static final String gnome_icon_list_get_icon_filename(Handle gil,
int idx)
gnome_icon_list_get_icon_pixbuf_item
protected static final Handle gnome_icon_list_get_icon_pixbuf_item(Handle gil,
int idx)
gnome_icon_list_get_icon_text_item
protected static final Handle gnome_icon_list_get_icon_text_item(Handle gil,
int idx)
gnome_icon_list_get_items_per_line
protected static final int gnome_icon_list_get_items_per_line(Handle gil)
gnome_icon_list_get_num_icons
protected static final int gnome_icon_list_get_num_icons(Handle gil)
gnome_icon_list_get_selection
protected static final Handle[] gnome_icon_list_get_selection(Handle gil)
gnome_icon_list_get_selection_mode
protected static final int gnome_icon_list_get_selection_mode(Handle gil)
gnome_icon_list_get_type
protected static final int gnome_icon_list_get_type()
gnome_icon_list_icon_is_visible
protected static final int gnome_icon_list_icon_is_visible(Handle gil,
int idx)
gnome_icon_list_insert
protected static final void gnome_icon_list_insert(Handle gil,
int idx,
String iconFilename,
String text)
gnome_icon_list_insert_pixbuf
protected static final void gnome_icon_list_insert_pixbuf(Handle gil,
int idx,
int im,
String iconFilename,
String text)
gnome_icon_list_moveto
protected static final void gnome_icon_list_moveto(Handle gil,
int idx,
double yalign)
gnome_icon_list_new
protected static final Handle gnome_icon_list_new(int iconWidth,
Handle adj,
int flags)
gnome_icon_list_remove
protected static final void gnome_icon_list_remove(Handle gil,
int idx)
gnome_icon_list_select_all
protected static final void gnome_icon_list_select_all(Handle gil)
gnome_icon_list_select_icon
protected static final void gnome_icon_list_select_icon(Handle gil,
int idx)
gnome_icon_list_set_col_spacing
protected static final void gnome_icon_list_set_col_spacing(Handle gil,
int pixels)
gnome_icon_list_set_hadjustment
protected static final void gnome_icon_list_set_hadjustment(Handle gil,
Handle hadj)
gnome_icon_list_set_icon_border
protected static final void gnome_icon_list_set_icon_border(Handle gil,
int pixels)
gnome_icon_list_set_icon_width
protected static final void gnome_icon_list_set_icon_width(Handle gil,
int w)
gnome_icon_list_set_row_spacing
protected static final void gnome_icon_list_set_row_spacing(Handle gil,
int pixels)
gnome_icon_list_set_selection_mode
protected static final void gnome_icon_list_set_selection_mode(Handle gil,
int mode)
gnome_icon_list_set_separators
protected static final void gnome_icon_list_set_separators(Handle gil,
String sep)
gnome_icon_list_set_text_spacing
protected static final void gnome_icon_list_set_text_spacing(Handle gil,
int pixels)
gnome_icon_list_set_vadjustment
protected static final void gnome_icon_list_set_vadjustment(Handle gil,
Handle vadj)
gnome_icon_list_thaw
protected static final void gnome_icon_list_thaw(Handle gil)
gnome_icon_list_unselect_all
protected static final int gnome_icon_list_unselect_all(Handle gil)
gnome_icon_list_unselect_icon
protected static final void gnome_icon_list_unselect_icon(Handle gil,
int idx)
insert
public void insert(int pos,
String iconFilename,
String text)
Insert an icon into this list.
pos
- The position for the insertion.iconFilename
- The file name for the icon to insert.text
- The text to display below the icon.
remove
public void remove(int pos)
Remove an icon from this list.
pos
- The position of the icon to remove
selectAll
public void selectAll()
Select all icons in the list.
selectIcon
public void selectIcon(int pos)
Select an icon in the list.
pos
- The position of the icon to select.
setColumnSpacing
public void setColumnSpacing(int pixels)
Set the column spacing for the list.
pixels
- The column spacing for the list.
setIconBorderWidth
public void setIconBorderWidth(int pixels)
Set the icon border for the list.
pixels
- The amount of pixels that surround the icons in the list.
setIconWidth
public void setIconWidth(int width)
Set the icon width for the list.
width
- The width for icons in the list.
setRowSpacing
public void setRowSpacing(int pixels)
Set the row spacing for the list.
pixels
- The row spacing for the list.
setSelectionMode
public void setSelectionMode(SelectionMode mode)
Set the selection mode for this icon list.
mode
- The selection mode for this list.
setSeparators
public void setSeparators(String sep)
Set the text that serves as the separator for this list.
TODO: I don't completely understand this method. Better javadocs
are needed.
setTextSpacing
public void setTextSpacing(int pixels)
Set the text spacing for the list.
pixels
- The text spacing for the list
thaw
public void thaw()
Thaw a previous frozen list.
unselectAll
public void unselectAll()
Unselect all icons in the list.
unselectIcon
public void unselectIcon(int pos)
Unselect an icon in the list.
pos
- The position of the icon to unselect.