XIML – new functionality – masks

It is possible to apply a mask to any element.
It can be useful for creating non-rectangular shapes or prevent other elements to run out its borders.

To use:

  • in the element definition add an attribute mask=”true”
  • add sub xml to the element :

<el eltype="plugin" x="0" y="0" w="100%" h="100%" size="no" datatype="xml" attr="engurl" mask="true" >
  <mask>
    <el eltype="rect" x="0" y="0" w="100%" h="100%" c="0xcccccc" />
  </mask>
</el>

The element formed in the el/mask/ area will define a mask on the rest of the element its applied to.

For example, see source code at
http://ximl.com/sites/ximl_tabs1/conf.xml

keep the link / tell a friend
  • Google Bookmarks
  • del.icio.us
  • Digg
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>