PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
PGE_BoxBase Class Reference

The PGE_BoxBase class. More...

#include <pge_boxbase.h>

Inheritance diagram for PGE_BoxBase:
PGE_MenuBoxBase PGE_MsgBox PGE_TextInputBox PGE_MenuBox PGE_QuestionBox

Public Types

enum  msgType {
  msg_info =0, msg_info_light, msg_warn, msg_error,
  msg_fatal
}
 

Public Member Functions

 PGE_BoxBase (Scene *_parentScene=0)
 
 PGE_BoxBase (const PGE_BoxBase &bb)
 
virtual void setParentScene (Scene *_parentScene)
 
virtual void exec ()
 
virtual void update (float ticks)
 
virtual void render ()
 
void setFade (int speed, float target, float step)
 
bool tickFader (float ticks)
 
void fadeStep ()
 
void loadTexture (QString path)
 
void updateTickValue ()
 

Public Attributes

float fader_opacity
 
float target_opacity
 
float fade_step
 
int fadeSpeed
 
float manual_ticks
 

Protected Member Functions

void construct (Scene *_parentScene=0)
 
void drawTexture (int left, int top, int right, int bottom, int border=32)
 
void drawTexture (PGE_Rect _rect, int border=32)
 
void drawPiece (PGE_RectF target, PGE_RectF block, PGE_RectF texture)
 

Protected Attributes

SceneparentScene
 
float uTickf
 
int uTick
 
bool _textureUsed
 
PGE_Texture styleTexture
 

Detailed Description

The PGE_BoxBase class.

This class provides the basis of message boxes, menus, questions, etc.


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