27#ifndef _CEGUIFalImagerySection_h_
28#define _CEGUIFalImagerySection_h_
30#include "./ImageryComponent.h"
31#include "./TextComponent.h"
32#include "./FrameComponent.h"
33#include "../XMLSerializer.h"
37# pragma warning(disable : 4251)
342 ImageryList d_images;
344 String d_colourPropertyName;
Definition MemoryAllocatedObject.h:110
Class that holds details of colours for the four corners of a rectangle.
Definition ColourRect.h:45
Class that encapsulates a typeface.
Definition Font.h:62
Class that encapsulates information for a frame with background (9 images in total)
Definition FrameComponent.h:52
Class that encapsulates information for a single image component.
Definition ImageryComponent.h:47
Class that encapsulates a re-usable collection of imagery specifications.
Definition ImagerySection.h:49
TextComponentIterator getTextComponentIterator() const
Return a ImagerySection::TextComponentIterator object to iterate over the TextComponent elements curr...
void removeImageryComponent(const ImageryComponent &imageryComponent)
Removes an ImageryComponent from this ImagerySection. The supplied ImagerySection reference should be...
void initMasterColourRect(const Window &wnd, ColourRect &cr) const
Helper method to initialise a ColourRect with appropriate values according to the way the ImagerySect...
TextComponentPointerList getTextComponentPointers()
Returns a vector of pointers to the TextComponents that are currently added to this ImagerySection....
void setMasterColours(const ColourRect &cols)
Set the master colours to be used for this ImagerySection.
void setMasterColoursPropertySource(const String &property)
Set the name of the property where master colour values can be obtained.
std::vector< TextComponent *CEGUI_VECTOR_ALLOC(TextComponent *)> TextComponentPointerList
Vector of TextComponent Pointers.
Definition ImagerySection.h:54
const String & getName() const
Return the name of this ImagerySection.
ImageryComponentIterator getImageryComponentIterator() const
Return a ImagerySection::ImageryComponentIterator object to iterate over the ImageryComponent element...
void clearFrameComponents()
Clear all FrameComponents from this ImagerySection.
void addTextComponent(const TextComponent &textComponent)
Add a TextComponent to this ImagerySection.
ImageryComponentPointerList getImageryComponentPointers()
Returns a vector of pointers to the ImageryComponents that are currently added to this ImagerySection...
void writeXMLToStream(XMLSerializer &xml_stream) const
Writes an xml representation of this ImagerySection to out_stream.
bool handleFontRenderSizeChange(Window &window, const Font *font) const
perform any processing required due to the given font having changed.
ConstVectorIterator< ImageryList > ImageryComponentIterator
Definition ImagerySection.h:348
void render(Window &srcWindow, const Rectf &baseRect, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const
Render the ImagerySection.
std::vector< ImageryComponent *CEGUI_VECTOR_ALLOC(ImageryComponent *)> ImageryComponentPointerList
Vector of ImageryComponent Pointers.
Definition ImagerySection.h:52
void setName(const String &name)
Sets the name of this ImagerySection.
void addFrameComponent(const FrameComponent &frameComponent)
Add a FrameComponent to this ImagerySection.
Rectf getBoundingRect(const Window &wnd) const
Return smallest Rect that could contain all imagery within this section.
void removeTextComponent(const TextComponent &textComponent)
Removes an TextComponent from this ImagerySection. The supplied TextComponent reference should be ret...
void removeFrameComponent(const FrameComponent &frameComponent)
Removes an FrameComponent from this ImagerySection. The supplied FrameComponent reference should be r...
Rectf getBoundingRect(const Window &wnd, const Rectf &rect) const
Return smallest Rect that could contain all imagery within this section.
const ColourRect & getMasterColours() const
Return the current master colours set for this ImagerySection.
ImagerySection()
Constructor.
void render(Window &srcWindow, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const
Render the ImagerySection.
std::vector< FrameComponent *CEGUI_VECTOR_ALLOC(FrameComponent *)> FrameComponentPointerList
Vector of FrameComponent Pointers.
Definition ImagerySection.h:56
void clearImageryComponents()
Clear all ImageryComponents from this ImagerySection.
FrameComponentIterator getFrameComponentIterator() const
Return a ImagerySection::FrameComponentIterator object to iterate over the FrameComponent elements cu...
void addImageryComponent(const ImageryComponent &imageryComponent)
Add an ImageryComponent to this ImagerySection.
void clearTextComponents()
Clear all TextComponents from this ImagerySection.
ConstVectorIterator< FrameList > FrameComponentIterator
Definition ImagerySection.h:352
ImagerySection(const String &name)
ImagerySection constructor. Name must be supplied, masterColours are set to 0xFFFFFFFF by default.
FrameComponentPointerList getFrameComponentPointers()
Returns a vector of pointers to the FrameComponents that are currently added to this ImagerySection....
ConstVectorIterator< TextList > TextComponentIterator
Definition ImagerySection.h:350
const String & getMasterColoursPropertySource() const
Get the name of the property where master colour values can be obtained.
String class used within the GUI system.
Definition String.h:64
Class that encapsulates information for a text component.
Definition TextComponent.h:49
base class for properties able to do native set/get
Definition TypedProperty.h:50
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition Window.h:151
Class used to create XML Document.
Definition XMLSerializer.h:87
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1