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

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

#include <ilviews/gadgets/text.h>

Inheritance diagram for IlvTextLFHandler:
IlvObjectLFHandler IlvDefaultTextLFHandler IlvTextCSSLFHandler IlvTextMLFHandler IlvTextWLFHandler

Public Member Functions

 IlvTextLFHandler (IlvLookFeelHandler *lfh)
 Initializes a new IlvTextLFHandler instance. More...
 
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. 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...
 
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. More...
 
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. More...
 
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. More...
 
virtual IlBoolean handleGadgetEvent (IlvText *text, IlvEvent &event) const =0
 Is called to handle the events of a text gadget. More...
 

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::IlvTextLFHandler ( IlvLookFeelHandler lfh)

Initializes a new IlvTextLFHandler instance.

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

Member Function Documentation

◆ drawBackground()

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
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultTextLFHandler.

◆ drawCursor()

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

Is called to draw the cursor of a text gadget.

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

Implemented in IlvTextWLFHandler, IlvTextMLFHandler, and IlvTextCSSLFHandler.

◆ drawFrame()

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
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultTextLFHandler.

◆ drawGadgetContents()

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
textThe text gadget.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultTextLFHandler.

◆ drawSelection()

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
textThe text gadget.
dstThe destination port.
rectThe rectangle where to draw the selected text.
clipThe clipping region.

Implemented in IlvDefaultTextLFHandler.

◆ handleGadgetEvent()

virtual IlBoolean IlvTextLFHandler::handleGadgetEvent ( IlvText text,
IlvEvent event 
) const
pure 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.

Implemented in IlvDefaultTextLFHandler.