OpenClonk
C4GUI::ContextHandler Class Referenceabstract

#include <C4Gui.h>

Inheritance diagram for C4GUI::ContextHandler:
[legend]

Public Member Functions

 ContextHandler ()=default
 
virtual ~ContextHandler ()=default
 
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

◆ ContextHandler()

C4GUI::ContextHandler::ContextHandler ( )
default

◆ ~ContextHandler()

virtual C4GUI::ContextHandler::~ContextHandler ( )
virtualdefault

Member Function Documentation

◆ DeRef()

void C4GUI::ContextHandler::DeRef ( )
inline

Definition at line 244 of file C4Gui.h.

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

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

Here is the caller graph for this function:

◆ OnContext()

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:

◆ OnSubcontext()

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:

◆ Ref()

void C4GUI::ContextHandler::Ref ( )
inline

Definition at line 243 of file C4Gui.h.

243 { ++iRefs; }

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

Here is the caller graph for this function:

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