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

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

#include <ilviews/gadgets/menu.h>

Inheritance diagram for IlvPopupMenuLFHandler:
IlvObjectLFHandler IlvDefaultPopupMenuLFHandler IlvPopupMenuCSSLFHandler IlvPopupMenuMLFHandler IlvPopupMenuWLFHandler IlvPopupMenuVXLFHandler IlvPopupMenuW95LFHandler

Public Member Functions

 IlvPopupMenuLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual IlBoolean allowSelectWithMove () const =0
 Indicates whether the item selection should follow the mouse. More...
 
virtual void drawBackground (const IlvPopupMenu *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip, IlBoolean drawRelief=IlTrue) const =0
 Is called to draw the frame of a pop-up menu. More...
 
virtual void drawContents (const IlvPopupMenu *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip, IlBoolean drawRelief=IlTrue) const =0
 Is called to draw the contents of a pop-up menu. More...
 
virtual void drawFrame (const IlvPopupMenu *menu, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip, IlBoolean drawRelief=IlTrue) const =0
 Is called to draw the frame of a pop-up menu. More...
 
virtual void drawGadgetItem (const IlvPopupMenu *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 void drawSelection (const IlvPopupMenu *menu, IlvPort *dst, const IlvRect &rect, const IlvMenuItem *item, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the selection of a menu item. More...
 
virtual IlvColorgetBackground (const IlvPopupMenu *) const =0
 Returns the color used to draw the background of a pop-up menu. More...
 
virtual IlBoolean handleEvent (IlvPopupMenu *menu, IlvEvent &event) const =0
 Is called to handle the events of a pop-up menu. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvgadgt

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

Constructor & Destructor Documentation

◆ IlvPopupMenuLFHandler()

IlvPopupMenuLFHandler::IlvPopupMenuLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Initializes a new IlvPopupMenuLFHandler instance.

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

Member Function Documentation

◆ allowSelectWithMove()

virtual IlBoolean IlvPopupMenuLFHandler::allowSelectWithMove ( ) const
pure virtual

Indicates whether the item selection should follow the mouse.

Returns
IlTrue if the item selection must follow the mouse.

Implemented in IlvPopupMenuW95LFHandler, IlvPopupMenuVXLFHandler, IlvDefaultPopupMenuLFHandler, and IlvPopupMenuCSSLFHandler.

◆ drawBackground()

virtual void IlvPopupMenuLFHandler::drawBackground ( const IlvPopupMenu menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip,
IlBoolean  drawRelief = IlTrue 
) const
pure virtual

Is called to draw the frame of a pop-up menu.

Parameters
menuThe pop-up menu.
dstThe destination port.
tThe transformer.
clipThe clipping region.
drawReliefSpecifies whether relief will be used to draw.

Implemented in IlvPopupMenuWLFHandler, IlvPopupMenuW95LFHandler, IlvPopupMenuVXLFHandler, and IlvDefaultPopupMenuLFHandler.

◆ drawContents()

virtual void IlvPopupMenuLFHandler::drawContents ( const IlvPopupMenu menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip,
IlBoolean  drawRelief = IlTrue 
) const
pure virtual

Is called to draw the contents of a pop-up menu.

Parameters
menuThe pop-up menu.
dstThe destination port.
tThe transformer.
clipThe clipping region.
drawReliefSpecifies whether relief will be used to draw.

Implemented in IlvPopupMenuWLFHandler, IlvPopupMenuW95LFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuMLFHandler, and IlvPopupMenuCSSLFHandler.

◆ drawFrame()

virtual void IlvPopupMenuLFHandler::drawFrame ( const IlvPopupMenu menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip,
IlBoolean  drawRelief = IlTrue 
) const
pure virtual

Is called to draw the frame of a pop-up menu.

Parameters
menuThe pop-up menu.
dstThe destination port.
tThe transformer.
clipThe clipping region.
drawReliefSpecifies whether relief will be used to draw.

Implemented in IlvPopupMenuWLFHandler, IlvPopupMenuW95LFHandler, IlvPopupMenuVXLFHandler, and IlvDefaultPopupMenuLFHandler.

◆ drawGadgetItem()

virtual void IlvPopupMenuLFHandler::drawGadgetItem ( const IlvPopupMenu 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 pop-up menu.
itemThe pop-up menu item to draw.
dstThe destination port.
rectThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Implemented in IlvDefaultPopupMenuLFHandler.

◆ drawSelection()

virtual void IlvPopupMenuLFHandler::drawSelection ( const IlvPopupMenu menu,
IlvPort dst,
const IlvRect rect,
const IlvMenuItem item,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the selection of a menu item.

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

Implemented in IlvPopupMenuWLFHandler, IlvPopupMenuW95LFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuMLFHandler, and IlvPopupMenuCSSLFHandler.

◆ getBackground()

virtual IlvColor* IlvPopupMenuLFHandler::getBackground ( const IlvPopupMenu ) const
pure virtual

Returns the color used to draw the background of a pop-up menu.

Returns
The color used to draw the background of a pop-up menu.

Implemented in IlvPopupMenuWLFHandler, and IlvDefaultPopupMenuLFHandler.

◆ handleEvent()

virtual IlBoolean IlvPopupMenuLFHandler::handleEvent ( IlvPopupMenu menu,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a pop-up menu.

Parameters
menuThe pop-up menu.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultPopupMenuLFHandler.