Button Class Reference

#include <Button.h>

Inheritance diagram for Button:

Window

List of all members.


Public Types

enum  Image {
  IMAGE_NORMAL, IMAGE_HILITE, IMAGE_PRESSED, IMAGE_DISABLED,
  IMAGE_MAXIMAGE
}
 (*** add brief description here ***) More...

Public Member Functions

 Button ()
 (*** add brief description here ***)
virtual ~Button ()
 (*** add brief description here ***)
void SetStatus (StringView *pView, const std::string &rStatus)
 (*** add brief description here ***)
void SetCode (int code)
 (*** add brief description here ***)
virtual void Draw (Rect rect)
 (*** add brief description here ***)
virtual void OnMouseMove (Point point)
 (*** add brief description here ***)
virtual void OnMouseDown (int n, Point point)
 (*** add brief description here ***)
virtual void OnMouseUp (int n, Point point)
 (*** add brief description here ***)
void Load (Surface *surface)
 (*** add brief description here ***)
void Load (Surface *surface, Rect rect)
 (*** add brief description here ***)
void LoadImage (Image image, const std::string &rName)
 Loads individual image.

Private Types

enum  State { STATE_IDLE, STATE_HOVER, STATE_ACTIVE, STATE_PENDING }
 (*** add brief description here ***) More...

Private Attributes

State m_State
 (*** add brief description here ***)
Surfacem_pImage [IMAGE_MAXIMAGE]
 (*** add brief description here ***)
std::string m_Status
 (*** add brief description here ***)
StringViewm_pStringView
 (*** add brief description here ***)
int m_Code
 (*** add brief description here ***)
void * m_pData1
 (*** add brief description here ***)
void * m_pData2
 (*** add brief description here ***)

Detailed Description

(*** add brief description here ***)
Full Description
(*** add full description here ***)

Member Enumeration Documentation

enum Image

(*** add brief description here ***)

Enumerator:
IMAGE_NORMAL 
IMAGE_HILITE 
IMAGE_PRESSED 
IMAGE_DISABLED 
IMAGE_MAXIMAGE 

enum State [private]

(*** add brief description here ***)

Enumerator:
STATE_IDLE 
STATE_HOVER 
STATE_ACTIVE 
STATE_PENDING 


Constructor & Destructor Documentation

Button (  ) 

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

~Button (  )  [virtual]

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)


Member Function Documentation

void SetStatus ( StringView pView,
const std::string &  rStatus 
)

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void SetCode ( int  code  ) 

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void Draw ( Rect  rect  )  [virtual]

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

Reimplemented from Window.

void OnMouseMove ( Point  point  )  [virtual]

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

Reimplemented from Window.

void OnMouseDown ( int  n,
Point  point 
) [virtual]

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

Reimplemented from Window.

void OnMouseUp ( int  n,
Point  point 
) [virtual]

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

Reimplemented from Window.

void Load ( Surface surface  ) 

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void Load ( Surface surface,
Rect  rect 
)

(*** add brief description here ***)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void LoadImage ( Image  image,
const std::string &  rName 
)

Loads individual image.


Member Data Documentation

State m_State [private]

(*** add brief description here ***)

Surface* m_pImage[IMAGE_MAXIMAGE] [private]

(*** add brief description here ***)

std::string m_Status [private]

(*** add brief description here ***)

(*** add brief description here ***)

int m_Code [private]

(*** add brief description here ***)

void* m_pData1 [private]

(*** add brief description here ***)

void* m_pData2 [private]

(*** add brief description here ***)


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