Mercurial > MadButterfly
view nodejs/shapes.m4 @ 1342:972d749b9656
Move component_manager to a separated object.
- component_manager is a mixin for domview.
- domview inherit component_manager to mixing-in component_manager.
- There is no boundary between component_manager and domview, hard
to be managed and reused.
- component_manager is a separated object that hold a reference to
corresponding domview.
- domview delegate attribute accessing to component_manager object to
expose attributes and methods of component_manager. (__getattr__())
- component_manager is still a mix-in of domview.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 08 Feb 2011 13:05:07 +0800 |
parents | 2b492008ce26 |
children |
line wrap: on
line source
define([PROJ_PREFIX], [xnjsmb_auto_])dnl dnl STRUCT([shape], [shape_t], [ACCESSOR([stroke_width], [xnjsmb_shape_stroke_width_get], [xnjsmb_shape_stroke_width_set])], [METHOD([show], [xnjsmb_shape_show], (SELF), 0, []), METHOD([hide], [xnjsmb_shape_hide], (SELF), 0, []), METHOD([remove], [xnjsmb_shape_remove], (SELF), 0, [])]) STRUCT([path], [shape_t], [], [], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([stext], [shape_t], [], [METHOD([set_text], [xnjsmb_sh_stext_set_text], (SELF, STR([txt])), 1, []), METHOD([set_style], [xnjsmb_sh_stext_set_style], (SELF, ARRAY([blks]), ERR), 1, [])], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([image], [shape_t], [], [], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) STRUCT([rect], [shape_t], [], [METHOD([set], [xnjsmb_sh_rect_set], (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h), NUMBER(rx), NUMBER(ry)), 6, [])], (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))