ui/common/wrapper.c

changeset 621
84b351712c19
parent 618
2b3ac1611c64
child 640
c948819bdfb2
equal deleted inserted replaced
620:174c11734dad 621:84b351712c19
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "wrapper.h" 29 #include "wrapper.h"
30 30
31 /* ---------------------------- UiObject ---------------------------- */
32
33 UiContext* ui_object_get_context(UiObject *obj) {
34 return obj->ctx;
35 }
36
37 void* ui_object_get_windowdata(UiObject *obj) {
38 return obj->window;
39 }
40
41 void ui_object_set_windowdata(UiObject *obj, void *windowdata) {
42 obj->window = windowdata;
43 }
44
45
46 /* ---------------------------- UiEvent ---------------------------- */
47
31 UiObject* ui_event_get_obj(UiEvent *event) { 48 UiObject* ui_event_get_obj(UiEvent *event) {
32 return event->obj; 49 return event->obj;
33 } 50 }
34 51
35 void* ui_event_get_document(UiEvent *event) { 52 void* ui_event_get_document(UiEvent *event) {

mercurial