EditBox Class Reference

#include <EditBox.h>

Inheritance diagram for EditBox:

StaticText Window

List of all members.


Public Member Functions

 EditBox ()
 (*** add brief description here ***)
virtual ~EditBox ()
 (*** add brief description here ***)
virtual void Draw (Rect rect)
 (*** add brief description here ***)
virtual bool CanFocus ()
 (*** add brief description here ***)
virtual void OnFocus (bool hasFocus)
 (*** add brief description here ***)
virtual void OnKeyDown (SDL_KeyboardEvent sdlEvent)
 (*** 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 ***)
virtual void OnTimer (float deltaTime)
 (*** add brief description here ***)

Private Member Functions

size_t ConvertPointToCursor (Point point)
 Converts point to cursor.

Private Attributes

bool m_HasFocus
 (*** add brief description here ***)
size_t m_Cursor
 (*** add brief description here ***)
size_t m_StartCursor
 (*** add brief description here ***)
bool m_Dragging
 (*** add brief description here ***)
int m_Offset
 (*** add brief description here ***)
Color m_HighlightColor
 (*** add brief description here ***)
float m_CursorTimer
 (*** add brief description here ***)
bool m_CursorActive
 (*** add brief description here ***)

Static Private Attributes

static const int CURSOR_BLINK_RATE_MS = 500
 (*** add brief description here ***)

Detailed Description

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

Constructor & Destructor Documentation

EditBox (  ) 

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

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

~EditBox (  )  [virtual]

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

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


Member Function Documentation

void Draw ( Rect  rect  )  [virtual]

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

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

Reimplemented from StaticText.

virtual bool CanFocus (  )  [inline, virtual]

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

Reimplemented from Window.

void OnFocus ( bool  hasFocus  )  [virtual]

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

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

Reimplemented from Window.

void OnKeyDown ( SDL_KeyboardEvent  sdlEvent  )  [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  buttonNumber,
Point  point 
) [virtual]

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

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

Reimplemented from Window.

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

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

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

Reimplemented from Window.

void OnTimer ( float  deltaTime  )  [virtual]

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

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

Reimplemented from Window.

size_t ConvertPointToCursor ( Point  point  )  [private]

Converts point to cursor.

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


Member Data Documentation

const int CURSOR_BLINK_RATE_MS = 500 [static, private]

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

bool m_HasFocus [private]

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

size_t m_Cursor [private]

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

size_t m_StartCursor [private]

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

bool m_Dragging [private]

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

int m_Offset [private]

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

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

float m_CursorTimer [private]

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

bool m_CursorActive [private]

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


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