application/main.c

changeset 101
1c943d43fa81
parent 99
ea1a2d5de765
child 102
2988f00ed9d6
--- a/application/main.c	Sun Jan 17 19:19:28 2016 +0100
+++ b/application/main.c	Wed Jan 20 11:35:01 2016 +0100
@@ -43,7 +43,7 @@
     printf("button clicked\n");
     fflush(stdout);
 }
-
+/*
 void draw(UiEvent *event, UiGraphics *g, void *data) {
     int width = g->width;
     int height = g->height;
@@ -63,6 +63,7 @@
     
     ui_text_free(text);
 }
+*/
 
 void click(UiEvent *event, void *data) {
     UiMouseEvent *me = event->eventdata;
@@ -92,22 +93,24 @@
     //ui_mouse_handler(obj, w, click, NULL);
     
     ui_grid_sp(obj, 40, 4, 4);
+    
     ui_button(obj, "OK", NULL, NULL);
     ui_button(obj, "Google", NULL, NULL);
     ui_textfield(obj, NULL);
     ui_newline(obj);
     
     ui_button(obj, "OK", NULL, NULL);
-    ui_space(obj);
-    ui_textfield(obj, NULL);
     ui_newline(obj);
     
     ui_vbox(obj);
     ui_button(obj, "txt", NULL, NULL);
+    ui_textfield(obj, NULL);
+    ui_space(obj);
     ui_end(obj);
     ui_layout_hexpand(obj, TRUE);
     ui_layout_vexpand(obj, TRUE);
     ui_textarea(obj, NULL);
+    ui_button(obj, "BTN1", NULL, NULL);
     
     ui_end(obj);
     

mercurial