function setSize()
    {
        $oldX = $this->sizeX;
        $oldY = $this->sizeY;

        $args = func_get_args();

        if (!empty($args)) $this->sizeX = array_shift($args);

        if (!empty($args)) $this->sizeY = array_shift($args);

        $this->onResize($oldX, $oldY);
    }