ui/common/types.c

changeset 141
cc2170ea05ad
parent 140
c03c338a7dcf
child 142
46448d38885c
equal deleted inserted replaced
140:c03c338a7dcf 141:cc2170ea05ad
275 to->update = from->update; 275 to->update = from->update;
276 to->obj = from->obj; 276 to->obj = from->obj;
277 } 277 }
278 278
279 279
280 void uic_int_save(UiInteger *i) {
281 i->value = i->get(i);
282 }
283
284 void uic_string_save(UiString *s) {
285 s->get(s);
286 }
287
288 void uic_text_save(UiText *t) {
289 t->get(t);
290 t->position(t);
291 }
292
293 void uic_range_save(UiRange *r) {
294 r->get(r);
295 }
296
297
280 void uic_int_unbind(UiInteger *i) { 298 void uic_int_unbind(UiInteger *i) {
281 i->value = i->get(i);
282 i->get = NULL; 299 i->get = NULL;
283 i->set = NULL; 300 i->set = NULL;
284 i->obj = NULL; 301 i->obj = NULL;
285 } 302 }
286 303
287 void uic_string_unbind(UiString *s) { 304 void uic_string_unbind(UiString *s) {
288 s->value = s->get(s);
289 s->get = NULL; 305 s->get = NULL;
290 s->set = NULL; 306 s->set = NULL;
291 s->obj = NULL; 307 s->obj = NULL;
292 } 308 }
293 309
294 void uic_text_unbind(UiText *t) { 310 void uic_text_unbind(UiText *t) {
295 t->value = t->get(t);
296 t->set = NULL; 311 t->set = NULL;
297 t->get = NULL; 312 t->get = NULL;
298 t->getsubstr = NULL; 313 t->getsubstr = NULL;
299 t->insert = NULL; 314 t->insert = NULL;
300 t->setposition = NULL; 315 t->setposition = NULL;
304 t->remove = NULL; 319 t->remove = NULL;
305 t->obj = NULL; 320 t->obj = NULL;
306 } 321 }
307 322
308 void uic_range_unbind(UiRange *r) { 323 void uic_range_unbind(UiRange *r) {
309 r->value = r->get(r);
310 r->get = NULL; 324 r->get = NULL;
311 r->set = NULL; 325 r->set = NULL;
312 r->setextent = NULL; 326 r->setextent = NULL;
313 r->setrange = NULL; 327 r->setrange = NULL;
314 r->obj = NULL; 328 r->obj = NULL;

mercurial