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 _CEGUIFalFrameComponent_h_
00025 #define _CEGUIFalFrameComponent_h_
00026
00027 #include "falagard/CEGUIFalComponentBase.h"
00028
00029
00030 namespace CEGUI
00031 {
00040 class CEGUIEXPORT FrameComponent : public FalagardComponentBase
00041 {
00042 public:
00047 FrameComponent();
00048
00056 VerticalFormatting getBackgroundVerticalFormatting() const;
00057
00068 void setBackgroundVerticalFormatting(VerticalFormatting fmt);
00069
00077 HorizontalFormatting getBackgroundHorizontalFormatting() const;
00078
00089 void setBackgroundHorizontalFormatting(HorizontalFormatting fmt);
00090
00101 const Image* getImage(FrameImageComponent part) const;
00102
00116 void setImage(FrameImageComponent part, const Image* image);
00117
00134 void setImage(FrameImageComponent part, const String& imageset, const String& image);
00135
00146 void writeXMLToStream(OutStream& out_stream) const;
00147
00148 protected:
00149
00150 void render_impl(Window& srcWindow, Rect& destRect, float base_z, const CEGUI::ColourRect* modColours, const Rect* clipper, bool clipToDisplay) const;
00151
00152
00153 void doBackgroundRender(Window& srcWindow, Rect& destRect, float base_z, const ColourRect& colours, const Rect* clipper, bool clipToDisplay) const;
00154
00155
00156 VerticalFormatting d_vertFormatting;
00157 HorizontalFormatting d_horzFormatting;
00158
00159 const Image* d_frameImages[FIC_FRAME_IMAGE_COUNT];
00160 };
00161
00162 }
00163
00164
00165 #endif // end of guard _CEGUIFalFrameComponent_h_