Class for drawing a gray box with text messages.
More...
|
| | CMessageBox (int left, int right, int top) |
| | Constructor. More...
|
| |
|
template<typename Iterator > |
| void | setMessages (Iterator begin, Iterator end) |
| | Set messages to draw in message box, from a pair of iterators.
|
| |
|
void | setValues (int leftPx, int topPx, int rightPx, int bottomPx, int lines, int durationMs) |
| | Set margin values.
|
| |
|
void | enableArrows (bool up, bool down) |
| | Set whether to draw a small arrow at the bottom of the box.
|
| |
|
int | maxLineLength () const |
| | Returns the maximum number of characters per line.
|
| |
|
| CDrawable (XPLMDrawingPhase phase, bool before) |
| | Constructor.
|
| |
|
virtual | ~CDrawable () |
| | Destructor.
|
| |
|
bool | isVisible () const |
| | Is currently shown.
|
| |
|
void | show () |
| | Register the draw callback.
|
| |
|
void | hide () |
| | Unregister the draw callback.
|
| |
|
|
static int | lineHeight () |
| | Line height based on font.
|
| |
|
|
virtual void | draw () |
| | Callback to draw the thing.
|
| |
Class for drawing a gray box with text messages.
Definition at line 53 of file messages.h.
◆ CMessageBox()
| XSwiftBus::CMessageBox::CMessageBox |
( |
int |
left, |
|
|
int |
right, |
|
|
int |
top |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| left | Number of "virtual pixels" between screen left edge and box left edge. |
| right | Number of "virtual pixels" between screen right edge and box right edge. |
| top | Number of "virtual pixels" between screen top edge and box top edge. |
Definition at line 60 of file messages.h.
The documentation for this class was generated from the following file: