From: Carsten H. (T. R. <ra...@ra...> - 2004-04-30 03:50:03
|
On Thu, 29 Apr 2004 16:33:24 -0700 (PDT) oberonx <gtk...@ya...> babbled: > I've been able to export the following functions: > > * Direction:get_drag_dir(part_id) > * get_drag(part_id, &Float:dx, &Float:&dy) > * set_drag(part_id, Float:dx, Float:dy) > * text_set(part_id, str[]) > * text_get(part_id, dst[], maxlen) > * get_min_size(w, h) > * get_max_size(w, h) > * set_color_class(class[], r, g, b, a) > * get_color_class(class[], &r, &g, &b, &a) > * set_text_class(class[], font[], Float:size) > * get_text_class(class[], font[], &Float:size) > * get_drag_step(part_id, &Float:dx, &Float:&dy) > * set_drag_step(part_id, Float:dx, Float:dy) > * get_drag_page(part_id, &Float:dx, &Float:&dy) > * set_drag_page(part_id, Float:dx, Float:dy) oh cool! great! btw. did you do the get_* functions properly and test them? dealing with references in small is a bit of a pain... :) excellent. did you mean to send a patch? nothng is attached. > As for the following others, are there existing > utility functions in edje, or do these need to be > written as well? well some can be done with evas functions (get_mouse() for example) - but utility functions would need to be written. > * get_drag_count(part_id, &Float:dx, &Float:&dy) > * set_drag_count(part_id, Float:dx, Float:dy) > * set_drag_confine(part_id, confine_part_id) > * get_size(&w, &h) > * resize_request(w, h) > * get_mouse(&x, &y) > * get_mouse_buttons() > * //set_type(part_id, Type:type) > * //set_effect(part_id, Effect:fx) > * set_mouse_events(part_id, ev) > * get_mouse_events(part_id) > * set_repeat_events(part_id, rep) > * get_repeat_events(part_id) > * set_clip(part_id, clip_part_id) > * get_clip(part_id) > * set_min_size(&w, &h) > * set_max_size(&w, &h) > > Potential bug: > > _edje_color_class_find(ed, class); > and > _edje_text_class_find(ed, class); > > fail, i.e. return NULL eventhough objects are defined > in the .edc code. i'll have to check. i think they are only intended to find a colorclass that has been SET/MODIFIED by calls. not a colorclass USED by parts. u can set colorclasses independently of if they are defined or used - if a part is found to use them later, the colorclass is applied. > However, if I explicitly set them first, like with > edje_object_color_class_set then it works and the > display changes properly. see the edje_object_color_class_set() call. the embryo stuff would simply call this... :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ra...@ra... 熊耳 - 車君 (数田) ra...@de... Tokyo, Japan (東京 日本) |