diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-24 08:26:22 -0700 |
---|---|---|
committer | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-24 08:26:22 -0700 |
commit | 51ad28a4d90a1c8691127eccbbe0b170f53ef71e (patch) | |
tree | a69b1b90cd6d32f696d5f42fa2f9706ffc2ee921 /endless/window.h | |
parent | bb6bd3b5dbd59d6a3bae1ad7b3878d55ceadc60b (diff) | |
parent | 60bf094db89ab098a7d56169c8657f7a26dd7590 (diff) |
Merge pull request #15 from endlessm/issues/4
Application class
Diffstat (limited to 'endless/window.h')
-rw-r--r-- | endless/window.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/endless/window.h b/endless/window.h new file mode 100644 index 0000000..b92b4eb --- /dev/null +++ b/endless/window.h @@ -0,0 +1,71 @@ +/* Copyright 2013 Endless Mobile, Inc. */ + +#if !(defined(_EOS_SDK_INSIDE_ENDLESS_H) || defined(COMPILING_EOS_SDK)) +#error "Please do not include this header file directly." +#endif + +#ifndef EOS_WINDOW_H +#define EOS_WINDOW_H + +#include "types.h" + +#include "application.h" + +G_BEGIN_DECLS + +#define EOS_TYPE_WINDOW eos_window_get_type() + +#define EOS_WINDOW(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + EOS_TYPE_WINDOW, EosWindow)) + +#define EOS_WINDOW_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + EOS_TYPE_WINDOW, EosWindowClass)) + +#define EOS_IS_WINDOW(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + EOS_TYPE_WINDOW)) + +#define EOS_IS_WINDOW_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + EOS_TYPE_WINDOW)) + +#define EOS_WINDOW_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EOS_TYPE_WINDOW, EosWindowClass)) + +typedef struct _EosWindow EosWindow; +typedef struct _EosWindowClass EosWindowClass; +typedef struct _EosWindowPrivate EosWindowPrivate; + +/** + * EosWindow: + * + * This class structure contains no public members. + */ +struct _EosWindow +{ + /*< private >*/ + GtkApplicationWindow parent; + + EosWindowPrivate *priv; +}; + +struct _EosWindowClass +{ + GtkApplicationWindowClass parent_class; + + /* For further expansion */ + gpointer _padding[8]; +}; + +EOS_SDK_ALL_API_VERSIONS +GType eos_window_get_type (void) G_GNUC_CONST; + +EOS_SDK_ALL_API_VERSIONS +GtkWidget *eos_window_new (EosApplication *application); + +G_END_DECLS + +#endif /* EOS_WINDOW_H */ |