Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
View rectangle class. More...
#include <ilviews/gadmgr/rectscmg.h>
Public Member Functions | |
IlvSCManagerRectangle (IlvDisplay *display, const IlvRect &rect, IlvPalette *palette=0) | |
Constructor. | |
virtual void | computeContentsBBox (IlvRect &bbox) const |
Computes the bounding box of the manager contents. | |
IlvScrollBar * | getHorizontalScrollBar () const |
Retrieves the horizontal scroll bar. | |
IlvScrollBar * | getVerticalScrollBar () const |
Retrieves the vertical scroll bar. | |
void | hideScrollBar (IlvOrientation which) |
Hides a scroll bar. | |
void | moveScrollBar (IlvOrientation which, IlvPosition where) |
Moves a scroll bar. | |
virtual void | setManager (IlvManager *mgr, IlBoolean owner=IlTrue) |
Sets the manager. | |
void | showScrollBar (IlvOrientation which) |
Shows a scroll bar. | |
IlvPosition | whereIsScrollBar (IlvOrientation whichSB) const |
Returns the location of the specified scroll bar. |
View rectangle class.
Library: ilvgadmgr
The IlvSCManagerRectangle
class is a version of IlvManagerRectangle
that can scroll. The user can choose whether the scroll bars are visible or not.
The default interactor name for this object is "SCManager".
IlvSCManagerInteractor
IlvSCManagerRectangle::IlvSCManagerRectangle | ( | IlvDisplay * | display, | |
const IlvRect & | rect, | |||
IlvPalette * | palette = 0 | |||
) |
Constructor.
Initializes a new instance of the IlvMSCanagerRectangle
class.
display | Specifies the display. | |
rect | Specifies the size of the object. | |
palette | The background color of the palette is used as the window background color for the object view. |
virtual void IlvSCManagerRectangle::computeContentsBBox | ( | IlvRect & | bbox | ) | const [virtual] |
Computes the bounding box of the manager contents.
This member function is called whenever the bounding box of the contents of this IlvSCManagerRectangle
is modified. It occurs when the transformer of the manager view is changed, or when objects are added or removed from the manager.
This function is called by the internal manager view hook to compute the correct values to assign to the scroll bars so that they match the manager contents.
bbox | Rectangle used to store the returned value. |
IlvScrollBar* IlvSCManagerRectangle::getHorizontalScrollBar | ( | ) | const |
Retrieves the horizontal scroll bar.
0
if there is no horizontal scroll bar. IlvScrollBar* IlvSCManagerRectangle::getVerticalScrollBar | ( | ) | const |
Retrieves the vertical scroll bar.
0
if there is no vertical scroll bar. void IlvSCManagerRectangle::hideScrollBar | ( | IlvOrientation | which | ) |
Hides a scroll bar.
which | Indicates which scroll bar should be hidden. This parameter can be either IlvHorizontal or IlvVertical . |
IlvSCManagerRectangle::showScrollBar
void IlvSCManagerRectangle::moveScrollBar | ( | IlvOrientation | which, | |
IlvPosition | where | |||
) |
Moves a scroll bar.
This member function lets you move the vertical scroll bar to the left or to the right of the object, or move the vertical scroll bar to the top or to the bottom of the graphic object.
The default is to have the vertical scroll bar on the left of the object, and the horizontal scroll bar located at the bottom of the object (except on the Bidi version of Rogue Wave Views, where the location of the vertical scroll bar depends on the layoutDirection
of this object).
which | Indicates which scroll bar should be moved. This parameter can be either IlvHorizontal or IlvVertical . |
IlvVertical
, valid values are IlvLeft
and IlvRight
. If which is IlvHorizontal
, valid values are IlvTop
and IlvBottom
. virtual void IlvSCManagerRectangle::setManager | ( | IlvManager * | manager, | |
IlBoolean | owner = IlTrue | |||
) | [virtual] |
Sets the manager.
Sets the manager that manages the view stored by the object.
manager | The manager to set. | |
owner | If IlTrue , the manager is considered to be owned by the object and will be automatically deleted when the object is destroyed. If IlFalse , destroying the manager will be the responsibility of the user. |
Reimplemented from IlvManagerRectangle.
void IlvSCManagerRectangle::showScrollBar | ( | IlvOrientation | which | ) |
Shows a scroll bar.
which | Indicates which scroll bar should be displayed. This parameter can be either IlvHorizontal or IlvVertical . |
IlvSCManagerRectangle::hideScrollBar
IlvPosition IlvSCManagerRectangle::whereIsScrollBar | ( | IlvOrientation | whichSB | ) | const |
Returns the location of the specified scroll bar.
which | The direction of the scroll bar. Valid values are: IlvHorizontal and IlvVertical . |
IlvSCManagerRectangle::moveScrollBar
© 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.