VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::EventHandle Class Reference

#include <core/eventHandler.h>

Public Member Functions

void callback (const EventArgs &args) const
 EventHandle (EventHandler *handler, const std::string &name, HandleEventCallback callback, void *scope=nullptr, bool once=false)
void off ()
bool removed () const
void setRemoved (bool value)

Friends

class EventHandler

Detailed Description

Definition at line 25 of file eventHandler.h.

Constructor & Destructor Documentation

◆ EventHandle()

visutwin::canvas::EventHandle::EventHandle ( EventHandler * handler,
const std::string & name,
HandleEventCallback callback,
void * scope = nullptr,
bool once = false )

Definition at line 52 of file eventHandler.cpp.

References callback(), and EventHandler.

Member Function Documentation

◆ callback()

void visutwin::canvas::EventHandle::callback ( const EventArgs & args) const

Definition at line 38 of file eventHandler.cpp.

Referenced by EventHandle(), and visutwin::canvas::EventHandler::fire().

◆ off()

void visutwin::canvas::EventHandle::off ( )

Definition at line 45 of file eventHandler.cpp.

◆ removed()

bool visutwin::canvas::EventHandle::removed ( ) const
inlinenodiscard

Definition at line 39 of file eventHandler.h.

◆ setRemoved()

void visutwin::canvas::EventHandle::setRemoved ( bool value)

Definition at line 31 of file eventHandler.cpp.

Referenced by visutwin::canvas::EventHandler::offByHandle().

◆ EventHandler

friend class EventHandler
friend

Definition at line 42 of file eventHandler.h.

References EventHandler.

Referenced by EventHandle(), and EventHandler.


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