#include <CEGUIInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| float | getDocumentSize () |
| Return the size of the document or data. | |
| float | getPageSize () |
| Return the page size for this scroll bar. | |
| float | getStepSize () |
| Return the step size for this scroll bar. | |
| float | getOverlapSize () |
| Return the overlap size for this scroll bar. | |
| float | getScrollPosition () |
| Return the current position of scroll bar within the document. | |
| DICEGUIButton * | getIncreaseButton () |
| Return a pointer to the 'increase' PushButtoncomponent widget for this Scrollbar. | |
| DICEGUIButton * | getDecreaseButton () |
| Return a pointer to the 'decrease' PushButton component widget for this Scrollbar. | |
| DICEGUIThumb * | getThumb () |
| Return a pointer to the Thumb component widget for this Scrollbar. | |
| void | initialiseComponents () |
| Initialises the Scrollbar object ready for use. | |
| void | setDocumentSize (float document_size) |
| Set the size of the document or data. | |
| void | setPageSize (float page_size) |
| Set the page size for this scroll bar. | |
| void | setStepSize (float step_size) |
| Set the step size for this scroll bar. | |
| void | setOverlapSize (float overlap_size) |
| Set the overlap size for this scroll bar. | |
| void | setScrollPosition (float position) |
| Set the current position of scroll bar within the document. | |
| float DigitalSpaces::DICEGUIScrollbar::getDocumentSize | ( | ) |
Return the size of the document or data.
The document size should be thought of as the total size of the data that is being scrolled through (the number of lines in a text file for example).
| float DigitalSpaces::DICEGUIScrollbar::getPageSize | ( | ) |
Return the page size for this scroll bar.
The page size is typically the amount of data that can be displayed at one time. This value is also used when calculating the amount the position will change when you click either side of the scroll bar thumb - the amount the position changes will is (pageSize - overlapSize).
| float DigitalSpaces::DICEGUIScrollbar::getStepSize | ( | ) |
Return the step size for this scroll bar.
The step size is typically a single unit of data that can be displayed, this is the amount the position will change when you click either of the arrow buttons on the scroll bar. (this could be 1 for a single line of text, for example).
| float DigitalSpaces::DICEGUIScrollbar::getOverlapSize | ( | ) |
Return the overlap size for this scroll bar.
The overlap size is the amount of data from the end of a 'page' that will remain visible when the position is moved by a page. This is usually used so that the user keeps some context of where they were within the document's data when jumping a page at a time.
| float DigitalSpaces::DICEGUIScrollbar::getScrollPosition | ( | ) |
Return the current position of scroll bar within the document.
The range of the scroll bar is from 0 to the size of the document minus the size of a page (0 <= position <= (documentSize - pageSize)).
| DICEGUIButton* DigitalSpaces::DICEGUIScrollbar::getIncreaseButton | ( | ) |
Return a pointer to the 'increase' PushButtoncomponent widget for this Scrollbar.
| UnknownObjectException | Thrown if the increase PushButton component does not exist. |
| DICEGUIButton* DigitalSpaces::DICEGUIScrollbar::getDecreaseButton | ( | ) |
Return a pointer to the 'decrease' PushButton component widget for this Scrollbar.
| UnknownObjectException | Thrown if the 'decrease' PushButton component does not exist. |
| DICEGUIThumb* DigitalSpaces::DICEGUIScrollbar::getThumb | ( | ) |
Return a pointer to the Thumb component widget for this Scrollbar.
| UnknownObjectException | Thrown if the Thumb component does not exist. |
| void DigitalSpaces::DICEGUIScrollbar::initialiseComponents | ( | ) |
Initialises the Scrollbar object ready for use.
| void DigitalSpaces::DICEGUIScrollbar::setDocumentSize | ( | float | document_size | ) |
Set the size of the document or data.
The document size should be thought of as the total size of the data that is being scrolled through (the number of lines in a text file for example).
| document_size | float value specifying the document size. |
| void DigitalSpaces::DICEGUIScrollbar::setPageSize | ( | float | page_size | ) |
Set the page size for this scroll bar.
The page size is typically the amount of data that can be displayed at one time. This value is also used when calculating the amount the position will change when you click either side of the scroll bar thumb - the amount the position changes will is (pageSize - overlapSize).
| page_size | float value specifying the page size. |
| void DigitalSpaces::DICEGUIScrollbar::setStepSize | ( | float | step_size | ) |
Set the step size for this scroll bar.
The step size is typically a single unit of data that can be displayed, this is the amount the position will change when you click either of the arrow buttons on the scroll bar. (this could be 1 for a single line of text, for example).
| step_size | float value specifying the step size. |
| void DigitalSpaces::DICEGUIScrollbar::setOverlapSize | ( | float | overlap_size | ) |
Set the overlap size for this scroll bar.
The overlap size is the amount of data from the end of a 'page' that will remain visible when the position is moved by a page. This is usually used so that the user keeps some context of where they were within the document's data when jumping a page at a time.
| overlap_size | float value specifying the overlap size. |
| void DigitalSpaces::DICEGUIScrollbar::setScrollPosition | ( | float | position | ) |
Set the current position of scroll bar within the document.
The range of the scroll bar is from 0 to the size of the document minus the size of a page (0 <= position <= (documentSize - pageSize)), any attempt to set the position outside this range will be adjusted so that it falls within the legal range.
| position | float value specifying the position of the scroll bar within its document. |
1.5.6