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