Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXScrollArea Class Reference

#include <FXScrollArea.h>

Inheritance diagram for FX::FXScrollArea:

FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXIconList FX::FXImageView FX::FXList FX::FXScrollWindow FX::FXTable FX::FXText FX::FXTreeList FX::FXFileList FX::FXDirList List of all members.

Public Methods

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

virtual FXint getViewportHeight ()
 Return viewport size.

virtual FXint getViewportWidth ()
virtual FXint getContentWidth ()
 Return content size.

virtual FXint getContentHeight ()
void setScrollStyle (FXuint style)
 Change scroll style.

FXuint getScrollStyle () const
 Return scroll style.

FXbool isHorizontalScrollable () const
 Return TRUE if horizontally scrollable.

FXbool isVerticalScrollable () const
 Return TRUE if vertically scrollable.

FXScrollBarhorizontalScrollBar () const
 Return a pointer to the horizontal scrollbar.

FXScrollBarverticalScrollBar () const
 Return a pointer to the vertical scrollbar.

FXint getXPosition () const
 Return the current x-position.

FXint getYPosition () const
 Return the current y-position.

void setPosition (FXint x, FXint y)
 Set the current position.

void getPosition (FXint &x, FXint &y) const
 Get the current position.

virtual void moveContents (FXint x, FXint y)
 Move contents to the specified position.

virtual ~FXScrollArea ()
 Destructor.


Detailed Description

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: