TopView Class Reference

Inheritance diagram for TopView:

os::View os::Handler List of all members.

Public Member Functions

 TopView (const Rect &cFrame, Window *pcWindow)
virtual void FrameMoved (const Point &cDelta)
 Virtual hook called by the system when the view is moved within it's parent.
virtual void FrameSized (const Point &cDelta)
 Virtual hook called by the system when the view is resized.
virtual void KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers)
 Hook called by the system when a key is pressed while the view has focus.

Public Attributes

bool m_bKeyDownRejected

Constructor & Destructor Documentation

TopView::TopView ( const Rect cFrame,
Window pcWindow 
)


Member Function Documentation

void TopView::FrameMoved ( const Point cDelta  )  [virtual]

Description:
Overload this member if you need to know when the view is moved within the coordinate system of the parent.
Note:
This member is called after the view is moved. If you need the old position you can subtract the cDelta value from the current position.
Parameters:
cDelta The distance the view was moved.
See also:
FrameSized(), SetFrame(), MoveBy(), MoveTo()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::View.

void TopView::FrameSized ( const Point cDelta  )  [virtual]

Description:
Overload this member if you need to know when the view is resized.
Note:
This member is called after the view is resized. If you need the old size you can subtract the cDelta calue from the current size.
Parameters:
cDelta The distance the bottom/right corner was moved relative to the upper/left corner.
See also:
FrameMoved(), SetFrame, ResizeBy(), ResizeTo()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::View.

void TopView::KeyDown ( const char *  pzString,
const char *  pzRawString,
uint32  nQualifiers 
) [virtual]

Description:
Overload this member if your view need to handle keyboard input. This member is called to allow the view to handle M_KEY_DOWN messages. The most common members are exctracted from the message and passed as parameters but you might need to obtain the raw message with os::Looper::GetCurrentMessage() and find some members yourself if you the data you needed are not passed in.
For example if you need the raw key-code for the pressed key you will have to lookup the "_raw_key" member from the message.
Parameters:
pzString String containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed.
pzRawString Same as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'.
nQualifiers Bitmask describing which qualifiers that was active when the key was pressed.
See also:
KeyUp(), os::Looper::GetCurrentMessage()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::View.


Member Data Documentation

bool TopView::m_bKeyDownRejected


Generated on Sat May 9 22:51:03 2009 for Syllable higlevel API by  doxygen 1.5.1