rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvScrolledGadget Class Reference

Gadget class. More...

#include <ilviews/gadgets/scgadget.h>

Inheritance diagram for IlvScrolledGadget:
IlvGadget IlvSimpleGraphic IlvGraphic IlvAbstractMatrix IlvStringList IlvText IlvTreeGadget IlvMatrix IlvFileChooserTree IlvSheet IlvFileChooserSheet IlvHierarchicalSheet

List of all members.

Public Member Functions

 IlvScrolledGadget (IlvDisplay *display, const IlvRect &rect, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0)
 Constructor.
virtual void adjustScrollBars (IlBoolean redraw=IlFalse)
 Recomputes the scroll bars.
void computeBBox (IlvRect &ibox, IlvRect &vbox, IlvRect &vs, IlvRect &hs, const IlvTransformer *t=0) const
 Computes the bounding boxes of the elements that compose the gadget.
void computeBBox (IlvRect &ibox, IlvRect &vs, IlvRect &hs, const IlvTransformer *t=0) const
 Computes the bounding boxes of the elements that compose the gadget.
virtual IlvScrollBarcreateScrollBar (const IlvRect &rect, IlvDirection direction, IlUShort thickness, IlvPalette *palette)
 Returns a new instance of the IlvScrollBar class.
virtual void drawBackground (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Draws the gadget background.
virtual void drawFrame (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Draws the gadget frame.
virtual void drawGadgetContents (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Draws the gadget contents.
virtual void drawScrollBar (IlvPort *dst, IlvDirection direction, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Draws the specified internal scroll bar.
void fitToRect (const IlvRect &rect)
 Resizes the object so that the scrollable area fits the specified rectangle.
IlUShort getBottomMargin () const
 Returns the bottom margin.
IlvScrollBargetHorizontalScrollBar () const
 Returns a pointer to the internal horizontal scroll bar.
IlUShort getLeftMargin () const
 Returns the left margin.
IlUShort getRightMargin () const
 Returns the right margin.
IlvScrollBargetScrollBar (IlvDirection direction) const
 Returns a pointer to the specified internal scroll bar.
void getScrollBarShowAsNeeded (IlBoolean &vert, IlBoolean &hor) const
 Returns the scroll bar mode of the internal scroll bars.
IlUShort getTopMargin () const
 Returns the top margin.
IlvScrollBargetVerticalScrollBar () const
 Returns a pointer to the internal vertical scroll bar.
virtual IlBoolean handleGadgetEvent (IlvEvent &event)
 Handles the gadget events.
virtual IlBoolean handleScrollBarsEvent (IlvEvent &event)
 Handles the internal scroll bars event.
void hideScrollBar (IlvDirection direction, IlBoolean redraw=IlTrue)
 Hides the specified internal scroll bar.
virtual void internalBBox (IlvRect &bbox, const IlvTransformer *t=0) const
 Returns the internal bounding box of the gadget.
void moveScrollBar (IlvDirection direction, IlvPosition where, IlBoolean redraw=IlTrue)
 Moves the specified internal scroll bar to a new position.
virtual void scrollableSize (IlvDim &width, IlvDim &height) const
 Returns the size of the scrollable area of the gadget.
virtual void scrollBarBBox (IlvDirection direction, IlvRect &bbox, const IlvTransformer *t=0) const
 Returns the bounding box of the specified internal scroll bar.
virtual void scrollBarHasMoved (IlvDirection direction)
 Is called when an internal scroll bar has moved.
void scrollBarShowAsNeeded (IlBoolean vertical, IlBoolean horizontal, IlBoolean redraw=IlTrue)
 Sets the scroll bar mode of the internal scroll bars.
virtual void scrollBarVisibilityChanged (IlvDirection direction)
 Is called when an internal scroll bar is shown or hidden.
void setBottomMargin (IlUShort margin)
 Sets the bottom margin.
void setLeftMargin (IlUShort margin)
 Sets the left margin.
void setMargin (IlUShort val)
 Sets the left, right, top, and bottom margins.
void setRightMargin (IlUShort margin)
 Sets the right margin.
void setTopMargin (IlUShort margin)
 Sets the top margin.
void showScrollBar (IlvDirection direction, IlBoolean redraw=IlTrue)
 Shows the specified internal scroll bar.
virtual void visibleBBox (IlvRect &bbox, const IlvTransformer *t=0) const
 Returns the visible bounding box of the gadget.
IlvPosition whereIsScrollBar (IlvDirection direction) const
 Returns the location of the specified internal scroll bar.

Static Public Member Functions

static IlSymbolScrollBarMovedSymbol ()
 Returns the callback type for the Scroll Bar Moved callback.
static IlSymbolScrollBarVisibilitySymbol ()
 Returns the callback type for the Scroll Bar Visibility Changed callback.

Protected Member Functions

virtual void adjustFromScrollBar (const IlvScrollBar *scrollbar, IlvDirection direction)
 Is called to adjust the gadget to the scroll bars values.
virtual void adjustScrollBarValue (IlvScrollBar *scrollbar, IlvDirection direction)
 Is called to adjust the scroll bar values.
IlvDim getLimitHeightValue () const
 Returns the limit value for the vertical scrolling.
IlvDim getLimitWidthValue () const
 Returns the limit value for the horizontal scrolling.
IlvDim getScrollableHeight () const
 Returns the height of the scrollable area.
IlvDim getScrollableWidth () const
 Returns the width of the scrollable area.
void setLimitHeightValue (IlvDim value)
 Sets the limit value for the vertical scrolling.
void setLimitWidthValue (IlvDim value)
 Sets the limit value for the horizontal scrolling.
void setScrollableHeight (IlvDim height)
 Sets the height of the scrollable area.
void setScrollableWidth (IlvDim width)
 Sets the width of the scrollable area.

Friends

class IlvDefaultScrolledGadgetLFHandler

Detailed Description

Gadget class.

Library: ilvadvgdt

The IlvScrolledGadget class is an abstract gadget class that handles scroll bars. It is the base class for the gadgets that have scroll bars.

IlvScrolledGadgeta.gif

Examples of subclasses of the IlvScrolledGadget class

See also:
IlvAbstractMatrix, IlvAnnoText, IlvScrollBar, IlvStringList, IlvText, IlvTreeGadget.

Constructor & Destructor Documentation

IlvScrolledGadget::IlvScrolledGadget ( IlvDisplay display,
const IlvRect rect,
IlUShort  thickness = IlvDefaultGadgetThickness,
IlvPalette palette = 0 
)

Constructor.

Initializes a new instance of the IlvScrolledGadget class.

Parameters:
display The connection to the display.
rect The size and position of the gadget.
thickness The thickness of the gadget.
palette The palette used by the gadget.

Member Function Documentation

virtual void IlvScrolledGadget::adjustFromScrollBar ( const IlvScrollBar scrollbar,
IlvDirection  direction 
) [protected, virtual]

Is called to adjust the gadget to the scroll bars values.

Is called each time the scroll bar scrollbar of direction direction moves. If you want to detect these events, you must redefine this member function in a subclass. The default implementation does nothing.

Parameters:
scrollbar The scroll bar object.
direction The direction of the scroll bar. Valid values are: IlvHorizontal and IlvVertical.
See also:
adjustScrollBarValue

Reimplemented in IlvAbstractMatrix, IlvStringList, IlvText, and IlvTreeGadget.

virtual void IlvScrolledGadget::adjustScrollBars ( IlBoolean  redraw = IlFalse  )  [virtual]

Recomputes the scroll bars.

Sets the right values to the scroll bars.

Parameters:
redraw A Boolean value specifying whether the gadget should be redrawn.

Reimplemented in IlvText.

virtual void IlvScrolledGadget::adjustScrollBarValue ( IlvScrollBar scrollbar,
IlvDirection  direction 
) [protected, virtual]

Is called to adjust the scroll bar values.

Is called by the member function IlvScrolledGadget::adjustScrollBars to adjust the values of the scroll bar scrollbar of direction direction. This member function must modify the scrollbar values to match the gadget scrolling mode. If you want to detect these events, you must redefine this member function in a subclass. The default implementation does nothing.

Parameters:
scrollbar The scroll bar object.
direction The direction of the scroll bar. Valid values are: IlvHorizontal and IlvVertical.
See also:
adjustFromScrollBar

Reimplemented in IlvAbstractMatrix, IlvStringList, IlvText, and IlvTreeGadget.

void IlvScrolledGadget::computeBBox ( IlvRect ibox,
IlvRect vbox,
IlvRect vs,
IlvRect hs,
const IlvTransformer t = 0 
) const

Computes the bounding boxes of the elements that compose the gadget.

Parameters:
ibox The returned internal bounding box of the gadget.
vbox The returned visible bounding box of the gadget.
vs The returned internal vertical scroll bar bounding box of the gadget.
hs The returned internal horizontal scroll bar bounding box of the gadget.
t The transformer applied to the gadget.
See also:
internalBBox, visibleBBox, scrollBarBBox
void IlvScrolledGadget::computeBBox ( IlvRect ibox,
IlvRect vs,
IlvRect hs,
const IlvTransformer t = 0 
) const

Computes the bounding boxes of the elements that compose the gadget.

Parameters:
ibox The returned internal bounding box of the gadget.
vs The returned internal vertical scroll bar bounding box of the gadget.
hs The returned internal horizontal scroll bar bounding box of the gadget.
t The transformer applied to the gadget.
See also:
internalBBox, scrollBarBBox

Reimplemented in IlvSheet.

virtual IlvScrollBar* IlvScrolledGadget::createScrollBar ( const IlvRect rect,
IlvDirection  direction,
IlUShort  thickness,
IlvPalette palette 
) [virtual]

Returns a new instance of the IlvScrollBar class.

Is called by the member function IlvScrolledGadget::showScrollBar to create a new scroll bar. If you want to create your own scroll bars, you can override this member function in a subclass.

Parameters:
rect The bounding box of the scroll bar to be created.
direction The direction of the scroll bar to be created. Valid values are: IlvHorizontal and IlvVertical.
thickness The thickness of the scroll bar to create.
palette The palette of the scroll bar to create.
See also:
IlvScrollBar

Reimplemented in IlvAbstractMatrix.

virtual void IlvScrolledGadget::drawBackground ( IlvPort dst,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const [virtual]

Draws the gadget background.

Is called from the draw method. This method is not called if the gadget is transparent.

Parameters:
dst The destination drawing port.
t The transformer applied to the gadget.
clip The clipping area.
See also:
drawFrame, drawScrollBar, drawGadgetContents, IlvGadget::isTransparent

Reimplemented from IlvGadget.

Reimplemented in IlvMatrix, IlvStringList, IlvText, and IlvTreeGadget.

virtual void IlvScrolledGadget::drawFrame ( IlvPort dst,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const [virtual]

Draws the gadget frame.

Is called from the draw method. This method is not called if the method IlvScrolledGadget::isShowingFrame returns IlFalse.

Parameters:
dst The destination drawing port.
t The transformer applied to the gadget.
clip The clipping area.
See also:
drawBackground, drawScrollBar, drawGadgetContents

Reimplemented from IlvGadget.

Reimplemented in IlvMatrix, IlvSheet, IlvStringList, IlvText, and IlvTreeGadget.

virtual void IlvScrolledGadget::drawGadgetContents ( IlvPort dst,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const [virtual]

Draws the gadget contents.

Is called from the draw method. The default implementation does nothing.

Parameters:
dst The destination drawing port.
t The transformer applied to the gadget.
clip The clipping area.
See also:
drawBackground, drawScrollBar, drawFrame

Reimplemented in IlvAbstractMatrix, IlvMatrix, IlvSheet, IlvStringList, IlvText, and IlvTreeGadget.

virtual void IlvScrolledGadget::drawScrollBar ( IlvPort dst,
IlvDirection  direction,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const [virtual]

Draws the specified internal scroll bar.

Parameters:
dst The destination drawing port.
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
t The transformer applied to the gadget.
clip The clipping area.
See also:
drawBackground, drawFrame, drawGadgetContents
void IlvScrolledGadget::fitToRect ( const IlvRect rect  ) 

Resizes the object so that the scrollable area fits the specified rectangle.

Parameters:
rect The new size of the scrollable area.
See also:
IlvGadget:fitToContents
IlUShort IlvScrolledGadget::getBottomMargin (  )  const

Returns the bottom margin.

Returns:
The bottom margin.
See also:
setBottomMargin
IlvScrollBar* IlvScrolledGadget::getHorizontalScrollBar (  )  const

Returns a pointer to the internal horizontal scroll bar.

Returns:
A pointer to the internal horizontal scroll bar. Returns 0 if there is no horizontal scroll bar.
See also:
getScrollBar, getVerticalScrollBar
IlUShort IlvScrolledGadget::getLeftMargin (  )  const

Returns the left margin.

Returns:
The left margin.
See also:
setLeftMargin
IlvDim IlvScrolledGadget::getLimitHeightValue (  )  const [protected]

Returns the limit value for the vertical scrolling.

Returns:
The limit value for the vertical scrolling.
See also:
setLimitHeightValue, getLimitWidthValue
IlvDim IlvScrolledGadget::getLimitWidthValue (  )  const [protected]

Returns the limit value for the horizontal scrolling.

Returns:
The limit value for the horizontal scrolling.
See also:
setLimitWidthValue, getLimitHeightValue
IlUShort IlvScrolledGadget::getRightMargin (  )  const

Returns the right margin.

Returns:
The right margin.
See also:
setRightMargin
IlvDim IlvScrolledGadget::getScrollableHeight (  )  const [protected]

Returns the height of the scrollable area.

Returns:
The height of the scrollable area.
See also:
setScrollableHeight, getScrollableWidth
IlvDim IlvScrolledGadget::getScrollableWidth (  )  const [protected]

Returns the width of the scrollable area.

Returns:
The width of the scrollable area.
See also:
setScrollableWidth, getScrollableHeight
IlvScrollBar* IlvScrolledGadget::getScrollBar ( IlvDirection  direction  )  const

Returns a pointer to the specified internal scroll bar.

Parameters:
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
Returns:
A pointer to the internal scroll bar specified by direction. Returns 0 if such a scroll bar does not exist.
See also:
getVerticalScrollBar, getHorizontalScrollBar
void IlvScrolledGadget::getScrollBarShowAsNeeded ( IlBoolean vert,
IlBoolean hor 
) const

Returns the scroll bar mode of the internal scroll bars.

Parameters:
vertical A Boolean value specifying whether the visibility of the internal vertical scroll bar should be managed by the gadget automatically.
horizontal A Boolean value specifying whether the visibility of the internal horizontal scroll bar should be managed by the gadget automatically.
See also:
scrollBarShowAsNeeded, showScrollBar, hideScrollBar
IlUShort IlvScrolledGadget::getTopMargin (  )  const

Returns the top margin.

Returns:
The top margin.
See also:
setTopMargin
IlvScrollBar* IlvScrolledGadget::getVerticalScrollBar (  )  const

Returns a pointer to the internal vertical scroll bar.

Returns:
A pointer to the internal vertical scroll bar. Returns 0 if there is no vertical scroll bar.
See also:
getScrollBar, getHorizontalScrollBar
virtual IlBoolean IlvScrolledGadget::handleGadgetEvent ( IlvEvent event  )  [virtual]

Handles the gadget events.

Is called by IlvScrolledGadget::handleEvent when the member function handleScrollBarsEvent returns IlFalse. Its default implementation does nothing. You can override this member function to implement your own gadget behavior.

Parameters:
event The event.
See also:
handleScrollBarsEvent

Reimplemented in IlvAbstractMatrix, IlvStringList, IlvText, and IlvTreeGadget.

virtual IlBoolean IlvScrolledGadget::handleScrollBarsEvent ( IlvEvent event  )  [virtual]

Handles the internal scroll bars event.

Is called from the handleEvent method. You can override this member function to implement your own scroll bar behavior.

Parameters:
event The event.
Returns:
IlFalse if the event has not been handled by the scroll bars. In this case, handleGadgetEvent will be called.
See also:
handleGadgetEvent
void IlvScrolledGadget::hideScrollBar ( IlvDirection  direction,
IlBoolean  redraw = IlTrue 
)

Hides the specified internal scroll bar.

The scroll bar is deleted. Does nothing if the scroll bar mode is "as needed".

Parameters:
direction The direction for which the scroll bar should be hidden. Valid values are: IlvHorizontal and IlvVertical.
redraw A Boolean value specifying whether the gadget should be redrawn.
See also:
getScrollBar, getScrollBarShowAsNeeded, showScrollBar, drawScrollBar
virtual void IlvScrolledGadget::internalBBox ( IlvRect bbox,
const IlvTransformer t = 0 
) const [virtual]

Returns the internal bounding box of the gadget.

Puts in bbox the internal bounding box of the scrolled gadget computed with the transformer t. The internal bounding box is used to draw the frame and to compute the scrollable area. If you want to change the internal bounding box, you can override this member function in a subclass.

Parameters:
bbox The returned internal bounding box.
t The transformer applied to the gadget.
See also:
visibleBBox, scrollBarBBox

Reimplemented in IlvMatrix.

void IlvScrolledGadget::moveScrollBar ( IlvDirection  direction,
IlvPosition  where,
IlBoolean  redraw = IlTrue 
)

Moves the specified internal scroll bar to a new position.

Parameters:
direction The direction for which the scroll bar should be hidden. Valid values are: IlvHorizontal and IlvVertical.
where The new position of the internal scroll bar. Valid values are: IlvLeft and IlvRight for horizontal scroll bars, and IlvTop and IlvBottom for vertical scroll bars.
redraw A Boolean value specifying whether the gadget should be redrawn.
See also:
showScrollBar, hideScrollBar, whereIsScrollBar, drawScrollBar
virtual void IlvScrolledGadget::scrollableSize ( IlvDim width,
IlvDim height 
) const [virtual]

Returns the size of the scrollable area of the gadget.

Puts the width and height of the scrollable area in width and height, respectively. These values are used to compute the values of the scroll bars. You can override this member function to change the scrollable area.

virtual void IlvScrolledGadget::scrollBarBBox ( IlvDirection  direction,
IlvRect bbox,
const IlvTransformer t = 0 
) const [virtual]

Returns the bounding box of the specified internal scroll bar.

Puts in bbox the bounding box of the internal scroll bar specified by direction using the transformer t. If you want to change the internal scroll bars bounding box, you can override this member function in a subclass.

Parameters:
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
bbox The returned internal scroll bar bounding box.
t The transformer applied to the gadget.
See also:
internalBBox, visibleBBox

Reimplemented in IlvAbstractMatrix.

virtual void IlvScrolledGadget::scrollBarHasMoved ( IlvDirection  direction  )  [virtual]

Is called when an internal scroll bar has moved.

Is called by handleEvent each time the value of the internal scroll bar specified by direction changes. The default implementation invokes the Scroll Bar Moved callback.

Parameters:
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
See also:
ScrollBarMovedSymbol

Reimplemented in IlvAbstractMatrix, IlvStringList, and IlvText.

static IlSymbol* IlvScrolledGadget::ScrollBarMovedSymbol (  )  [static]

Returns the callback type for the Scroll Bar Moved callback.

The Scroll Bar Moved callback is invoked each time a scroll bar is moved.

Returns:
The callback type for the Scroll Bar Moved callback.
See also:
IlvGraphic::setCallback, scrollBarHasMoved
void IlvScrolledGadget::scrollBarShowAsNeeded ( IlBoolean  vertical,
IlBoolean  horizontal,
IlBoolean  redraw = IlTrue 
)

Sets the scroll bar mode of the internal scroll bars.

The "as needed" scroll bar mode lets the gadget manage the scroll bar visibility by showing or hiding the internal scroll bars when needed.

Parameters:
vertical A Boolean value specifying whether the visibility of the internal vertical scroll bar should be managed by the gadget automatically.
horizontal A Boolean value specifying whether the visibility of the internal horizontal scroll bar should be managed by the gadget automatically.
redraw A Boolean value specifying whether the gadget should be redrawn.
See also:
getScrollBarShowAsNeeded, showScrollBar, hideScrollBar
virtual void IlvScrolledGadget::scrollBarVisibilityChanged ( IlvDirection  direction  )  [virtual]

Is called when an internal scroll bar is shown or hidden.

Is called by handleEvent each time the internal scroll bar specified by direction is shown or hidden. The default implementation invokes the Scroll Bar Visibility Changed callback.

Parameters:
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
See also:
ScrollBarVisibilitySymbol

Reimplemented in IlvMatrix, and IlvText.

static IlSymbol* IlvScrolledGadget::ScrollBarVisibilitySymbol (  )  [static]

Returns the callback type for the Scroll Bar Visibility Changed callback.

The Scroll Bar Visibility Changed callback is invoked each time an internal scroll bar is shown or hidden.

Returns:
The callback type for the Scroll Bar Visibility Changed callback.
See also:
IlvGraphic::setCallback, scrollBarVisibilityChanged
void IlvScrolledGadget::setBottomMargin ( IlUShort  margin  ) 

Sets the bottom margin.

Parameters:
margin The new bottom margin.
See also:
setMargin
void IlvScrolledGadget::setLeftMargin ( IlUShort  margin  ) 

Sets the left margin.

Parameters:
margin The new left margin.
See also:
setMargin
void IlvScrolledGadget::setLimitHeightValue ( IlvDim  value  )  [protected]

Sets the limit value for the vertical scrolling.

This value is used to compute the maximum value that can have a vertical scroll bar connected to this scrolled gadget.

Parameters:
value The new limit value for the vertical scrolling.
See also:
setLimitWidthValue, setScrollableHeight
void IlvScrolledGadget::setLimitWidthValue ( IlvDim  value  )  [protected]

Sets the limit value for the horizontal scrolling.

This value is used to compute the maximum value that can have a horizontal scroll bar connected to this scrolled gadget.

Parameters:
value The new limit value for the horizontal scrolling.
See also:
setLimitHeightValue, setScrollableWidth
void IlvScrolledGadget::setMargin ( IlUShort  val  ) 

Sets the left, right, top, and bottom margins.

Parameters:
margin The new margins.
See also:
setLeftMargin, setRightMargin, setTopMargin, setBottomMargin
void IlvScrolledGadget::setRightMargin ( IlUShort  margin  ) 

Sets the right margin.

Parameters:
margin The new right margin.
See also:
setMargin
void IlvScrolledGadget::setScrollableHeight ( IlvDim  height  )  [protected]

Sets the height of the scrollable area.

Call this method each time the height of the scrolled object encapsulated by this scrolled gadget changes.

Parameters:
with The new scrollable height.
See also:
setScrollableWidth, setLimitHeightValue
void IlvScrolledGadget::setScrollableWidth ( IlvDim  width  )  [protected]

Sets the width of the scrollable area.

Call this method each time the width of the scrolled object encapsulated by this scrolled gadget changes.

Parameters:
with The new scrollable width.
See also:
setScrollableHeight, setLimitWidthValue
void IlvScrolledGadget::setTopMargin ( IlUShort  margin  ) 

Sets the top margin.

Parameters:
margin The new top margin.
See also:
setMargin
void IlvScrolledGadget::showScrollBar ( IlvDirection  direction,
IlBoolean  redraw = IlTrue 
)

Shows the specified internal scroll bar.

Does nothing if the scroll bar mode is "as needed".

Parameters:
direction The direction for which the scroll bar should be visible. Valid values are: IlvHorizontal and IlvVertical.
redraw A Boolean value specifying whether the gadget should be redrawn.
See also:
getScrollBar, getScrollBarShowAsNeeded, hideScrollBar, drawScrollBar
virtual void IlvScrolledGadget::visibleBBox ( IlvRect bbox,
const IlvTransformer t = 0 
) const [virtual]

Returns the visible bounding box of the gadget.

Puts in bbox the visible bounding box of the scrolled gadget computed with the transformer t. The visible bounding box is used to draw the gadget contents. The default implementation computes the internal bounding box and subtracts the margins from it. If you want to change the visible bounding box, you can override this member function in a subclass.

Parameters:
bbox The returned visible bounding box.
t The transformer applied to the gadget.
See also:
internalBBox, scrollBarBBox
IlvPosition IlvScrolledGadget::whereIsScrollBar ( IlvDirection  direction  )  const

Returns the location of the specified internal scroll bar.

Parameters:
direction The direction of the internal scroll bar. Valid values are: IlvHorizontal and IlvVertical.
Returns:
The location of the scroll bar specified by direction.
See also:
moveScrollBar
 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.