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

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

#include <ilviews/gadgets/scrollb.h>

Inheritance diagram for IlvScrollBarLFHandler:
IlvObjectLFHandler IlvDefaultScrollBarLFHandler IlvScrollBarCSSLFHandler IlvScrollBarMLFHandler IlvScrollBarWLFHandler IlvScrollBarVXLFHandler IlvScrollBarW95LFHandler

Public Member Functions

 IlvScrollBarLFHandler (IlvLookFeelHandler *lfh)
 Constructor. More...
 
virtual void computeBBox (const IlvScrollBar *sb, IlvRect &arrow1, IlvRect &internal, IlvRect &arrow2, IlvRect &thumb, const IlvTransformer *t) const =0
 Is called to compute the bounding boxes of the scroll bar parts. More...
 
virtual void drawArrow (const IlvScrollBar *sb, IlvPosition position, IlvPort *dst, const IlvRect &arrow, const IlvRegion *clip) const =0
 Is called to draw the arrows of a scroll bar. More...
 
virtual void drawBackground (const IlvScrollBar *sb, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the background of a scroll bar. More...
 
virtual void drawContents (const IlvScrollBar *sb, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the contents of a scroll bar. More...
 
virtual void drawFrame (const IlvScrollBar *sb, IlvPort *dst, const IlvTransformer *t, const IlvRegion *clip) const =0
 Is called to draw the frame of a scroll bar. More...
 
virtual void drawInternal (const IlvScrollBar *sb, IlvPort *dst, const IlvRect &internal, const IlvRect &thumb, const IlvRegion *clip) const =0
 Is called to draw the internal part of a scroll bar. More...
 
virtual IlBoolean handleEvent (IlvScrollBar *sb, IlvEvent &event) const =0
 Is called to handle the events of a scroll bar. More...
 
virtual IlBoolean isValidPosition (const IlvScrollBar *sb, const IlvPoint &point, const IlvTransformer *t) const =0
 Indicates whether a given position is valid for the scroll bar. More...
 

Detailed Description

Object Look-and-Feel class.

Library: ilvgadgt

The base class for the object look-and-feel handlers of the scroll bar.

Constructor & Destructor Documentation

◆ IlvScrollBarLFHandler()

IlvScrollBarLFHandler::IlvScrollBarLFHandler ( IlvLookFeelHandler lfh)

Constructor.

Creates a new IlvScrollBarLFHandler instance and initializes it with lfh.

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

Member Function Documentation

◆ computeBBox()

virtual void IlvScrollBarLFHandler::computeBBox ( const IlvScrollBar sb,
IlvRect arrow1,
IlvRect internal,
IlvRect arrow2,
IlvRect thumb,
const IlvTransformer t 
) const
pure virtual

Is called to compute the bounding boxes of the scroll bar parts.

Parameters
sbThe scroll bar.
arrow1The rectangle of the left/top arrow.
internalThe rectangle of the internal part.
arrow2The rectangle of the right/bottom arrow.
thumbThe rectangle of the thumb.
tThe transformer.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.

◆ drawArrow()

virtual void IlvScrollBarLFHandler::drawArrow ( const IlvScrollBar sb,
IlvPosition  position,
IlvPort dst,
const IlvRect arrow,
const IlvRegion clip 
) const
pure virtual

Is called to draw the arrows of a scroll bar.

Parameters
sbThe scroll bar.
positionThe orientation of the arrow.
dstThe destination port.
arrowThe bounding rectangle of the arrow.
clipThe clipping region.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.

◆ drawBackground()

virtual void IlvScrollBarLFHandler::drawBackground ( const IlvScrollBar sb,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the background of a scroll bar.

Parameters
sbThe scroll bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.

◆ drawContents()

virtual void IlvScrollBarLFHandler::drawContents ( const IlvScrollBar sb,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the contents of a scroll bar.

Parameters
sbThe scroll bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvScrollBarMLFHandler, IlvScrollBarCSSLFHandler, IlvScrollBarWLFHandler, and IlvDefaultScrollBarLFHandler.

◆ drawFrame()

virtual void IlvScrollBarLFHandler::drawFrame ( const IlvScrollBar sb,
IlvPort dst,
const IlvTransformer t,
const IlvRegion clip 
) const
pure virtual

Is called to draw the frame of a scroll bar.

Parameters
sbThe scroll bar.
dstThe destination port.
tThe transformer.
clipThe clipping region.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.

◆ drawInternal()

virtual void IlvScrollBarLFHandler::drawInternal ( const IlvScrollBar sb,
IlvPort dst,
const IlvRect internal,
const IlvRect thumb,
const IlvRegion clip 
) const
pure virtual

Is called to draw the internal part of a scroll bar.

Parameters
sbThe scroll bar.
dstThe destination port.
internalThe bounding rectangle of the internal part.
thumbThe bounding rectangle of the thumb. This rectangle must be included into internal.
clipThe clipping region.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.

◆ handleEvent()

virtual IlBoolean IlvScrollBarLFHandler::handleEvent ( IlvScrollBar sb,
IlvEvent event 
) const
pure virtual

Is called to handle the events of a scroll bar.

Parameters
sbThe scroll bar.
eventThe event to handle.
Returns
IlTrue if the event has been consumed.

Implemented in IlvDefaultScrollBarLFHandler.

◆ isValidPosition()

virtual IlBoolean IlvScrollBarLFHandler::isValidPosition ( const IlvScrollBar sb,
const IlvPoint point,
const IlvTransformer t 
) const
pure virtual

Indicates whether a given position is valid for the scroll bar.

Parameters
sbThe scroll bar.
pointThe position.
tThe transformer.

Implemented in IlvScrollBarWLFHandler, IlvScrollBarW95LFHandler, IlvScrollBarVXLFHandler, IlvScrollBarMLFHandler, and IlvScrollBarCSSLFHandler.