GtkCList

GtkCList — A multi-columned scrolling list widget

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,
                                                         GDestroyNotify 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 Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkCList
                                 +----GtkCTree

Implemented Interfaces

GtkCList implements AtkImplementorIface and GtkBuildable.

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"                            : Run Last / Action
  "click-column"                                   : Run First
  "end-selection"                                  : Run Last / Action
  "extend-selection"                               : Run Last / Action
  "resize-column"                                  : Run Last
  "row-move"                                       : Run Last
  "scroll-horizontal"                              : Run Last / Action
  "scroll-vertical"                                : Run Last / Action
  "select-all"                                     : Run Last / Action
  "