Wt  4.14.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::EventSignalBase Class Referenceabstract

Abstract base class of an event signal. More...

#include <WSignal.h>

Inheritance diagram for Wt::EventSignalBase:
[legend]

Public Member Functions

const charname () 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.
 

Detailed Description

Abstract base class of an event signal.

An event signal is directly associated with a user-interface generated event.

Member Function Documentation

◆ bubblingIgnored()

bool Wt::EventSignalBase::bubblingIgnored ( ) const

Returns whether bubbling events are ignored.

See also
ignoreBubbling()

◆ connect() [1/2]

template<class T , class V >
Wt::Signals::connection Wt::SignalBase::connect ( T target,
void(V::*)()  method 
)

Connects to a slot.

Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).

◆ connect() [2/2]

virtual Wt::Signals::connection Wt::SignalBase::connect ( WObject target,
WObject::Method  method 
)
virtual

◆ defaultActionPrevented()

bool Wt::EventSignalBase::defaultActionPrevented ( ) const

Returns whether the default browser action is prevented.

See also
preventDefaultAction()

◆ ignoreBubbling()

void Wt::EventSignalBase::ignoreBubbling ( bool  ignore = true)

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.

See also
preventPropagation()

◆ isConnected()

bool Wt::EventSignalBase::isConnected ( ) const
overridevirtual

◆ name()

const char * Wt::EventSignalBase::name ( ) const

Returns the event name.

The event name is implementation-defined.

◆ preventDefaultAction()

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.

See also
preventPropagation()

◆ preventPropagation()

void Wt::EventSignalBase::preventPropagation ( bool  prevent = true)

Prevents event propagation.

Use this method to prevent that the event propagates further to its ancestors.

See also
preventDefaultAction()

◆ propagationPrevented()

bool Wt::EventSignalBase::propagationPrevented ( ) const

Returns whether event propagation is prevented.

See also
preventPropagation()