<?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>Module: Imlib2::Cache</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>Module</strong></td> <td class="class-name-in-header">Imlib2::Cache</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> </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="#M000093">flush_font_cache</a> <a href="#M000087">font</a> <a href="#M000088">font=</a> <a href="#M000089">font_cache</a> <a href="#M000090">font_cache=</a> <a href="#M000091">get_font_cache</a> <a href="#M000085">get_image_cache</a> <a href="#M000081">image</a> <a href="#M000082">image=</a> <a href="#M000083">image_cache</a> <a href="#M000084">image_cache=</a> <a href="#M000092">set_font_cache</a> <a href="#M000086">set_image_cache</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-M000093" class="method-detail"> <a name="M000093"></a> <div class="method-heading"> <a href="Cache.src/M000093.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000093.html');return false;"> <span class="method-name">flush_font_cache</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Flush and return the new size (in bytes) of the application-wide font cache. </p> <p> Example: </p> <pre> new_size = Imlib2::Cache::flush_font_cache </pre> </div> </div> <div id="method-M000087" class="method-detail"> <a name="M000087"></a> <div class="method-heading"> <a href="Cache.src/M000087.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000087.html');return false;"> <span class="method-name">font</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide font cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font </pre> </div> </div> <div id="method-M000088" class="method-detail"> <a name="M000088"></a> <div class="method-heading"> <a href="Cache.src/M000088.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000088.html');return false;"> <span class="method-name">font=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide font cache. Examples: </p> <pre> new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size </pre> </div> </div> <div id="method-M000089" class="method-detail"> <a name="M000089"></a> <div class="method-heading"> <a href="Cache.src/M000089.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000089.html');return false;"> <span class="method-name">font_cache</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide font cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font </pre> </div> </div> <div id="method-M000090" class="method-detail"> <a name="M000090"></a> <div class="method-heading"> <a href="Cache.src/M000090.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000090.html');return false;"> <span class="method-name">font_cache=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide font cache. Examples: </p> <pre> new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size </pre> </div> </div> <div id="method-M000091" class="method-detail"> <a name="M000091"></a> <div class="method-heading"> <a href="Cache.src/M000091.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000091.html');return false;"> <span class="method-name">get_font_cache</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide font cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font </pre> </div> </div> <div id="method-M000085" class="method-detail"> <a name="M000085"></a> <div class="method-heading"> <a href="Cache.src/M000085.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000085.html');return false;"> <span class="method-name">get_image_cache</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image </pre> </div> </div> <div id="method-M000081" class="method-detail"> <a name="M000081"></a> <div class="method-heading"> <a href="Cache.src/M000081.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000081.html');return false;"> <span class="method-name">image</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image </pre> </div> </div> <div id="method-M000082" class="method-detail"> <a name="M000082"></a> <div class="method-heading"> <a href="Cache.src/M000082.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000082.html');return false;"> <span class="method-name">image=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size </pre> </div> </div> <div id="method-M000083" class="method-detail"> <a name="M000083"></a> <div class="method-heading"> <a href="Cache.src/M000083.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000083.html');return false;"> <span class="method-name">image_cache</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Return the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image </pre> </div> </div> <div id="method-M000084" class="method-detail"> <a name="M000084"></a> <div class="method-heading"> <a href="Cache.src/M000084.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000084.html');return false;"> <span class="method-name">image_cache=</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size </pre> </div> </div> <div id="method-M000092" class="method-detail"> <a name="M000092"></a> <div class="method-heading"> <a href="Cache.src/M000092.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000092.html');return false;"> <span class="method-name">set_font_cache</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide font cache. Examples: </p> <pre> new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size </pre> </div> </div> <div id="method-M000086" class="method-detail"> <a name="M000086"></a> <div class="method-heading"> <a href="Cache.src/M000086.html" target="Code" class="method-signature" onclick="popupCode('Cache.src/M000086.html');return false;"> <span class="method-name">set_image_cache</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set the size (in bytes) of the application-wide image cache. </p> <p> Examples: </p> <pre> new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size </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>