Views
Gadgets Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvSpinBoxLFHandler Class Referenceabstract

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

#include <ilviews/gadgets/spinbox.h>

Inheritance diagram for IlvSpinBoxLFHandler:
IlvObjectLFHandler IlvDefaultSpinBoxLFHandler IlvSpinBoxCSSLFHandler IlvSpinBoxMLFHandler IlvSpinBoxWLFHandler IlvSpinBoxVXLFHandler IlvSpinBoxW95LFHandler

Public Member Functions

 IlvSpinBoxLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void computeArrowRects (const IlvSpinBox *spin, IlvRect &decrArrow, IlvRect &incrArrow, IlvRect &internal, const IlvTransformer *t) const =0
 Is called to compute the bounding boxes of spin box items. More...
 
virtual void drawArrow (const IlvSpinBox *spin, const IlvArrowButton *arrow, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the arrow of a spin box. More...
 
virtual void drawBackground (const IlvSpinBox *spin, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a spin box. More...
 
virtual void drawContents (const IlvSpinBox *spin, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a spin box. More...
 
virtual void drawFrame (const IlvSpinBox *spin, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a spin box. More...
 
virtual IlBoolean handleEvent (IlvSpinBox *spin, IlvEvent &event) const =0
 Is called to handle the events of a spin box. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvadvgdt

The base class for the object look-and-feel handlers of the spin box.

Constructor & Destructor Documentation

◆ IlvSpinBoxLFHandler()

IlvSpinBoxLFHandler::IlvSpinBoxLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Initializes a new IlvSpinBoxLFHandler instance.

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

Member Function Documentation

◆ computeArrowRects()

virtual void IlvSpinBoxLFHandler::computeArrowRects ( const IlvSpinBox spin,
IlvRect decrArrow,
IlvRect incrArrow,
IlvRect internal,
const IlvTransformer t 
) const
pure virtual

Is called to compute the bounding boxes of spin box items.

Parameters
spinThe spin box.
decrArrowThe returned bounding box of the decrement arrow.
incrArrowThe returned bounding box of the increment arrow.
internalThe internal bounding box where to draw the objects of the spin box.
tThe transformer.

Implemented in IlvSpinBoxWLFHandler, IlvSpinBoxW95LFHandler, IlvSpinBoxVXLFHandler, IlvSpinBoxMLFHandler, and IlvSpinBoxCSSLFHandler.

◆ drawArrow()

virtual void IlvSpinBoxLFHandler::drawArrow ( const IlvSpinBox spin,
const IlvArrowButton arrow,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the arrow of a spin box.

Parameters
spinThe spin box.
arrowThe arrow button.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultSpinBoxLFHandler.

◆ drawBackground()

virtual void IlvSpinBoxLFHandler::drawBackground ( const IlvSpinBox spin,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the background of a spin box.

Parameters
spinThe spin box.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultSpinBoxLFHandler, and IlvSpinBoxCSSLFHandler.

◆ drawContents()

virtual void IlvSpinBoxLFHandler::drawContents ( const IlvSpinBox spin,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the contents of a spin box.

Parameters
spinThe spin box.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvDefaultSpinBoxLFHandler.

◆ drawFrame()

virtual void IlvSpinBoxLFHandler::drawFrame ( const IlvSpinBox spin,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the frame of a spin box.

Parameters
spinThe spin box.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvSpinBoxWLFHandler, IlvSpinBoxW95LFHandler, IlvSpinBoxVXLFHandler, IlvSpinBoxMLFHandler, and IlvSpinBoxCSSLFHandler.

◆ handleEvent()

virtual IlBoolean IlvSpinBoxLFHandler::handleEvent ( IlvSpinBox spin,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a spin box.

Parameters
spinThe spin box.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultSpinBoxLFHandler.