_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
widgets.cpp File Reference
#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 "sound.h"

widgets.cpp - The stratagus ui widgets.

gcn::GuiGui
 true if gain XP by dealing damage, false if by killing. More...
 
gcn::SDLInputInput
 A Gui object - binds it all together. More...
 
static EventCallback GuichanCallbacks
 Input driver. More...
 
static std::stack< MenuScreen * > MenuStack
 
static void MenuHandleButtonDown (unsigned)
 
static void MenuHandleButtonUp (unsigned)
 
static void MenuHandleMouseMove (const PixelPos &screenPos)
 
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 ()
 

Function Documentation

void DrawGuichanWidgets ( )
void freeGuichan ( )

Free all guichan infrastructure

void handleInput ( const SDL_Event *  event)

Handle input events

Parameters
eventevent to handle, null if no more events for this frame
void initGuichan ( )

Initializes the GUI stuff

static void MenuHandleButtonDown ( unsigned  )
static
static void MenuHandleButtonUp ( unsigned  )
static
static void MenuHandleKeyDown ( unsigned  key,
unsigned  keychar 
)
static
static void MenuHandleKeyRepeat ( unsigned  key,
unsigned  keychar 
)
static
static void MenuHandleKeyUp ( unsigned  key,
unsigned  keychar 
)
static
static void MenuHandleMouseMove ( const PixelPos screenPos)
static

Variable Documentation

gcn::Gui* Gui

true if gain XP by dealing damage, false if by killing.

EventCallback GuichanCallbacks
static

Input driver.

gcn::SDLInput* Input

A Gui object - binds it all together.

std::stack<MenuScreen *> MenuStack
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.