rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvTextLFHandler Class Reference

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

#include <ilviews/gadgets/text.h>

Inheritance diagram for IlvTextLFHandler:
IlvObjectLFHandler IlvDefaultTextLFHandler IlvTextMLFHandler IlvTextWLFHandler

List of all members.

Public Member Functions

 IlvTextLFHandler (IlvLookFeelHandler *lfh)
 Constructor.
virtual void drawBackground (const IlvText *text, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a text gadget.
virtual void drawCursor (const IlvText *, IlvPoint &point, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the cursor of a text gadget.
virtual void drawFrame (const IlvText *text, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a text gadget.
virtual void drawGadgetContents (const IlvText *text, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a text gadget.
virtual void drawSelection (const IlvText *text, IlvPort *dst, const IlvRect &rect, const IlvRegion *clip) const =0
 Is called to draw the selected part of a text gadget.
virtual IlBoolean handleGadgetEvent (IlvText *text, IlvEvent &event) const =0
 Is called to handle the events of a text gadget.

Detailed Description

Object Look-and-Feel class.

Library: ilvadvgdt

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


Constructor & Destructor Documentation

IlvTextLFHandler::IlvTextLFHandler ( IlvLookFeelHandler lfh  ) 

Constructor.

Creates a new IlvTextLFHandler instance and initializes it with lfh.

Parameters:
lfh The look-and-feel handler to which this handler will be associated.

Member Function Documentation

virtual void IlvTextLFHandler::drawBackground ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const [pure virtual]

Is called to draw the background of a text gadget.

Parameters:
text The text gadget.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvDefaultTextLFHandler.

virtual void IlvTextLFHandler::drawCursor ( const IlvText ,
IlvPoint point,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const [pure virtual]

Is called to draw the cursor of a text gadget.

Parameters:
text The text gadget.
point The point where the cursor will be drawn.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvTextMLFHandler, and IlvTextWLFHandler.

virtual void IlvTextLFHandler::drawFrame ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const [pure virtual]

Is called to draw the frame of a text gadget.

Parameters:
text The text gadget.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvDefaultTextLFHandler.

virtual void IlvTextLFHandler::drawGadgetContents ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const [pure virtual]

Is called to draw the contents of a text gadget.

Parameters:
text The text gadget.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvDefaultTextLFHandler.

virtual void IlvTextLFHandler::drawSelection ( const IlvText text,
IlvPort dst,
const IlvRect rect,
const IlvRegion clip 
) const [pure virtual]

Is called to draw the selected part of a text gadget.

Parameters:
text The text gadget.
dst The destination port.
rect The rectangle where to draw the selected text.
clip The clipping region.

Implemented in IlvDefaultTextLFHandler.

virtual IlBoolean IlvTextLFHandler::handleGadgetEvent ( IlvText text,
IlvEvent event 
) const [pure virtual]

Is called to handle the events of a text gadget.

Parameters:
text The text gadget.
event The event to handle.
Returns:
IlTrue if the event has been consumed.

Implemented in IlvDefaultTextLFHandler.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.