<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: Imlib2::Border</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">Imlib2::Border</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/imlib2_c.html"> imlib2.c </a> (<a href="http://cvs.pablotron.org/cgi-bin/viewcvs.cgi/imlib2-ruby/imlib2.c">CVS</a>) <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000096">[]</a> <a href="#M000097">[]=</a> <a href="#M000112">b</a> <a href="#M000113">b=</a> <a href="#M000104">bottom</a> <a href="#M000105">bottom=</a> <a href="#M000106">l</a> <a href="#M000107">l=</a> <a href="#M000098">left</a> <a href="#M000099">left=</a> <a href="#M000094">new</a> <a href="#M000095">new</a> <a href="#M000108">r</a> <a href="#M000109">r=</a> <a href="#M000100">right</a> <a href="#M000101">right=</a> <a href="#M000110">t</a> <a href="#M000111">t=</a> <a href="#M000102">top</a> <a href="#M000103">top=</a> </div> </div> </div> <!-- if includes --> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000094" class="method-detail"> <a name="M000094"></a> <div class="method-heading"> <a href="Border.src/M000094.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000094.html');return false;"> <span class="method-name">new</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Returns a new <a href="Border.html">Imlib2::Border</a> object. </p> <p> Examples: </p> <pre> left, top, right, bottom = 10, 10, 20, 20 border = Imlib2::Border.new left, top, right, bottom values = [10, 10, 20, 20] border = Imlib2::Border.new values edges = { 'left' => 10, 'right' => 20, 'top' => 10, 'bottom' => 20, } border = Imlib2::Border.new edges </pre> </div> </div> <div id="method-M000095" class="method-detail"> <a name="M000095"></a> <div class="method-heading"> <a href="Border.src/M000095.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000095.html');return false;"> <span class="method-name">new</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> <a href="Border.html">Imlib2::Border</a> constructor. </p> <p> Parameters are identical to Imlib2::Border::new. </p> </div> </div> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000096" class="method-detail"> <a name="M000096"></a> <div class="method-heading"> <span class="method-name">[]</span><span class="method-args">()</span> </div> <div class="method-description"> </div> </div> <div id="method-M000097" class="method-detail"> <a name="M000097"></a> <div class="method-heading"> <span class="method-name">[]=</span><span class="method-args">(p1, p2)</span> </div> <div class="method-description"> </div> </div> <div id="method-M000112" class="method-detail"> <a name="M000112"></a> <div class="method-heading"> <span class="method-name">b</span><span class="method-args">()</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000104">bottom</a> </p> </div> </div> <div id="method-M000113" class="method-detail"> <a name="M000113"></a> <div class="method-heading"> <span class="method-name">b=</span><span class="method-args">(p1)</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000105">bottom=</a> </p> </div> </div> <div id="method-M000104" class="method-detail"> <a name="M000104"></a> <div class="method-heading"> <a href="Border.src/M000104.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000104.html');return false;"> <span class="method-name">bottom</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Get the bottom height (in pixels) of a border. </p> <p> Examples: </p> <pre> edge = border.bottom edge = border.b </pre> </div> </div> <div id="method-M000105" class="method-detail"> <a name="M000105"></a> <div class="method-heading"> <a href="Border.src/M000105.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000105.html');return false;"> <span class="method-name">bottom=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the bottom height (in pixels) of a border. </p> <p> Examples: </p> <pre> border.bottom = 10 border.b = 10 </pre> </div> </div> <div id="method-M000106" class="method-detail"> <a name="M000106"></a> <div class="method-heading"> <span class="method-name">l</span><span class="method-args">()</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000098">left</a> </p> </div> </div> <div id="method-M000107" class="method-detail"> <a name="M000107"></a> <div class="method-heading"> <span class="method-name">l=</span><span class="method-args">(p1)</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000099">left=</a> </p> </div> </div> <div id="method-M000098" class="method-detail"> <a name="M000098"></a> <div class="method-heading"> <a href="Border.src/M000098.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000098.html');return false;"> <span class="method-name">left</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Get the left width (in pixels) of a border. </p> <p> Examples: </p> <pre> edge = border.left edge = border.l </pre> </div> </div> <div id="method-M000099" class="method-detail"> <a name="M000099"></a> <div class="method-heading"> <a href="Border.src/M000099.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000099.html');return false;"> <span class="method-name">left=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the left width (in pixels) of a border. </p> <p> Examples: </p> <pre> border.left = 10 border.l = 10 </pre> </div> </div> <div id="method-M000108" class="method-detail"> <a name="M000108"></a> <div class="method-heading"> <span class="method-name">r</span><span class="method-args">()</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000100">right</a> </p> </div> </div> <div id="method-M000109" class="method-detail"> <a name="M000109"></a> <div class="method-heading"> <span class="method-name">r=</span><span class="method-args">(p1)</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000101">right=</a> </p> </div> </div> <div id="method-M000100" class="method-detail"> <a name="M000100"></a> <div class="method-heading"> <a href="Border.src/M000100.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000100.html');return false;"> <span class="method-name">right</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Get the right width (in pixels) of a border. </p> <p> Examples: </p> <pre> edge = border.right edge = border.r </pre> </div> </div> <div id="method-M000101" class="method-detail"> <a name="M000101"></a> <div class="method-heading"> <a href="Border.src/M000101.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000101.html');return false;"> <span class="method-name">right=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the right width (in pixels) of a border. </p> <p> Examples: </p> <pre> border.right = 10 border.r = 10 </pre> </div> </div> <div id="method-M000110" class="method-detail"> <a name="M000110"></a> <div class="method-heading"> <span class="method-name">t</span><span class="method-args">()</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000102">top</a> </p> </div> </div> <div id="method-M000111" class="method-detail"> <a name="M000111"></a> <div class="method-heading"> <span class="method-name">t=</span><span class="method-args">(p1)</span> </div> <div class="method-description"> <p> Alias for <a href="Border.html#M000103">top=</a> </p> </div> </div> <div id="method-M000102" class="method-detail"> <a name="M000102"></a> <div class="method-heading"> <a href="Border.src/M000102.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000102.html');return false;"> <span class="method-name">top</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Get the top height (in pixels) of a border. </p> <p> Examples: </p> <pre> edge = border.top edge = border.t </pre> </div> </div> <div id="method-M000103" class="method-detail"> <a name="M000103"></a> <div class="method-heading"> <a href="Border.src/M000103.html" target="Code" class="method-signature" onclick="popupCode('Border.src/M000103.html');return false;"> <span class="method-name">top=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the top height (in pixels) of a border. </p> <p> Examples: </p> <pre> border.top = 10 border.t = 10 </pre> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>