____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "stratagus.h"
#include "video.h"
#include "font.h"
#include "cursor.h"
#include "ui.h"
#include "widgets.h"
#include "network.h"
#include "netconnect.h"
#include "editor.h"
#include "script.h"
Go to the source code of this file.
Functions | |
| static void | MenuHandleButtonDown (unsigned buttons) |
| static void | MenuHandleButtonUp (unsigned buttons) |
| static void | MenuHandleMouseMove (int x, int y) |
| static void | MenuHandleKeyDown (unsigned key, unsigned keychar) |
| static void | MenuHandleKeyUp (unsigned key, unsigned keychar) |
| static void | MenuHandleKeyRepeat (unsigned key, unsigned keychar) |
| void | initGuichan () |
| void | freeGuichan () |
| void | handleInput (const SDL_Event *event) |
| void | DrawGuichanWidgets () |
Variables | |
| gcn::Gui * | Gui |
| A Gui object - binds it all together. | |
| gcn::SDLInput * | Input |
| Input driver. | |
| static EventCallback | GuichanCallbacks |
| static std::stack< MenuScreen * > | MenuStack |
Definition in file widgets.cpp.
| void DrawGuichanWidgets | ( | ) |
Definition at line 160 of file widgets.cpp.
References gcn::Gui::draw(), Editor, GameRunning, PatchEditorRunning, CEditor::Running, gcn::Gui::setUseDirtyDrawing(), and UseOpenGL.
Referenced by EditorUpdateDisplay(), PatchEditorUpdateDisplay(), and UpdateDisplay().
| void freeGuichan | ( | ) |
Free all guichan infrastructure
Definition at line 128 of file widgets.cpp.
References gcn::Gui::getGraphics().
Referenced by Exit().
| void handleInput | ( | const SDL_Event * | event | ) |
Handle input events
| event | event to handle, null if no more events for this frame |
Definition at line 143 of file widgets.cpp.
References gcn::Gui::logic(), and gcn::SDLInput::pushInput().
Referenced by SdlDoEvent(), and WaitEventsOneFrame().
| void initGuichan | ( | ) |
Initializes the GUI stuff
Definition at line 92 of file widgets.cpp.
References _event_callback_::ButtonPressed, _event_callback_::ButtonReleased, Gui, HandleMouseExit(), _event_callback_::KeyPressed, _event_callback_::KeyReleased, _event_callback_::KeyRepeated, MenuHandleButtonDown(), MenuHandleButtonUp(), MenuHandleKeyDown(), MenuHandleKeyRepeat(), MenuHandleKeyUp(), MenuHandleMouseMove(), _event_callback_::MouseExit, _event_callback_::MouseMoved, NetworkEvent(), _event_callback_::NetworkEvent, gcn::Gui::setGraphics(), gcn::Gui::setInput(), gcn::Gui::setTop(), gcn::Gui::setUseDirtyDrawing(), TheScreen, and UseOpenGL.
Referenced by MenuLoop().
| static void MenuHandleButtonDown | ( | unsigned | buttons | ) | [static] |
| static void MenuHandleButtonUp | ( | unsigned | buttons | ) | [static] |
| static void MenuHandleKeyDown | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) | [static] |
Definition at line 74 of file widgets.cpp.
References HandleKeyModifiersDown().
Referenced by initGuichan().
| static void MenuHandleKeyRepeat | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) | [static] |
Definition at line 82 of file widgets.cpp.
References HandleKeyModifiersDown(), and gcn::SDLInput::processKeyRepeat().
Referenced by initGuichan().
| static void MenuHandleKeyUp | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) | [static] |
Definition at line 78 of file widgets.cpp.
References HandleKeyModifiersUp().
Referenced by initGuichan().
| static void MenuHandleMouseMove | ( | int | x, | |
| int | y | |||
| ) | [static] |
Definition at line 70 of file widgets.cpp.
References HandleCursorMove().
Referenced by initGuichan().
A Gui object - binds it all together.
Definition at line 51 of file widgets.cpp.
Referenced by initGuichan().
EventCallback GuichanCallbacks [static] |
Definition at line 54 of file widgets.cpp.
std::stack<MenuScreen *> MenuStack [static] |
1.5.6