27#ifndef _CEGUIRenderedString_h_
28#define _CEGUIRenderedString_h_
30#include "CEGUI/Size.h"
31#include "CEGUI/Rect.h"
37# pragma warning(disable : 4251)
Definition MemoryAllocatedObject.h:110
Class that holds details of colours for the four corners of a rectangle.
Definition ColourRect.h:45
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition GeometryBuffer.h:44
Base class representing a part of a rendered string. The 'part' represented may be a text string,...
Definition RenderedStringComponent.h:49
Class representing a rendered string of entities.
Definition RenderedString.h:52
void cloneComponentList(const ComponentList &list)
Make this object's component list a clone of list.
LineList d_lines
lines that make up this string.
Definition RenderedString.h:187
Sizef getPixelSize(const Window *ref_wnd, const size_t line) const
Return the pixel size of a specified line for the RenderedString.
float getVerticalExtent(const Window *ref_wnd) const
Return the sum vertical extent of all lines, in pixels.
RenderedString()
Constructor.
void setSelection(const Window *ref_wnd, float start, float end)
set selection highlight
virtual ~RenderedString()
Destructor.
size_t getSpaceCount(const size_t line) const
return the total number of spacing characters in the specified line.
void split(const Window *ref_wnd, const size_t line, float split_point, RenderedString &left)
split the string in line line as close to split_point as possible.
ComponentList d_components
RenderedStringComponent objects that comprise this RenderedString.
Definition RenderedString.h:180
static void clearComponentList(ComponentList &list)
Free components in the given ComponentList and clear the list.
size_t getLineCount() const
return number of lines in this string.
size_t getComponentCount() const
return the number of components that make up this string.
void appendLineBreak()
linebreak the rendered string at the present position.
std::pair< size_t, size_t > LineInfo
track info for a line. first is componetn idx, second is component count.
Definition RenderedString.h:182
void appendComponent(const RenderedStringComponent &component)
append component to the list of components drawn for this string.
RenderedString(const RenderedString &other)
Copy constructor.
float getHorizontalExtent(const Window *ref_wnd) const
Return the maximum horizontal extent of all lines, in pixels.
std::vector< RenderedStringComponent *CEGUI_VECTOR_ALLOC(RenderedStringComponent *)> ComponentList
Collection type used to hold the string components.
Definition RenderedString.h:178
void clearComponents()
clear the list of components drawn for this string.
std::vector< LineInfo CEGUI_VECTOR_ALLOC(LineInfo)> LineList
Collection type used to hold details about the lines.
Definition RenderedString.h:185
RenderedString & operator=(const RenderedString &rhs)
Assignment.
void draw(const Window *ref_wnd, const size_t line, GeometryBuffer &buffer, const Vector2f &position, const ColourRect *mod_colours, const Rectf *clip_rect, const float space_extra) const
Draw the string to a GeometryBuffer.
base class for properties able to do native set/get
Definition TypedProperty.h:50
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition Window.h:151
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1