Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 0e77bba279395d1c9e1f98c452d3b010 > files > 66

edje-devel-1.0.0-2.fc15.i686.rpm

<html>
<head>
    <title>Edje: external_elm_panes.edc</title>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <meta name="author" content="Andres Blanc" >
    
    <link rel="icon" href="img/favicon.png" type="image/x-icon">
    <link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
    <link rel="icon" href="img/favicon.png" type="image/ico">
    <link rel="shortcut icon" href="img/favicon.png" type="image/ico">

    <link rel="stylesheet" type="text/css" href="e.css">
    <link rel="stylesheet" type="text/css" href="edoxy.css">
</head>

<body>

<div id="container">

<div id="header">
<div class="layout">
    
    <h1><span>Enlightenment</span></h1>
    <h2><span>Beauty at your fingertips</span></h2>

    <table cellspacing="0" cellpadding="0" width="100%"><tr>
      <td id="header_logo">
        <a href="http://www.enlightenment.org"></a>
      </td>
      <td id="header_menu">
        <table cellspacing="0" cellpadding="0" align="right"><tr>
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=home">Home</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=news">News</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=about">About</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=download">Download</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=support">Support</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=contribute">Contribute</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=contact">Contact</a></td> 
          <td class="nav_passive"><a class="nav_passive" href="http://trac.enlightenment.org/e">Tracker</a></td>
          <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=docs">Docs</a></td> 
        </tr></table>          
      </td>
      <td id="header_last"></td>
    </tr></table>

    <div class="doxytitle">
        Edje Documentation <small>at Tue Feb 8 2011</small>
    </div>

    <div class="menu-container">
        <div class="submenu">
            <ul class="current">
                <li><a href="files.html">Files</a></li>
                <li><a href="Edje__Edit_8h.html">Edje Edit API</a></li>
                <li><a href="examples.html">Examples</a></li>
                <li><a href="luaref.html">LUA scripting</a></li>
                <li><a href="Edje_8h.html">Edje API</a></li>
                <li><a href="edcref.html">EDC Reference</a></li>
                <li class="current"><a  href="index.html">Main Page</a></li>
            </ul>
        </div>
    </div>


    <div class="clear"></div>
</div>
</div>

<div id="content">
<div class="layout">
<!-- Generated by Doxygen 1.7.3 -->
</div>
<div class="header">
  <div class="headertitle">
<h1>external_elm_panes.edc</h1>  </div>
</div>
<div class="contents">
<p>This example show EXTERNAL elementary panes in action.</p>
<div class="fragment"><pre class="fragment">collections {
   <span class="comment">/* tell edje that we are going to use elementary external parts */</span>
   externals {
      external: <span class="stringliteral">&quot;elm&quot;</span>;
   }
   
   <span class="comment">/* those groups are the buttons used as content for the panes */</span>
   group { <a name="a0"></a><a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;button1&quot;</span>;
      parts {
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;btn&quot;</span>;
            <a name="a1"></a><a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/button&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               params.string: <span class="stringliteral">&quot;label&quot;</span> <span class="stringliteral">&quot;Left&quot;</span>;
            }
         }
      }
   }
   group { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;button2&quot;</span>;
      parts {
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;btn&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/button&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               params.string: <span class="stringliteral">&quot;label&quot;</span> <span class="stringliteral">&quot;Top&quot;</span>;
            }
         }
      }
   }
   group { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;button3&quot;</span>;
      parts {
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;btn&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/button&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               params.string: <span class="stringliteral">&quot;label&quot;</span> <span class="stringliteral">&quot;Right&quot;</span>;
            }
         }
      }
   }

   <span class="comment">/* this is the vertical panes */</span>
   group { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;panes2&quot;</span>;
      parts {
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;panes&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/panes&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               params {
                  <span class="keywordtype">bool</span>: <span class="stringliteral">&quot;horizontal&quot;</span> 1;
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content left&quot;</span> <span class="stringliteral">&quot;button2&quot;</span>;
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content right&quot;</span> <span class="stringliteral">&quot;button3&quot;</span>;
               }
            }
         }
      }
   }
   
   group { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;main&quot;</span>;
      <span class="comment">/* set a min window size */</span>
      min: 300 400;

      parts {
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;bg&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: RECT;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               color: 255 255 255 255;
            }
         }

         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;title&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: TEXT;
            effect: SOFT_SHADOW;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               color: 255 255 255 255;
               color3: 70 70 70 70;
               text {
                  text: <span class="stringliteral">&quot;Elementary Panes&quot;</span>;
                  font: <span class="stringliteral">&quot;Sans&quot;</span>;
                  size: 16;
                  align: 0.5 0.0;
               }
            }
         }

         <span class="comment">/* first panes (horiz) */</span>
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;panes1&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/panes&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               rel1.offset: 0 35;
               rel2.offset: 0 -45;
               params {
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content left&quot;</span> <span class="stringliteral">&quot;button1&quot;</span>;
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content right&quot;</span> <span class="stringliteral">&quot;panes2&quot;</span>;
               }
            }
            description { state: <span class="stringliteral">&quot;swapped&quot;</span> 0.0;
               inherit: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               params {
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content left&quot;</span> <span class="stringliteral">&quot;panes2&quot;</span>;
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;content right&quot;</span> <span class="stringliteral">&quot;button1&quot;</span>;
               }
            }
         }

         <span class="comment">/* button used to swap the content of the panes1 */</span>
         part { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;swap_button&quot;</span>;
            <a class="code" href="edje__data_8c.html#a0dae2edc8bfd2bedabfa38415c35f3ec">type</a>: EXTERNAL;
            source: <span class="stringliteral">&quot;elm/button&quot;</span>;
            description { state: <span class="stringliteral">&quot;default&quot;</span> 0.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 -40;
               }
               params {
                  <span class="keywordtype">string</span>: <span class="stringliteral">&quot;label&quot;</span> <span class="stringliteral">&quot;Swap &amp; back&quot;</span>;
               }
            }
         }
      }

      programs {
         <span class="comment">/* when button is pressed set the &#39;swapped&#39; state */</span>
         program { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;swap&quot;</span>;
            signal: <span class="stringliteral">&quot;clicked&quot;</span>;
            source: <span class="stringliteral">&quot;swap_button&quot;</span>;
            action: STATE_SET <span class="stringliteral">&quot;swapped&quot;</span> 0.0;
            target: <span class="stringliteral">&quot;panes1&quot;</span>;
            after: <span class="stringliteral">&quot;go_back&quot;</span>;
         }
         <span class="comment">/* after 1 second return to the &#39;default&#39; state */</span>
         program { <a class="code" href="edje__data_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>: <span class="stringliteral">&quot;go_back&quot;</span>;
            in: 1.0 0.0;
            action: STATE_SET <span class="stringliteral">&quot;default&quot;</span> 0.0;
            target: <span class="stringliteral">&quot;panes1&quot;</span>;
         }
      }
   }
}
</pre></div> </div>
</div>
 
 <div id="push"></div>
 </div> <!-- #content -->
  </div> <!-- .layout -->
 
 </div> <!-- #container -->
 
 
  <div id="footer">
    <table><tr>
      <td class="copyright">Copyright &copy;2011 Enlightenment</td>
      <td class="generated">Docs generated Tue Feb 8 2011 17:28:42</td>
    </tr></table>
  </div>


</body>
</html>