____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
Classes | |
| class | ActionListener |
| class | BasicContainer |
| class | ClipRectangle |
| class | Color |
| class | DefaultFont |
| class | Exception |
| class | FocusHandler |
| class | Font |
| class | Graphics |
| class | Gui |
| class | Image |
| class | ImageFont |
| class | ImageLoader |
| class | Input |
| class | Key |
| class | KeyInput |
| class | KeyListener |
| class | ListModel |
| class | MouseInput |
| class | MouseListener |
| class | Rectangle |
| class | SDLGraphics |
| class | SDLImageLoader |
| class | SDLInput |
| class | Widget |
| class | Button |
| class | CheckBox |
| class | Container |
| class | DropDown |
| class | Icon |
| class | Label |
| class | ListBox |
| class | RadioButton |
| class | ScrollArea |
| class | Slider |
| class | TextBox |
| class | TextField |
| 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) |
| static int gcn::FindNext | ( | const std::string & | text, | |
| int | curpos | |||
| ) | [static] |
| static int gcn::GetNext | ( | const std::string & | text, | |
| int | curpos | |||
| ) | [static] |
Definition at line 64 of file gfont.cpp.
References GCN_EXCEPTION.
Referenced by gcn::Font::getStringIndexAt().
| unsigned int gcn::SDLAlpha16 | ( | unsigned int | src, | |
| unsigned int | dst, | |||
| unsigned char | a | |||
| ) | [inline] |
Blends two 16 bit colors together.
| src | the source color. | |
| dst | the destination color. | |
| a | alpha. |
Definition at line 176 of file sdlpixel.h.
Referenced by SDLputPixelAlpha().
| unsigned int gcn::SDLAlpha32 | ( | unsigned int | src, | |
| unsigned int | dst, | |||
| unsigned char | a | |||
| ) | [inline] |
Blends two 32 bit colors together.
| src | the source color. | |
| dst | the destination color. | |
| a | alpha. |
Definition at line 194 of file sdlpixel.h.
Referenced by gcn::SDLGraphics::drawHLine(), gcn::SDLGraphics::drawVLine(), and SDLputPixelAlpha().
| const Color gcn::SDLgetPixel | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y | |||
| ) | [inline] |
Checks a pixels color of an SDL_Surface.
| surface | an SDL_Surface where to check for a pixel color. | |
| x | the x coordinate on the surface. | |
| y | the y coordinate on the surface. |
Definition at line 73 of file sdlpixel.h.
| void gcn::SDLputPixel | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y, | |||
| const Color & | color | |||
| ) | [inline] |
Puts a pixel on an SDL_Surface.
| surface | an SDL_Surface to put the pixel on | |
| x | the x coordinate on the surface. | |
| y | the y coordinate on the surface. | |
| color | the color the pixel should be in. |
Definition at line 126 of file sdlpixel.h.
References gcn::Color::b, gcn::Color::g, and gcn::Color::r.
Referenced by gcn::SDLGraphics::drawLine(), and gcn::SDLGraphics::drawPoint().
| void gcn::SDLputPixelAlpha | ( | SDL_Surface * | surface, | |
| int | x, | |||
| int | y, | |||
| const Color & | color | |||
| ) | [inline] |
Puts a pixel on an SDL_Surface with alpha
| surface | an SDL_Surface to put the pixel on | |
| x | the x coordinate on the surface. | |
| y | the y coordinate on the surface. | |
| color | the color the pixel should be in. |
Definition at line 217 of file sdlpixel.h.
References gcn::Color::a, gcn::Color::b, gcn::Color::g, gcn::Color::r, SDLAlpha16(), and SDLAlpha32().
Referenced by gcn::SDLGraphics::drawLine(), and gcn::SDLGraphics::drawPoint().
1.5.6