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

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

#include <ilviews/gadgets/toolbar.h>

Inheritance diagram for IlvDefaultToolBarLFHandler:
IlvToolBarLFHandler IlvObjectLFHandler IlvToolBarCSSLFHandler IlvToolBarMLFHandler IlvToolBarWLFHandler IlvToolBarVXLFHandler IlvToolBarW95LFHandler

Public Member Functions

virtual void drawBackground (const IlvToolBar *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the background of a toolbar. More...
 
virtual void drawContents (const IlvToolBar *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the contents of a toolbar. More...
 
virtual void drawFrame (const IlvToolBar *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the frame of a toolbar. More...
 
virtual void drawGadgetItem (const IlvToolBar *, const IlvMenuItem *, IlvPort *port, const IlvRect &rect, const IlvTransformer *t, const IlvRegion *clip) const
 Is called to draw a menu item. More...
 
virtual IlBoolean handleEvent (IlvToolBar *bar, IlvEvent &event) const
 Is called to handle the events of a toolbar. More...
 
- Public Member Functions inherited from IlvToolBarLFHandler
 IlvToolBarLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void drawHighlight (const IlvToolBar *toolbar, IlvPort *dst, const IlvRect &rect, const IlvMenuItem *item, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw a highlighted menu item. More...
 
virtual void drawSelection (const IlvToolBar *toolbar, IlvPort *dst, const IlvRect &rect, const IlvMenuItem *item, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw a selected menu item. More...
 

Detailed Description

Object look-and-feel class.

Library: ilvgadgt

The predefined object look-and-feel handlers of the toolbar 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 IlvDefaultToolBarLFHandler::drawBackground ( const IlvToolBar toolbar,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the background of a toolbar.

Parameters
toolbarThe toolbar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvToolBarLFHandler.

Reimplemented in IlvToolBarW95LFHandler, and IlvToolBarVXLFHandler.

◆ drawContents()

virtual void IlvDefaultToolBarLFHandler::drawContents ( const IlvToolBar toolbar,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the contents of a toolbar.

Parameters
toolbarThe toolbar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvToolBarLFHandler.

◆ drawFrame()

virtual void IlvDefaultToolBarLFHandler::drawFrame ( const IlvToolBar toolbar,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw the frame of a toolbar.

Parameters
toolbarThe toolbar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implements IlvToolBarLFHandler.

Reimplemented in IlvToolBarW95LFHandler, and IlvToolBarVXLFHandler.

◆ drawGadgetItem()

virtual void IlvDefaultToolBarLFHandler::drawGadgetItem ( const IlvToolBar toolbar,
const IlvMenuItem item,
IlvPort dst,
const IlvRect bbox,
const IlvTransformer t,
const IlvRegion clip 
) const
virtual

Is called to draw a menu item.

Parameters
toolbarThe toolbar.
itemThe menu item to draw.
dstThe destination port.
bboxThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Implements IlvToolBarLFHandler.

◆ handleEvent()

virtual IlBoolean IlvDefaultToolBarLFHandler::handleEvent ( IlvToolBar toolbar,
IlvEvent event 
) const
virtual

Is called to handle the events of a toolbar.

Parameters
toolbarThe toolbar.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implements IlvToolBarLFHandler.