Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 /* --- type macros --- */
8 #define BST_TYPE_SPLASH (bst_splash_get_type ())
9 #define BST_SPLASH(object) (GTK_CHECK_CAST ((object), BST_TYPE_SPLASH, BstSplash))
10 #define BST_SPLASH_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_SPLASH, BstSplashClass))
11 #define BST_IS_SPLASH(object) (GTK_CHECK_TYPE ((object), BST_TYPE_SPLASH))
12 #define BST_IS_SPLASH_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_SPLASH))
13 #define BST_SPLASH_GET_CLASS(splash) (G_TYPE_INSTANCE_GET_CLASS ((splash), BST_TYPE_SPLASH, BstSplashClass))
14 
15 
16 /* --- typedefs & enums --- */
17 typedef struct _BstSplash BstSplash;
18 typedef struct _BstSplashClass BstSplashClass;
19 
20 
21 /* --- structures --- */
22 struct _BstSplash
23 {
24  GtkWindow window;
25 
26  GtkWidget *vbox;
27 
28  GtkWidget *splash_box;
29 
30  GtkWidget *entity;
31  GtkWidget *item;
32  GtkProgressBar *pbar;
33  guint item_count;
34  guint max_items;
35  guint has_grab : 1;
36  guint timer_id;
37  gchar **strings;
38  guint n_strings;
39  guint n_rand_strings;
40  gfloat aprogress;
41 };
43 {
44  GtkWindowClass parent_class;
45 };
46 
47 
48 /* --- prototypes --- */
49 GtkType bst_splash_get_type (void);
50 GtkWidget* bst_splash_new (const gchar *role,
51  guint splash_width,
52  guint splash_height,
53  guint max_items);
54 void bst_splash_set_title (GtkWidget *widget,
55  const gchar *title);
56 void bst_splash_show_grab (GtkWidget *widget);
57 void bst_splash_release_grab (GtkWidget *widget);
58 void bst_splash_set_text (GtkWidget *widget, const std::string &message);
59 void bst_splash_set_animation (GtkWidget *widget,
60  GdkPixbufAnimation *anim);
61 void bst_splash_update (void);
62 void bst_splash_update_entity (GtkWidget *widget, const std::string &message);
63 void bst_splash_update_item (GtkWidget *widget, const std::string &message);
64 void bst_splash_animate_strings (GtkWidget *splash,
65  const gchar **strings);
66 
67 
68 #endif /* __BST_SPLASH_H__ */
Definition: bstsplash.hh:22
Definition: bstsplash.hh:42
STL class.