Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

Resource.h File Reference

#include <SDL/SDL.h>
#include <Font.h>

Include dependency graph for Resource.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define NUM_RESOURCES   26
#define BACKGROUND   0
#define BASE_BUTTON_UP   1
#define BASE_BUTTON_LIT   2
#define BASE_BUTTON_DOWN   3
#define BUTTON_UP_LEFT   4
#define BUTTON_UP_RIGHT   5
#define BUTTON_UP_MIDDLE   6
#define BUTTON_LIT_LEFT   7
#define BUTTON_LIT_RIGHT   8
#define BUTTON_LIT_MIDDLE   9
#define BUTTON_DOWN_LEFT   10
#define BUTTON_DOWN_RIGHT   11
#define BUTTON_DOWN_MIDDLE   12
#define WINDOW_LEFT_TOP   13
#define WINDOW_RIGHT_TOP   14
#define WINDOW_TOP_CAPTION   15
#define WINDOW_BOTTOM_LEFT   16
#define WINDOW_BOTTOM_RIGHT   17
#define WINDOW_BOTTOM_MIDDLE   18
#define WINDOW_MIDDLE_LEFT   19
#define WINDOW_MIDDLE_LEFT_TOP   20
#define WINDOW_MIDDLE_LEFT_BOTTOM   21
#define WINDOW_MIDDLE_RIGHT   22
#define WINDOW_MIDDLE_RIGHT_TOP   23
#define WINDOW_MIDDLE_RIGHT_BOTTOM   24
#define SPLASH   25
#define NUM_FONTS   8
#define PROGRESS_FONT   0
#define DEFAULT_FONT   1
#define BOLD_FONT   2
#define ITALIC_FONT   3
#define BOLD_ITALIC_FONT   4
#define MINI_FONT   5
#define BINGO_UNMARKED_FONT   6
#define BINGO_MARKED_FONT   7

Functions

bool loadResources ()

Variables

SDL_Surface * bRes [NUM_RESOURCES]
SDL_Surface * Screen
 Varibles globales de estado.

Font * SystemFont


Define Documentation

#define BACKGROUND   0
 

Definition at line 10 of file Resource.h.

Referenced by main(), clawsoft.LoginDialog.run(), and clawsoft.GameSelector.run().

#define BASE_BUTTON_DOWN   3
 

Definition at line 13 of file Resource.h.

Referenced by clawsoft.BaseButton.draw().

#define BASE_BUTTON_LIT   2
 

Definition at line 12 of file Resource.h.

Referenced by clawsoft.BaseButton.draw().

#define BASE_BUTTON_UP   1
 

Definition at line 11 of file Resource.h.

Referenced by clawsoft.BaseButton.draw().

#define BINGO_MARKED_FONT   7
 

Definition at line 46 of file Resource.h.

#define BINGO_UNMARKED_FONT   6
 

Definition at line 45 of file Resource.h.

#define BOLD_FONT   2
 

Definition at line 41 of file Resource.h.

#define BOLD_ITALIC_FONT   4
 

Definition at line 43 of file Resource.h.

#define BUTTON_DOWN_LEFT   10
 

Definition at line 20 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_DOWN_MIDDLE   12
 

Definition at line 22 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_DOWN_RIGHT   11
 

Definition at line 21 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_LIT_LEFT   7
 

Definition at line 17 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_LIT_MIDDLE   9
 

Definition at line 19 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_LIT_RIGHT   8
 

Definition at line 18 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_UP_LEFT   4
 

Definition at line 14 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_UP_MIDDLE   6
 

Definition at line 16 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define BUTTON_UP_RIGHT   5
 

Definition at line 15 of file Resource.h.

Referenced by clawsoft.TextButton.draw().

#define DEFAULT_FONT   1
 

Definition at line 40 of file Resource.h.

Referenced by clawsoft.Window.draw(), clawsoft.TextButton.draw(), clawsoft.LoginDialog.drawContents(), clawsoft.Window.map(), and clawsoft.TextButton.map().

#define ITALIC_FONT   3
 

Definition at line 42 of file Resource.h.

#define MINI_FONT   5
 

Definition at line 44 of file Resource.h.

Referenced by clawsoft.TextBox.draw(), loadResources(), and clawsoft.TextField.map().

#define NUM_FONTS   8
 

Definition at line 38 of file Resource.h.

Referenced by loadResources().

#define NUM_RESOURCES   26
 

Definition at line 9 of file Resource.h.

Referenced by loadResources().

#define PROGRESS_FONT   0
 

Definition at line 39 of file Resource.h.

Referenced by loadResources().

#define SPLASH   25
 

Definition at line 35 of file Resource.h.

Referenced by main().

#define WINDOW_BOTTOM_LEFT   16
 

Definition at line 26 of file Resource.h.

Referenced by clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_BOTTOM_MIDDLE   18
 

Definition at line 28 of file Resource.h.

Referenced by clawsoft.Window.checkMouseMotionEvents(), clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_BOTTOM_RIGHT   17
 

Definition at line 27 of file Resource.h.

Referenced by clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_LEFT_TOP   13
 

Definition at line 23 of file Resource.h.

Referenced by clawsoft.Window.draw().

#define WINDOW_MIDDLE_LEFT   19
 

Definition at line 29 of file Resource.h.

Referenced by clawsoft.Window.draw().

#define WINDOW_MIDDLE_LEFT_BOTTOM   21
 

Definition at line 31 of file Resource.h.

Referenced by clawsoft.Window.draw().

#define WINDOW_MIDDLE_LEFT_TOP   20
 

Definition at line 30 of file Resource.h.

Referenced by clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_MIDDLE_RIGHT   22
 

Definition at line 32 of file Resource.h.

Referenced by clawsoft.Window.draw().

#define WINDOW_MIDDLE_RIGHT_BOTTOM   24
 

Definition at line 34 of file Resource.h.

Referenced by clawsoft.Window.draw().

#define WINDOW_MIDDLE_RIGHT_TOP   23
 

Definition at line 33 of file Resource.h.

Referenced by clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_RIGHT_TOP   14
 

Definition at line 24 of file Resource.h.

Referenced by clawsoft.Window.draw(), and clawsoft.Window.map().

#define WINDOW_TOP_CAPTION   15
 

Definition at line 25 of file Resource.h.

Referenced by clawsoft.Window.checkMouseMotionEvents(), and clawsoft.Window.draw().


Function Documentation

bool loadResources  
 

Definition at line 59 of file Resource.cpp.

References bRes, fnames, fontfiles, MINI_FONT, NUM_FONTS, NUM_RESOURCES, PROGRESS_FONT, Screen, and SystemFont.

Referenced by main().


Variable Documentation

SDL_Surface* bRes[NUM_RESOURCES]
 

Definition at line 48 of file Resource.h.

Referenced by loadResources().

SDL_Surface* Screen
 

Varibles globales de estado.

Definition at line 49 of file Resource.h.

Referenced by main().

Font* SystemFont
 

Definition at line 51 of file Resource.h.

Powered by:

SourceForge Logo