sptk2 logo
SPTK Home Page

sptk::CScrollBar Class Reference
[GUI Classes]

Extended version of Scroll Bar - to add theme support. More...

#include <CScrollBar.h>

Inheritance diagram for sptk::CScrollBar:

sptk::CLayoutClient

List of all members.

Public Member Functions

 CScrollBar (int layoutSize=16, CLayoutAlign layoutAlign=SP_ALIGN_RIGHT)
 CScrollBar (int x, int y, int w, int h)
virtual bool preferredSize (int &w, int &h)
int handle (int event)
 Custom handle() method - event processing.
virtual std::string className () const
 Returns widget class name (internal SPTK RTTI).

Protected Member Functions

void draw ()
 Custom draw method to support SPTK themes.

Protected Attributes

int m_pushed
 flag to detect pushed button


Detailed Description

Extended version of Scroll Bar - to add theme support.

Constructor & Destructor Documentation

sptk::CScrollBar::CScrollBar ( int  layoutSize = 16,
CLayoutAlign  layoutAlign = SP_ALIGN_RIGHT 
) [inline]

Constructor in SPTK style

Parameters:
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout

sptk::CScrollBar::CScrollBar ( int  x,
int  y,
int  w,
int  h 
) [inline]

Constructor in FLTK style

Parameters:
x int, x-position
y int, y-position
w int, width
h int, height


Member Function Documentation

virtual bool sptk::CScrollBar::preferredSize ( int &  w,
int &  h 
) [virtual]

Computes the optimal progress bar size

Parameters:
w int&, input - width offered by the program, output - width required by widget
h int&, input - height offered by the program, output - height required by widget
Returns:
true if the size is stable (doesn't depend on input sizes)

Reimplemented from sptk::CLayoutClient.


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:18 2012: SPTK 3.5.7