diff examples/dynamic/button.svg @ 217:8d9d717c9300

Add sample code fro mb_button_t. If everything is OK, I will move it to the main src tree.
author wycc@wycc-desktop
date Sat, 13 Dec 2008 17:13:31 +0800
parents 31933f9ee70e
children ad4f8a956505
line wrap: on
line diff
--- a/examples/dynamic/button.svg	Sat Dec 13 07:42:01 2008 +0800
+++ b/examples/dynamic/button.svg	Sat Dec 13 17:13:31 2008 +0800
@@ -29,7 +29,7 @@
      inkscape:cx="239.91999"
      inkscape:cy="667.92389"
      inkscape:document-units="px"
-     inkscape:current-layer="layer1"
+     inkscape:current-layer="g2430"
      showgrid="false"
      inkscape:window-width="1400"
      inkscape:window-height="978"
@@ -77,26 +77,6 @@
        inkscape:vp_y="0 : 1000 : 0"
        inkscape:vp_x="0 : 526.18109 : 1"
        sodipodi:type="inkscape:persp3d" />
-    <filter
-       inkscape:collect="always"
-       id="filter4376"
-       x="-0.035928786"
-       width="1.0718576"
-       y="-0.10908499"
-       height="1.21817">
-      <feGaussianBlur
-         inkscape:collect="always"
-         stdDeviation="5.3893179"
-         id="feGaussianBlur4378" />
-    </filter>
-    <filter
-       inkscape:collect="always"
-       id="filter4833">
-      <feGaussianBlur
-         inkscape:collect="always"
-         stdDeviation="1.0722832"
-         id="feGaussianBlur4835" />
-    </filter>
   </defs>
   <metadata
      id="metadata7">
@@ -125,92 +105,90 @@
          x="235.71429"
          y="282.36218" /></text>
     <g
-       id="normal"
-       inkscape:label="#g6113"
-       transform="translate(460,87.142857)">
-      <rect
-         transform="matrix(0.3740158,0,0,0.5340908,-66.07426,-121.9757)"
-         ry="16"
-         rx="16"
-         y="235.93361"
-         x="181.42857"
-         height="118.57143"
-         width="360"
-         id="rect6048"
-         style="fill:#008fff;fill-opacity:1;filter:url(#filter4376)" />
-      <rect
-         ry="8.5454531"
-         rx="5.9842529"
-         y="0.60081911"
-         x="1.2485654"
-         height="63.327908"
-         width="134.64569"
-         id="rect6050"
-         style="fill:#008fff;fill-opacity:1" />
-      <rect
-         ry="8.5454531"
-         rx="5.9842529"
-         y="0.21933411"
-         x="0.7142942"
-         height="63.327908"
-         width="134.64569"
-         id="rect6052"
-         style="fill:#008fff;fill-opacity:1" />
-      <text
-         inkscape:label="#text4385"
-         id="text6054"
-         y="48.076523"
-         x="26.428562"
-         style="font-size:40px;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;display:inline;filter:url(#filter4833);font-family:Bitstream Vera Sans"
-         xml:space="preserve"><tspan
-           y="48.076523"
-           x="26.428562"
-           id="tspan6056"
-           sodipodi:role="line">Line</tspan></text>
-    </g>
-    <g
-       id="active"
-       inkscape:label="#g6103"
-       transform="translate(102.85714,85.714284)">
-      <rect
-         transform="matrix(0.3740158,0,0,0.5340908,-66.788541,-122.68999)"
-         ry="16"
-         rx="16"
-         y="235.93361"
-         x="181.42857"
-         height="118.57143"
-         width="360"
-         id="rect4074"
-         style="fill:#0000ff;filter:url(#filter4376)" />
-      <rect
-         ry="8.5454531"
-         rx="5.9842529"
-         y="-0.11346204"
-         x="0.53429729"
-         height="63.327908"
-         width="134.64569"
-         id="rect3240"
-         style="fill:#0000ff" />
-      <rect
-         ry="8.5454531"
-         rx="5.9842529"
-         y="-0.49495196"
-         x="-3.9397582e-07"
-         height="63.327908"
-         width="134.64569"
-         id="rect3242"
-         style="fill:#0000ff;fill-opacity:1" />
-      <text
-         inkscape:label="#text4385"
-         id="title"
-         y="47.362209"
-         x="25.714287"
-         style="font-size:40px;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;filter:url(#filter4833);font-family:Bitstream Vera Sans"
-         xml:space="preserve"><tspan
-           y="47.362209"
-           x="25.714287"
-           id="tspan4387"
-           sodipodi:role="line">Line</tspan></text>
+       transform="translate(20.000001,42.857139)"
+       id="btn"
+       frame="click"
+       mbname="btn">
+      <g
+         id="g2430"
+         mbname="btn"
+         transform="translate(-78.571429,44.285714)">
+        <g
+           frame="normal"
+           id="btn_normal"
+           mbname="btn_normal"
+           transform="translate(1.4285713e-7,-60)">
+          <rect
+             style="fill:#0000ff"
+             id="rect2493"
+             width="82.85714"
+             height="42.857143"
+             x="220"
+             y="69.505035"
+             rx="5.4543843"
+             ry="7.1427469" />
+          <text
+             xml:space="preserve"
+             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"
+             x="232.85715"
+             y="99.505043"
+             id="text2495"><tspan
+               sodipodi:role="line"
+               id="tspan2497"
+               x="232.85715"
+               y="99.505043">Rect</tspan></text>
+        </g>
+        <g
+           frame="active"
+           id="btn_active"
+           mbname="btn_active"
+           transform="translate(-1.4285757,30.000005)">
+          <rect
+             style="fill:#00ffff"
+             id="rect2481"
+             width="82.85714"
+             height="42.857143"
+             x="220"
+             y="69.505035"
+             rx="5.4543843"
+             ry="7.1427469" />
+          <text
+             xml:space="preserve"
+             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"
+             x="232.85715"
+             y="99.505043"
+             id="text2483"><tspan
+               sodipodi:role="line"
+               id="tspan2485"
+               x="232.85715"
+               y="99.505043">Rect</tspan></text>
+        </g>
+        <g
+           frame="click"
+           id="btn_click"
+           mbname="btn_click"
+           transform="translate(-1.4285715,117.14286)">
+          <rect
+             style="fill:#0000ff"
+             id="rect2488"
+             width="82.85714"
+             height="42.857143"
+             x="220"
+             y="69.505035"
+             rx="5.4543843"
+             ry="7.1427469" />
+          <text
+             xml:space="preserve"
+             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"
+             x="232.85715"
+             y="99.505043"
+             id="text2490"><tspan
+               sodipodi:role="line"
+               id="tspan2492"
+               x="232.85715"
+               y="99.505043">Rect</tspan></text>
+        </g>
+      </g>
     </g>
   </g>
   <g