DInfo Class Reference
[2D Graphical User Inteface]

Dinfo Class : a simple Info DialogBox

This class create a dialogbox with :

More...

#include <DialogBox.hh>

Inheritance diagram for DInfo:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DInfo (SDL_Surface *, const string)
ushort mousebuttondown (const uint mx, const uint my)
 Method to do an action when mouse button is down.
void draw ()
 Method to draw the dialogbox.

Detailed Description

Dinfo Class : a simple Info DialogBox

This class create a dialogbox with :

This class inherit from DialogBox

Author:
poltuiu
Date:
2006-03-15


Member Function Documentation

void DInfo::draw (  )  [virtual]

Method to draw the dialogbox.

Note:
to draw the dialogbox, we need to draw all elements step by step

Implements DialogBox.

ushort DInfo::mousebuttondown ( const uint  mx,
const uint  my 
) [virtual]

Method to do an action when mouse button is down.

Note:
this function has two way :
  • if mouse pointer is inside the title, box pass on move mode
  • if mouse pointer is inside the button, close the box (button close)
Parameters:
mx is the mouse pointer x coordinate
my is the mouse pointer y coordinate
Returns:
1 if do something, 0 else

Reimplemented from DialogBox.


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:10:23 2007 for Stechec/TBT by  doxygen 1.4.7