wxMoveEvent(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸŽ€ NAME πŸŽ€

wxMoveEvent β€” a move event holds information about window position change. That's it, that's the whole vibe bestie πŸ’…


✨ DESCRIPTION ✨

Okay so listen. These events? Right now they get generated for top level windows (peep wxTopLevelWindow) in all ports. Slay. But β€” and this is the messy part β€” they are not generated for the child windows in wxGTK. Not there. Not happening. Don't come for me, that's just how it is 😭

See also:

  • {X,Y}
  • Overview events

This class is derived, and can use functions, from:

  • wxEvent

wxWidgets docs: wxMoveEvent

Events

To subscribe to events of this type, use wxEvtHandler:connect/3 with wxMoveEventType. That's the whole ritual, go off πŸ‘‘


πŸ’– DATA TYPES πŸ’–

  • wxMove() :: #wxMove{}. β€” yeah that's the record, iconic ✨
  • wxMoveEvent() :: wx:wx_object(). β€” the event object itself, she's an object fr fr
  • wxMoveEventType() :: move. β€” the type tag, literally just move. Short. Sweet. Periodt πŸ’…

πŸ¦‹ FUNCTIONS πŸ¦‹

getPosition(This) -> {X :: integer(), Y :: integer()}

getPosition(This) -> {X :: integer(), Y :: integer()}
                         when This :: wxMoveEvent().

Returns the position of the window generating the move change event. So like, the {X, Y} of the lil window that moved. Obsessed with her 🫢

getRect(This) -> {X :: integer(), Y :: integer(), W :: integer(), H :: integer()}

getRect(This) ->
                 {X :: integer(),
                  Y :: integer(),
                  W :: integer(),
                  H :: integer()}
                 when This :: wxMoveEvent().

Yeah bestie, the original docs gave us the signature and then just… nothing. No description. A whole mystery. The signature is all we got and all we're passing along, no cap β€” so I'm not gonna make up what she does πŸ™ˆ


Heads up: the wxGTK child-window thing from up top? Still true. Not a drill. Lowkey important if you're out here wondering why your child windows are silent πŸ’€

That's the whole page!! This icon was brought to you by Ericsson AB, rocking wx 2.6 β€” and yeah, this fine piece of documentation is the wxMoveEvent(3) page. Byee, go move some windows around βœ¨πŸŒˆπŸ’–

πŸ“¦ where this page comes from