wxMoveEvent(3erl)

πŸ’– wxMoveEvent(3erl) β€” Erlang Module Definition πŸ’–

🌸 NAME 🌸

okay so bestie, this page is literally about wxMoveEvent β€” Functions for wxMoveEvent class. that's the name section and it ate. πŸ’…

✨ DESCRIPTION ✨

a move event holds information about window position change. periodt.

  • these events are currently generated for top level (see wxTopLevelWindow) windows in all ports, but are not generated for the child windows in wxGTK. yes, that's the whole plot twist. 😭
  • See: {X,Y}, Overview events.
  • this class is derived (and can use functions) from: wxEvent. inheritance slay.
  • wxWidgets docs: wxMoveEvent.

πŸŽ‰ EVENTS πŸŽ‰

use wxEvtHandler:connect/3 with wxMoveEventType to subscribe to events of this type. that's the subscription ritual, no cap. πŸ”₯

🧚 DATA TYPES 🧚

here's the whole type situation, bestie:

wxMoveEvent() = wx:wx_object()

wxMove() =
    #wxMove{type = wxMoveEvent:wxMoveEventType(),
            pos = {X :: integer(), Y :: integer()},
            rect =
                {X :: integer(),
                 Y :: integer(),
                 W :: integer(),
                 H :: integer()}}

wxMoveEventType() = move

so wxMoveEventType() is literally move β€” lowercase, iconic, no notes. slay 🌈

πŸš€ EXPORTS πŸš€

πŸ’– getPosition(This) πŸ’–

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

Types:

This = wxMoveEvent()

returns the position of the window generating the move change event. get that position, bestie πŸ“βœ¨

πŸ¦‹ getRect(This) πŸ¦‹

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

Types:

This = wxMoveEvent()

that's the signature + type the page gives us β€” no extra description lore here, and that's okay. 🫢


mwah πŸ’‹ β€” footer source/version/date check: wxWidgets team. β€’ version wx 2.2.2.1 β€’ wxMoveEvent(3erl) β€’ date line: not listed, bestie. πŸŽ€

πŸ“¦ where this page comes from