src/Graphics/GUIStyle.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 23:07:22 +0200
branchnew_graphics
changeset 412 721c60072091
parent 410 41fd46cffc52
permissions -rw-r--r--
new graphics code compiles... no, it doesn't work yet
#ifndef GRAPHICS_GUI_STYLE_HH
#define GRAPHICS_GUI_STYLE_HH

#include "GUI.hh"

#include <ClanLib/guistylesilver.h>

namespace graphics
{

/**
 * Our CL_StyleManager used for drawing ClanLib's GUI components
 */    
class GUIStyle : public CL_StyleManager_Silver {
public:
    /**
     * Construct GUI style
     */
    GUIStyle (CL_ResourceManager *resources) :
        CL_StyleManager_Silver(resources)
    {

    }
    
    /**
     * Handle attaching style objects to components
     */
    virtual void connect_styles (const std::string &type, CL_Component *component) {

        // default to parent impl
        CL_StyleManager_Silver::connect_styles(type, component);
    }
};

}

#endif