rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvTextFieldLFHandler Class Referenceabstract

Object Look-and-Feel class. More...

#include <ilviews/gadgets/textfd.h>

Inheritance diagram for IlvTextFieldLFHandler:
IlvObjectLFHandler IlvDefaultTextFieldLFHandler IlvTextFieldMLFHandler IlvTextFieldWLFHandler IlvTextFieldVXLFHandler IlvTextFieldW95LFHandler

Public Member Functions

 IlvTextFieldLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void drawBackground (const IlvTextField *tfd, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a text field. More...
 
virtual void drawContents (const IlvTextField *tfd, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a text field. More...
 
virtual void drawCursor (const IlvTextField *tfd, IlvPoint &point, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the cursor of a text field. More...
 
virtual void drawFrame (const IlvTextField *tfd, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a text field. More...
 
virtual void getTextArea (const IlvTextField *tfd, IlvRect &rect, const IlvTransformer *t) const =0
 Computes the area where the text of a text field will be drawn. More...
 
virtual IlBoolean handleEvent (IlvTextField *tfd, IlvEvent &event) const =0
 Is called to handle the events of a text field. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvgadgt

The base class for the object look-and-feel handlers of the text field.

Constructor & Destructor Documentation

IlvTextFieldLFHandler::IlvTextFieldLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Creates a new IlvTextFieldLFHandler instance and initializes it with lfh.

Parameters
lfhThe look-and-feel handler which this handler will be associated to.

Member Function Documentation

virtual void IlvTextFieldLFHandler::drawBackground ( const IlvTextField tfd,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the background of a text field.

Parameters
tfdThe text field.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvTextFieldWLFHandler, IlvTextFieldVXLFHandler, IlvTextFieldW95LFHandler, and IlvTextFieldMLFHandler.

virtual void IlvTextFieldLFHandler::drawContents ( const IlvTextField tfd,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the contents of a text field.

Parameters
tfdThe text field.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultTextFieldLFHandler.

virtual void IlvTextFieldLFHandler::drawCursor ( const IlvTextField tfd,
IlvPoint point,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the cursor of a text field.

Parameters
tfdThe text field.
pointThe point where the cursor will be drawn.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvTextFieldWLFHandler, and IlvTextFieldMLFHandler.

virtual void IlvTextFieldLFHandler::drawFrame ( const IlvTextField tfd,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the frame of a text field.

Parameters
tfdThe text field.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvTextFieldWLFHandler, IlvTextFieldVXLFHandler, IlvTextFieldW95LFHandler, and IlvTextFieldMLFHandler.

virtual void IlvTextFieldLFHandler::getTextArea ( const IlvTextField tfd,
IlvRect rect,
const IlvTransformer t 
) const
pure virtual

Computes the area where the text of a text field will be drawn.

Parameters
tfdThe text field.
rectThe returned rectangle.
tThe transformer.

Implemented in IlvDefaultTextFieldLFHandler.

virtual IlBoolean IlvTextFieldLFHandler::handleEvent ( IlvTextField tfd,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a text field.

Parameters
tfdThe text field.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultTextFieldLFHandler.


© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.