27 #ifndef _CEGUIRenderedStringComponent_h_
28 #define _CEGUIRenderedStringComponent_h_
30 #include "CEGUI/Size.h"
31 #include "CEGUI/Rect.h"
32 #include "CEGUI/falagard/Enums.h"
35 # pragma warning(push)
36 # pragma warning(disable : 4251)
59 void setPadding(
const Rectf& padding);
61 void setLeftPadding(
const float padding);
63 void setRightPadding(
const float padding);
65 void setTopPadding(
const float padding);
67 void setBottomPadding(
const float padding);
69 const Rectf& getPadding()
const;
71 float getLeftPadding()
const;
73 float getRightPadding()
const;
75 float getTopPadding()
const;
77 float getBottomPadding()
const;
79 void setAspectLock(
const bool setting);
81 bool getAspectLock()
const;
86 const Rectf* clip_rect,
const float vertical_space,
87 const float space_extra)
const = 0;
90 virtual Sizef getPixelSize(
const Window* ref_wnd)
const = 0;
93 virtual bool canSplit()
const = 0;
107 bool first_component) = 0;
113 virtual size_t getSpaceCount()
const = 0;
116 virtual void setSelection(
const Window* ref_wnd,
117 const float start,
const float end) = 0;
135 #if defined(_MSC_VER)
136 # pragma warning(pop)
139 #endif // end of guard _CEGUIRenderedStringComponent_h_
Definition: MemoryAllocatedObject.h:109
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component...
Definition: Enums.h:58
Interface for Image.
Definition: Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
Base class representing a part of a rendered string. The 'part' represented may be a text string...
Definition: RenderedStringComponent.h:47
VerticalFormatting d_verticalFormatting
Vertical formatting to be used for this component.
Definition: RenderedStringComponent.h:126
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
const Image * d_selectionImage
Image to draw for selection.
Definition: RenderedStringComponent.h:130
Rectf d_padding
Rect object holding the padding values for this component.
Definition: RenderedStringComponent.h:124
bool d_aspectLock
true if the aspect ratio should be maintained where possible.
Definition: RenderedStringComponent.h:128