NewGameButton Class Reference

#include <Tetris.h>

Inheritance diagram for NewGameButton:

TButton TPad TAttText TPad TAttText TVirtualPad TVirtualPad TVirtualPad TVirtualPad TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject TQObject TAttPad TAttFill TAttLine TObject List of all members.

Public Member Functions

 NewGameButton (Float_t xlow, Float_t ylow, Float_t xup, Float_t yup)
 ~NewGameButton ()
void SetPressed (Bool_t state)
Bool_t IsPressed ()
void ExecuteEvent (Int_t event, Int_t px, Int_t py)

Private Attributes

Bool_t fPressed

Detailed Description

Definition at line 280 of file Tetris.h.


Constructor & Destructor Documentation

NewGameButton::NewGameButton ( Float_t  xlow,
Float_t  ylow,
Float_t  xup,
Float_t  yup 
)

Definition at line 763 of file Tetris.cxx.

References TPad::SetBorderSize(), TAttFill::SetFillColor(), and TAttText::SetTextSize().

NewGameButton::~NewGameButton (  )  [inline]

Definition at line 287 of file Tetris.h.


Member Function Documentation

void NewGameButton::SetPressed ( Bool_t  state  )  [inline]

Definition at line 289 of file Tetris.h.

References fPressed, kTRUE, TPad::Modified(), TButton::SetBorderMode(), and TPad::Update().

Referenced by Tetris::NewGame(), and Tetris::StopGame().

Bool_t NewGameButton::IsPressed (  )  [inline]

Definition at line 296 of file Tetris.h.

References fPressed.

Referenced by Tetris::IsGameOn().

void NewGameButton::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TButton.

Definition at line 773 of file Tetris.cxx.

References gTetris, kButton1Up, kTRUE, TPad::Modified(), and Tetris::NewGame().


Member Data Documentation

Bool_t NewGameButton::fPressed [private]

Definition at line 283 of file Tetris.h.

Referenced by IsPressed(), and SetPressed().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:31:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1