rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvPopupMenuLFHandler Class Reference

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

#include <ilviews/gadgets/menu.h>

Inheritance diagram for IlvPopupMenuLFHandler:
IlvObjectLFHandler IlvDefaultPopupMenuLFHandler IlvPopupMenuMLFHandler IlvPopupMenuWLFHandler IlvPopupMenuVXLFHandler IlvPopupMenuW95LFHandler

List of all members.

Public Member Functions

 IlvPopupMenuLFHandler (IlvLookFeelHandler *lfh)
 Constructor.
virtual IlBoolean allowSelectWithMove () const =0
 Indicates whether the item selection should follow the mouse.
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.
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.
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.
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.
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.
virtual IlvColorgetBackground (const IlvPopupMenu *) const =0
 Returns the color used to draw the background of a pop-up menu.
virtual IlBoolean handleEvent (IlvPopupMenu *menu, IlvEvent &event) const =0
 Is called to handle the events of a pop-up menu.

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 ( IlvLookFeelHandler lfh  ) 

Constructor.

Creates a new IlvPopupMenuLFHandler instance and initializes it with lfh.

Parameters:
lfh The look-and-feel handler which this handler will be associated to.

Member Function Documentation

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 IlvDefaultPopupMenuLFHandler, IlvPopupMenuVXLFHandler, and IlvPopupMenuW95LFHandler.

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:
menu The pop-up menu.
dst The destination port.
t The transformer.
clip The clipping region.
drawRelief A Boolean indicating whether relief will be used to draw.

Implemented in IlvDefaultPopupMenuLFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuW95LFHandler, and IlvPopupMenuWLFHandler.

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:
menu The pop-up menu.
dst The destination port.
t The transformer.
clip The clipping region.
drawRelief A Boolean indicating whether relief will be used to draw.

Implemented in IlvPopupMenuMLFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuW95LFHandler, and IlvPopupMenuWLFHandler.

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:
menu The pop-up menu.
dst The destination port.
t The transformer.
clip The clipping region.
drawRelief A Boolean indicating whether relief will be used to draw.

Implemented in IlvDefaultPopupMenuLFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuW95LFHandler, and IlvPopupMenuWLFHandler.

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:
menu The pop-up menu.
item The pop-up menu item to draw.
dst The destination port.
rect The rectangle where to draw the item.
t The transformer. Not Used.
clip The clipping region.

Implemented in IlvDefaultPopupMenuLFHandler.

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:
menu The pop-up menu.
dst The destination port.
rect The rectangle where to draw the item.
item The pop-up menu item to draw.
t The transformer. Not Used.
clip The clipping region.

Implemented in IlvPopupMenuMLFHandler, IlvPopupMenuVXLFHandler, IlvPopupMenuW95LFHandler, and IlvPopupMenuWLFHandler.

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 IlvDefaultPopupMenuLFHandler, and IlvPopupMenuWLFHandler.

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

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

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

Implemented in IlvDefaultPopupMenuLFHandler.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.