I am planning to modify the CN1 core code to allow components to have any 
custom shape boder and to be able to drop a shadow based on their elevation 
value (like in material design). But this raised a few question. First of 
all, to do this correctly, and with good performances, I must be able to 
perform shape clipping. I have seen that CN1 already supports shape 
clipping on some platforms but couldn't find the current list of these 
supported platforms. Would it be possible to know which platforms are 
currently supporting shapeClipping? (I have seen that CN1 on iOS had issues 
with shape clipping. Has this been resolved? Also is the CSS clip-path 
method supported for javascript target? )
Also, the Graphics class has a setClip(Shape) method but no Shape getClip() 
counterpart. Is this due to technical issues or has it just not be 
implemented? (because I need to be able to save the current shape clipping 
applied to a graphics before painting a child component/container and then 
restore the original clipping)
Finally, do you think that changing the alpha of the graphics  and drawing 
the shape path with a dark faiding color (and an increasing offsset) 2 to 
10 times (probably won't be more) into the paint method would cost 
performance overhead? (I may use this as a first approch (even if not 
prefect) to draw my shadow as using a bluring algorithm on the black filled 
shape would probably cost too much and request some image caching which I 
may implement latter)

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4eb109f0-76fe-441b-a08c-69df4e965ea7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to