src/Graphics/GUIStyle.hh
branchnew_graphics
changeset 410 41fd46cffc52
child 412 721c60072091
equal deleted inserted replaced
409:1a03ff151abc 410:41fd46cffc52
       
     1 #ifndef GRAPHICS_GUI_STYLE_HH
       
     2 #define GRAPHICS_GUI_STYLE_HH
       
     3 
       
     4 #include <ClanLib/gui.h>
       
     5 #include <ClanLib/guistyleboring.h>
       
     6 
       
     7 namespace graphics
       
     8 {
       
     9 
       
    10 /**
       
    11  * Our CL_StyleManager used for drawing ClanLib's GUI components
       
    12  */    
       
    13 class GUIStyle : public CL_StyleManager_Boring {
       
    14 public:
       
    15     /**
       
    16      * Construct GUI style
       
    17      */
       
    18     GUIStyle (CL_ResourceManager *resources) :
       
    19         CL_StyleManager_Boring(resources)
       
    20     {
       
    21 
       
    22     }
       
    23     
       
    24     /**
       
    25      * Handle attaching style objects to components
       
    26      */
       
    27     virtual void connect_styles (const std::string &type, CL_Component *owner) {
       
    28 
       
    29         // default to parent impl
       
    30         CL_StyleManager_Boring::connect_styles(type, component);
       
    31     }
       
    32 };
       
    33 
       
    34 }
       
    35 
       
    36 #endif