71 lines
1.8 KiB
XML
71 lines
1.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<xlib_symbol id='xClip'>
|
|
|
|
<copyright>Copyright 2001-2005 Michael Foster (Cross-Browser.com)</copyright>
|
|
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
|
|
<groups>
|
|
<grp>Size</grp>
|
|
</groups>
|
|
<type>Function</type>
|
|
|
|
<description><![CDATA[Set the element's clipping rectangle. If ele is the only argument then set clip to existing width and height.]]></description>
|
|
|
|
<syntax>xClip(ele[,iTop,iRight,iBottom,iLeft])</syntax>
|
|
|
|
<parameters>
|
|
<par>
|
|
<name>ele</name>
|
|
<note><![CDATA[id string or object reference]]></note>
|
|
</par>
|
|
<par>
|
|
<name>iTop</name>
|
|
<note><![CDATA[integer y coordinate of top-left corner]]></note>
|
|
</par>
|
|
<par>
|
|
<name>iRight</name>
|
|
<note><![CDATA[integer x coordinate of right-bottom corner]]></note>
|
|
</par>
|
|
<par>
|
|
<name>iBottom</name>
|
|
<note><![CDATA[integer y coordinate of right-bottom corner]]></note>
|
|
</par>
|
|
<par>
|
|
<name>iLeft</name>
|
|
<note><![CDATA[integer x coordinate of top-left corner]]></note>
|
|
</par>
|
|
</parameters>
|
|
|
|
<return>element.style.clip</return>
|
|
|
|
<dependencies>
|
|
<dep>xGetElementById</dep>
|
|
<dep>xNum</dep>
|
|
<dep>nn4:xWidth</dep>
|
|
<dep>nn4:xHeight</dep>
|
|
</dependencies>
|
|
|
|
<demos>
|
|
<demo>
|
|
<url>http://cross-browser.com/toys/</url>
|
|
<note><![CDATA[Index of all X demos.]]></note>
|
|
</demo>
|
|
</demos>
|
|
|
|
<revisions>
|
|
<rev>
|
|
<num>2</num>
|
|
<date>15Mar05</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[reduced by 44 bytes with shorter parameter names]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>1</num>
|
|
<date>31Mar04</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[put in it's own file for use with XC]]></note>
|
|
</rev>
|
|
</revisions>
|
|
|
|
</xlib_symbol>
|