Example #1
0
 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();
 }
Example #2
0
 public function addWindow(Widget $widget)
 {
     $widget->setParent($this);
     $this->children[] = $widget;
 }
Example #3
0
 public function pushWidget(Widget $widget)
 {
     $widget->setParent($this);
     $this->children[] = $widget;
 }