Edje_ Edje Library Documentation.pdf
Just pay attention and understand what rel2 { relative: 1.0 1.0; offset: -1 -1; } means. Let's take Edje object coordinate to be 800x480, then relative: 1.0 1.0;would mean point (800,480), but since we count from 0, we need to subtract one to get the correct point, that's why we have offset: -1 -1;, resulting in the point (799,479).
Note that pulser is aligned to the center by defining both rel1 and rel2 relative to be 0.5 0.5, the object size is defined in pixels by offset, with sizes being 128x128 (with offset: -64 -64; and offset: 63 63;) and 192x192 (offset: -96 -96; and offset: 95 95;).
Pay attention to fit: 1 1, this makes the text size be recalculated to fit the specified box from rel1 to rel2.
再来一本EDC好书
阅读(1086) | 评论(0) | 转发(0) |