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

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

#include <ilviews/gadgets/css/tree.h>

Inheritance diagram for IlvTreeGadgetCSSLFHandler:
IlvDefaultTreeGadgetLFHandler IlvTreeGadgetLFHandler IlvObjectLFHandler

Public Member Functions

 IlvTreeGadgetCSSLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void drawButton (const IlvTreeGadget *tree, IlvPort *dst, const IlvTreeGadgetItem *item, const IlvRect &bbox, const IlvRegion *clip) const override
 Is called to draw the expand/collapse button of a tree gadget item. More...
 
virtual void drawGadgetItem (const IlvTreeGadget *, const IlvTreeGadgetItem *, IlvPort *port, const IlvRect &rect, const IlvTransformer *t, const IlvRegion *clip) const override
 Is called to draw a tree gadget item. More...
 
IlvPalettegetLinkPalette (const IlvTreeGadget *obj) const
 Returns the palette used to draw the links of the tree gadget. More...
 
virtual void invalidateItem (IlvTreeGadget *tree, IlvGadgetItem *item, const IlvGadgetItemGeometry &previousSize, const IlvGadgetItemGeometry &currentSize) const override
 is called per GadgetItem in the tree to calculate and invalidate area for the next redraw. More...
 
- Public Member Functions inherited from IlvDefaultTreeGadgetLFHandler
virtual void drawBackground (const IlvTreeGadget *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the background of a tree gadget. More...
 
virtual void drawFrame (const IlvTreeGadget *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the frame of a tree gadget. More...
 
virtual void drawGadgetContents (const IlvTreeGadget *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the contents of a tree gadget. More...
 
virtual const IlvPalettegetWindowBackground (const IlvTreeGadget *) const
 Returns the palette used to draw the background of the tree gadget. More...
 
virtual IlBoolean handleGadgetEvent (IlvTreeGadget *, IlvEvent &event) const
 Is called to handle the events of a tree gadget. More...
 
- Public Member Functions inherited from IlvTreeGadgetLFHandler
 IlvTreeGadgetLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvacsslook

The class for the object motif look-and-feel handler of the tree gadget.

Constructor & Destructor Documentation

◆ IlvTreeGadgetCSSLFHandler()

IlvTreeGadgetCSSLFHandler::IlvTreeGadgetCSSLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Creates a new IlvTreeGadgetCSSLFHandler instance and initializes it with lfh.

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

Member Function Documentation

◆ drawButton()

virtual void IlvTreeGadgetCSSLFHandler::drawButton ( const IlvTreeGadget tree,
IlvPort dst,
const IlvTreeGadgetItem item,
const IlvRect bbox,
const IlvRegion clip 
) const
overridevirtual

Is called to draw the expand/collapse button of a tree gadget item.

Parameters
treeThe tree gadget.
dstThe destination port.
itemThe tree gadget item being drawn.
bboxThe rectangle where to draw the button.
clipThe clipping region.

Reimplemented from IlvDefaultTreeGadgetLFHandler.

◆ drawGadgetItem()

virtual void IlvTreeGadgetCSSLFHandler::drawGadgetItem ( const IlvTreeGadget tree,
const IlvTreeGadgetItem item,
IlvPort dst,
const IlvRect bbox,
const IlvTransformer t,
const IlvRegion clip 
) const
overridevirtual

Is called to draw a tree gadget item.

Parameters
treeThe tree gadget.
itemThe tree gadget item to draw.
dstThe destination port.
bboxThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Reimplemented from IlvDefaultTreeGadgetLFHandler.

◆ getLinkPalette()

IlvPalette* IlvTreeGadgetCSSLFHandler::getLinkPalette ( const IlvTreeGadget tree) const
virtual

Returns the palette used to draw the links of the tree gadget.

Parameters
treeThe tree gadget.
Returns
The palette used to draw the links of the tree gadget.

Implements IlvTreeGadgetLFHandler.

◆ invalidateItem()

virtual void IlvTreeGadgetCSSLFHandler::invalidateItem ( IlvTreeGadget tree,
IlvGadgetItem item,
const IlvGadgetItemGeometry &  previousSize,
const IlvGadgetItemGeometry &  currentSize 
) const
overridevirtual

is called per GadgetItem in the tree to calculate and invalidate area for the next redraw.

Parameters
itemThe item in the tree gadget.
previousSizethe previous size of the GadgetItem.
currentSizethe current size of the GadgetItem.

Reimplemented from IlvDefaultTreeGadgetLFHandler.