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

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

#include <ilviews/gadgets/slist.h>

Inheritance diagram for IlvDefaultStringListLFHandler:
IlvStringListLFHandler IlvObjectLFHandler IlvStringListCSSLFHandler IlvStringListMLFHandler IlvStringListWLFHandler

Public Member Functions

virtual void drawBackground (const IlvStringList *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the background of a string list. More...
 
virtual void drawFrame (const IlvStringList *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the frame of a string list. More...
 
virtual void drawGadgetContents (const IlvStringList *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the contents of a string list. More...
 
virtual void drawGadgetItem (const IlvStringList *, const IlvGadgetItem *, IlvPort *port, const IlvRect &rect, const IlvTransformer *t, const IlvRegion *clip) const
 Is called to draw a string list item. More...
 
virtual IlvDim getItemWidth (const IlvStringList *slist, IlUShort pos) const
 Is called to get the width of the specified item of a string list. More...
 
virtual IlBoolean handleGadgetEvent (IlvStringList *, IlvEvent &event) const
 Is called to handle the events of a string list. More...
 
- Public Member Functions inherited from IlvStringListLFHandler
 IlvStringListLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual IlBoolean focusFollowSelection () const =0
 Indicates whether the focus should follow the selection. More...
 
virtual IlvDim getItemHeight (const IlvStringList *slist, IlUShort pos) const =0
 Is called to get the height of the specified item of a string list. More...
 

Detailed Description

Object look-and-feel class.

Library: ilvadvgdt

The predefined object look-and-feel handlers of the string list 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 IlvDefaultStringListLFHandler::drawBackground ( const IlvStringList slist,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the background of a string list.

Parameters
slistThe string list.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvStringListLFHandler.

◆ drawFrame()

virtual void IlvDefaultStringListLFHandler::drawFrame ( const IlvStringList slist,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the frame of a string list.

Parameters
slistThe string list.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvStringListLFHandler.

◆ drawGadgetContents()

virtual void IlvDefaultStringListLFHandler::drawGadgetContents ( const IlvStringList slist,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the contents of a string list.

Parameters
slistThe string list.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvStringListLFHandler.

◆ drawGadgetItem()

virtual void IlvDefaultStringListLFHandler::drawGadgetItem ( const IlvStringList slist,
const IlvGadgetItem item,
IlvPort dst,
const IlvRect bbox,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw a string list item.

Parameters
slistThe string list.
itemThe string list item to draw.
dstThe destination port.
bboxThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Implements IlvStringListLFHandler.

Reimplemented in IlvStringListMLFHandler, and IlvStringListCSSLFHandler.

◆ getItemWidth()

virtual IlvDim IlvDefaultStringListLFHandler::getItemWidth ( const IlvStringList slist,
IlUShort  pos 
) const
virtual

Is called to get the width of the specified item of a string list.

Parameters
slistThe string list.
posThe index of the string list item.
Returns
The width of the pos item in the string list slist.

Implements IlvStringListLFHandler.

Reimplemented in IlvStringListCSSLFHandler.

◆ handleGadgetEvent()

virtual IlBoolean IlvDefaultStringListLFHandler::handleGadgetEvent ( IlvStringList slist,
IlvEvent event 
) const
virtual

Is called to handle the events of a string list.

Parameters
slistThe string list.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implements IlvStringListLFHandler.