Views
Gadgets Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvDefaultTextLFHandler Class Reference

Object look-and-feel class. More...

#include <ilviews/gadgets/text.h>

Inheritance diagram for IlvDefaultTextLFHandler:
IlvTextLFHandler IlvObjectLFHandler IlvTextCSSLFHandler IlvTextMLFHandler IlvTextWLFHandler

Public Member Functions

virtual void drawBackground (const IlvText *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the background of a text gadget. More...
 
virtual void drawFrame (const IlvText *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the frame of a text gadget. More...
 
virtual void drawGadgetContents (const IlvText *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the contents of a text gadget. More...
 
virtual void drawSelection (const IlvText *, IlvPort *, const IlvRect &, const IlvRegion *) const
 Is called to draw the selected part of a text gadget. More...
 
virtual IlBoolean handleGadgetEvent (IlvText *, IlvEvent &) const
 Is called to handle the events of a text gadget. More...
 
- Public Member Functions inherited from IlvTextLFHandler
 IlvTextLFHandler (IlvLookFeelHandler *lfh)
 Initializes a new IlvTextLFHandler instance. More...
 
virtual void drawCursor (const IlvText *text, IlvPoint &point, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the cursor of a text gadget. More...
 

Detailed Description

Object look-and-feel class.

Library: ilvadvgdt

The predefined object look-and-feel handlers of the text gadget are subclasses of this class. It defines several methods of the base class that are common to all predefined looks.

Member Function Documentation

◆ drawBackground()

virtual void IlvDefaultTextLFHandler::drawBackground ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the background of a text gadget.

Parameters
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvTextLFHandler.

◆ drawFrame()

virtual void IlvDefaultTextLFHandler::drawFrame ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the frame of a text gadget.

Parameters
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvTextLFHandler.

◆ drawGadgetContents()

virtual void IlvDefaultTextLFHandler::drawGadgetContents ( const IlvText text,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the contents of a text gadget.

Parameters
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvTextLFHandler.

◆ drawSelection()

virtual void IlvDefaultTextLFHandler::drawSelection ( const IlvText text,
IlvPort dst,
const IlvRect rect,
const IlvRegion clip 
) const
virtual

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

Parameters
textThe text gadget.
dstThe destination port.
rectThe rectangle where to draw the selected text.
clipThe clipping region.

Implements IlvTextLFHandler.

◆ handleGadgetEvent()

virtual IlBoolean IlvDefaultTextLFHandler::handleGadgetEvent ( IlvText text,
IlvEvent event 
) const
virtual

Is called to handle the events of a text gadget.

Parameters
textThe text gadget.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implements IlvTextLFHandler.