Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ndk::scroll_bar< DirectT > Class Template Reference

Inheritance diagram for ndk::scroll_bar< DirectT >:

Inheritance graph
[legend]
Collaboration diagram for ndk::scroll_bar< DirectT >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 scroll_bar (unsigned int max=100, panel *parent=0)
void set_max (unsigned int max)
void set (unsigned int val)
unsigned int value () const
void up ()
void down ()
void resize (unsigned int size)
virtual void draw ()
virtual void show ()

Private Member Functions

event::result at_mouse (const mouse &ev)

Private Attributes

mini_button up_
mini_button down_
DirectT::line_type line_
bool zero_

Detailed Description

template<class DirectT>
class ndk::scroll_bar< DirectT >

This is a general template to the vertical and horizontal scrollbars with slider and two buttons

Todo:
fix code of "zero": situation, when scrollbar (height = 2) has hidden line_

I use strange code here to avoid conflicts between refreshing scheme and internal logic


Constructor & Destructor Documentation

template<class DirectT>
ndk::scroll_bar< DirectT >::scroll_bar unsigned int  max = 100,
panel parent = 0
[inline]
 


Member Function Documentation

template<class DirectT>
event::result ndk::scroll_bar< DirectT >::at_mouse const mouse ev  )  [inline, private]
 

template<class DirectT>
void ndk::scroll_bar< DirectT >::down  )  [inline]
 

template<class DirectT>
virtual void ndk::scroll_bar< DirectT >::draw  )  [inline, virtual]
 

specific version of draw, specially for NDK engine

Reimplemented from ndk::panel.

template<class DirectT>
void ndk::scroll_bar< DirectT >::resize unsigned int  size  )  [inline]
 

template<class DirectT>
void ndk::scroll_bar< DirectT >::set unsigned int  val  )  [inline]
 

template<class DirectT>
void ndk::scroll_bar< DirectT >::set_max unsigned int  max  )  [inline]
 

template<class DirectT>
virtual void ndk::scroll_bar< DirectT >::show  )  [inline, virtual]
 

template<class DirectT>
void ndk::scroll_bar< DirectT >::up  )  [inline]
 

template<class DirectT>
unsigned int ndk::scroll_bar< DirectT >::value  )  const [inline]
 


Member Data Documentation

template<class DirectT>
mini_button ndk::scroll_bar< DirectT >::down_ [private]
 

down control button of scrollbar

template<class DirectT>
DirectT::line_type ndk::scroll_bar< DirectT >::line_ [private]
 

scrolling area with the slider

template<class DirectT>
mini_button ndk::scroll_bar< DirectT >::up_ [private]
 

up control button of scrollbar

template<class DirectT>
bool ndk::scroll_bar< DirectT >::zero_ [private]
 

are line_ hidden or not?


The documentation for this class was generated from the following file:
Generated on Fri Jun 4 16:21:02 2004 for NDK++ by doxygen 1.3.6