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

#include <C4Gui.h>

Inheritance diagram for C4GUI::CallbackHandlerNoPar< CB >:
Collaboration diagram for C4GUI::CallbackHandlerNoPar< CB >:

Public Types

typedef void(CB::* Func )()

Public Member Functions

void DoCall (class Element *pElement) override
 CallbackHandlerNoPar (CB *pTarget, Func rFunc)
void Ref ()
void DeRef ()

Detailed Description

template<class CB>
class C4GUI::CallbackHandlerNoPar< CB >

Definition at line 280 of file C4Gui.h.

Member Typedef Documentation

template<class CB >
typedef void(CB::* C4GUI::CallbackHandlerNoPar< CB >::Func)()

Definition at line 283 of file C4Gui.h.

Constructor & Destructor Documentation

template<class CB >
C4GUI::CallbackHandlerNoPar< CB >::CallbackHandlerNoPar ( CB *  pTarget,
Func  rFunc 

Definition at line 295 of file C4Gui.h.

295 : pCBClass(pTarget), CBFunc(rFunc) {}

Member Function Documentation

void C4GUI::BaseCallbackHandler::DeRef ( )

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 >
void C4GUI::CallbackHandlerNoPar< CB >::DoCall ( class Element pElement)

Implements C4GUI::BaseCallbackHandler.

Definition at line 290 of file C4Gui.h.

291  {
292  ((pCBClass)->*CBFunc)();
293  }
void C4GUI::BaseCallbackHandler::Ref ( )

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: