OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::CallbackButtonEx< CallbackDlg, Base > Class Template Reference

#include <C4Gui.h>

Inheritance diagram for C4GUI::CallbackButtonEx< CallbackDlg, Base >:
[legend]
Collaboration diagram for C4GUI::CallbackButtonEx< CallbackDlg, Base >:
[legend]

Public Member Functions

 CallbackButtonEx (const char *szBtnText, const C4Rect &rtBounds, CallbackDlgPointer pCBTarget, typename DlgCallback< CallbackDlg >::Func pFn)
 
 CallbackButtonEx (Icons eUseIcon, const C4Rect &rtBounds, char cHotkey, CallbackDlgPointer pCBTarget, typename DlgCallback< CallbackDlg >::Func pFn)
 
 CallbackButtonEx (const C4Facet &fctBase, const C4Facet &fctHighlight, const FLOAT_RECT &rtfBounds, char cHotkey, CallbackDlgPointer pCBTarget, typename DlgCallback< CallbackDlg >::Func pFn)
 

Protected Types

typedef CallbackDlg * CallbackDlgPointer
 

Protected Member Functions

void OnPress () override
 

Protected Attributes

CallbackDlgPointer pCBTarget
 
DlgCallback< CallbackDlg >::Func pCallbackFn
 

Detailed Description

template<class CallbackDlg, class Base = Button>
class C4GUI::CallbackButtonEx< CallbackDlg, Base >

Definition at line 1227 of file C4Gui.h.

Member Typedef Documentation

template<class CallbackDlg, class Base = Button>
typedef CallbackDlg* C4GUI::CallbackButtonEx< CallbackDlg, Base >::CallbackDlgPointer
protected

Definition at line 1230 of file C4Gui.h.

Constructor & Destructor Documentation

template<class CallbackDlg, class Base = Button>
C4GUI::CallbackButtonEx< CallbackDlg, Base >::CallbackButtonEx ( const char *  szBtnText,
const C4Rect rtBounds,
CallbackDlgPointer  pCBTarget,
typename DlgCallback< CallbackDlg >::Func  pFn 
)
inline

Definition at line 1237 of file C4Gui.h.

1238  : Base(szBtnText, rtBounds), pCBTarget(pCBTarget), pCallbackFn(pFn) { }
CallbackDlgPointer pCBTarget
Definition: C4Gui.h:1231
DlgCallback< CallbackDlg >::Func pCallbackFn
Definition: C4Gui.h:1232
template<class CallbackDlg, class Base = Button>
C4GUI::CallbackButtonEx< CallbackDlg, Base >::CallbackButtonEx ( Icons  eUseIcon,
const C4Rect rtBounds,
char  cHotkey,
CallbackDlgPointer  pCBTarget,
typename DlgCallback< CallbackDlg >::Func  pFn 
)
inline

Definition at line 1239 of file C4Gui.h.

1240  : Base(eUseIcon, rtBounds, cHotkey), pCBTarget(pCBTarget), pCallbackFn(pFn) { }
CallbackDlgPointer pCBTarget
Definition: C4Gui.h:1231
DlgCallback< CallbackDlg >::Func pCallbackFn
Definition: C4Gui.h:1232
template<class CallbackDlg, class Base = Button>
C4GUI::CallbackButtonEx< CallbackDlg, Base >::CallbackButtonEx ( const C4Facet fctBase,
const C4Facet fctHighlight,
const FLOAT_RECT rtfBounds,
char  cHotkey,
CallbackDlgPointer  pCBTarget,
typename DlgCallback< CallbackDlg >::Func  pFn 
)
inline

Definition at line 1241 of file C4Gui.h.

1242  : Base(fctBase, fctHighlight, rtfBounds, cHotkey), pCBTarget(pCBTarget), pCallbackFn(pFn) { }
CallbackDlgPointer pCBTarget
Definition: C4Gui.h:1231
DlgCallback< CallbackDlg >::Func pCallbackFn
Definition: C4Gui.h:1232

Member Function Documentation

template<class CallbackDlg, class Base = Button>
void C4GUI::CallbackButtonEx< CallbackDlg, Base >::OnPress ( )
inlineoverrideprotected

Definition at line 1233 of file C4Gui.h.

References C4GUI::CallbackButtonEx< CallbackDlg, Base >::pCallbackFn.

1234  { (pCBTarget->*pCallbackFn)(this); }
CallbackDlgPointer pCBTarget
Definition: C4Gui.h:1231
DlgCallback< CallbackDlg >::Func pCallbackFn
Definition: C4Gui.h:1232

Member Data Documentation

template<class CallbackDlg, class Base = Button>
DlgCallback<CallbackDlg>::Func C4GUI::CallbackButtonEx< CallbackDlg, Base >::pCallbackFn
protected

Definition at line 1232 of file C4Gui.h.

Referenced by C4GUI::CallbackButtonEx< CallbackDlg, Base >::OnPress().

template<class CallbackDlg, class Base = Button>
CallbackDlgPointer C4GUI::CallbackButtonEx< CallbackDlg, Base >::pCBTarget
protected

Definition at line 1231 of file C4Gui.h.


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