public function onDraw() { if ($this->window) { ncurses_wborder($this->window, 0, 0, 0, 0, 0, 0, 0, 0); ncurses_mvwaddstr($this->window, 0, 3, "[ x ]"); ncurses_wrefresh($this->window); } parent::onDraw(); }
public function addWindow(Widget $widget) { $widget->setParent($this); $this->children[] = $widget; }
public function pushWidget(Widget $widget) { $widget->setParent($this); $this->children[] = $widget; }