Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mpg::PasswordPanel Class Reference

#include <PasswordPanel.hh>

List of all members.


Detailed Description

class to display a password in Metroid font and style

Definition at line 29 of file PasswordPanel.hh.

Public Member Functions

 PasswordPanel ()
 Creates a new PasswordPanel.
void setPassword (const Password *password)
 Sets the password string drawn by this PasswordPanel.

Private Member Functions

wxPoint getLetterPos (wxChar letter) const
 Gets the upper-left corner position of a letter in the alphabet bitmap.
void onEraseBackground (wxEraseEvent &event)
 Called to erase the background on this PasswordPanel.
void onPaint (wxPaintEvent &event)
 Called to paint this PasswordPanel.

Private Attributes

wxBitmap alphabet
const Passwordpassword

Static Private Attributes

static const int START_X = 4
static const int START_Y = 4
static const int CHARS_PER_ROW = 13
static const int CHAR_WIDTH = 16
static const int CHAR_HEIGHT = 16


Constructor & Destructor Documentation

PasswordPanel::PasswordPanel  ) 
 

Creates a new PasswordPanel.

Definition at line 48 of file PasswordPanel.cc.


Member Function Documentation

wxPoint PasswordPanel::getLetterPos wxChar  letter  )  const [private]
 

Gets the upper-left corner position of a letter in the alphabet bitmap.

Parameters:
letter The letter to find.
Returns:
The (x,y) position of the letter.

Definition at line 50 of file PasswordPanel.cc.

void mpg::PasswordPanel::onEraseBackground wxEraseEvent &  event  )  [inline, private]
 

Called to erase the background on this PasswordPanel.

Parameters:
event The triggering wxEraseEvent (unused).

Definition at line 83 of file PasswordPanel.hh.

void PasswordPanel::onPaint wxPaintEvent &  event  )  [private]
 

Called to paint this PasswordPanel.

Parameters:
event The triggering wxPaintEvent (unused).

Definition at line 57 of file PasswordPanel.cc.

void mpg::PasswordPanel::setPassword const Password password  )  [inline]
 

Sets the password string drawn by this PasswordPanel.

Parameters:
password The password.

Definition at line 81 of file PasswordPanel.hh.


Member Data Documentation

wxBitmap mpg::PasswordPanel::alphabet [private]
 

Definition at line 34 of file PasswordPanel.hh.

const int mpg::PasswordPanel::CHAR_HEIGHT = 16 [static, private]
 

Definition at line 41 of file PasswordPanel.hh.

const int mpg::PasswordPanel::CHAR_WIDTH = 16 [static, private]
 

Definition at line 40 of file PasswordPanel.hh.

const int mpg::PasswordPanel::CHARS_PER_ROW = 13 [static, private]
 

Definition at line 39 of file PasswordPanel.hh.

const Password* mpg::PasswordPanel::password [private]
 

Definition at line 35 of file PasswordPanel.hh.

const int mpg::PasswordPanel::START_X = 4 [static, private]
 

Definition at line 37 of file PasswordPanel.hh.

const int mpg::PasswordPanel::START_Y = 4 [static, private]
 

Definition at line 38 of file PasswordPanel.hh.


Generated on Thu Sep 29 02:09:39 2005 for Metroid Password Generator by  doxygen 1.4.2