DrawCaml
Public Member Functions | Public Attributes | List of all members
SLabel Class Reference

#include <element.h>

Inheritance diagram for SLabel:
Inheritance graph
[legend]
Collaboration diagram for SLabel:
Collaboration graph
[legend]

Public Member Functions

void setText (const char *text)
 
void setFont (const char *font)
 
void setColor (const char *col)
 
virtual void setSize (int sizeX, int sizeY)
 
virtual void draw (SWindow *win, int drawX, int drawY)
 

Public Attributes

const char * mText
 
string mFontStr
 
XFontStruct * mFontStruct
 
const char * mColorStr
 
XColor mColor
 
- Public Attributes inherited from SElement
int mPosX
 
int mPosY
 
int mSizeX = 0
 
int mSizeY = 0
 
SWindowmWin
 

Detailed Description

Graphical element that prints text. Code for Drawcaml.dLabel

Member Function Documentation

◆ setColor()

void SLabel::setColor ( const char *  col)

Set the color of the text.

◆ setFont()

void SLabel::setFont ( const char *  font)

Set the font of the label.

◆ setText()

void SLabel::setText ( const char *  text)

Set the text of the Label.

Member Data Documentation

◆ mColorStr

const char* SLabel::mColorStr

Color of the text.

◆ mFontStr

string SLabel::mFontStr

Font for the label, using X logical font format.

◆ mText

const char* SLabel::mText

Text of the Label.


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