application/demo_bindings.c

changeset 959
4b2202df31ec
parent 958
749a8a36d74b
child 969
7385c26d998d
equal deleted inserted replaced
958:749a8a36d74b 959:4b2202df31ec
30 30
31 #include <stdio.h> 31 #include <stdio.h>
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <string.h> 33 #include <string.h>
34 34
35 #if !defined(UI_WIN32) && !defined(UI_QT) 35 #if !defined(UI_WIN32)
36 36
37 Document* document_create(int id) { 37 Document* document_create(int id) {
38 Document* doc = ui_document_new(sizeof(Document)); 38 Document* doc = ui_document_new(sizeof(Document));
39 UiContext *ctx = ui_document_context(doc); 39 UiContext *ctx = ui_document_context(doc);
40 40
173 173
174 #endif 174 #endif
175 175
176 #ifndef UI_WIN32 176 #ifndef UI_WIN32
177 177
178 #ifdef UI_QT
179 int main(int argc, char **argv) {
180 return 0;
181 }
182 #else
183 int main(int argc, char **argv) { 178 int main(int argc, char **argv) {
184 ui_init(NULL, argc, argv); 179 ui_init(NULL, argc, argv);
185 ui_onstartup(application_startup, NULL); 180 ui_onstartup(application_startup, NULL);
186 ui_main(); 181 ui_main();
187 return 0; 182 return 0;
188 } 183 }
189 #endif
190 184
191 #else 185 #else
192 186
193 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { 187 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
194 return 0; 188 return 0;

mercurial