Preview widget for particle colors, etc.
More...
#include <textpreview.h>
|
| TextPreview (const std::string &text) |
|
void | setTextColor (const gcn::Color *color) |
| Sets the color the text is printed in.
|
|
void | setFont (gcn::Font *font) |
| Sets the font to render the text in.
|
|
void | setShadow (bool shadow) |
| Sets whether to use a shadow while rendering.
|
|
void | setOutline (bool outline) |
| Sets whether to use an outline while rendering.
|
|
void | draw (gcn::Graphics *graphics) override |
| Widget's draw method.
|
|
Preview widget for particle colors, etc.
Definition at line 31 of file textpreview.h.
◆ TextPreview()
TextPreview::TextPreview |
( |
const std::string & |
text | ) |
|
◆ draw()
void TextPreview::draw |
( |
gcn::Graphics * |
graphics | ) |
|
|
override |
Widget's draw method.
Does the actual job.
- Parameters
-
graphics | graphics to draw into |
Definition at line 33 of file textpreview.cpp.
◆ setFont()
void TextPreview::setFont |
( |
gcn::Font * |
font | ) |
|
|
inline |
Sets the font to render the text in.
- Parameters
-
Definition at line 51 of file textpreview.h.
◆ setOutline()
void TextPreview::setOutline |
( |
bool |
outline | ) |
|
|
inline |
Sets whether to use an outline while rendering.
- Parameters
-
outline | true, if an outline is wanted, false else |
Definition at line 71 of file textpreview.h.
◆ setShadow()
void TextPreview::setShadow |
( |
bool |
shadow | ) |
|
|
inline |
Sets whether to use a shadow while rendering.
- Parameters
-
shadow | true, if a shadow is wanted, false else |
Definition at line 61 of file textpreview.h.
◆ setTextColor()
void TextPreview::setTextColor |
( |
const gcn::Color * |
color | ) |
|
|
inline |
Sets the color the text is printed in.
- Parameters
-
Definition at line 41 of file textpreview.h.
◆ mFont
gcn::Font* TextPreview::mFont |
|
private |
◆ mOutline
bool TextPreview::mOutline = false |
|
private |
◆ mShadow
bool TextPreview::mShadow = false |
|
private |
◆ mText
std::string TextPreview::mText |
|
private |
◆ mTextColor
const gcn::Color* TextPreview::mTextColor |
|
private |
The documentation for this class was generated from the following files: