blob: 39a994b9ff1233e4c04a64d127d7189cb58620b9 [file] [log] [blame]
Jens Axboe53e0e852012-03-15 19:38:01 +01001#ifndef GFIO_HELPERS_H
2#define GFIO_HELPERS_H
3
4GtkWidget *new_combo_entry_in_frame(GtkWidget *box, const char *label);
5GtkWidget *new_info_entry_in_frame(GtkWidget *box, const char *label);
6GtkWidget *new_info_label_in_frame(GtkWidget *box, const char *label);
Jens Axboeb78ca652012-09-25 14:39:36 +02007GtkWidget *new_info_entry_in_frame_rgb(GtkWidget *box, const char *label,
8 gfloat r, gfloat g, gfloat b);
Jens Axboe53e0e852012-03-15 19:38:01 +01009GtkWidget *create_spinbutton(GtkWidget *hbox, double min, double max, double defval);
10void label_set_int_value(GtkWidget *entry, unsigned int val);
11void entry_set_int_value(GtkWidget *entry, unsigned int val);
12
Jens Axboe1252d8f2012-03-21 11:13:31 +010013GtkWidget *get_scrolled_window(gint border_width);
Jens Axboe49c34172012-03-16 12:05:17 +010014
15struct multitext_widget {
16 GtkWidget *entry;
17 char **text;
18 unsigned int cur_text;
19 unsigned int max_text;
20};
21
22void multitext_add_entry(struct multitext_widget *mt, const char *text);
23void multitext_set_entry(struct multitext_widget *mt, unsigned int index);
24void multitext_update_entry(struct multitext_widget *mt, unsigned int index,
25 const char *text);
26void multitext_free(struct multitext_widget *mt);
27
28#define ALIGN_LEFT 1
29#define ALIGN_RIGHT 2
30#define INVISIBLE 4
31#define UNSORTABLE 8
32
33GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, unsigned int flags);
34
Jens Axboe53e0e852012-03-15 19:38:01 +010035#endif