![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXScrollArea.h>
Public Member Functions | |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual void | layout () |
virtual FXint | getViewportHeight () |
virtual FXint | getViewportWidth () |
virtual FXint | getContentWidth () |
virtual FXint | getContentHeight () |
void | setScrollStyle (FXuint style) |
FXuint | getScrollStyle () const |
FXbool | isHorizontalScrollable () const |
FXbool | isVerticalScrollable () const |
FXScrollBar * | horizontalScrollBar () const |
FXScrollBar * | verticalScrollBar () const |
FXint | getXPosition () const |
FXint | getYPosition () const |
void | setPosition (FXint x, FXint y) |
void | getPosition (FXint &x, FXint &y) const |
virtual | ~FXScrollArea () |
The scroll area widget manages a content area and a viewport area through which the content is viewed.
When the content area becomes larger than the viewport area, scrollbars are placed to permit viewing of the entire content by scrolling the content. Depending on the mode, scrollbars may be displayed on an as-needed basis, always, or never. Normally, the scroll area's size and the content's size are independent; however, it is possible to disable scrolling in the horizontal (vertical) direction. In this case, the content width (height) will influence the width (height) of the scroll area widget. For content which is time-consuming to repaint, continuous scrolling may be turned off.
See also:
virtual FX::FXScrollArea::~FXScrollArea | ( | ) | [virtual] |
Destructor.
virtual FXint FX::FXScrollArea::getDefaultWidth | ( | ) | [virtual] |
Return default width.
Reimplemented from FX::FXComposite.
Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, and FX::FXList.
virtual FXint FX::FXScrollArea::getDefaultHeight | ( | ) | [virtual] |
Return default height.
Reimplemented from FX::FXComposite.
Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, and FX::FXList.
virtual void FX::FXScrollArea::layout | ( | ) | [virtual] |
Perform layout.
Reimplemented from FX::FXComposite.
Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXIconList, FX::FXText, FX::FXList, FX::FXBitmapView, FX::FXImageView, FX::FXRulerView, and FX::FXScrollWindow.
virtual FXint FX::FXScrollArea::getViewportHeight | ( | ) | [virtual] |
Return viewport height.
Reimplemented in FX::FXIconList, and FX::FXRulerView.
virtual FXint FX::FXScrollArea::getViewportWidth | ( | ) | [virtual] |
Return viewport width.
Reimplemented in FX::FXRulerView.
virtual FXint FX::FXScrollArea::getContentWidth | ( | ) | [virtual] |
Return content width.
Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, FX::FXIconList, FX::FXList, FX::FXBitmapView, FX::FXImageView, FX::FXRulerView, and FX::FXScrollWindow.
virtual FXint FX::FXScrollArea::getContentHeight | ( | ) | [virtual] |
Return content height.
Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, FX::FXIconList, FX::FXList, FX::FXBitmapView, FX::FXImageView, FX::FXRulerView, and FX::FXScrollWindow.
void FX::FXScrollArea::setScrollStyle | ( | FXuint | style | ) |
Change scroll style.
FXuint FX::FXScrollArea::getScrollStyle | ( | ) | const |
Return scroll style.
Return TRUE if horizontally scrollable.
FXbool FX::FXScrollArea::isVerticalScrollable | ( | ) | const |
Return TRUE if vertically scrollable.
FXScrollBar* FX::FXScrollArea::horizontalScrollBar | ( | ) | const [inline] |
Return a pointer to the horizontal scrollbar.
FXScrollBar* FX::FXScrollArea::verticalScrollBar | ( | ) | const [inline] |
Return a pointer to the vertical scrollbar.
FXint FX::FXScrollArea::getXPosition | ( | ) | const [inline] |
Return the current x-position.
FXint FX::FXScrollArea::getYPosition | ( | ) | const [inline] |
Return the current y-position.
void FX::FXScrollArea::setPosition | ( | FXint | x, |
FXint | y | ||
) |
Set the current position.
void FX::FXScrollArea::getPosition | ( | FXint & | x, |
FXint & | y | ||
) | const [inline] |
Get the current position.
![]() |