|
Wt
4.14.0
|
Abstract base class of an event signal. More...
#include <WSignal.h>
Public Member Functions | |
| const char * | name () const |
| Returns the event name. | |
| virtual bool | isConnected () const override |
| Returns whether this signal is connected. | |
| void | disconnect (JSlot &slot) |
| Disconnects a JSlot. | |
| void | preventDefaultAction (bool prevent=true) |
| Prevents the default browser action. | |
| bool | defaultActionPrevented () const |
| Returns whether the default browser action is prevented. | |
| void | preventPropagation (bool prevent=true) |
| Prevents event propagation. | |
| bool | propagationPrevented () const |
| Returns whether event propagation is prevented. | |
| void | ignoreBubbling (bool ignore=true) |
| Ignores bubbling events. | |
| bool | bubblingIgnored () const |
| Returns whether bubbling events are ignored. | |
| virtual Wt::Signals::connection | connect (WObject *target, WObject::Method method)=0 |
| Connects to a slot. | |
| template<class T , class V > | |
| Wt::Signals::connection | connect (T *target, void(V::*method)()) |
| Connects to a slot. | |
Public Member Functions inherited from Wt::SignalBase | |
| template<class T , class V > | |
| Wt::Signals::connection | connect (T *target, void(V::*method)()) |
| Connects to a slot. | |
Abstract base class of an event signal.
An event signal is directly associated with a user-interface generated event.
| bool Wt::EventSignalBase::bubblingIgnored | ( | ) | const |
Returns whether bubbling events are ignored.
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 |
Connects to a slot.
Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).
Implements Wt::SignalBase.
Reimplemented in Wt::JSignal< A >, Wt::JSignal< ::int64_t >, Wt::JSignal< ::uint64_t >, Wt::JSignal< A... >, Wt::JSignal< bool >, Wt::JSignal< double >, Wt::JSignal< double, double >, Wt::JSignal< int >, Wt::JSignal< int, int >, Wt::JSignal< int, int, int, int >, Wt::JSignal< int, int, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< long long >, Wt::JSignal< long long, bool >, Wt::JSignal< std::string >, Wt::JSignal< std::string, std::string >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< Wt::WGoogleMap::Coordinate >, Wt::JSignal< Wt::WTouchEvent >, and Wt::JSignal<>.
| bool Wt::EventSignalBase::defaultActionPrevented | ( | ) | const |
Returns whether the default browser action is prevented.
Ignores bubbling events.
An event bubbles when it is propagated to the ancestors of the event target. This prevents the signal from being emited if the target of the event is not the owner of the signal.
|
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::JSignal< A >, Wt::JSignal< ::int64_t >, Wt::JSignal< ::uint64_t >, Wt::JSignal< A... >, Wt::JSignal< bool >, Wt::JSignal< double >, Wt::JSignal< double, double >, Wt::JSignal< int >, Wt::JSignal< int, int >, Wt::JSignal< int, int, int, int >, Wt::JSignal< int, int, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< long long >, Wt::JSignal< long long, bool >, Wt::JSignal< std::string >, Wt::JSignal< std::string, std::string >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< Wt::WGoogleMap::Coordinate >, Wt::JSignal< Wt::WTouchEvent >, Wt::JSignal<>, and Wt::EventSignal< E >.
Returns the event name.
The event name is implementation-defined.
Prevents the default browser action.
Use this method to prevent the default browser action associated with this event.
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.