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

src/ui/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
gcn::SDLInputInput
 A Gui object - binds it all together.
static EventCallback GuichanCallbacks
 Input driver.
static std::stack< MenuScreen * > MenuStack
static void MenuHandleButtonDown (unsigned)
static void MenuHandleButtonUp (unsigned)
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 ()

Function Documentation

void DrawGuichanWidgets (  ) 

void freeGuichan (  ) 

Free all guichan infrastructure

void handleInput ( const SDL_Event *  event  ) 

Handle input events

Parameters:
event event 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 ( int  x,
int  y 
) [static]


Variable Documentation

Input driver.

A Gui object - binds it all together.

std::stack<MenuScreen *> MenuStack [static]

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.