padding compositions


Description

Padding is the amount of space between the border and the content area.

Diagram

diagram of <diputree> with padding


Padding set to 0 on all sides

<diputree>
 <haspadding>
  <offset>
   <hasorigin>
    <top/>
    <bottom/>
    <left/>
    <right/>
   </hasorigin>
   <hasdistance>
    <pixelcount>
     <i>0</i>
    </pixelcount>
   </hasdistance>
  </offset>
 </haspadding>
 <has>
  <b>
   <lt>no padding!</lt>
  </b>
 </has>
</diputree>

Explanation

<diputree>

the haspadding relation between diputree and the offset

 <haspadding>
  <offset>

the hasorigin relation between the offset and top, bottom, left and right (compressed)

   <hasorigin>
    <top/>
    <bottom/>
    <left/>
    <right/>
   </hasorigin>

the hasdistance relation between the offset and the pixelcount

   <hasdistance>
    <pixelcount>
     <i>0</i>
    </pixelcount>
   </hasdistance>
  </offset>
 </haspadding>
 <has>
  <b>
   <lt>no padding!</lt>
  </b>
 </has>
</diputree>


diputree documentation © 2000 dipu