synopsis#include <gtk/gtk.h> gtkclist; enum gtkcelltype; enum gtkbuttonaction; #define gtk_clist_flags (clist) #define gtk_clist_set_flag (clist,flag) #define gtk_clist_unset_flag (clist,flag) #define gtk_clist_in_drag (clist) #define gtk_clist_row_height_set (clist) #define gtk_clist_show_titles (clist) #define gtk_clist_add_mode (clist) #define gtk_clist_auto_sort (clist) #define gtk_clist_auto_resize_blocked (clist) #define gtk_clist_reorderable (clist) #define gtk_clist_use_drag_icons (clist) #define gtk_clist_draw_drag_line (clist) #define gtk_clist_draw_drag_rect (clist) #define gtk_clist_row (_glist_) #define gtk_cell_text (cell) #define gtk_cell_pixmap (cell) #define gtk_cell_pixtext (cell) #define gtk_cell_widget (cell) gint (*gtkclistcomparefunc) (gtkclist *clist, gconstpointer ptr1, gconstpointer ptr2); gtkclistcolumn; gtkclistrow; gtkcelltext; gtkcellpixmap; gtkcellpixtext; gtkcellwidget; gtkcell; gtkclistcellinfo; gtkclistdestinfo; enum gtkclistdragpos; gtkwidget* gtk_clist_new (gint columns); gtkwidget* gtk_clist_new_with_titles (gint columns, gchar *titles[]); void gtk_clist_set_shadow_type (gtkclist *clist, gtkshadowtype type); void gtk_clist_set_selection_mode (gtkclist *clist, gtkselectionmode mode); void gtk_clist_freeze (gtkclist *clist); void gtk_clist_thaw (gtkclist *clist); void gtk_clist_column_titles_show (gtkclist *clist); void gtk_clist_column_titles_hide (gtkclist *clist); void gtk_clist_column_title_active (gtkclist *clist, gint column); void gtk_clist_column_title_passive (gtkclist *clist, gint column); void gtk_clist_column_titles_active (gtkclist *clist); void gtk_clist_column_titles_passive (gtkclist *clist); void gtk_clist_set_column_title (gtkclist *clist, gint column, const gchar *title); void gtk_clist_set_column_widget (gtkclist *clist, gint column, gtkwidget *widget); void gtk_clist_set_column_justification (gtkclist *clist, gint column, gtkjustification justification); void gtk_clist_set_column_visibility (gtkclist *clist, gint column, gboolean visible); void gtk_clist_set_column_resizeable (gtkclist *clist, gint column, gboolean resizeable); void gtk_clist_set_column_auto_resize (gtkclist *clist, gint column, gboolean auto_resize); gint gtk_clist_optimal_column_width (gtkclist *clist, gint column); void gtk_clist_set_column_width (gtkclist *clist, gint column, gint width); void gtk_clist_set_column_min_width (gtkclist *clist, gint column, gint min_width); void gtk_clist_set_column_max_width (gtkclist *clist, gint column, gint max_width); void gtk_clist_set_row_height (gtkclist *clist, guint height); void gtk_clist_moveto (gtkclist *clist, gint row, gint column, gfloat row_align, gfloat col_align); gtkvisibility gtk_clist_row_is_visible (gtkclist *clist, gint row); gtkcelltype gtk_clist_get_cell_type (gtkclist *clist, gint row, gint column); void gtk_clist_set_text (gtkclist *clist, gint row, gint column, const gchar *text); gint gtk_clist_get_text (gtkclist *clist, gint row, gint column, gchar **text); void gtk_clist_set_pixmap (gtkclist *clist, gint row, gint column, gdkpixmap *pixmap, gdkbitmap *mask); gint gtk_clist_get_pixmap (gtkclist *clist, gint row, gint column, gdkpixmap **pixmap, gdkbitmap **mask); void gtk_clist_set_pixtext (gtkclist *clist, gint row, gint column, const gchar *text, guint8 spacing, gdkpixmap *pixmap, gdkbitmap *mask); gint gtk_clist_get_pixtext (gtkclist *clist, gint row, gint column, gchar **text, guint8 *spacing, gdkpixmap **pixmap, gdkbitmap **mask); void gtk_clist_set_foreground (gtkclist *clist, gint row, const gdkcolor *color); void gtk_clist_set_background (gtkclist *clist, gint row, const gdkcolor *color); void gtk_clist_set_cell_style (gtkclist *clist, gint row, gint column, gtkstyle *style); gtkstyle* gtk_clist_get_cell_style (gtkclist *clist, gint row, gint column); void gtk_clist_set_row_style (gtkclist *clist, gint row, gtkstyle *style); gtkstyle* gtk_clist_get_row_style (gtkclist *clist, gint row); void gtk_clist_set_shift (gtkclist *clist, gint row, gint column, gint vertical, gint horizontal); void gtk_clist_set_selectable (gtkclist *clist, gint row, gboolean selectable); gboolean gtk_clist_get_selectable (gtkclist *clist, gint row); gint gtk_clist_prepend (gtkclist *clist, gchar *text[]); gint gtk_clist_append (gtkclist *clist, gchar *text[]); gint gtk_clist_insert (gtkclist *clist, gint row, gchar *text[]); void gtk_clist_remove (gtkclist *clist, gint row); void gtk_clist_set_row_data (gtkclist *clist, gint row, gpointer data); void gtk_clist_set_row_data_full (gtkclist *clist, gint row, gpointer data, gtkdestroynotify destroy); gpointer gtk_clist_get_row_data (gtkclist *clist, gint row); gint gtk_clist_find_row_from_data (gtkclist *clist, gpointer data); void gtk_clist_select_row (gtkclist *clist, gint row, gint column); void gtk_clist_unselect_row (gtkclist *clist, gint row, gint column); void gtk_clist_undo_selection (gtkclist *clist); void gtk_clist_clear (gtkclist *clist); gint gtk_clist_get_selection_info (gtkclist *clist, gint x, gint y, gint *row, gint *column); void gtk_clist_select_all (gtkclist *clist); void gtk_clist_unselect_all (gtkclist *clist); void gtk_clist_swap_rows (gtkclist *clist, gint row1, gint row2); void gtk_clist_set_compare_func (gtkclist *clist, gtkclistcomparefunc cmp_func); void gtk_clist_set_sort_column (gtkclist *clist, gint column); void gtk_clist_set_sort_type (gtkclist *clist, gtksorttype sort_type); void gtk_clist_sort (gtkclist *clist); void gtk_clist_set_auto_sort (gtkclist *clist, gboolean auto_sort); gint gtk_clist_columns_autosize (gtkclist *clist); gchar* gtk_clist_get_column_title (gtkclist *clist, gint column); gtkwidget* gtk_clist_get_column_widget (gtkclist *clist, gint column); gtkadjustment* gtk_clist_get_hadjustment (gtkclist *clist); gtkadjustment* gtk_clist_get_vadjustment (gtkclist *clist); void gtk_clist_row_move (gtkclist *clist, gint source_row, gint dest_row); void gtk_clist_set_button_actions (gtkclist *clist, guint button, guint8 button_actions); void gtk_clist_set_hadjustment (gtkclist *clist, gtkadjustment *adjustment); void gtk_clist_set_reorderable (gtkclist *clist, gboolean reorderable); void gtk_clist_set_use_drag_icons (gtkclist *clist, gboolean use_icons); void gtk_clist_set_vadjustment (gtkclist *clist, gtkadjustment *adjustment); object hierarchygobject +----ginitiallyunowned +----gtkobject +----gtkwidget +----gtkcontainer +----gtkclist +----gtkctree properties"n-columns" guint : read / write / construct only "reorderable" gboolean : read / write "row-height" guint : read / write "selection-mode" gtkselectionmode : read / write "shadow-type" gtkshadowtype : read / write "sort-type" gtksorttype : read / write "titles-active" gboolean : read / write "use-drag-icons" gboolean : read / write signals"abort-column-resize" void user_function (gtkclist *clist, gpointer user_data) : run last / action "click-column" void user_function (gtkclist *clist, gint column, gpointer user_data) : run first "end-selection" void user_function (gtkclist *clist, gpointer user_data) : run last / action "extend-selection" void user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gboolean auto_start_selection, gpointer user_data) : run last / action "resize-column" void user_function (gtkclist *clist, gint column, gint width, gpointer user_data) : run last "row-move" void user_function (gtkclist *clist, gint arg1, gint arg2, gpointer user_data) : run last "scroll-horizontal" void user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gpointer user_data) : run last / action "scroll-vertical" void user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gpointer user_data) : run last / action "select-all" void user_function (gtkclist *clist, gpointer user_data) : run last / action "select-row" void user_function (gtkclist *clist, gint row, gint column, gdkeventbutton *event, gpointer user_data) : run first "set-scroll-adjustments" void user_function (gtkclist *clist, gtkadjustment *arg1, gtkadjustment *arg2, gpointer user_data) : run last "start-selection" void user_function (gtkclist *clist, gpointer user_data) : run last / action "toggle-add-mode" void user_function (gtkclist *clist, gpointer user_data) : run last / action "toggle-focus-row" void user_function (gtkclist *clist, gpointer user_data) : run last / action "undo-selection" void user_function (gtkclist *clist, gpointer user_data) : run last / action "unselect-all" void user_function (gtkclist *clist, gpointer user_data) : run last / action "unselect-row" void user_function (gtkclist *clist, gint row, gint column, gdkeventbutton *event, gpointer user_data) : run first descriptionthe gtkclist widget is a very useful multi-columned scrolling list. it can display data in nicely aligned vertical columns, with titles at the top of the list. gtkclist has been deprecated since gtk+ 2.0 and should not be used in newly written code. use gtktreeview instead. detailsgtkclisttypedef struct _gtkclist gtkclist; warninggtkclist is deprecated and should not be used in newly-written code. this is the embodiment of the gtkclist widget. this structure contains only private data, and should be accessed only via the clist api. enum gtkcelltypetypedef enum { gtk_cell_empty, gtk_cell_text, gtk_cell_pixmap, gtk_cell_pixtext, gtk_cell_widget } gtkcelltype; warninggtkcelltype is deprecated and should not be used in newly-written code. identifies the type of element in the current cell of the clist. cells can contain text, pixmaps, or both. unfortunately support for gtk_cell_widget was never completed. enum gtkbuttonactiontypedef enum { gtk_button_ignored = 0, gtk_button_selects = 1 << 0, gtk_button_drags = 1 << 1, gtk_button_expands = 1 << 2 } gtkbuttonaction; warninggtkbuttonaction is deprecated and should not be used in newly-written code. values for specifying what mouse button events a clist will react to. gtk_clist_flags()#define gtk_clist_flags(clist) (gtk_clist (clist)->flags) warninggtk_clist_flags is deprecated and should not be used in newly-written code. reads the current flags of the specified clist.
gtk_clist_set_flag()#define gtk_clist_set_flag(clist,flag) (gtk_clist_flags (clist) |= (gtk_ ## flag)) warninggtk_clist_set_flag is deprecated and should not be used in newly-written code. a macro to set a particular flag for the specified clist. gtk_clist_unset_flag()#define gtk_clist_unset_flag(clist,flag) (gtk_clist_flags (clist) &= ~(gtk_ ## flag)) warninggtk_clist_unset_flag is deprecated and should not be used in newly-written code. a macro to clear a particular flag for the specified clist. gtk_clist_in_drag()#define gtk_clist_in_drag(clist) (gtk_clist_flags (clist) & gtk_clist_in_drag) warninggtk_clist_in_drag is deprecated and should not be used in newly-written code. a macro to check whether the gtkclist is in "drag mode."
gtk_clist_row_height_set()#define gtk_clist_row_height_set(clist) (gtk_clist_flags (clist) & gtk_clist_row_height_set) warninggtk_clist_row_height_set is deprecated and should not be used in newly-written code. a macro to check whether the gtkclist's row height is set.
gtk_clist_show_titles()#define gtk_clist_show_titles(clist) (gtk_clist_flags (clist) & gtk_clist_show_titles) warninggtk_clist_show_titles is deprecated and should not be used in newly-written code. a macro to check whether the flag for showing the widget's column titles is set.
gtk_clist_add_mode()#define gtk_clist_add_mode(clist) (gtk_clist_flags (clist) & gtk_clist_add_mode) warninggtk_clist_add_mode is deprecated and should not be used in newly-written code. a macro to test whether the clist is in "add mode."
gtk_clist_auto_sort()#define gtk_clist_auto_sort(clist) (gtk_clist_flags (clist) & gtk_clist_auto_sort) warninggtk_clist_auto_sort is deprecated and should not be used in newly-written code. a macro to test whether the clist has automatic sorting switched on.
gtk_clist_auto_resize_blocked()#define gtk_clist_auto_resize_blocked(clist) (gtk_clist_flags (clist) & gtk_clist_auto_resize_blocked) warninggtk_clist_auto_resize_blocked is deprecated and should not be used in newly-written code. a macro to check if automatic resizing of columns is blocked.
gtk_clist_reorderable()#define gtk_clist_reorderable(clist) (gtk_clist_flags (clist) & gtk_clist_reorderable) warninggtk_clist_reorderable is deprecated and should not be used in newly-written code. a macro to test if the clist's columns are re-orderable
gtk_clist_use_drag_icons()#define gtk_clist_use_drag_icons(clist) (gtk_clist_flags (clist) & gtk_clist_use_drag_icons) warninggtk_clist_use_drag_icons is deprecated and should not be used in newly-written code. a macro to check if the use_drag_icons property is enabled.
gtk_clist_draw_drag_line()#define gtk_clist_draw_drag_line(clist) (gtk_clist_flags (clist) & gtk_clist_draw_drag_line) warninggtk_clist_draw_drag_line is deprecated and should not be used in newly-written code. a macro to check if the draw_drag_line property is enabled.
gtk_clist_draw_drag_rect()#define gtk_clist_draw_drag_rect(clist) (gtk_clist_flags (clist) & gtk_clist_draw_drag_rect) warninggtk_clist_draw_drag_rect is deprecated and should not be used in newly-written code. a macro to check if the draw_drag_rect property is enabled.
gtk_clist_row()#define gtk_clist_row(_glist_) ((gtkclistrow *)((_glist_)->data)) warninggtk_clist_row is deprecated and should not be used in newly-written code. a macro to cast a glist element to a clistrow pointer.
gtk_cell_text()#define gtk_cell_text(cell) (((gtkcelltext *) &(cell))) warninggtk_cell_text is deprecated and should not be used in newly-written code. a macro to cast a generic gtkclist cell item to a gtkcelltext pointer.
gtk_cell_pixmap()#define gtk_cell_pixmap(cell) (((gtkcellpixmap *) &(cell))) warninggtk_cell_pixmap is deprecated and should not be used in newly-written code. a macro to cast a generic gtkclist cell item to a gtkcellpixmap pointer.
gtk_cell_pixtext()#define gtk_cell_pixtext(cell) (((gtkcellpixtext *) &(cell))) warninggtk_cell_pixtext is deprecated and should not be used in newly-written code. a macro to cast a generic gtkclist cell item to a gtkcellpixtext pointer.
gtk_cell_widget()#define gtk_cell_widget(cell) (((gtkcellwidget *) &(cell))) warninggtk_cell_widget is deprecated and should not be used in newly-written code. a macro to cast a generic gtkclist cell item to a gtkcellwidget pointer.
gtkclistcomparefunc ()gint (*gtkclistcomparefunc) (gtkclist *clist, gconstpointer ptr1, gconstpointer ptr2); warninggtkclistcomparefunc is deprecated and should not be used in newly-written code. function prototype for the compare function callback.
gtkclistcolumntypedef struct { gchar *title; gdkrectangle area; gtkwidget *button; gdkwindow *window; gint width; gint min_width; gint max_width; gtkjustification justification; guint visible : 1; guint width_set : 1; guint resizeable : 1; guint auto_resize : 1; guint button_passive : 1; } gtkclistcolumn; warninggtkclistcolumn is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of information about its columns. gtkclistrowtypedef struct { gtkcell *cell; gtkstatetype state; gdkcolor foreground; gdkcolor background; gtkstyle *style; gpointer data; gtkdestroynotify destroy; guint fg_set : 1; guint bg_set : 1; guint selectable : 1; } gtkclistrow; warninggtkclistrow is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of information about its rows. gtkcelltexttypedef struct { gtkcelltype type; gint16 vertical; gint16 horizontal; gtkstyle *style; gchar *text; } gtkcelltext; warninggtkcelltext is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of gtkclist cells that contain text. gtkcellpixmaptypedef struct { gtkcelltype type; gint16 vertical; gint16 horizontal; gtkstyle *style; gdkpixmap *pixmap; gdkbitmap *mask; } gtkcellpixmap; warninggtkcellpixmap is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of gtkclist cells that contain a gdkpixmap. gtkcellpixtexttypedef struct { gtkcelltype type; gint16 vertical; gint16 horizontal; gtkstyle *style; gchar *text; guint8 spacing; gdkpixmap *pixmap; gdkbitmap *mask; } gtkcellpixtext; warninggtkcellpixtext is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of gtkclist cells that contain a combination of text and a gdkpixmap. gtkcellwidgettypedef struct { gtkcelltype type; gint16 vertical; gint16 horizontal; gtkstyle *style; gtkwidget *widget; } gtkcellwidget; warninggtkcellwidget is deprecated and should not be used in newly-written code. a structure that the gtkclist widget uses to keep track of gtkclist cells that contain another widget. gtkcelltypedef struct { gtkcelltype type; gint16 vertical; gint16 horizontal; gtkstyle *style; union { gchar *text; struct { gdkpixmap *pixmap; gdkbitmap *mask; } pm; struct { gchar *text; guint8 spacing; gdkpixmap *pixmap; gdkbitmap *mask; } pt; gtkwidget *widget; } u; } gtkcell; warninggtkcell is deprecated and should not be used in newly-written code. a generic structure that the gtkclist widget uses to keep track of the contents of each of its cells. gtkclistcellinfotypedef struct { gint row; gint column; } gtkclistcellinfo; warninggtkclistcellinfo is deprecated and should not be used in newly-written code. a simple structure that the gtkclist widget uses to keep track of the location of a cell. gtkclistdestinfotypedef struct { gtkclistcellinfo cell; gtkclistdragpos insert_pos; } gtkclistdestinfo; warninggtkclistdestinfo is deprecated and should not be used in newly-written code. a simple structure that the gtkclist widget uses to track a cell for a drag operation. enum gtkclistdragpostypedef enum { gtk_clist_drag_none, gtk_clist_drag_before, gtk_clist_drag_into, gtk_clist_drag_after } gtkclistdragpos; warninggtkclistdragpos is deprecated and should not be used in newly-written code. an enumeration for drag operations. gtk_clist_new ()gtkwidget* gtk_clist_new (gint columns); warninggtk_clist_new is deprecated and should not be used in newly-written code. creates a new gtkclist widget for use.
gtk_clist_new_with_titles ()gtkwidget* gtk_clist_new_with_titles (gint columns, gchar *titles[]); warninggtk_clist_new_with_titles is deprecated and should not be used in newly-written code. creates a new gtkclist widget with column titles for use.
gtk_clist_set_shadow_type ()void gtk_clist_set_shadow_type (gtkclist *clist, gtkshadowtype type); warninggtk_clist_set_shadow_type is deprecated and should not be used in newly-written code. sets the shadow type for the specified clist. changing this value will cause the gtkclist to update its visuals.
gtk_clist_set_selection_mode ()void gtk_clist_set_selection_mode (gtkclist *clist, gtkselectionmode mode); warninggtk_clist_set_selection_mode is deprecated and should not be used in newly-written code. sets the selection mode for the specified clist. this allows you to set whether only one or more than one item can be selected at a time in the widget. note that setting the widget's selection mode to one of gtk_selection_browse or gtk_selection_single will cause all the items in the gtkclist to become deselected.
gtk_clist_freeze ()void gtk_clist_freeze (gtkclist *clist); warninggtk_clist_freeze is deprecated and should not be used in newly-written code. causes the gtkclist to stop updating its visuals until a matching call to gtk_clist_thaw() is made. this function is useful if a lot of changes will be made to the widget that may cause a lot of visual updating to occur. note that calls to gtk_clist_freeze() can be nested.
gtk_clist_thaw ()void gtk_clist_thaw (gtkclist *clist); warninggtk_clist_thaw is deprecated and should not be used in newly-written code. causes the specified gtkclist to allow visual updates.
gtk_clist_column_titles_show ()void gtk_clist_column_titles_show (gtkclist *clist); warninggtk_clist_column_titles_show is deprecated and should not be used in newly-written code. this function causes the gtkclist to show its column titles, if they are not already showing.
gtk_clist_column_titles_hide ()void gtk_clist_column_titles_hide (gtkclist *clist); warninggtk_clist_column_titles_hide is deprecated and should not be used in newly-written code. causes the gtkclist to hide its column titles, if they are currently showing.
gtk_clist_column_title_active ()void gtk_clist_column_title_active (gtkclist *clist, gint column); warninggtk_clist_column_title_active is deprecated and should not be used in newly-written code. sets the specified column in the gtkclist to become selectable. you can then respond to events from the user clicking on a title button, and take appropriate action.
gtk_clist_column_title_passive ()void gtk_clist_column_title_passive (gtkclist *clist, gint column); warninggtk_clist_column_title_passive is deprecated and should not be used in newly-written code. causes the specified column title button to become passive, i.e., does not respond to events, such as the user clicking on it.
gtk_clist_column_titles_active ()void gtk_clist_column_titles_active (gtkclist *clist); warninggtk_clist_column_titles_active is deprecated and should not be used in newly-written code. causes all column title buttons to become active. this is the same as calling gtk_clist_column_title_active() for each column.
gtk_clist_column_titles_passive ()void gtk_clist_column_titles_passive (gtkclist *clist); warninggtk_clist_column_titles_passive is deprecated and should not be used in newly-written code. causes all column title buttons to become passive. this is the same as calling gtk_clist_column_title_passive() for each column.
gtk_clist_set_column_title ()void gtk_clist_set_column_title (gtkclist *clist, gint column, const gchar *title); warninggtk_clist_set_column_title is deprecated and should not be used in newly-written code. sets the title for the specified column.
gtk_clist_set_column_widget ()void gtk_clist_set_column_widget (gtkclist *clist, gint column, gtkwidget *widget); warninggtk_clist_set_column_widget is deprecated and should not be used in newly-written code. sets a widget to be used as the specified column's title. this can be used to place a pixmap or something else as the column title, instead of the standard text.
gtk_clist_set_column_justification ()void gtk_clist_set_column_justification (gtkclist *clist, gint column, gtkjustification justification); warninggtk_clist_set_column_justification is deprecated and should not be used in newly-written code. sets the justification to be used for all text in the specified column.
gtk_clist_set_column_visibility ()void gtk_clist_set_column_visibility (gtkclist *clist, gint column, gboolean visible); warninggtk_clist_set_column_visibility is deprecated and should not be used in newly-written code. allows you to set whether a specified column in the gtkclist should be hidden or shown. note that at least one column must always be showing, so attempting to hide the last visible column will be ignored.
gtk_clist_set_column_resizeable ()void gtk_clist_set_column_resizeable (gtkclist *clist, gint column, gboolean resizeable); warninggtk_clist_set_column_resizeable is deprecated and should not be used in newly-written code. lets you specify whether a specified column should be resizeable by the user. note that turning on resizeability for the column will automatically shut off auto-resizing, but turning off resizeability will not turn on auto-resizing. this must be done manually via a call to gtk_clist_set_column_auto_resize().
gtk_clist_set_column_auto_resize ()void gtk_clist_set_column_auto_resize (gtkclist *clist, gint column, gboolean auto_resize); warninggtk_clist_set_column_auto_resize is deprecated and should not be used in newly-written code. lets you specify whether a column should be automatically resized by the widget when data is added or removed. enabling auto-resize on a column explicity disallows user-resizing of the column.
gtk_clist_optimal_column_width ()gint gtk_clist_optimal_column_width (gtkclist *clist, gint column); warninggtk_clist_optimal_column_width is deprecated and should not be used in newly-written code. gets the required width in pixels that is needed to show everything in the specified column.
gtk_clist_set_column_width ()void gtk_clist_set_column_width (gtkclist *clist, gint column, gint width); warninggtk_clist_set_column_width is deprecated and should not be used in newly-written code. causes the column specified for the gtkclist to be set to a specified width.
gtk_clist_set_column_min_width ()void gtk_clist_set_column_min_width (gtkclist *clist, gint column, gint min_width); warninggtk_clist_set_column_min_width is deprecated and should not be used in newly-written code. causes the column specified to have a minimum width, preventing the user from resizing it smaller than that specified.
gtk_clist_set_column_max_width ()void gtk_clist_set_column_max_width (gtkclist *clist, gint column, gint max_width); warninggtk_clist_set_column_max_width is deprecated and should not be used in newly-written code. causes the column specified to have a maximum width, preventing the user from resizing it larger than that specified.
gtk_clist_set_row_height ()void gtk_clist_set_row_height (gtkclist *clist, guint height); warninggtk_clist_set_row_height is deprecated and should not be used in newly-written code. causes the gtkclist to have a specified height for its rows. setting the row height to 0 allows the gtkclist to adjust automatically to data in the row.
gtk_clist_moveto ()void gtk_clist_moveto (gtkclist *clist, gint row, gint column, gfloat row_align, gfloat col_align); warninggtk_clist_moveto is deprecated and should not be used in newly-written code. tells the clist widget to visually move to the specified row and column.
gtk_clist_row_is_visible ()gtkvisibility gtk_clist_row_is_visible (gtkclist *clist, gint row); warninggtk_clist_row_is_visible is deprecated and should not be used in newly-written code. checks how the specified row is visible.
gtk_clist_get_cell_type ()gtkcelltype gtk_clist_get_cell_type (gtkclist *clist, gint row, gint column); warninggtk_clist_get_cell_type is deprecated and should not be used in newly-written code. checks the type of cell at the location specified.
gtk_clist_set_text ()void gtk_clist_set_text (gtkclist *clist, gint row, gint column, const gchar *text); warninggtk_clist_set_text is deprecated and should not be used in newly-written code. sets the displayed text in the specified cell.
gtk_clist_get_text ()gint gtk_clist_get_text (gtkclist *clist, gint row, gint column, gchar **text); warninggtk_clist_get_text is deprecated and should not be used in newly-written code. gets the text for the specified cell.
gtk_clist_set_pixmap ()void gtk_clist_set_pixmap (gtkclist *clist, gint row, gint column, gdkpixmap *pixmap, gdkbitmap *mask); warninggtk_clist_set_pixmap is deprecated and should not be used in newly-written code. sets a pixmap for the specified cell. gtk_clist_get_pixmap ()gint gtk_clist_get_pixmap (gtkclist *clist, gint row, gint column, gdkpixmap **pixmap, gdkbitmap **mask); warninggtk_clist_get_pixmap is deprecated and should not be used in newly-written code. gets the pixmap and bitmap mask of the specified cell. the returned mask value can be null. gtk_clist_set_pixtext ()void gtk_clist_set_pixtext (gtkclist *clist, gint row, gint column, const gchar *text, guint8 spacing, gdkpixmap *pixmap, gdkbitmap *mask); warninggtk_clist_set_pixtext is deprecated and should not be used in newly-written code. sets text and a pixmap/bitmap on the specified cell. gtk_clist_get_pixtext ()gint gtk_clist_get_pixtext (gtkclist *clist, gint row, gint column, gchar **text, guint8 *spacing, gdkpixmap **pixmap, gdkbitmap **mask); warninggtk_clist_get_pixtext is deprecated and should not be used in newly-written code. gets the text, pixmap and bitmap mask for the specified cell.
gtk_clist_set_foreground ()void gtk_clist_set_foreground (gtkclist *clist, gint row, const gdkcolor *color); warninggtk_clist_set_foreground is deprecated and should not be used in newly-written code. sets the foreground color for the specified row. gtk_clist_set_background ()void gtk_clist_set_background (gtkclist *clist, gint row, const gdkcolor *color); warninggtk_clist_set_background is deprecated and should not be used in newly-written code. sets the background color for the specified row. gtk_clist_set_cell_style ()void gtk_clist_set_cell_style (gtkclist *clist, gint row, gint column, gtkstyle *style); warninggtk_clist_set_cell_style is deprecated and should not be used in newly-written code. sets the style for the specified cell. gtk_clist_get_cell_style ()gtkstyle* gtk_clist_get_cell_style (gtkclist *clist, gint row, gint column); warninggtk_clist_get_cell_style is deprecated and should not be used in newly-written code. gets the current style of the specified cell. gtk_clist_set_row_style ()void gtk_clist_set_row_style (gtkclist *clist, gint row, gtkstyle *style); warninggtk_clist_set_row_style is deprecated and should not be used in newly-written code. sets the style for all cells in the specified row. gtk_clist_get_row_style ()gtkstyle* gtk_clist_get_row_style (gtkclist *clist, gint row); warninggtk_clist_get_row_style is deprecated and should not be used in newly-written code. gets the style set for the specified row. gtk_clist_set_shift ()void gtk_clist_set_shift (gtkclist *clist, gint row, gint column, gint vertical, gint horizontal); warninggtk_clist_set_shift is deprecated and should not be used in newly-written code. sets the vertical and horizontal shift of the specified cell.
gtk_clist_set_selectable ()void gtk_clist_set_selectable (gtkclist *clist, gint row, gboolean selectable); warninggtk_clist_set_selectable is deprecated and should not be used in newly-written code. sets whether the specified row is selectable or not.
gtk_clist_get_selectable ()gboolean gtk_clist_get_selectable (gtkclist *clist, gint row); warninggtk_clist_get_selectable is deprecated and should not be used in newly-written code. gets whether the specified row is selectable or not. gtk_clist_prepend ()gint gtk_clist_prepend (gtkclist *clist, gchar *text[]); warninggtk_clist_prepend is deprecated and should not be used in newly-written code. adds a row to the clist at the top.
gtk_clist_append ()gint gtk_clist_append (gtkclist *clist, gchar *text[]); warninggtk_clist_append is deprecated and should not be used in newly-written code. adds a row to the clist at the bottom.
gtk_clist_insert ()gint gtk_clist_insert (gtkclist *clist, gint row, gchar *text[]); warninggtk_clist_insert is deprecated and should not be used in newly-written code. adds a row of text to the clist at the specified position.
gtk_clist_remove ()void gtk_clist_remove (gtkclist *clist, gint row); warninggtk_clist_remove is deprecated and should not be used in newly-written code. removes the specified row from the clist.
gtk_clist_set_row_data ()void gtk_clist_set_row_data (gtkclist *clist, gint row, gpointer data); warninggtk_clist_set_row_data is deprecated and should not be used in newly-written code. sets data for the specified row. this is the same as calling gtk_clist_set_row_data_full(clist, row, data, null).
gtk_clist_set_row_data_full ()void gtk_clist_set_row_data_full (gtkclist *clist, gint row, gpointer data, gtkdestroynotify destroy); warninggtk_clist_set_row_data_full is deprecated and should not be used in newly-written code. sets the data for specified row, with a callback when the row is destroyed.
gtk_clist_get_row_data ()gpointer gtk_clist_get_row_data (gtkclist *clist, gint row); warninggtk_clist_get_row_data is deprecated and should not be used in newly-written code. gets the currently set data for the specified row.
gtk_clist_find_row_from_data ()gint gtk_clist_find_row_from_data (gtkclist *clist, gpointer data); warninggtk_clist_find_row_from_data is deprecated and should not be used in newly-written code. searches the clist for the row with the specified data.
gtk_clist_select_row ()void gtk_clist_select_row (gtkclist *clist, gint row, gint column); warninggtk_clist_select_row is deprecated and should not be used in newly-written code. selects the specified row. causes the "select-row" signal to be emitted for the specified row and column.
gtk_clist_unselect_row ()void gtk_clist_unselect_row (gtkclist *clist, gint row, gint column); warninggtk_clist_unselect_row is deprecated and should not be used in newly-written code. unselects the specified row. causes the "unselect-row" signal to be emitted for the specified row and column.
gtk_clist_undo_selection ()void gtk_clist_undo_selection (gtkclist *clist); warninggtk_clist_undo_selection is deprecated and should not be used in newly-written code. undoes the last selection for an "extended selection mode" clist.
gtk_clist_clear ()void gtk_clist_clear (gtkclist *clist); warninggtk_clist_clear is deprecated and should not be used in newly-written code. removes all the clist's rows.
gtk_clist_get_selection_info ()gint gtk_clist_get_selection_info (gtkclist *clist, gint x, gint y, gint *row, gint *column); warninggtk_clist_get_selection_info is deprecated and should not be used in newly-written code. gets the row and column at the specified pixel position in the clist. gtk_clist_select_all ()void gtk_clist_select_all (gtkclist *clist); warninggtk_clist_select_all is deprecated and should not be used in newly-written code. selects all rows in the clist. this function has no affect for a clist in "single" or "browse" selection mode.
gtk_clist_unselect_all ()void gtk_clist_unselect_all (gtkclist *clist); warninggtk_clist_unselect_all is deprecated and should not be used in newly-written code. unselects all rows in the clist.
gtk_clist_swap_rows ()void gtk_clist_swap_rows (gtkclist *clist, gint row1, gint row2); warninggtk_clist_swap_rows is deprecated and should not be used in newly-written code. swaps the two specified rows with each other.
gtk_clist_set_compare_func ()void gtk_clist_set_compare_func (gtkclist *clist, gtkclistcomparefunc cmp_func); warninggtk_clist_set_compare_func is deprecated and should not be used in newly-written code. sets the compare function of the gtkclist to cmp_func. if cmp_func is null, then the default compare function is used. the default compare function sorts ascending or with the type set by gtk_clist_set_sort_type() by the column set by gtk_clist_set_sort_column().
gtk_clist_set_sort_column ()void gtk_clist_set_sort_column (gtkclist *clist, gint column); warninggtk_clist_set_sort_column is deprecated and should not be used in newly-written code. sets the sort column of the clist. the sort column is used by the default compare function to determine which column to sort by.
gtk_clist_set_sort_type ()void gtk_clist_set_sort_type (gtkclist *clist, gtksorttype sort_type); warninggtk_clist_set_sort_type is deprecated and should not be used in newly-written code. sets the sort type of the gtkclist. this is either gtk_sort_ascending for ascening sort or gtk_sort_descending for descending sort.
gtk_clist_sort ()void gtk_clist_sort (gtkclist *clist); warninggtk_clist_sort is deprecated and should not be used in newly-written code. sorts the gtkclist according to the current compare function, which can be set with the gtk_clist_set_compare_func() function.
gtk_clist_set_auto_sort ()void gtk_clist_set_auto_sort (gtkclist *clist, gboolean auto_sort); warninggtk_clist_set_auto_sort is deprecated and should not be used in newly-written code. turns on or off auto sort of the gtkclist. if auto sort is on, then the clist will be resorted when a row is inserted into the clist.
gtk_clist_columns_autosize ()gint gtk_clist_columns_autosize (gtkclist *clist); warninggtk_clist_columns_autosize is deprecated and should not be used in newly-written code. auto-sizes all columns in the clist and returns the total width of the clist.
gtk_clist_get_column_title ()gchar* gtk_clist_get_column_title (gtkclist *clist, gint column); warninggtk_clist_get_column_title is deprecated and should not be used in newly-written code. gets the current title of the specified column
gtk_clist_get_column_widget ()gtkwidget* gtk_clist_get_column_widget (gtkclist *clist, gint column); warninggtk_clist_get_column_widget is deprecated and should not be used in newly-written code. gets the widget in the column header for the specified column. gtk_clist_get_hadjustment ()gtkadjustment* gtk_clist_get_hadjustment (gtkclist *clist); warninggtk_clist_get_hadjustment is deprecated and should not be used in newly-written code. gets the gtkadjustment currently being used for the horizontal aspect.
gtk_clist_get_vadjustment ()gtkadjustment* gtk_clist_get_vadjustment (gtkclist *clist); warninggtk_clist_get_vadjustment is deprecated and should not be used in newly-written code. gets the gtkadjustment currently being used for the vertical aspect.
gtk_clist_row_move ()void gtk_clist_row_move (gtkclist *clist, gint source_row, gint dest_row); warninggtk_clist_row_move is deprecated and should not be used in newly-written code. allows you to move a row from one position to another in the list.
gtk_clist_set_button_actions ()void gtk_clist_set_button_actions (gtkclist *clist, guint button, guint8 button_actions); warninggtk_clist_set_button_actions is deprecated and should not be used in newly-written code. sets the action(s) that the specified mouse button will have on the clist.
gtk_clist_set_hadjustment ()void gtk_clist_set_hadjustment (gtkclist *clist, gtkadjustment *adjustment); warninggtk_clist_set_hadjustment is deprecated and should not be used in newly-written code. allows you to set the gtkadjustment to be used for the horizontal aspect of the gtkclist widget.
gtk_clist_set_reorderable ()void gtk_clist_set_reorderable (gtkclist *clist, gboolean reorderable); warninggtk_clist_set_reorderable is deprecated and should not be used in newly-written code. sets whether the clist's rows are re-orderable using drag-and-drop.
gtk_clist_set_use_drag_icons ()void gtk_clist_set_use_drag_icons (gtkclist *clist, gboolean use_icons); warninggtk_clist_set_use_drag_icons is deprecated and should not be used in newly-written code. determines whether the gtkclist should use icons when doing drag-and-drop operations.
gtk_clist_set_vadjustment ()void gtk_clist_set_vadjustment (gtkclist *clist, gtkadjustment *adjustment); warninggtk_clist_set_vadjustment is deprecated and should not be used in newly-written code. allows you to set the gtkadjustment to be used for the vertical aspect of the gtkclist widget.
property detailsthe "n-columns" property"n-columns" guint : read / write / construct only an integer value for a column. default value: 0 the "reorderable" property"reorderable" gboolean : read / write a boolean value for determining if the user can re-order the clist's columns. default value: false the "row-height" property"row-height" guint : read / write an integer value representing the height of a row in pixels. default value: 0 the "selection-mode" property"selection-mode" gtkselectionmode : read / write sets the type of selection mode for the clist. default value: gtk_selection_none the "shadow-type" property"shadow-type" gtkshadowtype : read / write sets the shadowing for the clist. default value: gtk_shadow_none the "titles-active" property"titles-active" gboolean : read / write a boolean value for setting whether the column titles can be clicked. default value: false the "use-drag-icons" property"use-drag-icons" gboolean : read / write a boolean value for setting whether to use icons during drag operations. default value: false signal detailsthe "abort-column-resize" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when a column resize is aborted.
the "click-column" signalvoid user_function (gtkclist *clist, gint column, gpointer user_data) : run first this signal is emitted when a column title is clicked.
the "end-selection" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when a selection ends in a multiple selection clist.
the "extend-selection" signalvoid user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gboolean auto_start_selection, gpointer user_data) : run last / action this signal is emitted when the selection is extended.
the "resize-column" signalvoid user_function (gtkclist *clist, gint column, gint width, gpointer user_data) : run last this signal is emitted when a column is resized.
the "row-move" signalvoid user_function (gtkclist *clist, gint arg1, gint arg2, gpointer user_data) : run last this signal is emitted when a row is moved.
the "scroll-horizontal" signalvoid user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gpointer user_data) : run last / action this signal is emitted when the clist is scrolled horizontally.
the "scroll-vertical" signalvoid user_function (gtkclist *clist, gtkscrolltype scroll_type, gfloat position, gpointer user_data) : run last / action this signal is emitted when the clist is scrolled vertically.
the "select-all" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when all the rows are selected in a clist.
the "select-row" signalvoid user_function (gtkclist *clist, gint row, gint column, gdkeventbutton *event, gpointer user_data) : run first this signal is emitted when the user selects a row in the list. it is emitted for every row that is selected in a multi-selection or by calling gtk_clist_select_all().
the "set-scroll-adjustments" signalvoid user_function (gtkclist *clist, gtkadjustment *arg1, gtkadjustment *arg2, gpointer user_data) : run last
the "start-selection" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when a drag-selection is started in a multiple-selection clist.
the "toggle-add-mode" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when "add mode" is toggled.
the "toggle-focus-row" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action
the "undo-selection" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when an undo selection occurs in the clist, probably via calling gtk_clist_undo_selection().
the "unselect-all" signalvoid user_function (gtkclist *clist, gpointer user_data) : run last / action this signal is emitted when all rows are unselected in a clist.
the "unselect-row" signalvoid user_function (gtkclist *clist, gint row, gint column, gdkeventbutton *event, gpointer user_data) : run first this signal is emitted when the user unselects a row in the list. it is emitted for every row that is unselected in a multi-selection or by calling gtk_clist_unselect_all(). it is also emitted for the previously selected row in a "single" or "browse" mode clist.
|