src/Element/Traits/Positionable.php
protected function getPosition()
    {
        if ($this->x and $this->y) {
            return new wxPoint($this->x, $this->y);
        }

        return wxDefaultPosition;
    }
protected function getPosition()
    {
        if ($this->x and $this->y) {
            return new wxPoint($this->x, $this->y);
        }

        return wxDefaultPosition;
    }
Create a new wxPoint object from the x/y position

@return wxPoint