27 #ifndef _CEGUIFalImagerySection_h_ 28 #define _CEGUIFalImagerySection_h_ 30 #include "./ImageryComponent.h" 31 #include "./TextComponent.h" 32 #include "./FrameComponent.h" 33 #include "../XMLSerializer.h" 36 # pragma warning(push) 37 # pragma warning(disable : 4251) 47 class CEGUIEXPORT ImagerySection :
48 public AllocatedObject<ImagerySection>
64 ImagerySection(
const String& name);
79 void render(Window& srcWindow,
const CEGUI::ColourRect* modColours = 0,
const Rectf* clipper = 0,
bool clipToDisplay =
false)
const;
97 void render(Window& srcWindow,
const Rectf& baseRect,
const CEGUI::ColourRect* modColours = 0,
const Rectf* clipper = 0,
bool clipToDisplay =
false)
const;
109 void addImageryComponent(
const ImageryComponent& img);
110 void removeImageryComponent(
const ImageryComponent& img);
118 void clearImageryComponents();
130 void addTextComponent(
const TextComponent& text);
131 void removeTextComponent(
const TextComponent& text);
139 void clearTextComponents();
148 void clearFrameComponents();
160 void addFrameComponent(
const FrameComponent& frame);
161 void removeFrameComponent(
const FrameComponent& frame);
170 const ColourRect& getMasterColours()
const;
182 void setMasterColours(
const ColourRect& cols);
191 const String& getName()
const;
203 void setName(
const String& name);
212 const String& getMasterColoursPropertySource()
const;
224 void setMasterColoursPropertySource(
const String& property);
230 Rectf getBoundingRect(
const Window& wnd)
const;
236 Rectf getBoundingRect(
const Window& wnd,
const Rectf& rect)
const;
249 void writeXMLToStream(XMLSerializer& xml_stream)
const;
252 bool handleFontRenderSizeChange(Window& window,
const Font* font)
const;
264 void initMasterColourRect(
const Window& wnd, ColourRect& cr)
const;
267 typedef std::vector<ImageryComponent
268 CEGUI_VECTOR_ALLOC(ImageryComponent)> ImageryList;
269 typedef std::vector<TextComponent
270 CEGUI_VECTOR_ALLOC(TextComponent)> TextList;
271 typedef std::vector<FrameComponent
272 CEGUI_VECTOR_ALLOC(FrameComponent)> FrameList;
277 ImageryList d_images;
279 String d_colourPropertyName;
282 typedef ConstVectorIterator<ImageryList> ImageryComponentIterator;
283 typedef ConstVectorIterator<TextList> TextComponentIterator;
284 typedef ConstVectorIterator<FrameList> FrameComponentIterator;
291 ImageryComponentIterator getImageryComponentIterator()
const;
298 TextComponentIterator getTextComponentIterator()
const;
305 FrameComponentIterator getFrameComponentIterator()
const;
312 #if defined(_MSC_VER) 313 # pragma warning(pop) 316 #endif // end of guard _CEGUIFalImagerySection_h_ Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: cegui/include/CEGUI/ColourRect.h:43
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62