wxEvent(3)
Hey bestie! π You're looking at the wxEvent(3) manual page from the Erlang module definitions. Let's get into it. β¨
β¨ NAME β¨
wxEvent β an event is a structure holding information about an event passed to a callback or member function. π
π DESCRIPTION π
So wxEvent used to be a multipurpose event object, and is an abstract base class for other event classes (see below). π¦
For more information about events, see the overview_events overview. β¨
See:
wxCommandEventwxMouseEvent
wxWidgets docs: wxEvent
π DATA TYPES π
wxEvent() :: wx:wx_object().
π FUNCTIONS π
getId(This)
getId(This) -> integer() when This :: wxEvent().
Returns the identifier associated with this event, such as a button command id. πβ¨
getSkipped(This)
getSkipped(This) -> boolean() when This :: wxEvent().
Returns true if the event handler should be skipped, false otherwise. π
getTimestamp(This)
getTimestamp(This) -> integer() when This :: wxEvent().
Gets the timestamp for the event. β°
The timestamp is the time in milliseconds since some fixed moment (not necessarily the standard Unix Epoch, so only differences between the timestamps and not their absolute values usually make sense). π°οΈ
Warning: wxWidgets returns a non-NULL timestamp only for mouse and key events (seewxMouseEventandwxKeyEvent). π
isCommandEvent(This)
isCommandEvent(This) -> boolean() when This :: wxEvent().
Returns true if the event is or is derived from wxCommandEvent else it returns false. β
Note: exists only for optimization purposes. π
resumePropagation(This, PropagationLevel)
resumePropagation(This, PropagationLevel) -> ok when This :: wxEvent(), PropagationLevel :: integer().
Sets the propagation level to the given value (for example returned from an earlier call to stopPropagation/1). π
shouldPropagate(This)
shouldPropagate(This) -> boolean() when This :: wxEvent().
Test if this event should be propagated or not, i.e. if the propagation level is currently greater than 0. π«Ά
skip(This, [Option])
skip(This, [Option]) -> ok when This :: wxEvent(), Option :: {skip, boolean()}.
This method can be used inside an event handler to control whether further event handlers bound to this event will be called after the current one returns. π
Without skip/2 (or equivalently if Skip(false) is used), the event will not be processed any more. If Skip(true) is called, the event processing system continues searching for a further handler function for this event, even though it has been processed already in the current handler. β¨
In general, it is recommended to skip all non-command events to allow the default handling to take place. The command events are, however, normally not skipped as usually a single command such as a button click or menu item selection must only be processed by one handler. π
stopPropagation(This)
stopPropagation(This) -> integer() when This :: wxEvent().
Stop the event from propagating to its parent window. π
Returns the old propagation level value which may be later passed to resumePropagation/2 to allow propagating the event again. π
That's the whole vibe, bestie! This page was brought to you by Ericsson AB β wx 2.6 β wxEvent(3). Stay iconic. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms