1 #ifndef TILDA_CONTROLLER_H
2 #define TILDA_CONTROLLER_H
4 #include <glib-object.h>
6 #define TILDA_TYPE_CONTROLLER (tilda_controller_get_type ())
7 #define TILDA_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TILDA_TYPE_CONTROLLER, TildaController))
8 #define TILDA_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TILDA_TYPE_CONTROLLER, TildaControllerClass))
9 #define TILDA_IS_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TILDA_TYPE_CONTROLLER))
10 #define TILDA_IS_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TILDA_TYPE_CONTROLLER))
11 #define TILDA_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TILDA_TYPE_CONTROLLER, TildaControllerClass))
13 typedef struct _TildaController TildaController;
14 typedef struct _TildaControllerClass TildaControllerClass;
16 struct _TildaController {
18 gboolean dispose_has_run;
20 /* instance members */
26 struct _TildaControllerClass {
30 /* Used by TILDA_TYPE_CONTROLLER */
31 GType tilda_controller_get_type (void);
34 gboolean tilda_controller_add_window (TildaController *self); // FIXME: needs GError
35 gboolean tilda_controller_quit (TildaController *self, GError **error);
38 gboolean tilda_controller_remove_window (TildaController *self, gint window_number);
39 gboolean tilda_controller_global_key_in_use (const TildaController *self, const gchar *keystr);
41 #endif /* TILDA_CONTROLLER_H */
43 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */