|
swift
|
Class for drawing a gray box with text messages. More...
#include <messages.h>
Public Member Functions | |
| CMessageBox (int left, int right, int top) | |
| Constructor. | |
| 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. | |
| Public Member Functions inherited from XSwiftBus::CDrawable | |
| 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 Public Member Functions | |
| static int | lineHeight () |
| Line height based on font. | |
Protected Member Functions | |
| 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.
|
inline |
Constructor.
| 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.
|
protectedvirtual |
Callback to draw the thing.
Implements XSwiftBus::CDrawable.
|
inline |
Set whether to draw a small arrow at the bottom of the box.
Definition at line 76 of file messages.h.
|
inline |
Set messages to draw in message box, from a pair of iterators.
Definition at line 66 of file messages.h.