Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CKbd Class Reference

A beautiful keyboard widget. More...

#include <CUI.h>

Inheritance diagram for CKbd::

CWidget List of all members.

Public Methods

 CKbd (int x, int y, Callback callback, void *app)
 ~CKbd ()
virtual int update (CInputEvent *e)
 Update method - Recieves a CInputEvent, returns 1 if redraw is needed, 0 if not. More...

virtual void draw (CGfxScreen *s)
 Draw method - The widget should draw itslelf to the passed CGfxScreen. More...


Public Attributes

int m_key_height
int m_key_width
char m_last_symbol_pressed
char m_last_arrow_pressed
Callback m_callback
void * m_app

Detailed Description

A beautiful keyboard widget.

Keyboard widget to facilitate text and number entry from the inside of the phone


Constructor & Destructor Documentation

CKbd::CKbd int    x,
int    y,
Callback    callback,
void *    app
 

CKbd::~CKbd  
 


Member Function Documentation

void CKbd::draw CGfxScreen   s [virtual]
 

Draw method - The widget should draw itslelf to the passed CGfxScreen.

This will be called when the screen is being redrawn. The widget should draw itself using its m_x and m_y members as a starting co-ordinate. The drawing should be all on the passed CGfxScreen or the front lcd screen with libdj.TextScreen

Reimplemented from CWidget.

int CKbd::update CInputEvent   e [virtual]
 

Update method - Recieves a CInputEvent, returns 1 if redraw is needed, 0 if not.

All keyboard and mouse (stylus) events are sent to this function. If the widget wants to trap the events, it can, and must return 1 if the screen needs to be redrawn and 0 if it does not (ie nothing happened or the action did not change the screen)

Reimplemented from CWidget.


Member Data Documentation

void* CKbd::m_app
 

Callback CKbd::m_callback
 

int CKbd::m_key_height
 

int CKbd::m_key_width
 

char CKbd::m_last_arrow_pressed
 

char CKbd::m_last_symbol_pressed
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:54 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001