27 #ifndef _CEGUIFalComponentBase_h_
28 #define _CEGUIFalComponentBase_h_
30 #include "CEGUI/falagard/Dimensions.h"
31 #include "CEGUI/Window.h"
32 #include "CEGUI/ColourRect.h"
37 class CEGUIEXPORT FalagardComponentBase :
38 public AllocatedObject<FalagardComponentBase>
41 FalagardComponentBase();
42 virtual ~FalagardComponentBase();
59 const Rectf* clipper = 0,
bool clipToDisplay =
false)
const;
79 void render(Window& srcWindow,
const Rectf& baseRect,
81 const Rectf* clipper = 0,
bool clipToDisplay =
false)
const;
90 const ComponentArea& getComponentArea()
const;
99 void setComponentArea(
const ComponentArea& area);
109 const ColourRect& getColours()
const;
118 void setColours(
const ColourRect& cols);
127 const String& getColoursPropertySource()
const;
136 void setColoursPropertySource(
const String& property);
139 virtual bool handleFontRenderSizeChange(Window& window,
140 const Font* font)
const;
152 void initColoursRect(
const Window& wnd,
153 const ColourRect* modCols,
154 ColourRect& cr)
const;
157 virtual void render_impl(Window& srcWindow, Rectf& destRect,
159 const Rectf* clipper,
bool clipToDisplay)
const = 0;
175 bool writeColoursXML(XMLSerializer& xml_stream)
const;
178 ComponentArea d_area;
180 ColourRect d_colours;
182 String d_colourPropertyName;