rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvToggleMLFHandler Class Reference

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

#include <ilviews/gadgets/motif/toggle.h>

Inheritance diagram for IlvToggleMLFHandler:
IlvDefaultToggleLFHandler IlvToggleLFHandler IlvObjectLFHandler

List of all members.

Public Member Functions

 IlvToggleMLFHandler (IlvLookFeelHandler *lfh)
 Constructor.
virtual void drawCheckBox (const IlvToggle *, IlvPort *, const IlvRect &, const IlvRegion *) const
 Is called to draw the check box of a toggle button.
virtual void drawContents (const IlvToggle *, IlvPort *, const IlvTransformer *, const IlvRegion *) const
 Is called to draw the contents of a toggle button.
virtual void drawText (const IlvToggle *, IlvPort *, const IlvRect &, const IlvRegion *) const
 Is called to draw the text and bitmap of a toggle button.
virtual IlUShort getCheckSize () const
 Returns the size of the check box of the toggle button.
virtual IlUShort getXMargin () const
 Returns the margin between the check box and the label of the toggle button.
virtual IlBoolean handleEvent (IlvToggle *, IlvEvent &region) const
 Is called to handle the events of a toggle button.

Detailed Description

Object Look-and-Feel class.

Library: ilvmlook

The class for the motif object look-and-feel handler of the toggle button.


Constructor & Destructor Documentation

IlvToggleMLFHandler::IlvToggleMLFHandler ( IlvLookFeelHandler lfh  ) 

Constructor.

Creates a new IlvToggleMLFHandler 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 IlvToggleMLFHandler::drawCheckBox ( const IlvToggle toggle,
IlvPort dst,
const IlvRect rect,
const IlvRegion clip 
) const [virtual]

Is called to draw the check box of a toggle button.

Parameters:
toggle The toggle button.
dst The destination port.
rect The rectangle where to draw the check box.
clip The clipping region.

Implements IlvToggleLFHandler.

virtual void IlvToggleMLFHandler::drawContents ( const IlvToggle toggle,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const [virtual]

Is called to draw the contents of a toggle button.

Parameters:
toggle The toggle button.
dst The destination port.
t The transformer.
clip The clipping region.

Implements IlvToggleLFHandler.

virtual void IlvToggleMLFHandler::drawText ( const IlvToggle toggle,
IlvPort dst,
const IlvRect rect,
const IlvRegion clip 
) const [virtual]

Is called to draw the text and bitmap of a toggle button.

Parameters:
toggle The toggle button.
dst The destination port.
rect The rectangle where to draw the text and bitmap.
clip The clipping region.

Implements IlvToggleLFHandler.

virtual IlUShort IlvToggleMLFHandler::getCheckSize (  )  const [virtual]

Returns the size of the check box of the toggle button.

Returns:
The size of the check box of the toggle button.

Implements IlvToggleLFHandler.

virtual IlUShort IlvToggleMLFHandler::getXMargin (  )  const [virtual]

Returns the margin between the check box and the label of the toggle button.

Returns:
The margin between the check box and the label of the toggle button.

Implements IlvToggleLFHandler.

virtual IlBoolean IlvToggleMLFHandler::handleEvent ( IlvToggle toggle,
IlvEvent event 
) const [virtual]

Is called to handle the events of a toggle button.

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

Implements IlvToggleLFHandler.

 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.