2
Copyright (C) 2007 Christian Dywan <christian@twotoasts.de>
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.
9
See the file COPYING for the full license text.
12
#ifndef __KATZE_THROBBER_H__
13
#define __KATZE_THROBBER_H__
16
#include <gtk/gtkmisc.h>
18
#include "katze-utils.h"
22
#define KATZE_TYPE_THROBBER \
23
(katze_throbber_get_type ())
24
#define KATZE_THROBBER(obj) \
25
(G_TYPE_CHECK_INSTANCE_CAST ((obj), KATZE_TYPE_THROBBER, KatzeThrobber))
26
#define KATZE_THROBBER_CLASS(klass) \
27
(G_TYPE_CHECK_CLASS_CAST ((klass), KATZE_TYPE_THROBBER, KatzeThrobberClass))
28
#define KATZE_IS_THROBBER(obj) \
29
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), KATZE_TYPE_THROBBER))
30
#define KATZE_IS_THROBBER_CLASS(klass) \
31
(G_TYPE_CHECK_CLASS_TYPE ((klass), KATZE_TYPE_THROBBER))
32
#define KATZE_THROBBER_GET_CLASS(obj) \
33
(G_TYPE_INSTANCE_GET_CLASS ((obj), KATZE_TYPE_THROBBER, KatzeThrobberClass))
35
typedef struct _KatzeThrobber KatzeThrobber;
36
typedef struct _KatzeThrobberPrivate KatzeThrobberPrivate;
37
typedef struct _KatzeThrobberClass KatzeThrobberClass;
41
KatzeThrobberPrivate* priv;
42
GtkWidget parent_object;
44
/* Padding for future expansion */
45
void (*_katze_reserved1) (void);
46
void (*_katze_reserved2) (void);
47
void (*_katze_reserved3) (void);
48
void (*_katze_reserved4) (void);
51
struct _KatzeThrobberClass
53
GtkMiscClass parent_class;
55
/* Padding for future expansion */
56
void (*_katze_reserved1) (void);
57
void (*_katze_reserved2) (void);
58
void (*_katze_reserved3) (void);
59
void (*_katze_reserved4) (void);
63
katze_throbber_get_type (void) G_GNUC_CONST;
66
katze_throbber_new (void);
69
katze_throbber_set_icon_size (KatzeThrobber* throbber,
70
GtkIconSize icon_size);
73
katze_throbber_set_icon_name (KatzeThrobber* throbber,
74
const gchar* icon_size);
77
katze_throbber_set_pixbuf (KatzeThrobber* throbber,
81
katze_throbber_set_animated (KatzeThrobber* throbber,
85
katze_throbber_set_static_icon_name (KatzeThrobber* throbber,
86
const gchar* icon_name);
89
katze_throbber_set_static_pixbuf (KatzeThrobber* throbber,
93
katze_throbber_set_static_stock_id (KatzeThrobber* throbber,
94
const gchar* stock_id);
97
katze_throbber_get_icon_size (KatzeThrobber* throbber);
100
katze_throbber_get_icon_name (KatzeThrobber* throbber);
103
katze_throbber_get_pixbuf (KatzeThrobber* throbber);
106
katze_throbber_get_animated (KatzeThrobber* throbber);
109
katze_throbber_get_static_icon_name (KatzeThrobber *throbber);
112
katze_throbber_get_static_pixbuf (KatzeThrobber* throbber);
115
katze_throbber_get_static_stock_id (KatzeThrobber* throbber);
119
#endif /* __KATZE_THROBBER_H__ */