OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::CallbackHandlerExPar< CB, ParType > Class Template Reference

#include <C4Gui.h>

Inheritance diagram for C4GUI::CallbackHandlerExPar< CB, ParType >:
[legend]
Collaboration diagram for C4GUI::CallbackHandlerExPar< CB, ParType >:
[legend]

Public Types

typedef void(CB::* Func )(ParType)
 

Public Member Functions

virtual void DoCall (class Element *pElement)
 
 CallbackHandlerExPar (CB *pTarget, Func rFunc, ParType par)
 
void Ref ()
 
void DeRef ()
 

Detailed Description

template<class CB, class ParType>
class C4GUI::CallbackHandlerExPar< CB, ParType >

Definition at line 298 of file C4Gui.h.

Member Typedef Documentation

template<class CB, class ParType>
typedef void(CB::* C4GUI::CallbackHandlerExPar< CB, ParType >::Func)(ParType)

Definition at line 301 of file C4Gui.h.

Constructor & Destructor Documentation

template<class CB, class ParType>
C4GUI::CallbackHandlerExPar< CB, ParType >::CallbackHandlerExPar ( CB *  pTarget,
Func  rFunc,
ParType  par 
)
inline

Definition at line 314 of file C4Gui.h.

314 : pCBClass(pTarget), par(par), CBFunc(rFunc) {}

Member Function Documentation

void C4GUI::BaseCallbackHandler::DeRef ( )
inlineinherited

Definition at line 257 of file C4Gui.h.

Referenced by C4GUI::ConfirmationDialog::OnClosed(), C4GUI::CheckBox::SetOnChecked(), C4GUI::ListBox::SetSelectionChangeCallbackFn(), C4GUI::ListBox::SetSelectionDblClickFn(), C4GUI::CheckBox::~CheckBox(), C4GUI::ConfirmationDialog::~ConfirmationDialog(), C4GUI::ListBox::~ListBox(), and C4GUI::ScrollBar::~ScrollBar().

257 { if (!--iRefs) delete this; }

Here is the caller graph for this function:

template<class CB, class ParType>
virtual void C4GUI::CallbackHandlerExPar< CB, ParType >::DoCall ( class Element pElement)
inlinevirtual

Implements C4GUI::BaseCallbackHandler.

Definition at line 309 of file C4Gui.h.

310  {
311  ((pCBClass)->*CBFunc)(par);
312  }
void C4GUI::BaseCallbackHandler::Ref ( )
inlineinherited

Definition at line 256 of file C4Gui.h.

Referenced by C4GUI::ConfirmationDialog::ConfirmationDialog(), C4GUI::ConfirmationDialog::OnClosed(), C4GUI::ScrollBar::ScrollBar(), C4GUI::CheckBox::SetOnChecked(), C4GUI::ListBox::SetSelectionChangeCallbackFn(), and C4GUI::ListBox::SetSelectionDblClickFn().

256 { ++iRefs; }

Here is the caller graph for this function:


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