BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bstsplash.hh
Go to the documentation of this file.
00001  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
00002 #ifndef __BST_SPLASH_H__
00003 #define __BST_SPLASH_H__
00004 
00005 #include        "bstutils.hh"
00006 
00007 G_BEGIN_DECLS
00008 
00009 /* --- type macros --- */
00010 #define BST_TYPE_SPLASH              (bst_splash_get_type ())
00011 #define BST_SPLASH(object)           (GTK_CHECK_CAST ((object), BST_TYPE_SPLASH, BstSplash))
00012 #define BST_SPLASH_CLASS(klass)      (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_SPLASH, BstSplashClass))
00013 #define BST_IS_SPLASH(object)        (GTK_CHECK_TYPE ((object), BST_TYPE_SPLASH))
00014 #define BST_IS_SPLASH_CLASS(klass)   (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_SPLASH))
00015 #define BST_SPLASH_GET_CLASS(splash) (G_TYPE_INSTANCE_GET_CLASS ((splash), BST_TYPE_SPLASH, BstSplashClass))
00016 
00017 
00018 /* --- typedefs & enums --- */
00019 typedef struct  _BstSplash       BstSplash;
00020 typedef struct  _BstSplashClass  BstSplashClass;
00021 
00022 
00023 /* --- structures --- */
00024 struct _BstSplash
00025 {
00026   GtkWindow       window;
00027 
00028   GtkWidget      *vbox;
00029 
00030   GtkWidget      *splash_box;
00031 
00032   GtkWidget      *entity;
00033   GtkWidget      *item;
00034   GtkProgressBar *pbar;
00035   guint           item_count;
00036   guint           max_items;
00037   guint           has_grab : 1;
00038   guint           timer_id;
00039   gchar         **strings;
00040   guint           n_strings;
00041   guint           n_rand_strings;
00042   gfloat          aprogress;
00043 };
00044 struct _BstSplashClass
00045 {
00046   GtkWindowClass parent_class;
00047 };
00048 
00049 
00050 /* --- prototypes --- */
00051 GtkType         bst_splash_get_type             (void);
00052 GtkWidget*      bst_splash_new                  (const gchar    *role,
00053                                                  guint           splash_width,
00054                                                  guint           splash_height,
00055                                                  guint           max_items);
00056 void            bst_splash_set_title            (GtkWidget      *widget,
00057                                                  const gchar    *title);
00058 void            bst_splash_show_grab            (GtkWidget      *widget);
00059 void            bst_splash_release_grab         (GtkWidget      *widget);
00060 void            bst_splash_set_text             (GtkWidget *widget, const std::string &message);
00061 void            bst_splash_set_animation        (GtkWidget      *widget,
00062                                                  GdkPixbufAnimation *anim);
00063 void            bst_splash_update               (void);
00064 void            bst_splash_update_entity        (GtkWidget *widget, const std::string &message);
00065 void            bst_splash_update_item          (GtkWidget *widget, const std::string &message);
00066 void            bst_splash_animate_strings      (GtkWidget      *splash,
00067                                                  const gchar   **strings);
00068 
00069 
00070 G_END_DECLS
00071 
00072 #endif  /* __BST_SPLASH_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines