wxChildFocusEvent(3erl)

wxChildFocusEvent πŸŽ€

okay so this is the wxChildFocusEvent(3erl) page β€” the Erlang module definition, and it's literally all about the child focus event class. no cap, it's giving β€œparent window has feelings about focus” energy. πŸ’…

✨ NAME ✨

wxChildFocusEvent β€” functions for wxChildFocusEvent class. πŸ’–

πŸ’– DESCRIPTION πŸ’–

A child focus event gets sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later. slay focus-restoration arc. 🌈

Notice that child window is the direct child of the window receiving the event β€” vibe check, bestie. Use wxWindow:findFocus/0 to retrieve the window which is actually getting focus. 🫢

See: Overview events

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

wxWidgets docs: wxChildFocusEvent

πŸŽ€ EVENTS πŸŽ€

Use wxEvtHandler:connect/3 with wxChildFocusEventType to subscribe to events of this type. periodt. πŸ’…

πŸ¦‹ DATA TYPES πŸ¦‹

here's the type tea, bestie β€” literally the whole cast: 🧚

wxChildFocusEvent() = wx:wx_object()

wxChildFocus() =
    #wxChildFocus{type =
                      wxChildFocusEvent:wxChildFocusEventType()}

wxChildFocusEventType() = child_focus

πŸ‘‘ EXPORTS πŸ‘‘

getWindow

getWindow(This) -> wxWindow:wxWindow()

Types:

This = wxChildFocusEvent()

Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus. main character energy, honestly. πŸ‘‘

To get the actually focused control use wxWindow:findFocus/0. 🫢


mwah πŸ’‹ β€” footer tea: wxWidgets team + wx 2.2.2.1 + the wxChildFocusEvent(3erl) page tag. That's the source/version/page-tag situation from the footer, and there's no separate date line to spill. obsessed. πŸŽ€

πŸ“¦ where this page comes from