/src/ui/Label.hx
http://github.com/blackdog66/bdog-gtk · Haxe · 24 lines · 18 code · 6 blank · 0 comment · 0 complexity · 3f089cc92c47d157361a085b3b26aa76 MD5 · raw file
- package ui;
- import gtk.Model;
- import gtk.Gtk;
- import gtk.Glade;
- class Label extends Widget {
- public function new(id:String) {
- super(id);
- }
-
- public static function
- fromGlade(glade:GladeXml,name:String,fn:Label->Void) {
- Ui.getGladeWidget(glade,name,function(w) {
- fn(new Label(w));
- });
- }
-
- public function label(s:String) {
- Gtk.labelSetText(id,s);
- }
- }