rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvButtonLFHandler Class Reference

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

#include <ilviews/gadgets/button.h>

Inheritance diagram for IlvButtonLFHandler:
IlvObjectLFHandler IlvDefaultButtonLFHandler IlvButtonMLFHandler IlvButtonWLFHandler IlvButtonVXLFHandler IlvButtonW95LFHandler

List of all members.

Public Member Functions

 IlvButtonLFHandler (IlvLookFeelHandler *lfh)
 Constructor.
virtual void computeDefaultButtonRegion (const IlvButton *button, IlvRegion &region, const IlvTransformer *t) const =0
 Is called to compute the bounding box of a default button.
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.
virtual void drawButtonAsDefault (const IlvButton *button, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the default button.
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.
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.
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.
virtual IlBoolean handleEvent (IlvButton *button, IlvEvent &event) const =0
 Is called to handle the events of a button.

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:
lfh The 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:
button The button.
region The region affected by the default button drawing.
t The transformer.

Implemented in IlvButtonMLFHandler, and IlvButtonWLFHandler.

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:
button The button.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvButtonMLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonWLFHandler.

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:
button The button.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvButtonMLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonWLFHandler.

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:
button The button.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvButtonMLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonWLFHandler.

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:
button The button.
dst The destination port.
t The transformer.
clip The clipping region.

Implemented in IlvButtonMLFHandler, IlvButtonVXLFHandler, IlvButtonW95LFHandler, and IlvButtonWLFHandler.

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:
button The button.
item The gadget 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 IlvDefaultButtonLFHandler.

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

Is called to handle the events of a button.

Parameters:
button The button.
event The event to handle.
Returns:
IlTrue if the event has been consumed.

Implemented in IlvDefaultButtonLFHandler.

 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.