BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
bstsplash.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BST_SPLASH_H__
3 #define __BST_SPLASH_H__
4 
5 #include "bstutils.hh"
6 
7 G_BEGIN_DECLS
8 
9 /* --- type macros --- */
10 #define BST_TYPE_SPLASH (bst_splash_get_type ())
11 #define BST_SPLASH(object) (GTK_CHECK_CAST ((object), BST_TYPE_SPLASH, BstSplash))
12 #define BST_SPLASH_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_SPLASH, BstSplashClass))
13 #define BST_IS_SPLASH(object) (GTK_CHECK_TYPE ((object), BST_TYPE_SPLASH))
14 #define BST_IS_SPLASH_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_SPLASH))
15 #define BST_SPLASH_GET_CLASS(splash) (G_TYPE_INSTANCE_GET_CLASS ((splash), BST_TYPE_SPLASH, BstSplashClass))
16 
17 
18 /* --- typedefs & enums --- */
19 typedef struct _BstSplash BstSplash;
20 typedef struct _BstSplashClass BstSplashClass;
21 
22 
23 /* --- structures --- */
24 struct _BstSplash
25 {
26  GtkWindow window;
27 
28  GtkWidget *vbox;
29 
30  GtkWidget *splash_box;
31 
32  GtkWidget *entity;
33  GtkWidget *item;
34  GtkProgressBar *pbar;
35  guint item_count;
36  guint max_items;
37  guint has_grab : 1;
38  guint timer_id;
39  gchar **strings;
40  guint n_strings;
41  guint n_rand_strings;
42  gfloat aprogress;
43 };
45 {
46  GtkWindowClass parent_class;
47 };
48 
49 
50 /* --- prototypes --- */
51 GtkType bst_splash_get_type (void);
52 GtkWidget* bst_splash_new (const gchar *role,
53  guint splash_width,
54  guint splash_height,
55  guint max_items);
56 void bst_splash_set_title (GtkWidget *widget,
57  const gchar *title);
58 void bst_splash_show_grab (GtkWidget *widget);
59 void bst_splash_release_grab (GtkWidget *widget);
60 void bst_splash_set_text (GtkWidget *widget, const std::string &message);
61 void bst_splash_set_animation (GtkWidget *widget,
62  GdkPixbufAnimation *anim);
63 void bst_splash_update (void);
64 void bst_splash_update_entity (GtkWidget *widget, const std::string &message);
65 void bst_splash_update_item (GtkWidget *widget, const std::string &message);
66 void bst_splash_animate_strings (GtkWidget *splash,
67  const gchar **strings);
68 
69 
70 G_END_DECLS
71 
72 #endif /* __BST_SPLASH_H__ */
Definition: bstsplash.hh:24
Definition: bstsplash.hh:44
STL class.