Back to index

extremetuxracer  0.5beta
Public Member Functions | Public Attributes
pp::Theme Class Reference

#include <ui_theme.h>

Collaboration diagram for pp::Theme:
Collaboration graph

List of all members.

Public Member Functions

 Theme ()
void drawMenuDecorations ()

Public Attributes

pp::Color background
pp::Color foreground
pp::Color highlight
pp::Color disabled
pp::Color insensitive
pp::Color focus
pp::Vec2d border
pp::Vec2d textPadding

Detailed Description

Definition at line 28 of file ui_theme.h.

Constructor & Destructor Documentation

Definition at line 29 of file ui_theme.cpp.

       background(0.5, 0.6, 0.9),
       foreground(1.0, 1.0, 1.0), 
       highlight(1.0, 0.9, 0.0),
       disabled(1.0, 1.0, 1.0, 1.0),
       insensitive(1.0, 1.0, 1.0, 0.5),
       focus(1.0, 0.89, 0.01, 1.0),

Member Function Documentation

Definition at line 42 of file ui_theme.cpp.

       int width = getparam_x_resolution();
       int height = getparam_y_resolution();
       pp::Vec2d size(255,255);
       ppGL::draw::rect("menu_bottom_left",pp::Vec2d(0,0), size);
       ppGL::draw::rect("menu_bottom_right",pp::Vec2d(width-256,0), size);
       ppGL::draw::rect("menu_top_left",pp::Vec2d(0,height-256), size);
       ppGL::draw::rect("menu_top_right",pp::Vec2d(width-256,height-256), size);
       if(height>760) {
              ppGL::draw::rect("menu_title",pp::Vec2d(width/2-256, height-256),pp::Vec2d(512,256));
       } else {
              ppGL::draw::rect("menu_title_small",pp::Vec2d(width/2-256, height-128),pp::Vec2d(512,128));

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 33 of file ui_theme.h.

Definition at line 40 of file ui_theme.h.

Definition at line 36 of file ui_theme.h.

Definition at line 38 of file ui_theme.h.

Definition at line 34 of file ui_theme.h.

Definition at line 35 of file ui_theme.h.

Definition at line 37 of file ui_theme.h.

Definition at line 41 of file ui_theme.h.

The documentation for this class was generated from the following files: