wxSashWindow(3)
β¨ wxSashWindow β¨
okay bestie, sit down, hydrate, because we're talking about wxSashWindow β an Erlang module definition, gen-z certified, and honestly? iconic. it's a manual page from the wx docs (version 2.6, Ericsson AB energy, which we'll get to π
) and it's literally about a window that lets you drag its edges to resize it. main character behaviour fr fr.
πΈ NAME πΈ
wxSashWindow β a window where any of its edges can have a sash, and you can drag that sash to resize the window. yes, like dragging a curtain edge. slay.
π¦ DESCRIPTION π¦
so here's the vibe: the actual content window is not made by this class. you, the application, create it yourself, as a child of wxSashWindow. this one is just the draggable frame situation around it, no cap.
when someone drags the sash, the window β or one of its ancestors β gets notified through a wxSashEvent notification. that's the whole gossip pipeline. π
π Styles π
this class supports these styles, no more no less:
wxSW_3Dβ draws a 3D effect sash and border. both. overachiever.wxSW_3DSASHβ just the 3D effect sash.wxSW_3DBORDERβ just the 3D effect border.wxSW_BORDERβ a thin black border. minimal. chic. π€
See also:
wxSashEventwxSashLayoutWindow- Overview events
and for the family tree moment β this class is derived, and can use functions, from:
wxWindowwxEvtHandler
wxWidgets docs: wxSashWindow
β Events β
event types emitted from this class:
sash_dragged
that's the one. that's the event. when the sash gets dragged, you'll know. π
π« DATA TYPES π«
wxSashWindow() :: wx:wx_object().
π₯ FUNCTIONS π₯
destroy(This :: wxSashWindow()) -> ok.
destroys the object. goodbye, farewell, you served sash. π
destroy(This :: wxSashWindow()) -> ok.
getMaximumSizeX(This) -> integer() when This :: wxSashWindow().
gets the maximum window size in the x direction. horizontal ceiling, bestie.
getMaximumSizeX(This) -> integer() when This :: wxSashWindow().
getMaximumSizeY(This) -> integer() when This :: wxSashWindow().
gets the maximum window size in the y direction. vertical ceiling.
getMaximumSizeY(This) -> integer() when This :: wxSashWindow().
getMinimumSizeX(This) -> integer() when This :: wxSashWindow().
gets the minimum window size in the x direction. the floor, horizontally.
getMinimumSizeX(This) -> integer() when This :: wxSashWindow().
getMinimumSizeY(This) -> integer() when This :: wxSashWindow().
gets the minimum window size in the y direction. the floor, vertically.
getMinimumSizeY(This) -> integer() when This :: wxSashWindow().
getSashVisible(This, Edge) -> boolean()
returns true if a sash is visible on the given edge, false otherwise. simple as.
getSashVisible(This, Edge) -> boolean()
when
This :: wxSashWindow(), Edge :: wx:wx_enum().
See: setSashVisible/3
new() -> wxSashWindow().
default ctor. the "no thoughts head empty" constructor. π«Ά
new() -> wxSashWindow().
new(Parent, [Option]) -> wxSashWindow()
constructs a sash window, which can be a child of a frame, a dialog, or any other non-control window. yes, non-control. pls respect the boundary.
new(Parent, [Option]) -> wxSashWindow()
when
Parent :: wxWindow:wxWindow(),
Option ::
{id, integer()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
setMaximumSizeX(This, Min) -> ok
sets the maximum window size in the x direction. (yes the arg is literally named Min, that's the original's business, not ours π)
setMaximumSizeX(This, Min) -> ok
when This :: wxSashWindow(), Min :: integer().
setMaximumSizeY(This, Min) -> ok
sets the maximum window size in the y direction. same Min situation. same slay.
setMaximumSizeY(This, Min) -> ok
when This :: wxSashWindow(), Min :: integer().
setMinimumSizeX(This, Min) -> ok
sets the minimum window size in the x direction.
setMinimumSizeX(This, Min) -> ok
when This :: wxSashWindow(), Min :: integer().
setMinimumSizeY(This, Min) -> ok
sets the minimum window size in the y direction.
setMinimumSizeY(This, Min) -> ok
when This :: wxSashWindow(), Min :: integer().
setSashVisible(This, Edge, Visible) -> ok
call this one to make a sash visible or invisible on a particular edge. toggle era. β¨
setSashVisible(This, Edge, Visible) -> ok
when
This :: wxSashWindow(),
Edge :: wx:wx_enum(),
Visible :: boolean().
See: getSashVisible/2
π quick reminder bestie: the content window is yours to create as a child, and drag notifications go to the window or an ancestor via wxSashEvent. don't forget to actually listen, or the drag just vibes into the void.
okay that's the whole page, we ate and left no crumbs π
this lil masterpiece is brought to you by Ericsson AB, running wx 2.6, and it's wxSashWindow(3) from the wx docs β mwah, take care of her π
β¨
π¦ 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