wxShowEvent(3erl)

πŸ¦‹ wxShowEvent πŸ¦‹

okay bestie, we're on the wxShowEvent page from the Erlang manual pages β€” manual name 3erl, and yes, this is an Erlang module definition, folded in right here like a little name tag so you know the vibe. ✨ window appears, window dips out, event says hi ✨


🌸 NAME 🌸

wxShowEvent β€” Functions for wxShowEvent class. iconic, honestly.

✨ DESCRIPTION ✨

So basically: this is an event that gets sent when the window is shown or hidden. It's triggered by calls to wxWindow:show/2, and also by any user action that shows a previously hidden window or does the reverse β€” if the current platform and/or window manager allows it. πŸ‘€

⚠️ Important vibe check: the event is not triggered when the application is iconized (minimized) or restored under wxMSW. That's not me forgetting to fire it; that's just the rule.

This class is derived (and can use functions) from: wxEvent.

See: Overview events, wxWindow:show/2, wxWindow:isShown/1.

wxWidgets docs: wxShowEvent.

πŸŽ€ EVENTS πŸŽ€

Use wxEvtHandler:connect/3 with wxShowEventType to subscribe to events of this type. slay, that's the whole subscription situation. πŸ’…

🧚 DATA TYPES 🧚

wxShowEvent() = wx:wx_object()

wxShow() =
    #wxShow{type = wxShowEvent:wxShowEventType(),
            show = boolean()}

wxShowEventType() = show

πŸ‘‘ EXPORTS πŸ‘‘

setShow(This, Show) -> ok

setShow(This, Show) -> ok

Types:

This = wxShowEvent()
Show = boolean()

Sets whether the window was shown or hidden. simple as that. 🫢

isShown(This) -> boolean()

isShown(This) -> boolean()

Types:

This = wxShowEvent()

Return true if the window has been shown, false if it has been hidden. no cap. βœ…


Footer sign-off: huge thank you to the wxWidgets team, version wx 2.2.2.1, page wxShowEvent(3erl) β€” and the footer didn't give us a date, so we're not inventing one. byeee bestie πŸ’œ

πŸ“¦ where this page comes from