27#ifndef _CEGUIRenderedStringComponent_h_
28#define _CEGUIRenderedStringComponent_h_
30#include "CEGUI/Size.h"
31#include "CEGUI/Rect.h"
32#include "CEGUI/falagard/Enums.h"
36# pragma warning(disable : 4251)
86 const Rectf* clip_rect,
const float vertical_space,
87 const float space_extra)
const = 0;
107 bool first_component) = 0;
117 const float start,
const float end) = 0;
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
Interface for Image.
Definition Image.h:161
Base class representing a part of a rendered string. The 'part' represented may be a text string,...
Definition RenderedStringComponent.h:49
const Rectf & getPadding() const
return the current padding value Rect.
void setTopPadding(const float padding)
set the top padding value.
void setAspectLock(const bool setting)
set the aspect-lock state
virtual bool canSplit() const =0
return whether the component can be split
void setVerticalFormatting(VerticalFormatting fmt)
Set the VerticalFormatting option for this component.
void setLeftPadding(const float padding)
set the left padding value.
virtual RenderedStringComponent * clone() const =0
clone this component.
virtual ~RenderedStringComponent()
Destructor.
const Image * d_selectionImage
Image to draw for selection.
Definition RenderedStringComponent.h:130
bool d_aspectLock
true if the aspect ratio should be maintained where possible.
Definition RenderedStringComponent.h:128
float getLeftPadding() const
return the left padding value.
bool getAspectLock() const
return the aspect-lock state
RenderedStringComponent()
Protected constructor.
void setRightPadding(const float padding)
set the right padding value.
float getTopPadding() const
return the top padding value.
virtual void draw(const Window *ref_wnd, GeometryBuffer &buffer, const Vector2f &position, const ColourRect *mod_colours, const Rectf *clip_rect, const float vertical_space, const float space_extra) const =0
draw the component.
virtual RenderedStringComponent * split(const Window *ref_wnd, float split_point, bool first_component)=0
split the component as close to split_point as possible, returning a new RenderedStringComponent of t...
Rectf d_padding
Rect object holding the padding values for this component.
Definition RenderedStringComponent.h:124
float getRightPadding() const
return the right padding value.
void setPadding(const Rectf &padding)
set the padding values.
VerticalFormatting d_verticalFormatting
Vertical formatting to be used for this component.
Definition RenderedStringComponent.h:126
VerticalFormatting getVerticalFormatting() const
return the current VerticalFormatting option.
float getBottomPadding() const
return the bottom padding value.
virtual void setSelection(const Window *ref_wnd, const float start, const float end)=0
mark some region appropriate given /a start and /a end as selected.
virtual Sizef getPixelSize(const Window *ref_wnd) const =0
return the pixel size of the rendered component.
void setBottomPadding(const float padding)
set the Bottom padding value.
virtual size_t getSpaceCount() const =0
return the total number of spacing characters in the string.
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
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component.
Definition Enums.h:59