application/demo_bindings.c

changeset 958
749a8a36d74b
parent 915
ddbbceb8c3a5
child 959
4b2202df31ec
equal deleted inserted replaced
957:774ee4d7bb1f 958:749a8a36d74b
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 #ifndef UI_WIN32 35 #if !defined(UI_WIN32) && !defined(UI_QT)
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
178 int main(int argc, char **argv) { 183 int main(int argc, char **argv) {
179 ui_init(NULL, argc, argv); 184 ui_init(NULL, argc, argv);
180 ui_onstartup(application_startup, NULL); 185 ui_onstartup(application_startup, NULL);
181 ui_main(); 186 ui_main();
182 return 0; 187 return 0;
183 } 188 }
189 #endif
184 190
185 #else 191 #else
186 192
187 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { 193 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
188 return 0; 194 return 0;

mercurial