#include <font.h>
Public Types | |
| typedef std::map< std::string, Font > | Map |
| Normal = TTF_STYLE_NORMAL | |
| Bold = TTF_STYLE_BOLD | |
| Italic = TTF_STYLE_ITALIC | |
| Underline = TTF_STYLE_UNDERLINE | |
| enum | FaceStyle { Normal = TTF_STYLE_NORMAL, Bold = TTF_STYLE_BOLD, Italic = TTF_STYLE_ITALIC, Underline = TTF_STYLE_UNDERLINE } |
Public Member Functions | |
| Font (const std::string &filename, int ptsize, int style=Normal, int index=0) | |
| Font () | |
| Font (const std::string &desc) | |
| std::string | description () const |
| std::string | family () const |
| void | setFont (std::string &filename) |
| int | pointSize () const |
| void | setPointSize (int ptsize) |
| bool | bold () const |
| void | setBold (bool enable) |
| bool | italic () const |
| void | setItalic (bool enable) |
| bool | underline () const |
| void | setUnderline (bool enable) |
| int | ascent () const |
| int | descent () const |
| int | height () const |
| int | lineSpacing () const |
| int | leading () const |
| int | leftBearing (Uint16 ch) const |
| int | rightBearing (Uint16 ch) const |
| int | width (Uint16 ch) const |
| Size | size (const Uint16 ch) const |
| Rect | boundingRect (const Uint16 ch) const |
| Rect | boundingRect (const std::string &str, int len=-1) const |
| Size | size (const std::string &text) const |
| Size | size (const Uint16 *text) const |
Static Public Member Functions | |
| static void | init () |
| static void | quit () |
| static int | defaultFontSize (int ptsize=0) |
| static Font & | defaultFont () |
Static Public Attributes | |
| static Map | map |
Protected Types | |
| ASCII | |
| UTF8 | |
| Solid | |
| Shaded | |
| Blended | |
| enum | Encoding { ASCII, UTF8 } |
| enum | Rendering { Solid, Shaded, Blended } |
Protected Member Functions | |
| void | detach () |
| bool | style () const |
| bool | styleFlag (int flag) const |
| void | setStyleFlag (int flag, bool enable) |
| void | setRendering (int rendering) |
| int | rendering () const |
| void | setEncoding (int encoding) |
| int | encoding () const |
| void | setBackgroundColor (const Color &bg_color) |
| const Color & | backgroundColor () const |
| void | setForegroundColor (const Color &fg_color) |
| const Color & | foregroundColor () const |
| Pixmap | blitText (const std::string &text) const |
| Pixmap | blitText (const Uint16 *text) const |
| int | faces () const |
| std::string | faceStyleName () const |
| bool | monoSpace () const |
Friends | |
| class | Painter |
Classes | |
| class | Deleter |
| typedef std::map<std::string, Font> Wt::Font::Map |
enum Wt::Font::Encoding [protected] |
| enum Wt::Font::FaceStyle |
enum Wt::Font::Rendering [protected] |
| Wt::Font::Font | ( | const std::string & | filename, | |
| int | ptsize, | |||
| int | style = Normal, |
|||
| int | index = 0 | |||
| ) |
| Wt::Font::Font | ( | ) |
| Wt::Font::Font | ( | const std::string & | desc | ) |
| int Wt::Font::ascent | ( | ) | const |
| const Color & Wt::Font::backgroundColor | ( | ) | const [protected] |
| Pixmap Wt::Font::blitText | ( | const Uint16 * | text | ) | const [protected] |
| Pixmap Wt::Font::blitText | ( | const std::string & | text | ) | const [protected] |
| bool Wt::Font::bold | ( | ) | const |
| Rect Wt::Font::boundingRect | ( | const std::string & | str, | |
| int | len = -1 | |||
| ) | const |
| Rect Wt::Font::boundingRect | ( | const Uint16 | ch | ) | const |
| Font & Wt::Font::defaultFont | ( | ) | [static] |
| int Wt::Font::defaultFontSize | ( | int | ptsize = 0 |
) | [static] |
| int Wt::Font::descent | ( | ) | const |
| std::string Wt::Font::description | ( | ) | const |
| void Wt::Font::detach | ( | ) | [protected] |
| int Wt::Font::encoding | ( | ) | const [protected] |
| int Wt::Font::faces | ( | ) | const [protected] |
| std::string Wt::Font::faceStyleName | ( | ) | const [protected] |
| std::string Wt::Font::family | ( | ) | const |
| const Color & Wt::Font::foregroundColor | ( | ) | const [protected] |
| int Wt::Font::height | ( | ) | const |
| void Wt::Font::init | ( | ) | [static] |
| bool Wt::Font::italic | ( | ) | const |
| int Wt::Font::leading | ( | ) | const |
| int Wt::Font::leftBearing | ( | Uint16 | ch | ) | const |
| int Wt::Font::lineSpacing | ( | ) | const |
| bool Wt::Font::monoSpace | ( | ) | const [protected] |
| int Wt::Font::pointSize | ( | ) | const |
| void Wt::Font::quit | ( | ) | [static] |
| int Wt::Font::rendering | ( | ) | const [protected] |
| int Wt::Font::rightBearing | ( | Uint16 | ch | ) | const |
| void Wt::Font::setBackgroundColor | ( | const Color & | bg_color | ) | [protected] |
| void Wt::Font::setBold | ( | bool | enable | ) |
| void Wt::Font::setEncoding | ( | int | encoding | ) | [protected] |
| void Wt::Font::setFont | ( | std::string & | filename | ) |
| void Wt::Font::setForegroundColor | ( | const Color & | fg_color | ) | [protected] |
| void Wt::Font::setItalic | ( | bool | enable | ) |
| void Wt::Font::setPointSize | ( | int | ptsize | ) |
| void Wt::Font::setRendering | ( | int | rendering | ) | [protected] |
| void Wt::Font::setStyleFlag | ( | int | flag, | |
| bool | enable | |||
| ) | [protected] |
| void Wt::Font::setUnderline | ( | bool | enable | ) |
| Size Wt::Font::size | ( | const Uint16 * | text | ) | const |
| Size Wt::Font::size | ( | const std::string & | text | ) | const |
| Size Wt::Font::size | ( | const Uint16 | ch | ) | const |
| bool Wt::Font::style | ( | ) | const [protected] |
| bool Wt::Font::styleFlag | ( | int | flag | ) | const [protected] |
| bool Wt::Font::underline | ( | ) | const |
| int Wt::Font::width | ( | Uint16 | ch | ) | const |
friend class Painter [friend] |
Font::Map Wt::Font::map [static] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.