Mercurial > MadButterfly
comparison src/redraw_man.c @ 257:50d253d0fcba
Simple image loader and image shape.
- img_ldr.c is a simple image loader that rooted on a directory
specified when a loader instance been created.
- sh_image_t is corresponding shape of image tag in SVG.
- This changeset is still buggy. It need more testing.
- svg2code.py is not ready for image tag.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 15 Jan 2009 16:46:47 +0800 |
parents | f08b3ba9c1d8 |
children | 29acbd8a0dd0 |
comparison
equal
deleted
inserted
replaced
256:cac9ad3df633 | 257:50d253d0fcba |
---|---|
314 subject_set_monitor(rdman->root_coord->mouse_event, | 314 subject_set_monitor(rdman->root_coord->mouse_event, |
315 rdman->addrm_monitor); | 315 rdman->addrm_monitor); |
316 subject_add_observer(rdman->root_coord->mouse_event, | 316 subject_add_observer(rdman->root_coord->mouse_event, |
317 mouse_event_root_dummy, NULL); | 317 mouse_event_root_dummy, NULL); |
318 | 318 |
319 mb_prop_store_init(&rdman->props, rdman->pent_pool); | |
319 return OK; | 320 return OK; |
320 | 321 |
321 err: | 322 err: |
322 if(rdman->geo_pool) | 323 if(rdman->geo_pool) |
323 elmpool_free(rdman->geo_pool); | 324 elmpool_free(rdman->geo_pool); |
338 | 339 |
339 void redraw_man_destroy(redraw_man_t *rdman) { | 340 void redraw_man_destroy(redraw_man_t *rdman) { |
340 coord_t *coord, *saved_coord; | 341 coord_t *coord, *saved_coord; |
341 shape_t *shape, *saved_shape; | 342 shape_t *shape, *saved_shape; |
342 geo_t *member; | 343 geo_t *member; |
344 | |
345 mb_prop_store_destroy(&rdman->props); | |
343 | 346 |
344 free_free_objs(rdman); | 347 free_free_objs(rdman); |
345 free_objs_destroy(rdman); | 348 free_objs_destroy(rdman); |
346 | 349 |
347 coord = postorder_coord_subtree(rdman->root_coord, NULL); | 350 coord = postorder_coord_subtree(rdman->root_coord, NULL); |