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