27 #ifndef _CEGUIRenderedStringTextComponent_h_
28 #define _CEGUIRenderedStringTextComponent_h_
30 #include "CEGUI/RenderedStringComponent.h"
31 #include "CEGUI/ColourRect.h"
32 #include "CEGUI/String.h"
48 void setText(
const String& text);
50 const String& getText()
const;
52 void setFont(
const Font* font);
54 void setFont(
const String& font_name);
56 const Font* getFont()
const;
60 void setColours(
const Colour& c);
67 const Rectf* clip_rect,
const float vertical_space,
68 const float space_extra)
const;
70 bool canSplit()
const;
72 float split_point,
bool first_component);
74 size_t getSpaceCount()
const;
75 void setSelection(
const Window* ref_wnd,
76 const float start,
const float end);
79 const Font* getEffectiveFont(
const Window* window)
const;
81 static size_t getNextTokenLength(
const String& text,
size_t start_idx);
95 #endif // end of guard _CEGUIRenderedStringTextComponent_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: cegui/include/CEGUI/GeometryBuffer.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: cegui/include/CEGUI/ColourRect.h:43
const Font * d_font
Font to use for text rendering, 0 for system default.
Definition: cegui/include/CEGUI/RenderedStringTextComponent.h:86
ColourRect d_colours
ColourRect object describing the colours to use when rendering.
Definition: cegui/include/CEGUI/RenderedStringTextComponent.h:88
Base class representing a part of a rendered string. The 'part' represented may be a text string...
Definition: cegui/include/CEGUI/RenderedStringComponent.h:47
String component that draws an image.
Definition: cegui/include/CEGUI/RenderedStringTextComponent.h:38
Class that encapsulates a typeface.
Definition: cegui/include/CEGUI/Font.h:58
size_t d_selectionStart
last set selection
Definition: cegui/include/CEGUI/RenderedStringTextComponent.h:90
String d_text
pointer to the image drawn by the component.
Definition: cegui/include/CEGUI/RenderedStringTextComponent.h:84
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: cegui/include/CEGUI/Window.h:149
Class representing colour values within the system.
Definition: cegui/include/CEGUI/Colour.h:44
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62