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;
396 FormattingSetting<HorizontalFormatting> d_topEdgeFormatting;
397 FormattingSetting<HorizontalFormatting> d_bottomEdgeFormatting;
398 FormattingSetting<VerticalFormatting> d_backgroundVertFormatting;
399 FormattingSetting<HorizontalFormatting> d_backgroundHorzFormatting;
407 #if defined(_MSC_VER) 408 # pragma warning(pop) Max number of images for a frame.
Definition: cegui/include/CEGUI/falagard/Enums.h:146
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component...
Definition: cegui/include/CEGUI/falagard/Enums.h:58
bool CEGUIEXPORT operator==(const String &str1, const String &str2)
Return true if String str1 is equal to String str2.
Definition: cegui/src/String.cpp:150
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
HorizontalFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for an image componen...
Definition: cegui/include/CEGUI/falagard/Enums.h:71
FrameImageComponent
Enumeration of values referencing available images forming a frame component.
Definition: cegui/include/CEGUI/falagard/Enums.h:135
bool CEGUIEXPORT operator!=(const String &str1, const String &str2)
Return true if String str1 is not equal to String str2.
Definition: cegui/src/String.cpp:176