src/Element/Traits/Sizable.php
protected function getSize()
    {
        if ($this->width and $this->height) {
            return new wxSize($this->width, $this->height);
        }

        return wxDefaultSize;
    }
protected function getSize()
    {
        if ($this->width and $this->height) {
            return new wxSize($this->width, $this->height);
        }

        return wxDefaultSize;
    }
Create a wxSize object from the width/height

@return wxSize