rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvDefaultPopupMenuLFHandler Class Reference

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

#include <ilviews/gadgets/menu.h>

Inheritance diagram for IlvDefaultPopupMenuLFHandler:
IlvPopupMenuLFHandler IlvObjectLFHandler IlvPopupMenuMLFHandler IlvPopupMenuWLFHandler IlvPopupMenuVXLFHandler IlvPopupMenuW95LFHandler

Public Member Functions

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

Detailed Description

Object look-and-feel class.

Library: ilvgadgt

The predefined object look-and-feel handlers of the pop-up menu are subclasses of this class. It defines several methods of the base class that are common to all predefined looks.

Member Function Documentation

virtual IlBoolean IlvDefaultPopupMenuLFHandler::allowSelectWithMove ( ) const
virtual

Indicates whether the item selection should follow the mouse.

Returns
IlTrue if the item selection must follow the mouse.

Implements IlvPopupMenuLFHandler.

Reimplemented in IlvPopupMenuVXLFHandler, and IlvPopupMenuW95LFHandler.

virtual void IlvDefaultPopupMenuLFHandler::drawBackground ( const IlvPopupMenu menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip,
IlBoolean  drawRelief = IlTrue 
) const
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.
drawReliefA Boolean indicating whether relief will be used to draw.

Implements IlvPopupMenuLFHandler.

Reimplemented in IlvPopupMenuWLFHandler, IlvPopupMenuVXLFHandler, and IlvPopupMenuW95LFHandler.

virtual void IlvDefaultPopupMenuLFHandler::drawFrame ( const IlvPopupMenu menu,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip,
IlBoolean  drawRelief = IlTrue 
) const
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.
drawReliefA Boolean indicating whether relief will be used to draw.

Implements IlvPopupMenuLFHandler.

Reimplemented in IlvPopupMenuWLFHandler, IlvPopupMenuVXLFHandler, and IlvPopupMenuW95LFHandler.

virtual void IlvDefaultPopupMenuLFHandler::drawGadgetItem ( const IlvPopupMenu menu,
const IlvMenuItem item,
IlvPort dst,
const IlvRect rect,
const IlvTransformer t,
const IlvRegion clip 
) const
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.

Implements IlvPopupMenuLFHandler.

virtual IlvColor* IlvDefaultPopupMenuLFHandler::getBackground ( const IlvPopupMenu ) const
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.

Implements IlvPopupMenuLFHandler.

Reimplemented in IlvPopupMenuWLFHandler.

virtual IlBoolean IlvDefaultPopupMenuLFHandler::handleEvent ( IlvPopupMenu menu,
IlvEvent event 
) const
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.

Implements IlvPopupMenuLFHandler.


© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.