annotate examples/dynamic/button.svg @ 1110:851a062368bd

Change signature of mbe_win_surface_create() by using format argument
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 08 Dec 2010 18:31:39 +0800
parents a90fd749af82
children
rev   line source
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
3 <svg
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
5 xmlns:cc="http://creativecommons.org/ns#"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
7 xmlns:svg="http://www.w3.org/2000/svg"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
8 xmlns="http://www.w3.org/2000/svg"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
11 width="720"
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
12 height="480"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
13 id="svg2"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
14 sodipodi:version="0.32"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
15 inkscape:version="0.46"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
16 sodipodi:docname="button.svg"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
17 inkscape:output_extension="org.inkscape.output.svg.inkscape"
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
18 version="1.0">
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
19 <sodipodi:namedview
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
20 id="base"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
21 pagecolor="#ffffff"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
22 bordercolor="#666666"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
23 borderopacity="1.0"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
24 gridtolerance="10000"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
25 guidetolerance="10"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
26 objecttolerance="10"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
27 inkscape:pageopacity="0.0"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
28 inkscape:pageshadow="2"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
29 inkscape:zoom="0.7"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
30 inkscape:cx="257.06285"
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
31 inkscape:cy="365.06674"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
32 inkscape:document-units="px"
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
33 inkscape:current-layer="layer1"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
34 showgrid="false"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
35 inkscape:window-width="1400"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
36 inkscape:window-height="978"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
37 inkscape:window-x="0"
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
38 inkscape:window-y="25" />
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
39 <defs
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
40 id="defs4">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
41 <linearGradient
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
42 id="linearGradient4066">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
43 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
44 style="stop-color:#000000;stop-opacity:0;"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
45 offset="0"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
46 id="stop4068" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
47 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
48 style="stop-color:#000000;stop-opacity:1"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
49 offset="1"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
50 id="stop4070" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
51 </linearGradient>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
52 <linearGradient
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
53 id="linearGradient4026">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
54 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
55 style="stop-color:#000000;stop-opacity:1;"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
56 offset="0"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
57 id="stop4028" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
58 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
59 style="stop-color:#ffffff;stop-opacity:0;"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
60 offset="1"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
61 id="stop4030" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
62 </linearGradient>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
63 <linearGradient
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
64 id="linearGradient4018">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
65 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
66 style="stop-color:#000000;stop-opacity:1;"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
67 offset="0"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
68 id="stop4020" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
69 <stop
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
70 style="stop-color:#0000ff;stop-opacity:0;"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
71 offset="1"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
72 id="stop4022" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
73 </linearGradient>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
74 <inkscape:perspective
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
75 id="perspective10"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
76 inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
77 inkscape:vp_z="744.09448 : 526.18109 : 1"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
78 inkscape:vp_y="0 : 1000 : 0"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
79 inkscape:vp_x="0 : 526.18109 : 1"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
80 sodipodi:type="inkscape:persp3d" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
81 </defs>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
82 <metadata
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
83 id="metadata7">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
84 <rdf:RDF>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
85 <cc:Work
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
86 rdf:about="">
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
87 <dc:format>Image/svg+xml</dc:format>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
88 <dc:type
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
89 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
90 </cc:Work>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
91 </rdf:RDF>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
92 </metadata>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
93 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
94 id="layer1"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
95 inkscape:groupmode="layer"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
96 inkscape:label="bg"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
97 style="display:inline">
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
98 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
99 xml:space="preserve"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
100 style="font-size:30px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
101 x="235.71429"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
102 y="282.36218"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
103 id="text4380"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
104 sodipodi:role="line"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
105 id="tspan4382"
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
106 x="235.71429"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
107 y="282.36218" /></text>
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
108 <g
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
109 mbtype="button"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
110 id="btn"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
111 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
112 mbname="btn">
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
113 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
114 frame="normal"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
115 id="btn_normal"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
116 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
117 mbname="btn_normal"
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
118 style="">
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
119 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
120 ry="5.0559778"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
121 rx="6.0995407"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
122 y="1.4285747"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
123 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
124 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
125 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
126 id="rect2651"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
127 style="fill:#0000ff" />
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
128 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
129 id="text2653"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
130 y="32.85714"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
131 x="10.000002"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
132 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
133 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
134 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
135 x="10.000002"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
136 id="tspan2655"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
137 sodipodi:role="line">Click Me</tspan></text>
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
138 <rect
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
139 ry="5.0559778"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
140 rx="6.0995407"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
141 y="38.600159"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
142 x="105.64253"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
143 height="42.66333"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
144 width="34.536983"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
145 id="rect2385"
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
146 style="fill:#f136ff;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
147 </g>
217
8d9d717c9300 Add sample code fro mb_button_t. If everything is OK, I will move it to the main src tree.
wycc@wycc-desktop
parents: 201
diff changeset
148 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
149 frame="active"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
150 id="btn_active"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
151 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
152 mbname="btn_active"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
153 style="display:none">
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
154 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
155 ry="5.0559778"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
156 rx="6.0995407"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
157 y="1.4285747"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
158 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
159 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
160 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
161 id="rect2727"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
162 style="fill:#00ffff" />
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
163 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
164 id="text2729"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
165 y="32.85714"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
166 x="10.000002"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
167 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
168 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
169 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
170 x="10.000002"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
171 id="tspan2731"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
172 sodipodi:role="line">Click Me</tspan></text>
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
173 </g>
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
174 <g
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
175 style="display:none"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
176 frame="click"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
177 id="btn_click"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
178 transform="translate(148.57143,98.571429)"
249
ab8284c8dcee * Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
wycc
parents: 226
diff changeset
179 mbname="btn_click">
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
180 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
181 ry="5.0559778"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
182 rx="6.0995407"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
183 y="1.4285747"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
184 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
185 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
186 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
187 id="rect2734"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
188 style="fill:#ff0000" />
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
189 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
190 id="text2736"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
191 y="32.85714"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
192 x="10.000002"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
193 style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
194 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
195 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
196 x="10.000002"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
197 id="tspan2738"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
198 sodipodi:role="line">Click Me</tspan></text>
217
8d9d717c9300 Add sample code fro mb_button_t. If everything is OK, I will move it to the main src tree.
wycc@wycc-desktop
parents: 201
diff changeset
199 </g>
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
200 </g>
278
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
201 <text
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
202 xml:space="preserve"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
203 style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
204 x="160"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
205 y="77.14286"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
206 id="text2405"><tspan
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
207 sodipodi:role="line"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
208 id="tspan2407"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
209 x="160"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
210 y="77.14286">s<tspan
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
211 style="font-size:32"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
212 id="tspan2409">ssss<tspan
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
213 style="font-size:40"
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 249
diff changeset
214 id="tspan2411">sssss</tspan></tspan></tspan></text>
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
215 </g>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
216 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
217 inkscape:groupmode="layer"
221
ad4f8a956505 Implement a workaround for the button class. However, this won't solve all issues. We can use this as example to fix the mouse out event issue. When we move the curosr over the text inside the button. The upper layer group will receive MOUSE_OUT events. This is absolute incorrect.
wycc
parents: 217
diff changeset
218 id="layer2"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
219 inkscape:label="text"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
220 style="display:inline" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
221 </svg>