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

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

◆ DrawGuichanWidgets()

void DrawGuichanWidgets ( )

◆ freeGuichan()

void freeGuichan ( )

Free all guichan infrastructure

◆ handleInput()

void handleInput ( const SDL_Event *  event)

Handle input events

Parameters
eventevent to handle, null if no more events for this frame

◆ initGuichan()

void initGuichan ( )

Initializes the GUI stuff

◆ MenuHandleButtonDown()

static void MenuHandleButtonDown ( unsigned  )
static

◆ MenuHandleButtonUp()

static void MenuHandleButtonUp ( unsigned  )
static

◆ MenuHandleKeyDown()

static void MenuHandleKeyDown ( unsigned  key,
unsigned  keychar 
)
static

◆ MenuHandleKeyRepeat()

static void MenuHandleKeyRepeat ( unsigned  key,
unsigned  keychar 
)
static

◆ MenuHandleKeyUp()

static void MenuHandleKeyUp ( unsigned  key,
unsigned  keychar 
)
static

◆ MenuHandleMouseMove()

static void MenuHandleMouseMove ( const PixelPos screenPos)
static

Variable Documentation

◆ Gui

gcn::Gui* Gui

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

◆ GuichanCallbacks

EventCallback GuichanCallbacks
static

Input driver.

◆ Input

gcn::SDLInput* Input

A Gui object - binds it all together.

◆ MenuStack

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.