wxScrollWinEvent(3erl)
π wxScrollWinEvent (3erl) β the Erlang module definition, bestie edition π
okay so real talk: this page is literally the wxScrollWinEvent module, straight out of the Erlang docs (and it's living in the 3erl manual, in case you were wondering π). It's the whole "Functions for wxScrollWinEvent class" situation. Sit down, grab a strawberry π, let's go.
β¨ DESCRIPTION β¨
A scroll event is basically a little messenger pigeon ποΈ that shows up holding info about events sent from scrolling windows. That's it, that's the whole vibe.
lowkey important: you can use the EVT_SCROLLWIN* macros for intercepting scroll window events from the receiving window. iykyk π
See also: wxScrollEvent, Overview events β go read those too, fr fr.
Also, this class is derived (and can use functions) from: wxEvent. Like, it inherited all the family drama and the family functions. π«Ά
And for the extra curious: wxWidgets docs: wxScrollWinEvent.
π EVENTS π
Use wxEvtHandler:connect/3 with wxScrollWinEventType to subscribe to events of this type. That's the whole subscription arc β main character energy, no cap. β
π¦ DATA TYPES π¦
wxScrollWinEvent()=wx:wx_object()wxScrollWin()=
#wxScrollWin{type = wxScrollWinEvent:wxScrollWinEventType(),
commandInt = integer(),
extraLong = integer()}
wxScrollWinEventType()=
scrollwin_top | scrollwin_bottom | scrollwin_lineup |
scrollwin_linedown | scrollwin_pageup | scrollwin_pagedown |
scrollwin_thumbtrack | scrollwin_thumbrelease
look at that list. eight whole types. slay. πβ¨
π₯ EXPORTS π₯
getOrientation(This) -> integer()
Types:
This = wxScrollWinEvent()
Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar. literally just "which way does it go" β horizontal or vertical, pick one bestie π§
getPosition(This) -> integer()
Types:
This = wxScrollWinEvent()
Returns the position of the scrollbar for the thumb track and release events. π
heads up though: this field can't be used for the other events β you need to query the window itself for the current position in that case. no shortcuts, go ask the window directly π
okay that's the whole page, you ate that ππ
~ cute sign-off ~ this iconic lil doc was brought to you by the wxWidgets team, for version wx 2.2.2.1 β and yes, the page tag at the bottom is still wxScrollWinEvent(3erl), periodt. ππ
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms