OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::ContextHandler Class Referenceabstract

#include <C4Gui.h>

Inheritance diagram for C4GUI::ContextHandler:
[legend]

Public Member Functions

 ContextHandler ()
 
virtual ~ContextHandler ()
 
virtual bool OnContext (Element *pOnElement, int32_t iX, int32_t iY)=0
 
virtual ContextMenuOnSubcontext (Element *pOnElement)=0
 
void Ref ()
 
void DeRef ()
 

Detailed Description

Definition at line 232 of file C4Gui.h.

Constructor & Destructor Documentation

C4GUI::ContextHandler::ContextHandler ( )
inline

Definition at line 237 of file C4Gui.h.

237 : iRefs(0) { } //ctor
virtual C4GUI::ContextHandler::~ContextHandler ( )
inlinevirtual

Definition at line 238 of file C4Gui.h.

238 { } // dtor

Member Function Documentation

void C4GUI::ContextHandler::DeRef ( )
inline

Definition at line 244 of file C4Gui.h.

Referenced by C4GUI::Element::SetContextHandler(), and C4GUI::Element::~Element().

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

Here is the caller graph for this function:

virtual bool C4GUI::ContextHandler::OnContext ( Element pOnElement,
int32_t  iX,
int32_t  iY 
)
pure virtual

Implemented in C4GUI::CBContextHandler< CBClass >.

Referenced by C4GUI::Element::DoContext(), and C4GUI::Element::MouseInput().

Here is the caller graph for this function:

virtual ContextMenu* C4GUI::ContextHandler::OnSubcontext ( Element pOnElement)
pure virtual

Implemented in C4GUI::CBContextHandler< CBClass >.

Referenced by C4GUI::ContextMenu::CheckOpenSubmenu().

Here is the caller graph for this function:

void C4GUI::ContextHandler::Ref ( )
inline

Definition at line 243 of file C4Gui.h.

Referenced by C4GUI::Element::SetContextHandler().

243 { ++iRefs; }

Here is the caller graph for this function:


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