Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CGUIDice Class Reference

CGUIDice. More...

#include <GUIDice.h>

List of all members.

Public Slots

bool SetDice (uint32, uint32)
 SetDice.

Public Member Functions

 CGUIDice (QWidget *pParent=NULL, const int8 *name=NULL, bool bVertical=false)
 CGUIDice.
virtual ~CGUIDice ()
 ~CGUIDice
void GetDice (uint32 &die1, uint32 &die2) const
 GetDice.

Protected Member Functions

void resizeEvent (QResizeEvent *)
 resizeEvent
void contentsMousePressEvent (QMouseEvent *event)
 contentsMousePressEvent


Detailed Description

CGUIDice.

Description: Represents a pair of dice that can be horizontally or vertically orientated

Limitations:


Constructor & Destructor Documentation

CGUIDice::CGUIDice QWidget *  pParent = NULL,
const int8 *  name = NULL,
bool  bVertical = false
[inline]
 

CGUIDice.

Description: Class constructor

Parameters:
pParent is the parent widget of this class
name is the name of this class
bVertical is true if the dice should be vertically oriented and false if they should be horizontally oriented.
Limitations: NONE

CGUIDice::~CGUIDice  )  [inline, virtual]
 

~CGUIDice

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

void CGUIDice::contentsMousePressEvent QMouseEvent *  event  )  [inline, protected]
 

contentsMousePressEvent

Description: Called when the the mouse is clicked on the canvas. Emits the dice clicked signal if one of the die were clicked.

Returns:
void
Limitations: NONE

void CGUIDice::GetDice uint32 &  die1,
uint32 &  die2
const [inline]
 

GetDice.

Description: Returns the values of the dice

Parameters:
die1 is the value of the first die (output)
die2 is the value of the second die (output)
Returns:
void
Limitations: NONE

void CGUIDice::resizeEvent QResizeEvent *   )  [inline, protected]
 

resizeEvent

Description: Called when the window is resized. Resizes the dice.

Returns:
void
Limitations: NONE

bool CGUIDice::SetDice uint32  die1,
uint32  die2
[inline, slot]
 

SetDice.

Description: Sets the dice

Parameters:
die1 is the value of the first die
die2 is the value of the second die
Returns:
True if the die are set correctly, false otherwise
Limitations: NONE


The documentation for this class was generated from the following file:
Copyright (c) 2005 Matt Bruns, Pat Hammond, Kevin Markussen, Travis Service, Brain Shaver

SourceForge.net Logo