VCF::ScrollbarManager Class Reference
The ScrollbarManager represents a component used for managing scrolbars for a target control. More...
#include <vcf/ApplicationKit/ScrollbarManager.h>
Inheritance diagram for VCF::ScrollbarManager:

Public Member Functions | |
| ScrollbarManager () | |
| ScrollbarManager (Component *owner) | |
| ScrollbarManager (const String &name, Component *owner) | |
| ScrollbarManager (const String &name) | |
| virtual void | afterCreate (ComponentEvent *event) |
| override of the callback always called when a component is created. | |
| Control * | getTarget () |
| gets the control containing the scrollbars and associated to them. | |
| void | setTarget (Control *target) |
| assign the target control for the scrolling operations. | |
| void | setHasVerticalScrollbar (const bool &hasVerticalScrollbar) |
| sets if the vertical scrolbar is ever visible | |
| void | setHasHorizontalScrollbar (const bool &hasHorizontalScrollbar) |
| sets if the orizontal scrolbar is ever visible | |
| bool | hasVerticalScrollBar () |
| tells if the vertical scrolbar is ever visible | |
| bool | hasHorizontalScrollBar () |
| tells if the orizontal scrolbar is ever visible | |
| double | getVirtualViewHeight () |
| gets the height of the area that needs to be displayed. | |
| double | getVirtualViewWidth () |
| gets the width of the area that needs to be displayed. | |
| void | setVirtualViewHeight (const double &virtualViewHeight) |
| sets the height of the area that needs to be displayed. | |
| void | setVirtualViewWidth (const double &virtualViewWidth) |
| sets the width of the area that needs to be displayed. | |
| void | setVirtualViewSize (const double &virtualViewWidth, const double &virtualViewHeight) |
| sets the size (dimensions) of the area that needs to be displayed. | |
| virtual void | setVirtualViewVertStep (const double &step) |
| 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) |
| 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 () |
| 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 () |
| tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar. | |
| void | setVerticalPosition (const double &vertPosition) |
| moves the scrollbox of a vertical scrollbar to the specified position. | |
| void | setHorizontalPosition (const double &horzPosition) |
| moves the scrollbox of a vertical scrollbar to the specified position. | |
| double | getVerticalPosition () |
| gets the position of the scrollbox of a vertical scrollbar. | |
| double | getHorizontalPosition () |
| gets the position of the scrollbox of a horizontal scrollbar. | |
| double | getVerticalTopScrollSpace () |
| gets the height of the space above the vertical scrollbar. | |
| double | getVerticalBottomScrollSpace () |
| gets the height of the space below the vertical scrollbar. | |
| void | setVerticalTopScrollSpace (const double &topScrollSpace) |
| the scrollbars are always inside the area to display. | |
| void | setVerticalBottomScrollSpace (const double &bottomScrollSpace) |
| the scrollbars are always inside the area to display. | |
| double | getHorizontalLeftScrollSpace () |
| gets the width of the space on the left of the horizontal scrollbar. | |
| double | getHorizontalRightScrollSpace () |
| gets the width of the space on the right of the horizontal scrollbar. | |
| void | setHorizontalLeftScrollSpace (const double &leftScrollSpace) |
| the scrollbars are always inside the area to display. | |
| void | setHorizontalRightScrollSpace (const double &rightScrollSpace) |
| the scrollbars are always inside the area to display. | |
| void | setKeepScrollbarsVisible (const bool &horzVisible, const bool &vertVisible) |
| sets if we want the horizontal and vertical scrollbar always visible, even when not needed, or not. | |
| bool | getKeepVertScrollbarVisible () |
| tells if we choosed to have the vertical scrollbar always visible, even when not needed. | |
| bool | getKeepHorzScrollbarVisible () |
| tells if we choosed to have the horizontal scrollbar always visible, even when not needed. | |
| virtual void | setDiscreteScroll (const bool &horzDiscrete, const bool &vertDiscrete) |
| this allows you to control whether or not the scrolling needs to be discrete or not. | |
| virtual bool | getDiscreteVertScroll () |
| gets whether or not the scrolling on the vertical scrollbar needs to be discrete or not. | |
| virtual bool | getDiscreteHorzScroll () |
| gets whether or not the scrolling on the horizontal scrollbar needs to be discrete or not. | |
Public Attributes | |
| VCF::Delegate | VerticalScrolling |
| VCF::Delegate | HorizontalScrolling |
Protected Member Functions | |
| virtual | ~ScrollbarManager () |
Protected Attributes | |
| Scrollable * | scrollable_ |
| Control * | target_ |
Detailed Description
The ScrollbarManager represents a component used for managing scrolbars for a target control.The target control is specified and then a Scrollable instance is associated with the target. The manager componenent also exposes the Scrollable object's properties, allowing the developer to work with them at design time as well as programmatically.
Constructor & Destructor Documentation
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
Member Function Documentation
|
|
override of the callback always called when a component is created.
Reimplemented from VCF::Component. |
|
|
gets whether or not the scrolling on the horizontal scrollbar needs to be discrete or not.
|
|
|
gets whether or not the scrolling on the vertical scrollbar needs to be discrete or not.
|
|
|
gets the width of the space on the left of the horizontal scrollbar.
|
|
|
gets the position of the scrollbox of a horizontal scrollbar. This is postion is always the one adjusted by the OS according to internal considerations.
|
|
|
gets the width of the space on the right of the horizontal scrollbar.
|
|
|
tells if we choosed to have the horizontal scrollbar always visible, even when not needed.
|
|
|
tells if we choosed to have the vertical scrollbar always visible, even when not needed.
|
|
|
gets the control containing the scrollbars and associated to them. This the control whose content will be moved by the scrollable, as for example the listbox or the text editor when it has scrollbars. |
|
|
gets the height of the space below the vertical scrollbar.
|
|
|
gets the position of the scrollbox of a vertical scrollbar. This is postion is always the one adjusted by the OS according to internal considerations.
|
|
|
gets the height of the space above the vertical scrollbar.
|
|
|
gets the height of the area that needs to be displayed.
|
|
|
tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar.
|
|
|
tells how many pixel we want the area to be displayed will be vertically scrolled when pressing the arrows of the vertical scrollbar.
|
|
|
gets the width of the area that needs to be displayed.
|
|
|
tells if the orizontal scrolbar is ever visible
|
|
|
tells if the vertical scrolbar is ever visible
|
|
||||||||||||
|
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 ).
|
|
|
sets if the orizontal scrolbar is ever visible
|
|
|
sets if the vertical scrolbar is ever visible
|
|
|
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. |
|
|
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.
|
|
|
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. |
|
||||||||||||
|
sets if we want the horizontal and vertical scrollbar always visible, even when not needed, or not.
|
|
|
assign the target control for the scrolling operations. This is the control containing the scrollbars which are associated to it. It's content is scrolled by the scrollable. |
|
|
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. |
|
|
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.
|
|
|
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. |
|
|
sets the height of the area that needs to be displayed.
|
|
|
sets how many pixel we want to horizontally scroll the area to be displayed when pressing the arrows of the horizontal scrollbar.
|
|
||||||||||||
|
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. |
|
|
sets how many pixel we want to vertically scroll the area to be displayed when pressing the arrows of the vertical scrollbar.
|
|
|
sets the width of the area that needs to be displayed.
|
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/ScrollbarManager.h
