Home
Categories
Dictionary

Clippings


    1  Structure for a clip specified with one shape
    2  Structure for a clip specified with several shapes
    3  Syntax for a path
       3.1  Path examples
    4  Example
    5  See also

The "clippings" element in the XML Graphics definition File regroup definition of clippings. They will be used for all widgets which uses a mask (clip) index (the A661_MASK_CONTAINER widget). Each (clip) has the following attributes:

There are several ways to define a (clip):

Structure for a clip specified with one shape

The "path" attribute specifies the Shape. For example:
      <clip name="RoundRectangle" index="4" path="round2000,3000,3000,4000,500,200" />

Structure for a clip specified with several shapes

In that case, we use constructive geometry to specify the Shape as the inclusion or exclusion of several Shapes. For example:
      <clip name="Rectangle2" index="2" >
         <clipPath path="r4000,4000,4000,3000" />
         <clipPath path="r1000,1000,2000,1000" />
      </clip>
Note that each "clipPath" element is by default added to the general Shape, but it is possible to eclude it from the Sape by specifying its "excluded" attribute to true.

Syntax for a path

The "path" attribute of a clip uses a syntax where each part of the path can be:

Path examples

Example

   <clippings>
      <clip name="Rectangle" index="1" path="r1000,1000,2000,2000" />
      <clip name="Rectangle2" index="2" >
         <clipPath path="r4000,4000,4000,3000" />
         <clipPath path="r1000,1000,2000,1000" />
      </clip>
      <clip name="Circle" index="3" path="a5000,3000,3000,45,135" />
      <clip name="RoundRectangle" index="4" path="round2000,3000,3000,4000,500,200" />
      <clip name="Triangle" index="5" path="1000,0 4000,1000 3000,2000" />
   </clippings>

See Also


Category:server Category:client Category:conf Category:user

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help