wxScrollWinEvent(3)
π wxScrollWinEvent π
okay bestie, so this is the wxScrollWinEvent page from the Erlang module docs β that's the Erlang Module Definition manual, section 3, iykyk. it's all about the event that carries info about stuff happening in scrolling windows. let's get into it π«Ά
β¨ NAME β¨
wxScrollWinEvent β a scroll event holds information about events sent from scrolling windows. that's it, that's the vibe. π
π¦ DESCRIPTION π¦
so like, heads up: you can use the EVT_SCROLLWIN* macros for intercepting scroll window events from the receiving window. keep that in your back pocket, fr fr.
See:
wxScrollEvent- Overview events
Also, this class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxScrollWinEvent
πΈ Events πΈ
Use wxEvtHandler:connect/3 with wxScrollWinEventType to subscribe to events of this type. that's the whole ritual, no cap. β¨
π DATA TYPES π
wxScrollWin() :: #wxScrollWin{}.wxScrollWinEvent() :: wx:wx_object().- ```erlang wxScrollWinEventType() :: scrollwin_top | scrollwin_bottom | scrollwin_lineup | scrollwin_linedown | scrollwin_pageup | scrollwin_pagedown | scrollwin_thumbtrack | scrollwin_thumbrelease.
look at all those atoms. iconic. π
---
# π
FUNCTIONS π
- **`getOrientation(This) -> integer() when This :: wxScrollWinEvent().`**
Returns `wxHORIZONTAL` or `wxVERTICAL`, depending on the orientation of the scrollbar. two options, pick your fighter. π§
- **`getPosition(This) -> integer() when This :: wxScrollWinEvent().`**
Returns the position of the scrollbar for the thumb track and release events.
> β οΈ Note that this field can't be used for the other events, you need to query the window itself for the current position in that case. literally do not try it for the other events, bestie, it's giving undefined energy π ask the window instead.
---
that's the whole page bestie, every flag and atom accounted for, nothing skipped, periodt. π
this deluxe tour was brought to you by **Ericsson AB**, version **wx 2.6**, and the date stamp on the original `wxScrollWinEvent(3)` footer β same page, same facts, way more sparkle. πβ¨π¦πΈπ
π¦ 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