annotate examples/dynamic/button.svg @ 241:104d83378582

Add scene support in svg2code.py. - Add mb_sprite_t::goto_scene() - svg2code.py recoganize "scenes" tag in metadata of SVG file. - tranform scenes into SCENE() macro. - define SCENE macro in mb_c_*.m4
author Thinker K.F. Li <thinker@branda.to>
date Wed, 31 Dec 2008 02:08:40 +0800
parents b24d7889cbda
children ab8284c8dcee
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"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
33 inkscape:current-layer="btn_click"
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
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
109 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
110 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
111 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
112 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
113 frame="normal"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
114 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
115 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
116 mbname="btn_normal"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
117 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
118 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
119 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
120 rx="6.0995407"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
121 y="1.4285747"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
122 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
123 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
124 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
125 id="rect2651"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
126 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
127 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
128 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
129 y="32.85714"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
130 x="10.000002"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
131 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
132 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
133 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
134 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
135 id="tspan2655"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
136 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
137 </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
138 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
139 frame="active"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
140 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
141 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
142 mbname="btn_active"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
143 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
144 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
145 ry="5.0559778"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
146 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
147 y="1.4285747"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
148 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
149 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
150 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
151 id="rect2727"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
152 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
153 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
154 id="text2729"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
155 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
156 x="10.000002"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
157 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
158 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
159 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
160 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
161 id="tspan2731"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
162 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
163 </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
164 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
165 frame="click"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
166 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
167 transform="translate(148.57143,98.571429)"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
168 mbname="btn_click"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
169 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
170 <rect
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
171 ry="5.0559778"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
172 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
173 y="1.4285747"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
174 x="-1.4285715"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
175 height="47.142857"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
176 width="122.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
177 id="rect2734"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
178 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
179 <text
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
180 id="text2736"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
181 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
182 x="10.000002"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
183 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
184 xml:space="preserve"><tspan
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
185 y="32.85714"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
186 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
187 id="tspan2738"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
188 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
189 </g>
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
190 </g>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
191 </g>
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
192 <g
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
193 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
194 id="layer2"
226
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
195 inkscape:label="text"
b24d7889cbda * Change the color of click frame
wycc@wycc-desktop
parents: 221
diff changeset
196 style="display:inline" />
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
197 </svg>