summaryrefslogtreecommitdiff
path: root/endless/eosmainarea-private.h
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2013-04-22 15:54:38 -0700
committerP. F. Chimento <philip.chimento@gmail.com>2013-05-16 12:17:09 +0200
commit2ede46e4c3c4cabf9ea46a660247696f1221823a (patch)
treee809d065e82fa700e2ee44ed6b2f65d3b9b37ff2 /endless/eosmainarea-private.h
parent2ca816baa7d8dd68b522fd43fe0539edb63890a1 (diff)
Initial main area widget
Has private getters/setters for two areas. Functioning container. Only shows the content widget. Added all the virtual functions for size requests and allocations. [endlessm/eos-sdk#10]
Diffstat (limited to 'endless/eosmainarea-private.h')
-rw-r--r--endless/eosmainarea-private.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/endless/eosmainarea-private.h b/endless/eosmainarea-private.h
new file mode 100644
index 0000000..3ca90ee
--- /dev/null
+++ b/endless/eosmainarea-private.h
@@ -0,0 +1,63 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#ifndef EOS_MAIN_AREA_H
+#define EOS_MAIN_AREA_H
+
+#include "eostypes.h"
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define EOS_TYPE_MAIN_AREA eos_main_area_get_type()
+
+#define EOS_MAIN_AREA(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ EOS_TYPE_MAIN_AREA, EosMainArea))
+
+#define EOS_MAIN_AREA_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ EOS_TYPE_MAIN_AREA, EosMainAreaClass))
+
+#define EOS_IS_MAIN_AREA(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ EOS_TYPE_MAIN_AREA))
+
+#define EOS_IS_MAIN_AREA_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ EOS_TYPE_MAIN_AREA))
+
+#define EOS_MAIN_AREA_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ EOS_TYPE_MAIN_AREA, EosMainAreaClass))
+
+typedef struct _EosMainArea EosMainArea;
+typedef struct _EosMainAreaClass EosMainAreaClass;
+typedef struct _EosMainAreaPrivate EosMainAreaPrivate;
+
+struct _EosMainArea
+{
+ GtkContainer parent;
+
+ EosMainAreaPrivate *priv;
+};
+
+struct _EosMainAreaClass
+{
+ GtkContainerClass parent_class;
+};
+
+GType eos_main_area_get_type (void) G_GNUC_CONST;
+
+GtkWidget *eos_main_area_new (void);
+
+void eos_main_area_set_toolbox (EosMainArea *self,
+ GtkWidget *toolbox);
+GtkWidget *eos_main_area_get_toolbox (EosMainArea *self);
+void eos_main_area_set_content (EosMainArea *self,
+ GtkWidget *content);
+GtkWidget *eos_main_area_get_content (EosMainArea *self);
+
+G_END_DECLS
+
+#endif /* EOS_MAIN_AREA_H */