Start and stop status interval (or file) thread separately
[fio.git] / ghelpers.h
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);
7 GtkWidget *new_info_entry_in_frame_rgb(GtkWidget *box, const char *label,
8                                         gfloat r, gfloat g, gfloat b);
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
13 GtkWidget *get_scrolled_window(gint border_width);
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
35 #endif