____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

widgets.cpp File Reference

The stratagus ui widgets. More...

#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::GuiGui
 A Gui object - binds it all together.
gcn::SDLInputInput
 Input driver.
static EventCallback GuichanCallbacks
static std::stack< MenuScreen * > MenuStack


Detailed Description

The stratagus ui widgets.

Definition in file widgets.cpp.


Function Documentation

void DrawGuichanWidgets (  ) 

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

Parameters:
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 (  ) 

static void MenuHandleButtonDown ( unsigned  buttons  )  [static]

Definition at line 64 of file widgets.cpp.

Referenced by initGuichan().

static void MenuHandleButtonUp ( unsigned  buttons  )  [static]

Definition at line 67 of file widgets.cpp.

Referenced by initGuichan().

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().


Variable Documentation

A Gui object - binds it all together.

Definition at line 51 of file widgets.cpp.

Referenced by initGuichan().

Definition at line 54 of file widgets.cpp.

Input driver.

Definition at line 52 of file widgets.cpp.

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

Definition at line 56 of file widgets.cpp.

Referenced by MenuScreen::run(), and MenuScreen::stop().


Generated on Sat Feb 21 00:28:22 2009 for Bos Wars by  doxygen 1.5.6