BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
gxkstock.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 __GXK_STOCK_H__
00003 #define __GXK_STOCK_H__
00004 
00005 #include        <gxk/gxkutils.hh>
00006 
00007 G_BEGIN_DECLS
00008 
00009 /* --- icon sizes --- */
00010 #define GXK_ICON_SIZE_BUTTON      (gxk_size_button)
00011 #define GXK_ICON_SIZE_BIG_BUTTON  (gxk_size_big_button)
00012 #define GXK_ICON_SIZE_CANVAS      (gxk_size_canvas)
00013 #define GXK_ICON_SIZE_TOOLBAR     (gxk_size_toolbar)
00014 #define GXK_ICON_SIZE_MENU        (gxk_size_menu)
00015 #define GXK_ICON_SIZE_TABULATOR   (gxk_size_tabulator)
00016 #define GXK_ICON_SIZE_INFO_SIGN   (gxk_size_info_sign)
00017 #define GXK_ICON_SIZE_PALETTE     (gxk_size_palette)
00018 guint   gxk_size_width            (GtkIconSize   icon_size);
00019 guint   gxk_size_height           (GtkIconSize   icon_size);
00020 
00021 
00022 /* --- functions --- */
00023 GtkWidget*    gxk_stock_image           (const gchar    *stock_icon_id,
00024                                          GtkIconSize     icon_size);
00025 GtkWidget*    gxk_stock_button          (const gchar    *stock_id,
00026                                          const gchar    *label);
00027 GtkWidget*    gxk_stock_button_child    (const gchar    *stock_id,
00028                                          const gchar    *label);
00029 const gchar*  gxk_stock_item            (const gchar    *stock_id);
00030 GdkPixbuf*    gxk_stock_fallback_pixbuf (const gchar    *stock_id);
00031 GtkWidget*    gxk_stock_icon_window     (const gchar    *stock_id);
00032 
00033 
00034 /* --- registration --- */
00035 typedef struct {
00036   const gchar  *stock_id;
00037   const guint8 *inlined_pixbuf;
00038 } GxkStockIcon;
00039 typedef struct {
00040   const gchar  *stock_id;
00041   const gchar  *label;
00042   const gchar  *stock_fallback;
00043 } GxkStockItem;
00044 void        gxk_stock_register_icon     (const GxkStockIcon     *icon);
00045 void        gxk_stock_register_icons    (guint                   n_icons,
00046                                          const GxkStockIcon     *icons);
00047 void        gxk_stock_register_item     (const GxkStockItem     *item);
00048 void        gxk_stock_register_items    (guint                   n_items,
00049                                          const GxkStockItem     *items);
00050 
00051 
00052 /* --- internal --- */
00053 extern GtkIconSize      gxk_size_button;
00054 extern GtkIconSize      gxk_size_big_button;
00055 extern GtkIconSize      gxk_size_canvas;
00056 extern GtkIconSize      gxk_size_toolbar;
00057 extern GtkIconSize      gxk_size_menu;
00058 extern GtkIconSize      gxk_size_tabulator;
00059 extern GtkIconSize      gxk_size_info_sign;
00060 extern GtkIconSize      gxk_size_palette;
00061 
00062 
00063 G_END_DECLS
00064 
00065 #endif /* __GXK_STOCK_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines