27 #ifndef _CEGUIFalFrameComponent_h_
28 #define _CEGUIFalFrameComponent_h_
30 #include "CEGUI/falagard/ComponentBase.h"
31 #include "CEGUI/XMLSerializer.h"
32 #include "CEGUI/falagard/FormattingSetting.h"
35 # pragma warning(push)
36 # pragma warning(disable : 4251)
51 class CEGUIEXPORT FrameComponent :
public FalagardComponentBase
115 void setLeftEdgeFormattingPropertySource(
const String& property_name);
122 void setRightEdgeFormattingPropertySource(
const String& property_name);
129 void setTopEdgeFormattingPropertySource(
const String& property_name);
136 void setBottomEdgeFormattingPropertySource(
const String& property_name);
143 void setBackgroundVerticalFormattingPropertySource(
const String& property_name);
150 void setBackgroundHorizontalFormattingPropertySource(
const String& property_name);
225 const Window& wnd)
const;
348 void writeXMLToStream(XMLSerializer& xml_stream)
const;
350 bool operator==(
const FrameComponent& rhs)
const;
359 struct FrameImageSource
366 bool operator==(
const FrameImageSource& rhs)
const
368 return d_specified == rhs.d_specified &&
369 d_image == rhs.d_image &&
370 d_propertyName == rhs.d_propertyName;
373 bool operator!=(
const FrameImageSource& rhs)
const
379 const Image* d_image;
380 String d_propertyName;
384 void render_impl(Window& srcWindow, Rectf& destRect,
386 const Rectf* clipper,
bool clipToDisplay)
const;
388 void renderImage(GeometryBuffer& buffer,
const Image* image,
391 Rectf& destRect,
const ColourRect& colours,
392 const Rectf* clipper,
bool clipToDisplay)
const;
394 FormattingSetting<VerticalFormatting> d_leftEdgeFormatting;
395 FormattingSetting<VerticalFormatting> d_rightEdgeFormatting;
407 #if defined(_MSC_VER)
408 # pragma warning(pop)