TGUI  0.8-dev
tgui::SignalChildWindow Class Reference

Signal to which the user can subscribe to get callbacks from. More...

#include <Signal.hpp>

Inheritance diagram for tgui::SignalChildWindow:
tgui::Signal

Public Member Functions

 SignalChildWindow (std::string &&name)
 Constructor.
 
unsigned int connect (const DelegateChildWindow &handler)
 Connects a signal handler that will be called when this signal is emitted. More...
 
unsigned int connect (const DelegateChildWindowEx &handler)
 Connects a signal handler that will be called when this signal is emitted. More...
 
- Public Member Functions inherited from tgui::Signal
 Signal (std::string &&name, std::size_t extraParameters=0)
 Constructor. More...
 
unsigned int connect (const Delegate &handler)
 Connects a signal handler that will be called when this signal is emitted. More...
 
unsigned int connect (const DelegateEx &handler)
 Connects a signal handler that will be called when this signal is emitted. More...
 
bool disconnect (unsigned int id)
 Disconnect a signal handler from this signal. More...
 
void disconnectAll ()
 Disconnect all signal handler from this signal.
 
bool emit (const Widget *widget)
 Call all connected signal handlers. More...
 
std::string getName () const
 Returns the name given to the signal. More...
 

Detailed Description

Signal to which the user can subscribe to get callbacks from.

Member Function Documentation

◆ connect() [1/2]

unsigned int tgui::SignalChildWindow::connect ( const DelegateChildWindow &  handler)

Connects a signal handler that will be called when this signal is emitted.

Parameters
handlerCallback function that is given a child window as argument
Returns
Unique id of the connection

◆ connect() [2/2]

unsigned int tgui::SignalChildWindow::connect ( const DelegateChildWindowEx &  handler)

Connects a signal handler that will be called when this signal is emitted.

Parameters
handlerCallback function that is given a pointer to the widget, the name of the signal and a child window as arguments
Returns
Unique id of the connection

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