OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::CBMenuHandler< CBClass > Class Template Reference

#include <C4Gui.h>

Inheritance diagram for C4GUI::CBMenuHandler< CBClass >:
[legend]
Collaboration diagram for C4GUI::CBMenuHandler< CBClass >:
[legend]

Public Member Functions

 CBMenuHandler (CBClass *pCBTarget, typename DlgCallback< CBClass >::ContextClickFunc pCallbackFn, int32_t iaExtra=0)
 
void OnOK (Element *pTargetElement) override
 

Detailed Description

template<class CBClass>
class C4GUI::CBMenuHandler< CBClass >

Definition at line 2690 of file C4Gui.h.

Constructor & Destructor Documentation

template<class CBClass>
C4GUI::CBMenuHandler< CBClass >::CBMenuHandler ( CBClass *  pCBTarget,
typename DlgCallback< CBClass >::ContextClickFunc  pCallbackFn,
int32_t  iaExtra = 0 
)
inline

Definition at line 2698 of file C4Gui.h.

2699  : MenuHandler(), pCBTarget(pCBTarget), pCallbackFn(pCallbackFn) { }
MenuHandler()=default

Member Function Documentation

template<class CBClass>
void C4GUI::CBMenuHandler< CBClass >::OnOK ( Element pTargetElement)
inlineoverridevirtual

Implements C4GUI::MenuHandler.

Definition at line 2701 of file C4Gui.h.

2702  {
2703  if (!pCBTarget /* || !pCallbackFn */) return;
2704  // do callback
2705  (pCBTarget->*pCallbackFn)(pTargetElement);
2706  }

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