00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _CEGUIFalStateImagery_h_
00025 #define _CEGUIFalStateImagery_h_
00026
00027 #include "falagard/CEGUIFalLayerSpecification.h"
00028 #include "CEGUIWindow.h"
00029 #include <set>
00030
00031 #if defined(_MSC_VER)
00032 # pragma warning(push)
00033 # pragma warning(disable : 4251)
00034 #endif
00035
00036
00037 namespace CEGUI
00038 {
00043 class CEGUIEXPORT StateImagery
00044 {
00045 public:
00050 StateImagery() {}
00051
00059 StateImagery(const String& name);
00060
00071 void render(Window& srcWindow, const ColourRect* modcols = 0, const Rect* clipper = 0) const;
00072
00086 void render(Window& srcWindow, const Rect& baseRect, const ColourRect* modcols = 0, const Rect* clipper = 0) const;
00087
00098 void addLayer(const LayerSpecification& layer);
00099
00107 void clearLayers();
00108
00116 const String& getName() const;
00117
00128 bool isClippedToDisplay() const;
00129
00143 void setClippedToDisplay(bool setting);
00144
00155 void writeXMLToStream(OutStream& out_stream) const;
00156
00157 private:
00158 typedef std::multiset<LayerSpecification> LayersList;
00159
00160 CEGUI::String d_stateName;
00161 LayersList d_layers;
00162 bool d_clipToDisplay;
00163 };
00164
00165 }
00166
00167
00168 #if defined(_MSC_VER)
00169 # pragma warning(pop)
00170 #endif
00171
00172 #endif // end of guard _CEGUIFalStateImagery_h_