summaryrefslogtreecommitdiff
path: root/endless/eosactionbutton.h
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-06-28 22:06:06 -0700
committerPhilip Chimento <philip@endlessm.com>2013-06-28 22:06:06 -0700
commitcf480c9de94a74fb705d00b4c6ac8390cbfdaf6a (patch)
tree690b5040957ca0863a05be47f0bb5f828ad8d89c /endless/eosactionbutton.h
parentfe90102bc9ebd808a7abe7ce060d2182399e3899 (diff)
Make EosActionButton public and document it
Rename eosactionbutton-private.h to eosactionbutton.h, make sure it gets picked up in the documentation, include it in endless.h, make all the new public API documentation complete, and put the EosActionButtonSize enum documentation on the EosActionButton page. [endlessm/eos-sdk#133]
Diffstat (limited to 'endless/eosactionbutton.h')
-rw-r--r--endless/eosactionbutton.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/endless/eosactionbutton.h b/endless/eosactionbutton.h
new file mode 100644
index 0000000..ad9c4cb
--- /dev/null
+++ b/endless/eosactionbutton.h
@@ -0,0 +1,89 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#ifndef EOS_ACTION_BUTTON_H
+#define EOS_ACTION_BUTTON_H
+
+#include "eostypes.h"
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define EOS_TYPE_ACTION_BUTTON eos_action_button_get_type()
+
+#define EOS_ACTION_BUTTON(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ EOS_TYPE_ACTION_BUTTON, EosActionButton))
+
+#define EOS_ACTION_BUTTON_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ EOS_TYPE_ACTION_BUTTON, EosActionButtonClass))
+
+#define EOS_IS_ACTION_BUTTON(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ EOS_TYPE_ACTION_BUTTON))
+
+#define EOS_IS_ACTION_BUTTON_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ EOS_TYPE_ACTION_BUTTON))
+
+#define EOS_ACTION_BUTTON_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ EOS_TYPE_ACTION_BUTTON, EosActionButtonClass))
+
+typedef struct _EosActionButton EosActionButton;
+typedef struct _EosActionButtonClass EosActionButtonClass;
+typedef struct _EosActionButtonPrivate EosActionButtonPrivate;
+
+/**
+ * EosActionButton:
+ *
+ * This class structure contains no public members.
+ */
+struct _EosActionButton
+{
+ GtkButton parent;
+
+ EosActionButtonPrivate *priv;
+};
+
+struct _EosActionButtonClass
+{
+ GtkButtonClass parent_class;
+
+ /* For further expansion */
+ gpointer _padding[8];
+};
+
+EOS_SDK_ALL_API_VERSIONS
+GType eos_action_button_get_type (void) G_GNUC_CONST;
+
+EOS_SDK_ALL_API_VERSIONS
+GtkWidget *eos_action_button_new (EosActionButtonSize size,
+ const gchar *label,
+ const gchar *icon_id);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_action_button_set_size (EosActionButton *button,
+ EosActionButtonSize size);
+
+EOS_SDK_ALL_API_VERSIONS
+EosActionButtonSize eos_action_button_get_size (EosActionButton *button);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_action_button_set_label (EosActionButton *button,
+ const gchar *label);
+
+EOS_SDK_ALL_API_VERSIONS
+const gchar *eos_action_button_get_label (EosActionButton *button);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_action_button_set_icon_id (EosActionButton *button,
+ const gchar *icon_id);
+
+EOS_SDK_ALL_API_VERSIONS
+const gchar *eos_action_button_get_icon_id (EosActionButton *button);
+
+G_END_DECLS
+
+#endif /* EOS_ACTION_BUTTON_H */