diff options
author | Jay Painter <jpaint@src.gnome.org> | 1998-01-19 09:59:20 +0000 |
---|---|---|
committer | Jay Painter <jpaint@src.gnome.org> | 1998-01-19 09:59:20 +0000 |
commit | 79f69b1676b3efb8a1b7706c9c8d4a43e47a269c (patch) | |
tree | 8913d50f939f449d9fd5347add4b3595f934ad4b /gtk/gtkclist.h | |
parent | 1a8765e6cea73a48c2e9e5216f6733c00e02531b (diff) | |
download | gtk+-79f69b1676b3efb8a1b7706c9c8d4a43e47a269c.tar.gz |
GtkCList updates: Click-Drag column resizing, a couple of layout
fixes, show/hide functions for the title buttons, and I've replaced
gtk_clist_new with gtk_clist_new_with_titles. gtk_clist_new will
create a list without title bars which can be added later by calling
gtk_clist_set_column_(title/widget) for the column button you want to add.
A column button for column 0 always exhists, and buttons span all columns
until they come to the next exhisting button, or the last column. -Jay
Diffstat (limited to 'gtk/gtkclist.h')
-rw-r--r-- | gtk/gtkclist.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gtk/gtkclist.h b/gtk/gtkclist.h index 8c95e3bbb3..2359e4bc55 100644 --- a/gtk/gtkclist.h +++ b/gtk/gtkclist.h @@ -27,7 +27,6 @@ #include <gtk/gtkhscrollbar.h> #include <gtk/gtkvscrollbar.h> - #ifdef __cplusplus extern "C" { @@ -38,7 +37,8 @@ enum { CLIST_FROZEN = 1 << 0, CLIST_IN_DRAG = 1 << 1, - CLIST_ROW_HEIGHT_SET = 1 << 2 + CLIST_ROW_HEIGHT_SET = 1 << 2, + CLIST_SHOW_TITLES = 1 << 3 }; /* cell types */ @@ -62,6 +62,7 @@ typedef enum #define GTK_CLIST_FROZEN(clist) (GTK_CLIST_FLAGS (clist) & CLIST_FROZEN) #define GTK_CLIST_IN_DRAG(clist) (GTK_CLIST_FLAGS (clist) & CLIST_IN_DRAG) #define GTK_CLIST_ROW_HEIGHT_SET(clist) (GTK_CLIST_FLAGS (clist) & CLIST_ROW_HEIGHT_SET) +#define GTK_CLIST_SHOW_TITLES(clist) (GTK_CLIST_FLAGS (clist) & CLIST_SHOW_TITLES) /* pointer casting for cells */ #define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) @@ -172,6 +173,8 @@ struct _GtkCListColumn GdkRectangle area; GtkWidget *button; + GdkWindow *window; + gint width; GtkJustification justification; }; @@ -261,8 +264,9 @@ struct _GtkCell guint gtk_clist_get_type (void); /* create a new GtkCList */ -GtkWidget *gtk_clist_new (int columns, - gchar * titles[]); +GtkWidget *gtk_clist_new (int columns); +GtkWidget *gtk_clist_new_with_titles (int columns, + gchar * titles[]); /* set the border style of the clist */ void gtk_clist_set_border (GtkCList * clist, @@ -285,6 +289,10 @@ void gtk_clist_set_policy (GtkCList * clist, void gtk_clist_freeze (GtkCList * clist); void gtk_clist_thaw (GtkCList * clist); +/* show and hide the column title buttons */ +void gtk_clist_column_titles_show (GtkCList * clist); +void gtk_clist_column_titles_hide (GtkCList * clist); + /* set the title in the column title button */ void gtk_clist_set_column_title (GtkCList * clist, gint column, |