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

CScrollable Class Reference

Abstract class to inherit to make an object scrollable. More...

#include <CUI.h>

Inheritance diagram for CScrollable::

CListBox CPersonEdit CTextArea List of all members.

Public Methods

 CScrollable ()
 Empty constructor. More...

 ~CScrollable ()
 Empty destructor. More...

virtual int getMin ()=0
 Returns minimum value of the scroll region. More...

virtual int getMax ()=0
 Returns maximum value of the scroll region. More...

virtual int getPos ()=0
 Returns current position in the scroll region. More...

virtual void setPos (int pos)=0
 Sets the current item/line to be selected. More...

virtual void scrollUp ()=0
 Scrolls up one. More...

virtual void scrollDown ()=0
 Scrolls down one. More...


Detailed Description

Abstract class to inherit to make an object scrollable.

All widgets/object that want to be scrollable by a scrollbar need to inherit from this class and fill the function in


Constructor & Destructor Documentation

CScrollable::CScrollable   [inline]
 

Empty constructor.

CScrollable::~CScrollable   [inline]
 

Empty destructor.


Member Function Documentation

virtual int CScrollable::getMax   [pure virtual]
 

Returns maximum value of the scroll region.

Reimplemented in CPersonEdit, CListBox, and CTextArea.

virtual int CScrollable::getMin   [pure virtual]
 

Returns minimum value of the scroll region.

Reimplemented in CPersonEdit, CListBox, and CTextArea.

virtual int CScrollable::getPos   [pure virtual]
 

Returns current position in the scroll region.

Reimplemented in CPersonEdit, CListBox, and CTextArea.

virtual void CScrollable::scrollDown   [pure virtual]
 

Scrolls down one.

Reimplemented in CPersonEdit, CListBox, and CTextArea.

virtual void CScrollable::scrollUp   [pure virtual]
 

Scrolls up one.

Reimplemented in CPersonEdit, CListBox, and CTextArea.

virtual void CScrollable::setPos int    pos [pure virtual]
 

Sets the current item/line to be selected.

Reimplemented in CPersonEdit, CListBox, and CTextArea.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 00:14:57 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001