Public Member Functions | |
virtual void | OnPaint () |
The window must be repainted. | |
virtual EventState | OnKeyPress (uint16 key, uint16 keycode) |
A key has been pressed. | |
virtual void | OnScroll (Point delta) |
Handle the request for (viewport) scrolling. | |
virtual void | OnMouseWheel (int wheel) |
The mouse wheel has been turned. | |
virtual void | OnResize () |
Called after the window got resized. | |
virtual void | OnInvalidateData (int data) |
Some data on this window has become invalid. |
Definition at line 206 of file main_gui.cpp.
virtual void MainWindow::OnInvalidateData | ( | int | data | ) | [inline, virtual] |
Some data on this window has become invalid.
data | information about the changed data. |
Reimplemented from Window.
Definition at line 392 of file main_gui.cpp.
References InvalidateWindowData().
virtual EventState MainWindow::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 237 of file main_gui.cpp.
References _network_server, _networking, _settings_client, NetworkClientInfo::client_playas, CMD_MONEY_CHEAT, DeleteAllNonVitalWindows(), DeleteNonVitalWindows(), DESTTYPE_BROADCAST, DESTTYPE_TEAM, DoCommandP(), Window::ES_HANDLED, Window::ES_NOT_HANDLED, IsGeneratingWorld(), MarkWholeScreenDirty(), ClientSettings::network, NetworkClientPreferTeamChat(), NetworkFindClientInfoFromClientID(), ResetRestoreAllTransparency(), ScrollMainWindowTo(), NetworkSettings::server_advertise, ToggleInvisibilityWithTransparency(), ToggleTransparency(), and UpdateAllVirtCoords().
virtual void MainWindow::OnMouseWheel | ( | int | wheel | ) | [inline, virtual] |
The mouse wheel has been turned.
wheel | the amount of movement of the mouse wheel. |
Reimplemented from Window.
Definition at line 379 of file main_gui.cpp.
virtual void MainWindow::OnPaint | ( | ) | [inline, virtual] |
The window must be repainted.
Reimplemented from Window.
Definition at line 217 of file main_gui.cpp.
References DrawSprite(), Window::DrawWidgets(), GetSpriteSize(), lengthof, and Window::width.
virtual void MainWindow::OnResize | ( | ) | [inline, virtual] |
Called after the window got resized.
For nested windows with a viewport, call NWidgetViewport::UpdateViewportCoordinates.
Reimplemented from Window.
Definition at line 384 of file main_gui.cpp.
References MW_VIEWPORT, NWidgetViewport::UpdateViewportCoordinates(), and Window::viewport.
virtual void MainWindow::OnScroll | ( | Point | delta | ) | [inline, virtual] |
Handle the request for (viewport) scrolling.
delta | the amount the viewport must be scrolled. |
Reimplemented from Window.
Definition at line 364 of file main_gui.cpp.
References ViewportData::dest_scrollpos_x, ViewportData::dest_scrollpos_y, CursorVars::fix_at, IsPtInWindowViewport(), ScaleByZoom(), ViewportData::scrollpos_x, ViewportData::scrollpos_y, and Window::viewport.