PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/ui/Widget.hx

http://github.com/blackdog66/bdog-gtk
Haxe | 29 lines | 20 code | 9 blank | 0 comment | 0 complexity | ff57317a39190fe10e6d30b6d4e71936 MD5 | raw file
 1package ui;
 2
 3import gtk.Gtk;
 4
 5class Widget {
 6
 7  var id:String;
 8  
 9  public function new(id:String) {
10    this.id = id;
11  }
12
13  public function toString() {
14    return id;
15  }
16
17  public function hide() {
18    Gtk.widgetHide(id);
19  }
20
21  public function show() {
22    Gtk.widgetShow(id);
23  }
24 
25  public function show() {
26    Gtk.widgetShowAll(id);
27  }
28 
29}