OpenClonk
C4GUI::BaseParCallbackHandler< ParType > Class Template Referenceabstract

#include <C4Gui.h>

Inheritance diagram for C4GUI::BaseParCallbackHandler< ParType >:
[legend]
Collaboration diagram for C4GUI::BaseParCallbackHandler< ParType >:
[legend]

Public Member Functions

 BaseParCallbackHandler ()=default
 
virtual void DoCall (ParType par)=0
 
void Ref ()
 
void DeRef ()
 

Protected Member Functions

void DoCall (class Element *pElement) override
 

Detailed Description

template<class ParType>
class C4GUI::BaseParCallbackHandler< ParType >

Definition at line 318 of file C4Gui.h.

Constructor & Destructor Documentation

◆ BaseParCallbackHandler()

template<class ParType >
C4GUI::BaseParCallbackHandler< ParType >::BaseParCallbackHandler ( )
default

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() [1/2]

template<class ParType >
void C4GUI::BaseParCallbackHandler< ParType >::DoCall ( class Element pElement)
inlineoverrideprotectedvirtual

Implements C4GUI::BaseCallbackHandler.

Definition at line 321 of file C4Gui.h.

321 {assert(false);} // no-par: Not to be called

Referenced by C4GUI::ScrollBar::OnPosChanged().

Here is the caller graph for this function:

◆ DoCall() [2/2]

template<class ParType >
virtual void C4GUI::BaseParCallbackHandler< ParType >::DoCall ( ParType  par)
pure virtual

◆ 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: