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
IlvButtonLFHandler Class Referenceabstract

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

#include <ilviews/gadgets/button.h>

Inheritance diagram for IlvButtonLFHandler:
IlvObjectLFHandler IlvDefaultButtonLFHandler IlvButtonMLFHandler IlvButtonWLFHandler IlvButtonVXLFHandler IlvButtonW95LFHandler

Public Member Functions

 IlvButtonLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void computeDefaultButtonRegion (const IlvButton *button, IlvRegion &region, const IlvTransformer *t) const =0
 Is called to compute the bounding box of a default button. More...
 
virtual void drawBackground (const IlvButton *button, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a button. More...
 
virtual void drawButtonAsDefault (const IlvButton *button, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the default button. More...
 
virtual void drawContents (const IlvButton *button, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a button. More...
 
virtual void drawFrame (const IlvButton *button, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a button. More...
 
virtual void drawGadgetItem (const IlvButton *button, const IlvGadgetItem *item, IlvPort *dst, const IlvRect &rect, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the gadget item encapsulated by the button. More...
 
virtual IlBoolean handleEvent (IlvButton *button, IlvEvent &event) const =0
 Is called to handle the events of a button. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvgadgt

The base class for the object look-and-feel handlers of the button gadget.

Constructor & Destructor Documentation

IlvButtonLFHandler::IlvButtonLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Creates a new IlvButtonLFHandler instance and initializes it with lfh.

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

Member Function Documentation

virtual void IlvButtonLFHandler::computeDefaultButtonRegion ( const IlvButton button,
IlvRegion region,
const IlvTransformer t 
) const
pure virtual

Is called to compute the bounding box of a default button.

Parameters
buttonThe button.
regionThe region affected by the default button drawing.
tThe transformer.

Implemented in IlvButtonWLFHandler, and IlvButtonMLFHandler.

virtual void IlvButtonLFHandler::drawBackground ( const IlvButton button,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the background of a button.

Parameters
buttonThe button.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvButtonWLFHandler, IlvButtonMLFHandler, IlvButtonVXLFHandler, and IlvButtonW95LFHandler.

virtual void IlvButtonLFHandler::drawButtonAsDefault ( const IlvButton button,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the default button.

Parameters
buttonThe button.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvButtonWLFHandler, IlvButtonMLFHandler, IlvButtonVXLFHandler, and IlvButtonW95LFHandler.

virtual void IlvButtonLFHandler::drawContents ( const IlvButton button,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the contents of a button.

Parameters
buttonThe button.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvButtonWLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonMLFHandler.

virtual void IlvButtonLFHandler::drawFrame ( const IlvButton button,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the frame of a button.

Parameters
buttonThe button.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvButtonWLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonMLFHandler.

virtual void IlvButtonLFHandler::drawGadgetItem ( const IlvButton button,
const IlvGadgetItem item,
IlvPort dst,
const IlvRect rect,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the gadget item encapsulated by the button.

Parameters
buttonThe button.
itemThe gadget item to draw.
dstThe destination port.
rectThe rectangle where to draw the item.
tThe transformer. Not Used.
clipThe clipping region.

Implemented in IlvDefaultButtonLFHandler.

virtual IlBoolean IlvButtonLFHandler::handleEvent ( IlvButton button,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a button.

Parameters
buttonThe button.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultButtonLFHandler.


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