Ejemplo n.º 1
0
 public function getSize()
 {
     return $this->window->getSize();
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }