---
name: "wxMoveEvent"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/wxMoveEvent"
---

# wxMoveEvent(3erl)

Functions for wxMoveEvent class

## NAME

wxMoveEvent - Functions for wxMoveEvent class

## DESCRIPTION

A move event holds information about window position change.

These events are currently generated for top level (see *wxTopLevelWindow*) windows in all ports, but are not generated for the child windows in wxGTK.

See: {X,Y}, Overview events

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

wxWidgets docs: wxMoveEvent

## EVENTS

Use *wxEvtHandler:connect/3* with *wxMoveEventType* to subscribe to events of this type.

## DATA TYPES

```
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
```

## EXPORTS

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

Types:

This = wxMoveEvent()\

Returns the position of the window generating the move change event.

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

Types:

This = wxMoveEvent()\
