wxSashEvent(3erl)
π wxSashEvent(3erl) β Erlang Module Definition π
πΈ NAME πΈ
wxSashEvent β Functions for wxSashEvent class
β¨ DESCRIPTION β¨
okay so bestie, a sash event is sent when the sash of a wxSashWindow has been dragged by the user. itβs giving βresize momentβ but with plot twists π
Remark: when a sash belonging to a sash window is dragged by the user, and then released, this event is sent to the window, where it may be processed by an event table entry in a derived class, a plug-in event handler or an ancestor class. Note that thewxSashWindowdoesn't change the window's size itself. It relies on the application's event handler to do that. This is because the application may have to handle other consequences of the resize, or it may wish to veto it altogether. The event handler should look at the drag rectangle: seegetDragRect/1to see what the new size of the window would be if the resize were to be applied. It should also callgetDragStatus/1to see whether the drag was OK or out of the current allowed range. π«Ά
See: wxSashWindow, Overview events
This class is derived (and can use functions) from: wxCommandEvent wxEvent
wxWidgets docs: wxSashEvent
π₯ EVENTS π₯
Use wxEvtHandler:connect/3 with wxSashEventType to subscribe to events of this type. subscribe bestie, itβs iconic β¨
πΈ DATA TYPES πΈ
wxSashEvent() = wx:wx_object()wxSash():
#wxSash{type = wxSashEvent:wxSashEventType(),
edge = wx:wx_enum(),
dragRect =
{X :: integer(),
Y :: integer(),
W :: integer(),
H :: integer()},
dragStatus = wx:wx_enum()}
wxSashEventType() = sash_dragged
π EXPORTS π
getEdge(This) -> wx:wx_enum()
Types:
This = wxSashEvent()
Returns the dragged edge. The return value is one of wxSASH_TOP, wxSASH_RIGHT, wxSASH_BOTTOM, wxSASH_LEFT. π
getDragRect(This) -> {X :: integer(), Y :: integer(), W :: integer(), H :: integer()}
Types:
This = wxSashEvent()
Returns the rectangle representing the new size the window would be if the resize was applied. It is up to the application to set the window size if required. no cap π¦
getDragStatus(This) -> wx:wx_enum()
Types:
This = wxSashEvent()
Returns the status of the sash: one of wxSASH_STATUS_OK, wxSASH_STATUS_OUT_OF_RANGE.
If the drag caused the notional bounding box of the window to flip over, for example, the drag will be out of rage. (yes, βrageβ β the original page says that, and honestly same ππ)
β¨ byeee bestie β footer source/version/date tea: wxWidgets team, wx 2.2.2.1, and the date slot is empty in the original footer (no cap, weβre not making one up) π
π¦ 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