Merge: app.nit on GNU/Linux: implement multiple windows support using a GtkStack
[nit.git] / lib / linux / ui.nit
index 6ab0777..23c1f91 100644 (file)
@@ -229,6 +229,17 @@ redef class Label
        redef fun text=(value) do native.text = (value or else "").to_s
 end
 
+redef class CheckBox
+       redef type NATIVE: GtkCheckButton
+       redef var native = new GtkCheckButton
+
+       redef fun text do return native.text
+       redef fun text=(value) do native.text = (value or else "").to_s
+
+       redef fun is_checked do return native.active
+       redef fun is_checked=(value) do native.active = value
+end
+
 redef class TextInput
        redef type NATIVE: GtkEntry
        redef var native = new GtkEntry