hildon-home-applet.h

Go to the documentation of this file.
00001 
00002 /*
00003  * This file is part of maemo-af-desktop
00004  *
00005  * Copyright (C) 2005 Nokia Corporation.
00006  *
00007  * Contact: Karoliina Salminen <karoliina.t.salminen@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  * as published by the Free Software Foundation; either version 2.1 of
00012  * the License, or (at your option) any later version.
00013  *
00014  * This library is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with this library; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00022  * 02110-1301 USA
00023  *
00024  */
00025 
00033 #ifndef HILDON_HOME_APPLET_H
00034 #define HILDON_HOME_APPLET_H
00035 
00036 #include <glib.h>
00037 #include <glib-object.h>
00038 #include <gtk/gtkbin.h>
00039 #include <gtk/gtkmenu.h>
00040 #include <gtk/gtktoolbar.h>
00041 #include <gdk/gdkx.h>
00042 
00043 G_BEGIN_DECLS
00044 
00045 #define HILDON_TYPE_APPLET ( hildon_home_applet_get_type() )
00046 #define HILDON_HOME_APPLET(obj) \
00047     (GTK_CHECK_CAST (obj, HILDON_TYPE_APPLET, HildonHomeApplet))
00048 #define HILDON_HOME_APPLET_CLASS(klass) \
00049     (GTK_CHECK_CLASS_CAST ((klass),\
00050      HILDON_TYPE_APPLET, HildonHomeAppletClass))
00051 #define HILDON_IS_HOME_APPLET(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_APPLET))
00052 #define HILDON_IS_HOME_APPLET_CLASS(klass) \
00053     (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_APPLET))
00054 typedef struct _HildonHomeApplet HildonHomeApplet;
00055 typedef struct _HildonHomeAppletClass HildonHomeAppletClass;
00056 
00057 struct _HildonHomeApplet {
00058     GtkBin parent;
00059 };
00060 
00061 struct _HildonHomeAppletClass {
00062     GtkBinClass parent_class;
00063 };
00064 
00065 GType hildon_home_applet_get_type(void);
00066 
00074 GtkWidget *hildon_home_applet_new(void/*gchar *applet_name*/);
00075 
00076 /* hildon_home_applet_has_focus
00077  * Used to show correct borders of the application view when applet's
00078  * child widget gets focus or loses it.
00079  *  
00080  * @param ApplicationSwitcher_t Returned by a previous call to
00081  *                              hildon_home_applet_new()
00082  * @param has_focus  TRUE if child has focus
00083  */
00084 void hildon_home_applet_has_focus(HildonHomeApplet *applet, 
00085                                   gboolean has_focus);
00086 
00087 G_END_DECLS
00088 #endif /* HILDON_HOME_APPLET_H */

Generated on Fri Jun 9 16:23:03 2006 for maemo-af-desktop-documentation by  doxygen 1.4.6