application/demo_bindings.c

changeset 873
78853bfc47cf
parent 872
1e34a27e016d
child 882
75de79b155e3
equal deleted inserted replaced
872:1e34a27e016d 873:78853bfc47cf
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "demo_bindings.h" 29 #include "demo_bindings.h"
30 30
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <string.h>
31 34
35 #ifndef UI_WIN32
32 36
33 Document* document_create(int id) { 37 Document* document_create(int id) {
34 Document* doc = ui_document_new(sizeof(Document)); 38 Document* doc = ui_document_new(sizeof(Document));
35 UiContext *ctx = ui_document_context(doc); 39 UiContext *ctx = ui_document_context(doc);
36 40
109 113
110 114
111 ui_show(obj); 115 ui_show(obj);
112 } 116 }
113 117
118 #endif
114 119
115 #ifndef UI_WIN32 120 #ifndef UI_WIN32
116 121
117 int main(int argc, char **argv) { 122 int main(int argc, char **argv) {
118 ui_init(NULL, argc, argv); 123 ui_init(NULL, argc, argv);

mercurial