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

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

#include <ilviews/gadgets/menubar.h>

Inheritance diagram for IlvMenuBarLFHandler:
IlvObjectLFHandler IlvDefaultMenuBarLFHandler IlvMenuBarCSSLFHandler IlvMenuBarMLFHandler IlvMenuBarWLFHandler

Public Member Functions

 IlvMenuBarLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void drawBackground (const IlvMenuBar *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a menu bar. More...
 
virtual void drawContents (const IlvMenuBar *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a menu bar. More...
 
virtual void drawFrame (const IlvMenuBar *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a menu bar. More...
 
virtual void drawGadgetItem (const IlvMenuBar *menu, const IlvMenuItem *item, IlvPort *dst, const IlvRect &rect, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw a menu item of the menu. More...
 
virtual IlBoolean handleEvent (IlvMenuBar *menu, IlvEvent &event) const =0
 Is called to handle the events of a menu bar. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvgadgt

The base class for the object look-and-feel handlers of the menu bar.

Constructor & Destructor Documentation

◆ IlvMenuBarLFHandler()

IlvMenuBarLFHandler::IlvMenuBarLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Initializes a new IlvMenuBarLFHandler instance.

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

Member Function Documentation

◆ drawBackground()

virtual void IlvMenuBarLFHandler::drawBackground ( const IlvMenuBar menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the background of a menu bar.

Parameters
menuThe menu bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultMenuBarLFHandler.

◆ drawContents()

virtual void IlvMenuBarLFHandler::drawContents ( const IlvMenuBar menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the contents of a menu bar.

Parameters
menuThe menu bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultMenuBarLFHandler.

◆ drawFrame()

virtual void IlvMenuBarLFHandler::drawFrame ( const IlvMenuBar menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the frame of a menu bar.

Parameters
menuThe menu bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultMenuBarLFHandler.

◆ drawGadgetItem()

virtual void IlvMenuBarLFHandler::drawGadgetItem ( const IlvMenuBar menu,
const IlvMenuItem item,
IlvPort dst,
const IlvRect rect,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw a menu item of the menu.

Parameters
menuThe menu bar.
itemThe menu bar item to draw.
dstThe destination port.
rectThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Implemented in IlvDefaultMenuBarLFHandler.

◆ handleEvent()

virtual IlBoolean IlvMenuBarLFHandler::handleEvent ( IlvMenuBar menu,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a menu bar.

Parameters
menuThe menu bar.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultMenuBarLFHandler.