Main Page | Directories | File List | File Members

hildon-home-area.h

00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  * Author: Johan Bilien <johan.bilien@nokia.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
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

Generated on Thu Dec 21 11:26:50 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2