* src/hildon-*.c * src/hildon-*.h: Ensure a consistent include order, include <gtk...
[hildon] / src / hildon-window-private.h
index 92ea85e..281c8b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of hildon-libs
+ * This file is a part of hildon
  *
  * Copyright (C) 2006 Nokia Corporation, all rights reserved.
  *
@@ -8,7 +8,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  *
  */
 
+#ifndef                                         __HILDON_WINDOW_PRIVATE_H__
+#define                                         __HILDON_WINDOW_PRIVATE_H__
 
-#ifndef __HILDON_WINDOW_PRIVATE_H__
-#define __HILDON_WINDOW_PRIVATE_H__
+#include                                        "hildon-program.h"
+
+#include                                        <X11/Xlib.h>
 
 G_BEGIN_DECLS
 
-void
-hildon_window_set_program (HildonWindow *self, GObject *program);
+typedef struct                                  _HildonWindowPrivate HildonWindowPrivate;
+
+struct                                          _HildonWindowPrivate
+{
+    GtkWidget *menu;
+    GtkWidget *vbox;
+
+    GtkBorder *borders;
+    GtkBorder *toolbar_borders;
+
+    GtkAllocation allocation;
+
+    guint fullscreen;
+    guint is_topmost;
+    guint escape_timeout;
+    gint visible_toolbars;
+    gint previous_vbox_y;
 
-void
-hildon_window_unset_program (HildonWindow *self);
+    HildonProgram *program;
+};
 
-void 
-hildon_window_set_can_hibernate_property (HildonWindow *self, 
-                                          gpointer can_hibernate);
+#define                                         HILDON_WINDOW_GET_PRIVATE(obj) \
+                                                (G_TYPE_INSTANCE_GET_PRIVATE ((obj),\
+                                                HILDON_TYPE_WINDOW, HildonWindowPrivate))
 
-void
-hildon_window_take_common_toolbar (HildonWindow *self);
+void G_GNUC_INTERNAL
+hildon_window_set_program                       (HildonWindow *self, 
+                                                 GObject *program);
 
-void
-hildon_window_update_topmost (HildonWindow *self, Window window_id);
+void G_GNUC_INTERNAL
+hildon_window_unset_program                     (HildonWindow *self);
 
-Window
-hildon_window_get_active_window (void);
+void G_GNUC_INTERNAL
+hildon_window_set_can_hibernate_property        (HildonWindow *self, 
+                                                 gpointer can_hibernate);
 
-void
-hildon_window_update_title (HildonWindow *window);
+void G_GNUC_INTERNAL
+hildon_window_take_common_toolbar               (HildonWindow *self);
+
+void G_GNUC_INTERNAL
+hildon_window_update_topmost                    (HildonWindow *self, 
+                                                 Window window_id);
+
+Window G_GNUC_INTERNAL
+hildon_window_get_active_window                 (void);
+
+void G_GNUC_INTERNAL
+hildon_window_update_title                      (HildonWindow *window);
 
 G_END_DECLS
-#endif /* __HILDON_WINDOW_PRIVATE_H__ */
+
+#endif                                          /* __HILDON_WINDOW_PRIVATE_H__ */