00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __HILDON_HOME_AREA_H__
00026 #define __HILDON_HOME_AREA_H__
00027
00028 #include <gtk/gtkfixed.h>
00029 #include "hildon-plugin-list.h"
00030
00031 G_BEGIN_DECLS
00032
00033
00034 #define HILDON_TYPE_HOME_AREA (hildon_home_area_get_type())
00035 #define HILDON_HOME_AREA(obj) \
00036 (GTK_CHECK_CAST (obj, HILDON_TYPE_HOME_AREA, HildonHomeArea))
00037 #define HILDON_HOME_AREA_CLASS(klass) \
00038 (GTK_CHECK_CLASS_CAST ((klass),\
00039 HILDON_TYPE_HOME_AREA, HildonHomeAreaClass))
00040 #define HILDON_IS_HOME_AREA(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_HOME_AREA))
00041 #define HILDON_IS_HOME_AREA_CLASS(klass) \
00042 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_HOME_AREA))
00043
00044
00045 typedef struct _HildonHomeArea
00046 {
00047 GtkFixed parent;
00048
00049 } HildonHomeArea;
00050
00051 typedef struct _HildonHomeAreaClass
00052 {
00053 GtkFixedClass parent_class;
00054
00055 void (* layout_mode_start) (HildonHomeArea *area);
00056 void (* layout_mode_started) (HildonHomeArea *area);
00057 void (* layout_mode_end) (HildonHomeArea *area);
00058 void (* layout_mode_ended) (HildonHomeArea *area);
00059 void (* layout_changed) (HildonHomeArea *area);
00060
00061 void (* applet_change_start) (HildonHomeArea *area, GtkWidget *w);
00062 void (* applet_change_end) (HildonHomeArea *area, GtkWidget *w);
00063
00064 void (* applet_added) (HildonHomeArea *area, GtkWidget *w);
00065 void (* applet_selected) (HildonHomeArea *area, GtkWidget *w);
00066
00067 } HildonHomeAreaClass;
00068
00069 GType hildon_home_area_get_type (void);
00070
00071 GtkWidget * hildon_home_area_new (void);
00072
00073 void hildon_home_area_set_layout_mode (HildonHomeArea *area,
00074 gboolean layout_mode);
00075
00076 gboolean hildon_home_area_get_layout_mode (HildonHomeArea *area);
00077
00078 gint hildon_home_area_save_configuration (HildonHomeArea *area,
00079 const gchar *filename);
00080 void hildon_home_area_load_configuration (HildonHomeArea *area,
00081 const gchar *filename);
00082
00083 gint hildon_home_area_sync_from_list (HildonHomeArea *area,
00084 HildonPluginList *list);
00085
00086 void hildon_home_area_sync_to_list (HildonHomeArea *area,
00087 HildonPluginList *list);
00088
00089 gboolean hildon_home_area_get_layout_changed (HildonHomeArea *area);
00090
00091 gboolean hildon_home_area_get_overlaps (HildonHomeArea *area);
00092
00093
00094 G_END_DECLS
00095
00096
00097 #endif