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