27 #ifndef _CEGUIRenderedString_h_
28 #define _CEGUIRenderedString_h_
30 #include "CEGUI/Size.h"
31 #include "CEGUI/Rect.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
96 void draw(
const Window* ref_wnd,
99 const Rectf* clip_rect,
const float space_extra)
const;
115 Sizef getPixelSize(
const Window* ref_wnd,
const size_t line)
const;
118 float getHorizontalExtent(
const Window* ref_wnd)
const;
121 float getVerticalExtent(
const Window* ref_wnd)
const;
127 void clearComponents();
130 size_t getComponentCount()
const;
155 void split(
const Window* ref_wnd,
159 size_t getSpaceCount(
const size_t line)
const;
162 void appendLineBreak();
165 size_t getLineCount()
const;
168 void setSelection(
const Window* ref_wnd,
float start,
float end);
184 typedef std::vector<LineInfo
196 #if defined(_MSC_VER)
197 # pragma warning(pop)
200 #endif // end of guard _CEGUIRenderedString_h_
Definition: MemoryAllocatedObject.h:109
std::vector< LineInfo CEGUI_VECTOR_ALLOC(LineInfo)> LineList
Collection type used to hold details about the lines.
Definition: RenderedString.h:185
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
LineList d_lines
lines that make up this string.
Definition: RenderedString.h:187
ComponentList d_components
RenderedStringComponent objects that comprise this RenderedString.
Definition: RenderedString.h:180
std::vector< RenderedStringComponent *CEGUI_VECTOR_ALLOC(RenderedStringComponent *)> ComponentList
Collection type used to hold the string components.
Definition: RenderedString.h:178
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
Class representing a rendered string of entities.
Definition: RenderedString.h:50
std::pair< size_t, size_t > LineInfo
track info for a line. first is componetn idx, second is component count.
Definition: RenderedString.h:182
Base class representing a part of a rendered string. The 'part' represented may be a text string...
Definition: RenderedStringComponent.h:47
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149