OpenClonk
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

void DoCall (class Element *pElement) override
 
 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

◆ Func

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

◆ CallbackHandlerExPar()

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

◆ DeRef()

void C4GUI::BaseCallbackHandler::DeRef ( )
inlineinherited

Definition at line 257 of file C4Gui.h.

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

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().

Here is the caller graph for this function:

◆ DoCall()

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

Implements C4GUI::BaseCallbackHandler.

Definition at line 309 of file C4Gui.h.

310  {
311  ((pCBClass)->*CBFunc)(par);
312  }

◆ Ref()

void C4GUI::BaseCallbackHandler::Ref ( )
inlineinherited

Definition at line 256 of file C4Gui.h.

256 { ++iRefs; }

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

Here is the caller graph for this function:

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