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

Classes | Functions
gcn Namespace Reference

Classes

class  ActionListener
 
class  BasicContainer
 
class  Button
 
class  CheckBox
 
class  ClipRectangle
 
class  Color
 
class  Container
 
class  DefaultFont
 
class  DropDown
 
class  Exception
 
class  FocusHandler
 
class  Font
 
class  Graphics
 
class  Gui
 
class  Icon
 
class  Image
 
class  ImageFont
 
class  ImageLoader
 
class  Input
 
class  Key
 
class  KeyInput
 
class  KeyListener
 
class  Label
 
class  ListBox
 
class  ListModel
 
class  MouseInput
 
class  MouseListener
 
class  RadioButton
 
class  Rectangle
 
class  ScrollArea
 
class  SDLGraphics
 
class  SDLImageLoader
 
class  SDLInput
 
class  Slider
 
class  TextBox
 
class  TextField
 
class  Widget
 
class  Window
 

Functions

static int GetNext (const std::string &text, int curpos)
 
const Color SDLgetPixel (SDL_Surface *surface, int x, int y)
 
void SDLputPixel (SDL_Surface *surface, int x, int y, const Color &color)
 
unsigned int SDLAlpha16 (unsigned int src, unsigned int dst, unsigned char a)
 
unsigned int SDLAlpha32 (unsigned int src, unsigned int dst, unsigned char a)
 
void SDLputPixelAlpha (SDL_Surface *surface, int x, int y, const Color &color)
 
static int FindNext (const std::string &text, int curpos)
 

Function Documentation

◆ FindNext()

static int gcn::FindNext ( const std::string &  text,
int  curpos 
)
static

◆ GetNext()

static int gcn::GetNext ( const std::string &  text,
int  curpos 
)
static

◆ SDLAlpha16()

unsigned int gcn::SDLAlpha16 ( unsigned int  src,
unsigned int  dst,
unsigned char  a 
)
inline

Blends two 16 bit colors together.

Parameters
srcthe source color.
dstthe destination color.
aalpha.

◆ SDLAlpha32()

unsigned int gcn::SDLAlpha32 ( unsigned int  src,
unsigned int  dst,
unsigned char  a 
)
inline

Blends two 32 bit colors together.

Parameters
srcthe source color.
dstthe destination color.
aalpha.

◆ SDLgetPixel()

const Color gcn::SDLgetPixel ( SDL_Surface *  surface,
int  x,
int  y 
)
inline

Checks a pixels color of an SDL_Surface.

Parameters
surfacean SDL_Surface where to check for a pixel color.
xthe x coordinate on the surface.
ythe y coordinate on the surface.
Returns
a color of a pixel.

◆ SDLputPixel()

void gcn::SDLputPixel ( SDL_Surface *  surface,
int  x,
int  y,
const Color color 
)
inline

Puts a pixel on an SDL_Surface.

@param surface an SDL_Surface to put the pixel on
Parameters
xthe x coordinate on the surface.
ythe y coordinate on the surface.
colorthe color the pixel should be in.

◆ SDLputPixelAlpha()

void gcn::SDLputPixelAlpha ( SDL_Surface *  surface,
int  x,
int  y,
const Color color 
)
inline

Puts a pixel on an SDL_Surface with alpha

@param surface an SDL_Surface to put the pixel on
Parameters
xthe x coordinate on the surface.
ythe y coordinate on the surface.
colorthe color the pixel should be in.
(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.