VCF::Scrollable Class Reference
This class is used to add scrolling support to a control. More...
#include <vcf/ApplicationKit/Scrollable.h>
Inheritance diagram for VCF::Scrollable:

Public Member Functions | |
| Scrollable () | |
| virtual | ~Scrollable () |
| virtual void | setHasVerticalScrollbar (const bool &hasVerticalScrollbar)=0 |
| sets if the vertical scrolbar is ever visible | |
| virtual void | setHasHorizontalScrollbar (const bool &hashorizontalScrollbar)=0 |
| sets if the orizontal scrolbar is ever visible | |
| virtual bool | hasVerticalScrollBar ()=0 |
| tells if the vertical scrolbar is ever visible | |
| virtual bool | hasHorizontalScrollBar ()=0 |
| tells if the orizontal scrolbar is ever visible | |
| virtual double | getVirtualViewHeight ()=0 |
| gets the height of the area that needs to be displayed. | |
| virtual double | getVirtualViewWidth ()=0 |
| gets the width of the area that needs to be displayed. | |
| virtual void | setVirtualViewHeight (const double &virtualViewHeight)=0 |
| sets the height of the area that needs to be displayed. | |
| virtual void | setVirtualViewWidth (const double &virtualViewWidth)=0 |
| sets the width of the area that needs to be displayed. | |
| virtual void | setVirtualViewSize (const double &width, const double &height)=0 |
| sets the size (dimensions) of the area that needs to be displayed. | |
| virtual void | setVirtualViewVertStep (const double &step)=0 |
| sets how many pixel we want to vertically scroll the area to be displayed when pressing the arrows of the vertical scrollbar. | |
| virtual void | setVirtualViewHorzStep (const double &step)=0 |
| sets how many pixel we want to horizontally scroll the area to be displayed when pressing the arrows of the horizontal scrollbar. | |
| virtual double | getVirtualViewVertStep ()=0 |
| tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar. | |
| virtual double | getVirtualViewHorzStep ()=0 |
| tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar. | |
| virtual bool | isVerticalScrollbarVisible ()=0 |
| tells if the vertical scollbar is actually visible. | |
| virtual bool | isHorizontalScrollbarVisible ()=0 |
| tells if the horizontal scollbar is actually visible. | |
| virtual void | recalcScrollPositions ()=0 |
| recalculates all the positions and visibility status of all the scrollbars connected to a control. | |
| virtual void | setVerticalPosition (const double &vertPosition)=0 |
| moves the scrollbox of a vertical scrollbar to the specified position. | |
| virtual void | setHorizontalPosition (const double &horzPosition)=0 |
| moves the scrollbox of a vertical scrollbar to the specified position. | |
| virtual double | getVerticalPosition ()=0 |
| gets the position of the scrollbox of a vertical scrollbar. | |
| virtual double | getHorizontalPosition ()=0 |
| gets the position of the scrollbox of a horizontal scrollbar. | |
| virtual double | getVerticalTopScrollSpace ()=0 |
| gets the height of the space above the vertical scrollbar. | |
| virtual double | getVerticalBottomScrollSpace ()=0 |
| gets the height of the space below the vertical scrollbar. | |
| virtual void | setVerticalTopScrollSpace (const double &topScrollSpace)=0 |
| the scrollbars are always inside the area to display. | |
| virtual void | setVerticalBottomScrollSpace (const double &bottomScrollSpace)=0 |
| the scrollbars are always inside the area to display. | |
| virtual double | getHorizontalLeftScrollSpace ()=0 |
| gets the width of the space on the left of the horizontal scrollbar. | |
| virtual double | getHorizontalRightScrollSpace ()=0 |
| gets the width of the space on the right of the horizontal scrollbar. | |
| virtual void | setHorizontalLeftScrollSpace (const double &leftScrollSpace)=0 |
| the scrollbars are always inside the area to display. | |
| virtual void | setHorizontalRightScrollSpace (const double &rightScrollSpace)=0 |
| the scrollbars are always inside the area to display. | |
| virtual Control * | getScrollableControl ()=0 |
| gets the control this scrollable has been assogiated to. | |
| virtual void | setScrollableControl (Control *scrollableControl)=0 |
| sets the target control for the scrolling operation of the scrollable instance. | |
| virtual double | getHorizontalScrollbarHeight ()=0 |
| gets the height ( the 'thickness' ) of an horizontal scrollbar. | |
| virtual double | getVerticalScrollbarWidth ()=0 |
| gets the width ( the 'thickness' ) of a vertical scrollbar. | |
| virtual void | getHorizontalScrollRects (Rect *scrollBounds, Rect *leftBounds=NULL, Rect *rightBounds=NULL)=0 |
| this will retrieves the values for three rectangular bounds, the bounds of the scroll bar portion, the bounds of the left most spacer, and the bounds of the right most spacer. | |
| virtual void | getVerticalScrollRects (Rect *scrollBounds, Rect *topBounds=NULL, Rect *bottomBounds=NULL)=0 |
| this will retrieves the values for three rectangular bounds, the bounds of the scroll bar portion, the bounds of the left most spacer, and the bounds of the right most spacer. | |
| virtual void | setKeepScrollbarsVisible (const bool &horzVisible, const bool &vertVisible)=0 |
| this allows you to control whether or not the scrollbars disappear when they are no longer needed. | |
| virtual bool | getKeepHorzScrollbarVisible ()=0 |
| gets whether or not the scrollbars disappear when they are no longer needed. | |
| virtual bool | getKeepVertScrollbarVisible ()=0 |
| virtual void | setDiscreteScroll (const bool &horzDiscrete, const bool &vertDiscrete)=0 |
| this allows you to control whether or not the scrolling needs to be discrete or not. | |
| virtual bool | getDiscreteHorzScroll ()=0 |
| gets whether or not the scrolling needs to be discrete or not. | |
| virtual bool | getDiscreteVertScroll ()=0 |
Detailed Description
This class is used to add scrolling support to a control.
- See also:
- ScrollbarManager
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
gets whether or not the scrolling needs to be discrete or not.
Implemented in VCF::AbstractScrollable. |
|
|
Implemented in VCF::AbstractScrollable. |
|
|
gets the width of the space on the left of the horizontal scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
gets the position of the scrollbox of a horizontal scrollbar. This position is always the one adjusted by the OS according to internal considerations.
Implemented in VCF::AbstractScrollable. |
|
|
gets the width of the space on the right of the horizontal scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
gets the height ( the 'thickness' ) of an horizontal scrollbar.
Implemented in VCF::AbstractScrollable. |
|
||||||||||||||||
|
this will retrieves the values for three rectangular bounds, the bounds of the scroll bar portion, the bounds of the left most spacer, and the bounds of the right most spacer. If a scroll bar has it's left and/or right scroll space set to 0, then the right and left bounds for the spacers may be null, or a rect of (0,0,0,0).
Implemented in VCF::AbstractScrollable. |
|
|
gets whether or not the scrollbars disappear when they are no longer needed.
Implemented in VCF::AbstractScrollable. |
|
|
Implemented in VCF::AbstractScrollable. |
|
|
gets the control this scrollable has been assogiated to.
Implemented in VCF::AbstractScrollable. |
|
|
gets the height of the space below the vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
gets the position of the scrollbox of a vertical scrollbar. This position is always the one adjusted by the OS according to internal considerations.
Implemented in VCF::AbstractScrollable. |
|
|
gets the width ( the 'thickness' ) of a vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
||||||||||||||||
|
this will retrieves the values for three rectangular bounds, the bounds of the scroll bar portion, the bounds of the left most spacer, and the bounds of the right most spacer. If a scroll bar has it's left and/or right scroll space set to 0, then the right and left bounds for the spacers may be null, or a rect of (0,0,0,0).
Implemented in VCF::AbstractScrollable. |
|
|
gets the height of the space above the vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
gets the height of the area that needs to be displayed.
Implemented in VCF::AbstractScrollable. |
|
|
tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
gets the width of the area that needs to be displayed.
Implemented in VCF::AbstractScrollable. |
|
|
tells if the orizontal scrolbar is ever visible
Implemented in VCF::AbstractScrollable. |
|
|
tells if the vertical scrolbar is ever visible
Implemented in VCF::AbstractScrollable. |
|
|
tells if the horizontal scollbar is actually visible.
Implemented in VCF::AbstractScrollable. |
|
|
tells if the vertical scollbar is actually visible.
Implemented in VCF::AbstractScrollable. |
|
|
recalculates all the positions and visibility status of all the scrollbars connected to a control. This function must be called after some changes have been made on the target, the size of the object to scroll, or any scrollbar. Implemented in VCF::AbstractScrollable. |
|
||||||||||||
|
this allows you to control whether or not the scrolling needs to be discrete or not. By default this is false, ( i.e. rounded to the same amount indicated by getVirtualViewStep ).
Implemented in VCF::AbstractScrollable. |
|
|
sets if the orizontal scrolbar is ever visible
Implemented in VCF::AbstractScrollable. |
|
|
sets if the vertical scrolbar is ever visible
Implemented in VCF::AbstractScrollable. |
|
|
the scrollbars are always inside the area to display. this let us to create a space on the left of the horizontal scrollbar, which can be used to place other controls in there. As result of this the scrollbar will appear smaller. Implemented in VCF::AbstractScrollable. |
|
|
moves the scrollbox of a vertical scrollbar to the specified position. Keep in mind that the final position may differ fom the specified one because the OS may change that actual position because of roundings and other considerations related to the position of other controls.
Implemented in VCF::AbstractScrollable. |
|
|
the scrollbars are always inside the area to display. this let us to create a space on the right of the horizontal scrollbar, which can be used to place other controls in there. As result of this the scrollbar will appear smaller. Implemented in VCF::AbstractScrollable. |
|
||||||||||||
|
this allows you to control whether or not the scrollbars disappear when they are no longer needed. By default this is false, which means that the scrollabars will disappear when the virtual width or height is less than the control's actual width or height. If this is true, then the scrollbars will stay visible, but become disabled.
Implemented in VCF::AbstractScrollable. |
|
|
sets the target control for the scrolling operation of the scrollable instance. At this point the scrollbars will be resized with the control and it's content will be scrolled by the scrollable. Implemented in VCF::AbstractScrollable. |
|
|
the scrollbars are always inside the area to display. this let us to create a space on the bottom of the vertical scrollbar, which can be used to place other controls in there. As result of this the scrollbar will appear smaller. Implemented in VCF::AbstractScrollable. |
|
|
moves the scrollbox of a vertical scrollbar to the specified position. Keep in mind that the final position may differ fom the specified one because the OS may change that actual position because of roundings and other considerations related to the position of other controls.
Implemented in VCF::AbstractScrollable. |
|
|
the scrollbars are always inside the area to display. this let us to create a space on the top of the vertical scrollbar, which can be used to place other controls in there. As result of this the scrollbar will appear smaller. Implemented in VCF::AbstractScrollable. |
|
|
sets the height of the area that needs to be displayed.
Implemented in VCF::AbstractScrollable. |
|
|
sets how many pixel we want to horizontally scroll the area to be displayed when pressing the arrows of the horizontal scrollbar.
Implemented in VCF::AbstractScrollable. |
|
||||||||||||
|
sets the size (dimensions) of the area that needs to be displayed. For example if we want to show an image, this size will be set the same as the size of the image. The name virtual comes from the fact that it can be partly hidden. This area can be larger of the area actually displayed, and in this case the scrollbars will appear if not visible. Implemented in VCF::AbstractScrollable. |
|
|
sets how many pixel we want to vertically scroll the area to be displayed when pressing the arrows of the vertical scrollbar.
Implemented in VCF::AbstractScrollable. |
|
|
sets the width of the area that needs to be displayed.
Implemented in VCF::AbstractScrollable. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/Scrollable.h
