10#if !defined(SCROLLING_TEXT)
14#include "GUIAnimatable.h"
54 const eC_String &kText,
55 const eC_Value& vXPos=eC_FromInt(0),
56 const eC_Value& vYPos=eC_FromInt(0),
57 const eC_Bool &bSingleLine =
true);
71 const eC_String*
const pkText,
72 const eC_Value& vXPos=eC_FromInt(0),
73 const eC_Value& vYPos=eC_FromInt(0),
74 const eC_Bool &bSingleLine =
true);
89 const eC_Value& vXPos=eC_FromInt(0),
90 const eC_Value& vYPos=eC_FromInt(0),
91 const eC_Bool &bSingleLine =
true);
128 virtual void DoAnimate(
const eC_Value& vTimes = eC_FromInt(1));
219#if defined(GUILIANI_STREAM_GUI)
223#if defined(GUILIANI_WRITE_GUI)
250 void SetAnimationActiveInternal(
const eC_Bool bAnimationActive);
256 eC_Value m_vNonAnimatedTextSize;
259 eC_Value m_vNonAnimatedTextPos;
265 eC_Bool m_bScrollVertical;
268 eC_UInt m_uiAnimationInterval;
271 eC_Int m_iAnimationStepSize;
274 eC_Bool m_bIsTextCut;
277 eC_Bool m_bTextAttributesUpdated;
TextResource_t
List of text resource ids.
Definition: GUITextResource.h:40
Base interface for animation callbacks.
Definition: GUIAnimatable.h:51
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:79
A specialization of the GUIText which implements text scrolling.
Definition: GUIScrollingText.h:40
void SetTextWidth(const eC_Value &vTextWidth)
ScrollingCondition_t
Possible animation conditions.
Definition: GUIScrollingText.h:110
@ SCROLL_MANUALLY
The Animation can be started or stopped manually by calling SetAnimationActive().
Definition: GUIScrollingText.h:115
@ SCROLL_CUT_TEXT_FOCUSED
The text will be scrolled when the text is truncated and the parent object is focused.
Definition: GUIScrollingText.h:114
@ SCROLL_CUT_TEXT_ALWAYS
The text will be scrolled when the text is truncated.
Definition: GUIScrollingText.h:113
@ SCROLL_FOCUSED
The text will be scrolled when its parent object is focused.
Definition: GUIScrollingText.h:112
@ SCROLL_ALWAYS
The text will always be scrolled.
Definition: GUIScrollingText.h:111
void SetScrollVertical(const eC_Bool bScrollVertical)
eC_Value GetRelXPos() const
void UpdateIsTextCut()
Helper function for AdaptText() that updates m_bIsTextCut.
CGUIScrollingText(const CGUIText &rkText)
void SetAnimationInterval(const eC_UInt uiAnimationInterval)
CGUIScrollingText(const CGUIObject *const pkParentObject, const TextResource_t &eTextID, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true)
virtual void DoAnimate(const eC_Value &vTimes=eC_FromInt(1))
CGUIScrollingText(const CGUIObject *const pkParentObject, const eC_String *const pkText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true)
void SetAnimationStepSize(const eC_Int iAnimationStepSize)
CGUIScrollingText(const CGUIObject *const pkParentObject, const eC_String &kText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true)
void PrintText()
Calls the base implementation and resets the cliprect that is manipulated in PreparePrint().
void SetAnimationActive(const eC_Bool bAnimationActive)
void SetRelYPos(const eC_Value &vRelYPos)
void SetAnimationMode(const ScrollingCondition_t eScrollingCondition)
eC_Value GetRelYPos() const
eC_Bool IsScrollingTextCut() const
Definition: GUIScrollingText.h:246
CGUIScrollingText(const CGUIScrollingText &rkScrollingText)
void SetTextHeight(const eC_Value &vTextHeight)
virtual void ReadFromStream()
eC_Value GetTextWidth() const
void SetRelXPos(const eC_Value &vRelXPos)
void CheckScrollingCondition()
virtual void WriteToStream(const eC_Bool bWriteTextType=false)
eC_Value GetTextHeight() const
virtual CGUIScrollingText * Clone() const
Class for handling a text.
Definition: GUIText.h:103