2 #ifndef __GTK_CUSTOM_H__
3 #define __GTK_CUSTOM_H__
7 #include <glib-object.h>
9 #include <gtk/gtkcontainer.h>
10 #include <lttv/common.h>
14 #endif /* __cplusplus */
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))
25 typedef struct _GtkCustom GtkCustom
;
26 typedef struct _GtkCustomClass GtkCustomClass
;
35 GtkPaned
* focusedPane
;
39 // GtkWidget * scrollWindow;
40 // GtkWidget * viewport;
41 GtkWidget
* hScrollbar
;
42 GtkAdjustment
*hAdjust
;
46 struct _GtkCustomClass
48 GtkPanedClass parent_class
;
52 GType
gtk_custom_get_type (void) G_GNUC_CONST
;
53 GtkWidget
* gtk_custom_new (void);
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
);
65 #endif /* __cplusplus */
68 #endif /* __GTK_CUSTOM_H__ */