Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 1 | #ifndef GFIO_HELPERS_H |
| 2 | #define GFIO_HELPERS_H |
| 3 | |
| 4 | GtkWidget *new_combo_entry_in_frame(GtkWidget *box, const char *label); |
| 5 | GtkWidget *new_info_entry_in_frame(GtkWidget *box, const char *label); |
| 6 | GtkWidget *new_info_label_in_frame(GtkWidget *box, const char *label); |
Jens Axboe | b78ca65 | 2012-09-25 14:39:36 +0200 | [diff] [blame] | 7 | GtkWidget *new_info_entry_in_frame_rgb(GtkWidget *box, const char *label, |
| 8 | gfloat r, gfloat g, gfloat b); |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 9 | GtkWidget *create_spinbutton(GtkWidget *hbox, double min, double max, double defval); |
| 10 | void label_set_int_value(GtkWidget *entry, unsigned int val); |
| 11 | void entry_set_int_value(GtkWidget *entry, unsigned int val); |
| 12 | |
Jens Axboe | 1252d8f | 2012-03-21 11:13:31 +0100 | [diff] [blame] | 13 | GtkWidget *get_scrolled_window(gint border_width); |
Jens Axboe | 49c3417 | 2012-03-16 12:05:17 +0100 | [diff] [blame] | 14 | |
| 15 | struct multitext_widget { |
| 16 | GtkWidget *entry; |
| 17 | char **text; |
| 18 | unsigned int cur_text; |
| 19 | unsigned int max_text; |
| 20 | }; |
| 21 | |
| 22 | void multitext_add_entry(struct multitext_widget *mt, const char *text); |
| 23 | void multitext_set_entry(struct multitext_widget *mt, unsigned int index); |
| 24 | void multitext_update_entry(struct multitext_widget *mt, unsigned int index, |
| 25 | const char *text); |
| 26 | void 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 | |
| 33 | GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, unsigned int flags); |
| 34 | |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 35 | #endif |