Public Member Functions | |
virtual void | OnPaint () |
The window must be repainted. | |
virtual void | OnHundredthTick () |
Called once every 100 (game) ticks. | |
virtual void | OnMouseLoop () |
Called for every mouse loop run, which is at least once per (game) tick. | |
virtual EventState | OnKeyPress (uint16 key, uint16 keycode) |
A key has been pressed. | |
Data Fields | |
int | line_height |
Height of one line of text in the console. | |
int | line_offset |
Static Public Attributes | |
static int | scroll = 0 |
Definition at line 171 of file console_gui.cpp.
virtual EventState IConsoleWindow::OnKeyPress | ( | uint16 | key, | |
uint16 | keycode | |||
) | [inline, virtual] |
A key has been pressed.
key | the Unicode value of the key. | |
keycode | the untranslated key code including shift state. |
Reimplemented from Window.
Definition at line 231 of file console_gui.cpp.
References Textbuf::buf, CC_COMMAND, CS_ALPHANUMERAL, DeleteTextBufferAll(), DeleteTextBufferChar(), ES_HANDLED, ES_NOT_HANDLED, Window::height, ICONSOLE_FULL, ICONSOLE_OPENED, IConsoleCmdExec(), IConsoleHistoryAdd(), IConsoleHistoryNavigate(), IConsolePrintF(), IConsoleResize(), IConsoleSwitch(), InsertTextBufferChar(), InsertTextBufferClipboard(), IsValidChar(), line_height, LRM, MarkWholeScreenDirty(), MoveTextBufferPos(), Window::SetDirty(), and IConsoleLine::size.
virtual void IConsoleWindow::OnPaint | ( | ) | [inline, virtual] |
The window must be repainted.
Reimplemented from Window.
Definition at line 192 of file console_gui.cpp.
References Textbuf::buf, Textbuf::caret, Textbuf::caretxoffs, CC_COMMAND, DrawString(), DrawStringMultiLine(), IConsoleLine::Get(), GfxFillRect(), Window::height, Window::left, line_height, Textbuf::pixels, IConsoleLine::previous, SA_BOTTOM, SA_FORCE, SA_LEFT, SetDParamStr(), Window::top, and Window::width.