#include <QFont.h>
Collaboration diagram for QFont:

Public Methods | |
| void | draw (const char *aText, int maxLength) |
| draws the text with maximum length) | |
| void | drawInternal (const char *aText, int maxLength) |
| draws the text and ajust the matrix | |
| void | drawAtPos (const char *aText, int x, int y, int maxLength) |
| draws the text at given position | |
| float | getTextWidth (const char *aText) |
| returns width of text | |
| int | getLengthForWidth (const char *aText, int aWidth) |
| returns length of string which can be drawn whithin the given width | |
| virtual void | Init () |
| initialization code | |
| virtual void | CleanUp () |
| clean up code | |
| virtual int | getSize () |
| getter method for Size | |
| virtual void | setSize (int newValue) |
| setter method for Size | |
| virtual bool | getBold () |
| getter method for Bold | |
| virtual void | setBold (bool newValue) |
| setter method for Bold | |
| QColor * | getColor () |
| getter method for Color | |
| void | copyFrom (QFont *from) |
| copy itself from another instance | |
| void | print () |
| prints itself to the cout | |
| QFont () | |
| Constructor. | |
| virtual | ~QFont () |
| Destructor. | |
| void | draw (const char *aText, int maxLength) |
| draws the text with maximum length) | |
| void | drawInternal (const char *aText, int maxLength) |
| draws the text and ajust the matrix | |
| void | drawAtPos (const char *aText, int x, int y, int maxLength) |
| draws the text at given position | |
| float | getTextWidth (const char *aText) |
| returns width of text | |
| int | getLengthForWidth (const char *aText, int aWidth) |
| returns length of string which can be drawn whithin the given width | |
| virtual void | Init () |
| initialization code | |
| virtual void | CleanUp () |
| clean up code | |
| virtual int | getSize () |
| getter method for Size | |
| virtual void | setSize (int newValue) |
| setter method for Size | |
| virtual bool | getBold () |
| getter method for Bold | |
| virtual void | setBold (bool newValue) |
| setter method for Bold | |
| QColor * | getColor () |
| getter method for Color | |
| void | copyFrom (QFont *from) |
| copy itself from another instance | |
| void | print () |
| prints itself to the cout | |
| QFont () | |
| Constructor. | |
| virtual | ~QFont () |
| Destructor. | |
Protected Attributes | |
| int | Size |
| Font size. | |
| bool | Bold |
| defines whether font is bold | |
| QColor * | Color |
| color of the font | |
| QColor * | Color |
| color of the font | |
Definition at line 17 of file QFont.h.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Constructor.
|
|
|
Destructor.
|
|
|
clean up code
|
|
|
clean up code
|
|
|
copy itself from another instance
|
|
|
copy itself from another instance
Definition at line 106 of file QFont.cpp. References QColor::copyFrom(). Referenced by QTextEdit::Init(), QCheckBox::Init(), and QCaptionButton::Init(). |
|
||||||||||||
|
draws the text with maximum length)
|
|
||||||||||||
|
draws the text with maximum length)
Definition at line 17 of file QFont.cpp. References drawInternal(). |
|
||||||||||||||||||||
|
draws the text at given position
|
|
||||||||||||||||||||
|
draws the text at given position
Definition at line 35 of file QFont.cpp. References drawInternal(). Referenced by QCaptionButton::draw(), QWindow::drawCoordInfos(), and QWindow::drawFrame(). |
|
||||||||||||
|
draws the text and ajust the matrix
|
|
||||||||||||
|
draws the text and ajust the matrix
Definition at line 25 of file QFont.cpp. References Bold, Color, QColor::setAsCurrent(), and Size. Referenced by QTextEdit::draw(), QRadioButton::draw(), draw(), QCheckBox::draw(), and drawAtPos(). |
|
|
getter method for Bold
|
|
|
getter method for Bold
Definition at line 86 of file QFont.cpp. References Bold. |
|
|
getter method for Color
|
|
|
getter method for Color
Definition at line 98 of file QFont.cpp. References Color. Referenced by QWindow::Init(), and QLookAndFeel::Init(). |
|
||||||||||||
|
returns length of string which can be drawn whithin the given width
|
|
||||||||||||
|
returns length of string which can be drawn whithin the given width
Definition at line 51 of file QFont.cpp. References Size. Referenced by QCaptionButton::draw(), and QWindow::drawFrame(). |
|
|
getter method for Size
|
|
|
getter method for Size
Definition at line 74 of file QFont.cpp. References Size. Referenced by QRadioButton::draw(), QCheckBox::draw(), and QWindow::drawCoordInfos(). |
|
|
returns width of text
|
|
|
returns width of text
Definition at line 44 of file QFont.cpp. References Size. Referenced by QWindow::drawCoordInfos(), QCheckBox::setCaption(), QTextEdit::setText(), and QCaptionButton::updateCaptionPosition(). |
|
|
initialization code
|
|
|
initialization code
|
|
|
prints itself to the cout
|
|
|
prints itself to the cout
|
|
|
setter method for Bold
|
|
|
setter method for Bold
Definition at line 92 of file QFont.cpp. References Bold. Referenced by QWindow::drawFrame(). |
|
|
setter method for Size
|
|
|
setter method for Size
Definition at line 80 of file QFont.cpp. References Size. Referenced by QWindow::Init(), QLookAndFeel::Init(), and MyWindow::MyWindow(). |
|
|
defines whether font is bold
Definition at line 25 of file QFont.h. Referenced by drawInternal(), getBold(), and setBold(). |
|
|
color of the font
|
|
|
color of the font
Definition at line 27 of file QFont.h. Referenced by drawInternal(), and getColor(). |
|
|
Font size.
Definition at line 22 of file QFont.h. Referenced by drawInternal(), getLengthForWidth(), getSize(), getTextWidth(), and setSize(). |
1.2.18