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

BScroller Class Reference

#include <BScroller.h>

Inheritance diagram for BScroller:

Inheritance graph
[legend]
Collaboration diagram for BScroller:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Orientation { ORIENT_VERTICAL, ORIENT_HORIZONTAL }

Public Member Functions

 BScroller (BWidget *parent, const BRect &frame)
void setOrientation (Orientation orient)
Orientation orientation (void) const
void setStepIncrement (unsigned int stepIncr)
unsigned int stepIncrement (void) const
void setPageIncrement (unsigned int pageIncr)
unsigned int pageIncrement (void) const
void setPosition (unsigned int position)
unsigned int position (void) const
void setMinimum (unsigned int minimum)
unsigned int minimum (void) const
void setMaximum (unsigned int maximum)
unsigned int maximum (void) const
void setAmountRepresentedByThumb (unsigned int amountRepr)
unsigned int amountRepresentedByThumb (void) const
virtual void draw (BImage &img)
 Draw the widget onto the given image.

virtual void handleEvent (const BEvent &event)
 Handle the given event. Override if necessary.

void setScrollable (BScrollable *scrollable)

Public Attributes

int lastpos
BPoint lastpoint

Protected Attributes

unsigned int _stepIncr
unsigned int _pageIncr
unsigned int _position
unsigned int _minimum
unsigned int _maximum
unsigned int _amountRepr
Orientation _orient
bool _dragged
BPoint _dragOrigin
BScrollable_scrollable

Member Enumeration Documentation

enum BScroller::Orientation
 

Enumeration values:
ORIENT_VERTICAL 
ORIENT_HORIZONTAL 


Constructor & Destructor Documentation

BScroller::BScroller BWidget   parent,
const BRect   frame
 


Member Function Documentation

unsigned int BScroller::amountRepresentedByThumb void    const [inline]
 

virtual void BScroller::draw BImage   img [virtual]
 

Draw the widget onto the given image.

Reimplemented from BWidget.

virtual void BScroller::handleEvent const BEvent   event [virtual]
 

Handle the given event. Override if necessary.

Reimplemented from BWidget.

unsigned int BScroller::maximum void    const [inline]
 

unsigned int BScroller::minimum void    const [inline]
 

Orientation BScroller::orientation void    const [inline]
 

unsigned int BScroller::pageIncrement void    const [inline]
 

unsigned int BScroller::position void    const [inline]
 

void BScroller::setAmountRepresentedByThumb unsigned int    amountRepr
 

void BScroller::setMaximum unsigned int    maximum
 

void BScroller::setMinimum unsigned int    minimum
 

void BScroller::setOrientation Orientation    orient
 

void BScroller::setPageIncrement unsigned int    pageIncr
 

void BScroller::setPosition unsigned int    position
 

void BScroller::setScrollable BScrollable   scrollable
 

void BScroller::setStepIncrement unsigned int    stepIncr
 

unsigned int BScroller::stepIncrement void    const [inline]
 


Member Data Documentation

unsigned int BScroller::_amountRepr [protected]
 

bool BScroller::_dragged [protected]
 

BPoint BScroller::_dragOrigin [protected]
 

unsigned int BScroller::_maximum [protected]
 

unsigned int BScroller::_minimum [protected]
 

Orientation BScroller::_orient [protected]
 

unsigned int BScroller::_pageIncr [protected]
 

unsigned int BScroller::_position [protected]
 

BScrollable* BScroller::_scrollable [protected]
 

unsigned int BScroller::_stepIncr [protected]
 

BPoint BScroller::lastpoint
 

int BScroller::lastpos
 


The documentation for this class was generated from the following file:
Generated on Sat Dec 29 10:00:52 2007 for DSGUI by doxygen1.3-rc3