e969fd8e |
1 | |
2 | #ifndef __GTK_CUSTOM_H__ |
3 | #define __GTK_CUSTOM_H__ |
4 | |
5 | |
6 | #include <glib.h> |
7 | #include <glib-object.h> |
8 | #include <gdk/gdk.h> |
9 | #include <gtk/gtkcontainer.h> |
1775d375 |
10 | #include <lttv/common.h> |
e969fd8e |
11 | |
12 | #ifdef __cplusplus |
13 | extern "C" { |
14 | #endif /* __cplusplus */ |
15 | |
16 | |
17 | #define GTK_TYPE_CUSTOM (gtk_custom_get_type ()) |
18 | #define GTK_CUSTOM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CUSTOM, GtkCustom)) |
19 | #define GTK_CUSTOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CUSTOM, GtkCustomClass)) |
20 | #define GTK_IS_CUSTOM(obj ) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CUSTOM)) |
21 | #define GTK_IS_CUSTOM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CUSTOM)) |
22 | #define GTK_CUSTOM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CUSTOM, GtkCustomClass)) |
23 | |
24 | |
25 | typedef struct _GtkCustom GtkCustom; |
26 | typedef struct _GtkCustomClass GtkCustomClass; |
27 | |
28 | struct _GtkCustom |
29 | { |
30 | GtkPaned container; |
31 | |
32 | /*< public >*/ |
bca3b81f |
33 | GtkPaned * first_pane; |
34 | GtkPaned * last_pane; |
35 | GtkPaned * focused_pane; |
36 | guint num_children; |
e969fd8e |
37 | |
38 | GtkWidget * vbox; |
39 | // GtkWidget * scrollWindow; |
40 | // GtkWidget * viewport; |
bca3b81f |
41 | GtkWidget * hscrollbar; |
42 | GtkAdjustment *hadjust; |
43 | MainWindow * mw; |
e969fd8e |
44 | }; |
45 | |
46 | struct _GtkCustomClass |
47 | { |
48 | GtkPanedClass parent_class; |
49 | }; |
50 | |
51 | |
52 | GType gtk_custom_get_type (void) G_GNUC_CONST; |
53 | GtkWidget* gtk_custom_new (void); |
54 | |
55 | void gtk_custom_set_focus (GtkWidget * widget, gpointer user_data); |
56 | void gtk_custom_widget_add(GtkCustom * custom, GtkWidget * widget1); |
57 | void gtk_custom_widget_delete(GtkCustom * custom); |
58 | void gtk_custom_widget_move_up(GtkCustom * custom); |
59 | void gtk_custom_widget_move_down(GtkCustom * custom); |
1f1ae829 |
60 | void gtk_custom_set_adjust(GtkCustom * custom, gboolean first_time); |
e969fd8e |
61 | |
62 | |
63 | |
64 | #ifdef __cplusplus |
65 | } |
66 | #endif /* __cplusplus */ |
67 | |
68 | |
69 | #endif /* __GTK_CUSTOM_H__ */ |