ui/common/types.h

changeset 140
c03c338a7dcf
parent 14
e2fd132ab781
child 141
cc2170ea05ad
equal deleted inserted replaced
139:dbde25a5bc53 140:c03c338a7dcf
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2014 Olaf Wintermann. All rights reserved. 4 * Copyright 2017 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
33 33
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 extern "C" { 35 extern "C" {
36 #endif 36 #endif
37 37
38 /*
39 UiObserver* ui_observer_new(ui_callback f, void *data);
40 UiObserver* ui_obsvlist_add(UiObserver *list, UiObserver *observer);
41 UiObserver* ui_add_observer(UiObserver *list, ui_callback f, void *data);
42 void ui_notify(UiObserver *observer, void *data);
43 void ui_notify_except(UiObserver *observer, UiObserver *exc, void *data);
44
45 38
46 UiList* ui_list_new(); 39 void uic_int_copy(UiInteger *from, UiInteger *to);
47 void* ui_list_first(UiList *list); 40 void uic_string_copy(UiString *from, UiString *to);
48 void* ui_list_next(UiList *list); 41 void uic_text_copy(UiText *from, UiText *to);
49 void* ui_list_get(UiList *list, int i); 42 void uic_range_copy(UiRange *from, UiRange *to);
50 int ui_list_count(UiList *list); 43 void uic_list_copy(UiList *from, UiList *to);
51 void ui_list_append(UiList *list, void *data); 44
52 void ui_list_prepend(UiList *list, void *data); 45 void uic_int_unbind(UiInteger *i);
53 void ui_list_addobsv(UiList *list, ui_callback f, void *data); 46 void uic_string_unbind(UiString *s);
54 void ui_list_notify(UiList *list); 47 void uic_text_unbind(UiText *t);
55 */ 48 void uic_range_unbind(UiRange *r);
49 void uic_list_unbind(UiList *l);
56 50
57 #ifdef __cplusplus 51 #ifdef __cplusplus
58 } 52 }
59 #endif 53 #endif
60 54

mercurial