PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureUiText Class Reference

Pure User Interface Text class. More...

Detailed Description

Pure User Interface Text class.

Definition at line 21 of file PureUiText.h.

#include <PureUiText.h>

Public Member Functions

 PureUiText ()
 
 PureUiText (std::string text, int x, int y, PureUiFontWin &font)
 
 PureUiText (const PureUiText &uiText)
 
PureUiTextoperator= (const PureUiText &uiText)
 
virtual ~PureUiText ()
 
const std::string & getText () const
 
int getX () const
 
void SetX (int newx)
 
int getY () const
 
void SetY (int newy)
 
long getWidth () const
 
long getHeight () const
 
bool getDelete () const
 
void SetDelete (bool value)
 
bool getPermanent () const
 
void SetPermanent (bool value)
 
bool getDropShadow () const
 
void SetDropShadow (bool value)
 
const PureUiFontWingetFont () const
 
const PureColorgetColor () const
 Returns reference to text color.
 
PureColorgetColor ()
 Returns reference to text color.
 
void PrintText () const
 

Static Public Member Functions

static unsigned long getHash (const std::string &text, int x, int y, int height)
 

Static Private Member Functions

static unsigned long calcHash (const std::string &text, int x, int y, int height)
 

Private Attributes

std::string sText
 
int _x
 
int _y
 
bool bDelete
 
bool bPermanent
 
bool bDropShadow
 
PureUiFontWinuiFont
 
PureColor clr
 

Constructor & Destructor Documentation

◆ PureUiText() [1/3]

PureUiText::PureUiText ( )

Definition at line 29 of file PureUiText.cpp.

◆ PureUiText() [2/3]

PureUiText::PureUiText ( std::string text,
int x,
int y,
PureUiFontWin & font )

Definition at line 38 of file PureUiText.cpp.

◆ PureUiText() [3/3]

PureUiText::PureUiText ( const PureUiText & uiText)

Definition at line 50 of file PureUiText.cpp.

◆ ~PureUiText()

PureUiText::~PureUiText ( )
virtual

Definition at line 60 of file PureUiText.cpp.

Member Function Documentation

◆ calcHash()

unsigned long PureUiText::calcHash ( const std::string & text,
int x,
int y,
int height )
staticprivate

Definition at line 201 of file PureUiText.cpp.

◆ getColor() [1/2]

PureColor & PureUiText::getColor ( )

Returns reference to text color.

The text color is black by default.

Definition at line 146 of file PureUiText.cpp.

◆ getColor() [2/2]

const PureColor & PureUiText::getColor ( ) const

Returns reference to text color.

The text color is black by default.

Definition at line 137 of file PureUiText.cpp.

◆ getDelete()

bool PureUiText::getDelete ( ) const

Definition at line 98 of file PureUiText.cpp.

◆ getDropShadow()

bool PureUiText::getDropShadow ( ) const

Definition at line 123 of file PureUiText.cpp.

◆ getFont()

const PureUiFontWin * PureUiText::getFont ( ) const

Definition at line 118 of file PureUiText.cpp.

◆ getHash()

unsigned long PureUiText::getHash ( const std::string & text,
int x,
int y,
int height )
static

Definition at line 21 of file PureUiText.cpp.

◆ getHeight()

long PureUiText::getHeight ( ) const

Definition at line 93 of file PureUiText.cpp.

◆ getPermanent()

bool PureUiText::getPermanent ( ) const

Definition at line 108 of file PureUiText.cpp.

◆ getText()

const std::string & PureUiText::getText ( ) const

Definition at line 63 of file PureUiText.cpp.

◆ getWidth()

long PureUiText::getWidth ( ) const

Definition at line 88 of file PureUiText.cpp.

◆ getX()

int PureUiText::getX ( ) const

Definition at line 68 of file PureUiText.cpp.

◆ getY()

int PureUiText::getY ( ) const

Definition at line 78 of file PureUiText.cpp.

◆ operator=()

PureUiText & PureUiText::operator= ( const PureUiText & uiText)

Definition at line 183 of file PureUiText.cpp.

◆ PrintText()

void PureUiText::PrintText ( ) const

Definition at line 151 of file PureUiText.cpp.

◆ SetDelete()

void PureUiText::SetDelete ( bool value)

Definition at line 103 of file PureUiText.cpp.

◆ SetDropShadow()

void PureUiText::SetDropShadow ( bool value)

Definition at line 128 of file PureUiText.cpp.

◆ SetPermanent()

void PureUiText::SetPermanent ( bool value)

Definition at line 113 of file PureUiText.cpp.

◆ SetX()

void PureUiText::SetX ( int newx)

Definition at line 73 of file PureUiText.cpp.

◆ SetY()

void PureUiText::SetY ( int newy)

Definition at line 83 of file PureUiText.cpp.

Member Data Documentation

◆ _x

int PureUiText::_x
private

Definition at line 77 of file PureUiText.h.

◆ _y

int PureUiText::_y
private

Definition at line 77 of file PureUiText.h.

◆ bDelete

bool PureUiText::bDelete
private

Definition at line 79 of file PureUiText.h.

◆ bDropShadow

bool PureUiText::bDropShadow
private

Definition at line 81 of file PureUiText.h.

◆ bPermanent

bool PureUiText::bPermanent
private

Definition at line 80 of file PureUiText.h.

◆ clr

PureColor PureUiText::clr
private

Definition at line 83 of file PureUiText.h.

◆ sText

std::string PureUiText::sText
private

Definition at line 76 of file PureUiText.h.

◆ uiFont

PureUiFontWin* PureUiText::uiFont
private

Definition at line 82 of file PureUiText.h.


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