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::FXBitmapView FX::FXFoldingList FX::FXIconList FX::FXImageView FX::FXList FX::FXRulerView FX::FXScrollWindow FX::FXTable FX::FXText FX::FXTreeList

List of all members.

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
FXScrollBarhorizontalScrollBar () const
FXScrollBarverticalScrollBar () const
FXint getXPosition () const
FXint getYPosition () const
void setPosition (FXint x, FXint y)
void getPosition (FXint &x, FXint &y) const
virtual ~FXScrollArea ()

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:


Constructor & Destructor Documentation

virtual FX::FXScrollArea::~FXScrollArea ( ) [virtual]

Destructor.


Member Function Documentation

Return default width.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, and FX::FXList.

Return default height.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXTable, FX::FXFoldingList, FX::FXTreeList, FX::FXText, and FX::FXList.

Return viewport height.

Reimplemented in FX::FXIconList, and FX::FXRulerView.

Return viewport width.

Reimplemented in FX::FXRulerView.

Change scroll style.

Return scroll style.

Return TRUE if horizontally scrollable.

Return TRUE if vertically scrollable.

Return a pointer to the horizontal scrollbar.

Return a pointer to the vertical scrollbar.

Return the current x-position.

Return the current y-position.

Set the current position.

void FX::FXScrollArea::getPosition ( FXint x,
FXint y 
) const [inline]

Get the current position.

Copyright © 1997-2005 Jeroen van der Zijp