ui/ui/toolkit.h

branch
newapi
changeset 383
03599608d555
parent 379
958bae372271
equal deleted inserted replaced
382:de653b07050b 383:03599608d555
236 236
237 /* 237 /*
238 * next container object 238 * next container object
239 */ 239 */
240 UiObject *next; 240 UiObject *next;
241
242 /*
243 * obj destroy func
244 */
245 void (*destroy)(UiObject *obj);
246
247 /*
248 * reference counter
249 */
250 unsigned int ref;
241 }; 251 };
242 252
243 struct UiTabbedPane { 253 struct UiTabbedPane {
244 /* 254 /*
245 * native widget 255 * native widget
418 428
419 UIEXPORT void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata); 429 UIEXPORT void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata);
420 430
421 UIEXPORT void ui_context_destroy(UiContext *ctx); 431 UIEXPORT void ui_context_destroy(UiContext *ctx);
422 432
433 UIEXPORT void ui_object_ref(UiObject *obj);
434 UIEXPORT void ui_object_unref(UiObject *obj);
435
423 UIEXPORT void ui_onstartup(ui_callback f, void *userdata); 436 UIEXPORT void ui_onstartup(ui_callback f, void *userdata);
424 UIEXPORT void ui_onopen(ui_callback f, void *userdata); 437 UIEXPORT void ui_onopen(ui_callback f, void *userdata);
425 UIEXPORT void ui_onexit(ui_callback f, void *userdata); 438 UIEXPORT void ui_onexit(ui_callback f, void *userdata);
426 439
427 UIEXPORT void ui_main(); 440 UIEXPORT void ui_main();

mercurial