NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Character Struct Reference

This structure combines the character information needed in the terminal: the character itself, the associated colour and the editable flag. More...

#include <TextManager.h>

Collaboration diagram for Character:

Public Types

enum  {
  USERTEXT = 0x1000 , EDITABLE = 0x2000 , SELECTED = 0x4000 , COLOR = 0xFFF ,
  FLAGS = 0xF000
}
 

Public Member Functions

 Character ()
 
 Character (char c)
 
 Character (char &&c)
 
 Character (const Character &c)
 
 Character (Character &&c)
 
 Character (char c, unsigned char flags)
 
Characteroperator= (const Character &c)
 
Characteroperator= (Character &&c)
 
Characteroperator= (char &&c)
 
void setFlags (short flags)
 
bool userText () const
 
bool editable () const
 
void makeUserText ()
 
void makeEditable ()
 
void select ()
 
void unselect ()
 
bool isSelected () const
 
int getColor () const
 
void setColor (int color)
 

Public Attributes

char m_char
 
int m_style
 

Detailed Description

This structure combines the character information needed in the terminal: the character itself, the associated colour and the editable flag.

Definition at line 211 of file TextManager.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
USERTEXT 
EDITABLE 
SELECTED 
COLOR 
FLAGS 

Definition at line 216 of file TextManager.h.

Constructor & Destructor Documentation

◆ Character() [1/6]

Character::Character ( )
inline

Definition at line 225 of file TextManager.h.

◆ Character() [2/6]

Character::Character ( char  c)
inline

Definition at line 226 of file TextManager.h.

◆ Character() [3/6]

Character::Character ( char &&  c)
inline

Definition at line 227 of file TextManager.h.

References m_char.

◆ Character() [4/6]

Character::Character ( const Character c)
inline

Definition at line 231 of file TextManager.h.

◆ Character() [5/6]

Character::Character ( Character &&  c)
inline

Definition at line 232 of file TextManager.h.

References m_char, and m_style.

◆ Character() [6/6]

Character::Character ( char  c,
unsigned char  flags 
)
inline

Definition at line 237 of file TextManager.h.

Member Function Documentation

◆ editable()

bool Character::editable ( ) const
inline

Definition at line 269 of file TextManager.h.

References EDITABLE, and m_style.

◆ getColor()

int Character::getColor ( ) const
inline

Definition at line 300 of file TextManager.h.

References COLOR, and m_style.

◆ isSelected()

bool Character::isSelected ( ) const
inline

Definition at line 295 of file TextManager.h.

References m_style, and SELECTED.

◆ makeEditable()

void Character::makeEditable ( )
inline

Definition at line 280 of file TextManager.h.

References EDITABLE, and m_style.

◆ makeUserText()

void Character::makeUserText ( )
inline

Definition at line 274 of file TextManager.h.

References m_style, and USERTEXT.

◆ operator=() [1/3]

Character & Character::operator= ( char &&  c)
inline

Definition at line 253 of file TextManager.h.

References m_char.

◆ operator=() [2/3]

Character & Character::operator= ( Character &&  c)
inline

Definition at line 246 of file TextManager.h.

References m_char, and m_style.

◆ operator=() [3/3]

Character & Character::operator= ( const Character c)
inline

Definition at line 239 of file TextManager.h.

References m_char, and m_style.

◆ select()

void Character::select ( )
inline

Definition at line 285 of file TextManager.h.

References m_style, and SELECTED.

◆ setColor()

void Character::setColor ( int  color)
inline

Definition at line 305 of file TextManager.h.

References COLOR, FLAGS, and m_style.

◆ setFlags()

void Character::setFlags ( short  flags)
inline

Definition at line 259 of file TextManager.h.

References m_style.

◆ unselect()

void Character::unselect ( )
inline

Definition at line 290 of file TextManager.h.

References m_style.

◆ userText()

bool Character::userText ( ) const
inline

Definition at line 264 of file TextManager.h.

References m_style, and USERTEXT.

Member Data Documentation

◆ m_char

char Character::m_char

Definition at line 213 of file TextManager.h.

Referenced by Character(), and operator=().

◆ m_style


The documentation for this struct was generated from the following file: