Back to index

supertuxkart  0.5+dfsg1
Classes | Enumerations | Variables
widget.hpp File Reference
#include <string>
#include "gui/font.hpp"
#include <GL/gl.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Widget

Enumerations

enum  WidgetFontSize { WGT_FNT_SML = 18, WGT_FNT_MED = 24, WGT_FNT_LRG = 30 }
enum  WidgetArea {
  WGT_AREA_NONE = 0, WGT_AREA_NW = 1, WGT_AREA_SW = 2, WGT_AREA_NE = 4,
  WGT_AREA_SE = 8, WGT_AREA_LFT = (WGT_AREA_NW | WGT_AREA_SW), WGT_AREA_RGT = (WGT_AREA_NE | WGT_AREA_SE), WGT_AREA_TOP = (WGT_AREA_NW | WGT_AREA_NE),
  WGT_AREA_BOT = (WGT_AREA_SW | WGT_AREA_SE), WGT_AREA_ALL = (WGT_AREA_TOP | WGT_AREA_BOT)
}
enum  WidgetFont { WGT_FONT_GUI, WGT_FONT_RACE }
enum  WidgetScrollPos {
  WGT_SCROLL_START_LEFT = 2000001, WGT_SCROLL_START_RIGHT = 2000002, WGT_SCROLL_END_LEFT = -2000001, WGT_SCROLL_END_RIGHT = -2000002,
  WGT_SCROLL_START_TOP = 1000001, WGT_SCROLL_START_BOTTOM = 1000002, WGT_SCROLL_END_TOP = -1000001, WGT_SCROLL_END_BOTTOM = -1000002,
  WGT_SCROLL_CENTER = 3000000
}

Variables

const GLfloat WGT_WHITE [4]
const GLfloat WGT_GRAY [4]
const GLfloat WGT_BLACK [4]
const GLfloat WGT_YELLOW [4]
const GLfloat WGT_RED [4]
const GLfloat WGT_GREEN [4]
const GLfloat WGT_BLUE [4]
const GLfloat WGT_TRANS_WHITE [4]
const GLfloat WGT_TRANS_GRAY [4]
const GLfloat WGT_TRANS_BLACK [4]
const GLfloat WGT_TRANS_YELLOW [4]
const GLfloat WGT_TRANS_RED [4]
const GLfloat WGT_TRANS_GREEN [4]
const GLfloat WGT_TRANS_BLUE [4]
const GLfloat WGT_LIGHT_GRAY [4]
const GLfloat WGT_LIGHT_BLACK [4]
const GLfloat WGT_LIGHT_YELLOW [4]
const GLfloat WGT_LIGHT_RED [4]
const GLfloat WGT_LIGHT_GREEN [4]
const GLfloat WGT_LIGHT_BLUE [4]
const GLfloat WGT_LIGHT_TRANS_GRAY [4]
const GLfloat WGT_LIGHT_TRANS_BLACK [4]
const GLfloat WGT_LIGHT_TRANS_YELLOW [4]
const GLfloat WGT_LIGHT_TRANS_RED [4]
const GLfloat WGT_LIGHT_TRANS_GREEN [4]
const GLfloat WGT_LIGHT_TRANS_BLUE [4]
const GLfloat WGT_TRANSPARENT [4]

Enumeration Type Documentation

enum WidgetArea
Enumerator:
WGT_AREA_NONE 
WGT_AREA_NW 
WGT_AREA_SW 
WGT_AREA_NE 
WGT_AREA_SE 
WGT_AREA_LFT 
WGT_AREA_RGT 
WGT_AREA_TOP 
WGT_AREA_BOT 
WGT_AREA_ALL 

Definition at line 54 of file widget.hpp.

enum WidgetFont
Enumerator:
WGT_FONT_GUI 
WGT_FONT_RACE 

Definition at line 65 of file widget.hpp.

Enumerator:
WGT_FNT_SML 
WGT_FNT_MED 
WGT_FNT_LRG 

Definition at line 52 of file widget.hpp.

{ WGT_FNT_SML = 18, WGT_FNT_MED = 24, WGT_FNT_LRG = 30};
Enumerator:
WGT_SCROLL_START_LEFT 
WGT_SCROLL_START_RIGHT 
WGT_SCROLL_END_LEFT 
WGT_SCROLL_END_RIGHT 
WGT_SCROLL_START_TOP 
WGT_SCROLL_START_BOTTOM 
WGT_SCROLL_END_TOP 
WGT_SCROLL_END_BOTTOM 
WGT_SCROLL_CENTER 

Definition at line 73 of file widget.hpp.

{
    //For the X axis
    WGT_SCROLL_START_LEFT = 2000001,
    WGT_SCROLL_START_RIGHT = 2000002,
    WGT_SCROLL_END_LEFT = -2000001,
    WGT_SCROLL_END_RIGHT = -2000002,
    //For the Y axis
    WGT_SCROLL_START_TOP = 1000001,
    WGT_SCROLL_START_BOTTOM = 1000002,
    WGT_SCROLL_END_TOP = -1000001,
    WGT_SCROLL_END_BOTTOM = -1000002,
    //Works for both axis
    WGT_SCROLL_CENTER = 3000000
};

Variable Documentation

const GLfloat WGT_BLACK[4]

Definition at line 39 of file widget.cpp.

const GLfloat WGT_BLUE[4]

Definition at line 43 of file widget.cpp.

const GLfloat WGT_GRAY[4]

Definition at line 38 of file widget.cpp.

const GLfloat WGT_GREEN[4]

Definition at line 42 of file widget.cpp.

const GLfloat WGT_LIGHT_BLACK[4]

Definition at line 54 of file widget.cpp.

const GLfloat WGT_LIGHT_BLUE[4]

Definition at line 58 of file widget.cpp.

const GLfloat WGT_LIGHT_GRAY[4]

Definition at line 53 of file widget.cpp.

const GLfloat WGT_LIGHT_GREEN[4]

Definition at line 57 of file widget.cpp.

const GLfloat WGT_LIGHT_RED[4]

Definition at line 56 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_BLACK[4]

Definition at line 60 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_BLUE[4]

Definition at line 64 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_GRAY[4]

Definition at line 59 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_GREEN[4]

Definition at line 63 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_RED[4]

Definition at line 62 of file widget.cpp.

const GLfloat WGT_LIGHT_TRANS_YELLOW[4]

Definition at line 61 of file widget.cpp.

const GLfloat WGT_LIGHT_YELLOW[4]

Definition at line 55 of file widget.cpp.

const GLfloat WGT_RED[4]

Definition at line 41 of file widget.cpp.

const GLfloat WGT_TRANS_BLACK[4]

Definition at line 46 of file widget.cpp.

const GLfloat WGT_TRANS_BLUE[4]

Definition at line 50 of file widget.cpp.

const GLfloat WGT_TRANS_GRAY[4]

Definition at line 45 of file widget.cpp.

const GLfloat WGT_TRANS_GREEN[4]

Definition at line 49 of file widget.cpp.

const GLfloat WGT_TRANS_RED[4]

Definition at line 48 of file widget.cpp.

const GLfloat WGT_TRANS_WHITE[4]

Definition at line 44 of file widget.cpp.

const GLfloat WGT_TRANS_YELLOW[4]

Definition at line 47 of file widget.cpp.

const GLfloat WGT_TRANSPARENT[4]

Definition at line 66 of file widget.cpp.

const GLfloat WGT_WHITE[4]

Definition at line 37 of file widget.cpp.

const GLfloat WGT_YELLOW[4]

Definition at line 40 of file widget.cpp.