Main Page | Directories | File List | File Members

hn-app-button.h

Go to the documentation of this file.
00001 /* hn-app-button.h
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  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  *
00022  */
00023 
00032 #ifndef HN_APP_BUTTON_H
00033 #define HN_APP_BUTTON_H
00034 
00035 #include <gdk-pixbuf/gdk-pixbuf.h>
00036 #include <gtk/gtktogglebutton.h>
00037 
00038 #include "hn-wm-types.h"
00039 
00040 #define APP_BUTTON_THUMBABLE 8
00041 #define APP_BUTTON_NORMAL    1
00042 
00043 G_BEGIN_DECLS
00044 
00045 #define HN_TYPE_APP_BUTTON              (hn_app_button_get_type ())
00046 #define HN_APP_BUTTON(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), HN_TYPE_APP_BUTTON, HNAppButton))
00047 #define HN_IS_APP_BUTTON(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HN_TYPE_APP_BUTTON))
00048 #define HN_APP_BUTTON_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), HN_TYPE_APP_BUTTON, HNAppButtonClass))
00049 #define HN_IS_APP_BUTTON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), HN_TYPE_APP_BUTTON))
00050 #define HN_APP_BUTTON_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), HN_TYPE_APP_BUTTON, HNAppButtonClass))
00051 
00052 typedef struct _HNAppButton        HNAppButton;
00053 typedef struct _HNAppButtonPrivate HNAppButtonPrivate;
00054 typedef struct _HNAppButtonClass   HNAppButtonClass;
00055 
00056 struct _HNAppButton
00057 {
00058   GtkToggleButton parent_instance;
00059 
00060   GSList *group;
00061 
00062   HNAppButtonPrivate *priv;
00063 };
00064 
00065 struct _HNAppButtonClass
00066 {
00067   GtkToggleButtonClass parent_class;
00068 };
00069 
00070 GType hn_app_button_get_type (void) G_GNUC_CONST;
00071 
00072 GtkWidget *  hn_app_button_new                  (GSList      *group);
00073 void         hn_app_button_set_group            (HNAppButton *button,
00074                          GSList      *group);
00075 GSList *     hn_app_button_get_group            (HNAppButton *button);
00076 
00077 void         hn_app_button_set_icon_from_pixbuf (HNAppButton *button,
00078                          GdkPixbuf   *pixbuf);
00079 GdkPixbuf *  hn_app_button_get_pixbuf_from_icon (HNAppButton *button);
00080 HNEntryInfo *hn_app_button_get_entry_info       (HNAppButton *button);
00081 void         hn_app_button_set_entry_info       (HNAppButton *button,
00082                              HNEntryInfo *info);
00083 gboolean     hn_app_button_get_is_blinking      (HNAppButton *button);
00084 void         hn_app_button_set_is_blinking      (HNAppButton *button,
00085                              gboolean     is_blinking);
00086 void         hn_app_button_force_update_icon    (HNAppButton *button);
00087 void         hn_app_button_make_active          (HNAppButton *button);
00088 G_END_DECLS
00089 
00090 #endif /* HN_APP_BUTTON_H */

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