wxMaximizeEvent(3erl)

πŸŽ€ NAME πŸŽ€

bestie, welcome to the wxMaximizeEvent page from the 3erl manual β€” Functions for wxMaximizeEvent class. yes, we're doing this, and we're doing it adorably πŸ’…


🌸 DESCRIPTION 🌸

okay so wxMaximizeEvent is the event that gets sent when a top level window is maximized. it's giving "window went full-screen mode" energy ✨

but important: it is not sent when the window is restored to its original size after it had been maximized β€” in that case, only a normal wxSizeEvent is generated. no cap, that's the rule 😌

and here's the lowkey catch: currently this event is only generated in the wxMSW, wxGTK and wxOSX/Cocoa ports, so portable programs should only rely on receiving wxEVT_SIZE and not necessarily this event when the window is maximized. fr fr, don't build your whole vibe around it if you want portability 🫢

See: Overview events, wxTopLevelWindow:maximize/2, wxTopLevelWindow:isMaximized/1

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

wxWidgets docs: wxMaximizeEvent


✨ EVENTS ✨

use wxEvtHandler:connect/3 with wxMaximizeEventType to subscribe to events of this type. that's the whole move, icon behavior only πŸ‘‘


πŸ¦‹ DATA TYPES πŸ¦‹

wxMaximizeEvent() = wx:wx_object()

wxMaximize() =
    #wxMaximize{type = wxMaximizeEvent:wxMaximizeEventType()}

wxMaximizeEventType() = maximize

later, bestie πŸ’– β€” shoutout to the wxWidgets team for the source, version wx 2.2.2.1, and the wxMaximizeEvent(3erl) page. the footer isn't giving us a separate date, so we're not inventing one πŸ’€πŸŽ€

πŸ“¦ where this page comes from