/katze/katze-throbber.h
C++ Header | 94 lines | 60 code | 24 blank | 10 comment | 0 complexity | cdf51ef012b4e54626f5745b56970315 MD5 | raw file
Possible License(s): LGPL-2.1
1/* 2 Copyright (C) 2007 Christian Dywan <christian@twotoasts.de> 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 See the file COPYING for the full license text. 10*/ 11 12#ifndef __KATZE_THROBBER_H__ 13#define __KATZE_THROBBER_H__ 14 15#include <gtk/gtk.h> 16 17G_BEGIN_DECLS 18 19#define KATZE_TYPE_THROBBER \ 20 (katze_throbber_get_type ()) 21#define KATZE_THROBBER(obj) \ 22 (G_TYPE_CHECK_INSTANCE_CAST ((obj), KATZE_TYPE_THROBBER, KatzeThrobber)) 23#define KATZE_THROBBER_CLASS(klass) \ 24 (G_TYPE_CHECK_CLASS_CAST ((klass), KATZE_TYPE_THROBBER, KatzeThrobberClass)) 25#define KATZE_IS_THROBBER(obj) \ 26 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KATZE_TYPE_THROBBER)) 27#define KATZE_IS_THROBBER_CLASS(klass) \ 28 (G_TYPE_CHECK_CLASS_TYPE ((klass), KATZE_TYPE_THROBBER)) 29#define KATZE_THROBBER_GET_CLASS(obj) \ 30 (G_TYPE_INSTANCE_GET_CLASS ((obj), KATZE_TYPE_THROBBER, KatzeThrobberClass)) 31 32typedef struct _KatzeThrobber KatzeThrobber; 33typedef struct _KatzeThrobberPrivate KatzeThrobberPrivate; 34typedef struct _KatzeThrobberClass KatzeThrobberClass; 35 36 37GType 38katze_throbber_get_type (void) G_GNUC_CONST; 39 40GtkWidget* 41katze_throbber_new (void); 42 43void 44katze_throbber_set_icon_size (KatzeThrobber* throbber, 45 GtkIconSize icon_size); 46 47void 48katze_throbber_set_icon_name (KatzeThrobber* throbber, 49 const gchar* icon_size); 50 51void 52katze_throbber_set_pixbuf (KatzeThrobber* throbber, 53 GdkPixbuf* pixbuf); 54 55void 56katze_throbber_set_animated (KatzeThrobber* throbber, 57 gboolean animated); 58 59void 60katze_throbber_set_static_icon_name (KatzeThrobber* throbber, 61 const gchar* icon_name); 62 63void 64katze_throbber_set_static_pixbuf (KatzeThrobber* throbber, 65 GdkPixbuf* pixbuf); 66 67void 68katze_throbber_set_static_stock_id (KatzeThrobber* throbber, 69 const gchar* stock_id); 70 71GtkIconSize 72katze_throbber_get_icon_size (KatzeThrobber* throbber); 73 74const gchar* 75katze_throbber_get_icon_name (KatzeThrobber* throbber); 76 77GdkPixbuf* 78katze_throbber_get_pixbuf (KatzeThrobber* throbber); 79 80gboolean 81katze_throbber_get_animated (KatzeThrobber* throbber); 82 83const gchar* 84katze_throbber_get_static_icon_name (KatzeThrobber *throbber); 85 86GdkPixbuf* 87katze_throbber_get_static_pixbuf (KatzeThrobber* throbber); 88 89const gchar* 90katze_throbber_get_static_stock_id (KatzeThrobber* throbber); 91 92G_END_DECLS 93 94#endif /* __KATZE_THROBBER_H__ */