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

       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"

icons.h File Reference

The icons headerfile. More...

#include <string>
#include <map>

Go to the source code of this file.

Classes

class  CIcon
 Icon: rectangle image used in menus. More...
class  IconConfig

Defines

#define IconActive   1
 cursor on icon
#define IconClicked   2
 mouse button down on icon
#define IconSelected   4
 this the selected icon
#define IconDisabled   8
 icon disabled
#define IconAutoCast   16
 auto cast icon

Functions

void InitIcons (void)
 Init icons.
void LoadIcons (void)
 Load icons.
void CleanIcons (void)
 Cleanup icons.
void IconCclRegister (void)

Variables

std::map< std::string, CIcon * > Icons
 Map of ident to icon.


Detailed Description

The icons headerfile.

Definition in file icons.h.


Define Documentation

#define IconActive   1

#define IconAutoCast   16

auto cast icon

Definition at line 93 of file icons.h.

Referenced by CIcon::DrawUnitIcon(), and GetButtonStatus().

#define IconClicked   2

mouse button down on icon

Definition at line 90 of file icons.h.

Referenced by GetButtonStatus().

#define IconDisabled   8

icon disabled

Definition at line 92 of file icons.h.

#define IconSelected   4

this the selected icon

Definition at line 91 of file icons.h.

Referenced by DrawEditorPanel(), CIcon::DrawUnitIcon(), and GetButtonStatus().


Function Documentation

void CleanIcons ( void   ) 

Cleanup icons.

Register CCL features

Clean up memory used by the icons.

Definition at line 160 of file icons.cpp.

References AllIcons, and Icons.

Referenced by CleanModules().

void IconCclRegister ( void   ) 

Register CCL features for icons.

Definition at line 215 of file icons.cpp.

Referenced by InitCcl().

void InitIcons ( void   ) 

Init icons.

Init the icons.

Add the short name and icon aliases to hash table.

Definition at line 136 of file icons.cpp.

Referenced by CreateGame(), and InitModules().

void LoadIcons ( void   ) 

Load icons.

Load the graphics for the icons.

Definition at line 143 of file icons.cpp.

References _C_, AllIcons, DebugPrint, CGraphic::File, CIcon::Frame, CIcon::G, CIcon::GetIdent(), CGraphic::Load(), CGraphic::NumFrames, and ShowLoadProgress().

Referenced by CreateGame(), and LoadModules().


Variable Documentation

std::map<std::string, CIcon *> Icons

Map of ident to icon.

Definition at line 57 of file icons.cpp.

Referenced by CleanIcons(), CIcon::Get(), and CIcon::New().


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