public function getSize() { return $this->window->getSize(); }
/** * Makes a window that will be in center of the screen * @param Window $parentWindow A window that will be major for new window * @param integer $columns New window columns count * @param integer $row New window rows count * @return Window A new window that centered of parent window */ public static function createCenteredOf(Window $parentWindow, $columns, $rows) { $parentWindow->getSize($max_columns, $max_rows); return new Window($columns, $rows, $max_columns / 2 - $columns / 2, $max_rows / 2 - $rows / 2); }