Otclient  14/8/2020
CachedText Class Reference

#include <cachedtext.h>

Public Member Functions

 CachedText ()
 
void draw (const Rect &rect)
 
void wrapText (int maxWidth)
 
void setFont (const BitmapFontPtr &font)
 
void setText (const std::string &text)
 
void setAlign (Fw::AlignmentFlag align)
 
Size getTextSize ()
 
std::string getText () const
 
BitmapFontPtr getFont () const
 
Fw::AlignmentFlag getAlign ()
 

Detailed Description

Definition at line 29 of file cachedtext.h.

Constructor & Destructor Documentation

◆ CachedText()

CachedText::CachedText ( )

Definition at line 28 of file cachedtext.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ draw()

void CachedText::draw ( const Rect rect)

Definition at line 34 of file cachedtext.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAlign()

Fw::AlignmentFlag CachedText::getAlign ( )
inline

Definition at line 44 of file cachedtext.h.

◆ getFont()

BitmapFontPtr CachedText::getFont ( ) const
inline

Definition at line 43 of file cachedtext.h.

Here is the caller graph for this function:

◆ getText()

std::string CachedText::getText ( ) const
inline

Definition at line 42 of file cachedtext.h.

Here is the caller graph for this function:

◆ getTextSize()

Size CachedText::getTextSize ( )
inline

Definition at line 41 of file cachedtext.h.

Here is the caller graph for this function:

◆ setAlign()

void CachedText::setAlign ( Fw::AlignmentFlag  align)
inline

Definition at line 39 of file cachedtext.h.

Here is the caller graph for this function:

◆ setFont()

void CachedText::setFont ( const BitmapFontPtr font)
inline

Definition at line 37 of file cachedtext.h.

Here is the caller graph for this function:

◆ setText()

void CachedText::setText ( const std::string &  text)
inline

Definition at line 38 of file cachedtext.h.

Here is the caller graph for this function:

◆ wrapText()

void CachedText::wrapText ( int  maxWidth)

Definition at line 58 of file cachedtext.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: