Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

NCursesUserPanel< T > Class Template Reference

Associate user data with a panel. We use templates to provide a typesafe mechanism to associate user data with a panel. A NCursesUserPanel<T> is a panel associated with some user data of type T. More...

#include <ncursesp.h>

Inheritance diagram for NCursesUserPanel< T >:

NCursesPanel NCursesWindow List of all members.

Public Member Functions

 NCursesUserPanel (int lines, int cols, int begin_y=0, int begin_x=0, const T *p_UserData=(T *) 0)
 NCursesUserPanel (const T *p_UserData=(T *) 0)
virtual ~NCursesUserPanel ()
T * UserData (void) const
virtual void setUserData (const T *p_UserData)

Static Public Member Functions

static T * UserDataOf (const PANEL &pan)

Detailed Description

template<class T>
class NCursesUserPanel< T >

Associate user data with a panel. We use templates to provide a typesafe mechanism to associate user data with a panel. A NCursesUserPanel<T> is a panel associated with some user data of type T.


Constructor & Destructor Documentation

template<class T>
NCursesUserPanel< T >::NCursesUserPanel int  lines,
int  cols,
int  begin_y = 0,
int  begin_x = 0,
const T *  p_UserData = (T*)0
[inline]
 

This creates an user panel of the requested size with associated user data pointed to by p_UserData.

template<class T>
NCursesUserPanel< T >::NCursesUserPanel const T *  p_UserData = (T*)0  )  [inline]
 

This creates an user panel associated with the stdscr and user data pointed to by p_UserData.

template<class T>
virtual NCursesUserPanel< T >::~NCursesUserPanel  )  [inline, virtual]
 


Member Function Documentation

template<class T>
virtual void NCursesUserPanel< T >::setUserData const T *  p_UserData  )  [inline, virtual]
 

Associate the user panel with the user data pointed to by p_UserData.

template<class T>
T* NCursesUserPanel< T >::UserData void   )  const [inline]
 

Retrieve the user data associated with the panel.

template<class T>
static T* NCursesUserPanel< T >::UserDataOf const PANEL &  pan  )  [inline, static]
 

Retrieve the user data if associated with the PANEL.


The documentation for this class was generated from the following file:
Generated on Wed Sep 14 10:52:55 2005 for yast2-ncurses by  doxygen 1.4.4