Wt
4.11.1
|
Abstract base class of an event signal. More...
#include <WSignal.h>
Public Member Functions | |
const char * | name () const |
Returns the event name. More... | |
virtual bool | isConnected () const override |
Returns whether this signal is connected. More... | |
void | disconnect (JSlot &slot) |
Disconnects a JSlot. | |
void | preventDefaultAction (bool prevent=true) |
Prevents the default browser action. More... | |
bool | defaultActionPrevented () const |
Returns whether the default browser action is prevented. More... | |
void | preventPropagation (bool prevent=true) |
Prevents event propagation. More... | |
bool | propagationPrevented () const |
Returns whether event propagation is prevented. More... | |
virtual Wt::Signals::connection | connect (WObject *target, WObject::Method method)=0 |
Connects to a slot. More... | |
template<class T , class V > | |
Wt::Signals::connection | connect (T *target, void(V::*method)()) |
Connects to a slot. More... | |
Public Member Functions inherited from Wt::SignalBase | |
virtual Wt::Signals::connection | connect (WObject *target, WObject::Method method)=0 |
Connects to a slot. More... | |
template<class T , class V > | |
Wt::Signals::connection | connect (T *target, void(V::*method)()) |
Connects to a slot. More... | |
Abstract base class of an event signal.
An event signal is directly associated with a user-interface generated event.
Wt::Signals::connection Wt::SignalBase::connect | ( | class T | , |
class V | |||
) |
Connects to a slot.
Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).
virtual Wt::Signals::connection Wt::SignalBase::connect |
Connects to a slot.
Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).
bool Wt::EventSignalBase::defaultActionPrevented | ( | ) | const |
Returns whether the default browser action is prevented.
|
overridevirtual |
Returns whether this signal is connected.
Returns true when the signal was connected to to at least one slot.
Implements Wt::SignalBase.
Reimplemented in Wt::EventSignal< E >, Wt::JSignal< A >, Wt::JSignal< double >, Wt::JSignal<>, Wt::JSignal< std::string >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int >, Wt::JSignal< Wt::WGoogleMap::Coordinate >, Wt::JSignal< int >, Wt::JSignal< int, int, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< double, double >, Wt::JSignal< std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< ::uint64_t >, Wt::JSignal< Wt::WTouchEvent >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int, int, int >, Wt::JSignal< std::string, std::string >, and Wt::JSignal< ::int64_t >.
const char* Wt::EventSignalBase::name | ( | ) | const |
Returns the event name.
The event name is implementation-defined.
void Wt::EventSignalBase::preventDefaultAction | ( | bool | prevent = true | ) |
Prevents the default browser action.
Use this method to prevent the default browser action associated with this event.
void Wt::EventSignalBase::preventPropagation | ( | bool | prevent = true | ) |
Prevents event propagation.
Use this method to prevent that the event propagates further to its ancestors.
bool Wt::EventSignalBase::propagationPrevented | ( | ) | const |
Returns whether event propagation is prevented.