summaryrefslogtreecommitdiff
path: root/applets/clock/clock-face.h
diff options
context:
space:
mode:
Diffstat (limited to 'applets/clock/clock-face.h')
-rw-r--r--applets/clock/clock-face.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/applets/clock/clock-face.h b/applets/clock/clock-face.h
new file mode 100644
index 00000000..3c665c63
--- /dev/null
+++ b/applets/clock/clock-face.h
@@ -0,0 +1,64 @@
+/**
+ * clock.h
+ *
+ * A GTK+ widget that implements a clock face
+ *
+ * (c) 2007, Peter Teichman
+ * (c) 2005-2006, Davyd Madeley
+ *
+ * Authors:
+ * Davyd Madeley <[email protected]>
+ * Peter Teichman <[email protected]>
+ */
+
+#ifndef __INTL_CLOCK_FACE_H__
+#define __INTL_CLOCK_FACE_H__
+
+#include <gtk/gtk.h>
+#include "clock-location.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define INTL_TYPE_CLOCK_FACE (clock_face_get_type ())
+#define CLOCK_FACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INTL_TYPE_CLOCK_FACE, ClockFace))
+#define CLOCK_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), INTL_CLOCK_FACE, ClockFaceClass))
+#define INTL_IS_CLOCK_FACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INTL_TYPE_CLOCK_FACE))
+#define INTL_IS_CLOCK_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), INTL_TYPE_CLOCK_FACE))
+#define CLOCK_FACE_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), INTL_TYPE_CLOCK_FACE, ClockFaceClass))
+
+typedef struct _ClockFace ClockFace;
+typedef struct _ClockFaceClass ClockFaceClass;
+
+struct _ClockFace
+{
+ GtkWidget parent;
+
+ /* < private > */
+};
+
+struct _ClockFaceClass
+{
+ GtkWidgetClass parent_class;
+};
+
+typedef enum {
+ CLOCK_FACE_SMALL,
+ CLOCK_FACE_LARGE
+} ClockFaceSize;
+
+GType clock_face_get_type (void);
+
+GtkWidget *clock_face_new (ClockFaceSize size);
+GtkWidget *clock_face_new_with_location (ClockFaceSize size,
+ ClockLocation *loc,
+ GtkWidget *size_widget);
+gboolean clock_face_refresh (ClockFace *this);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif