<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Retrieves all available surfaces</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="cairo.availablefonts.html">Cairo::availableFonts</a></div> <div class="next" style="text-align: right; float: right;"><a href="cairo.statustostring.html">Cairo::statusToString</a></div> <div class="up"><a href="class.cairo.html">Cairo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="cairo.availablesurfaces" class="refentry"> <div class="refnamediv"> <h1 class="refname">Cairo::availableSurfaces</h1> <h1 class="refname">cairo_available_surfaces</h1> <p class="verinfo">(PECL cairo >= 0.1.0)</p><p class="refpurpose"><span class="refname">Cairo::availableSurfaces</span> -- <span class="refname">cairo_available_surfaces</span> — <span class="dc-title">Retrieves all available surfaces</span></p> </div> <div class="refsect1 description" id="refsect1-cairo.availablesurfaces-description"> <h3 class="title">Description</h3> <p class="para">Object oriented style (method):</p> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>Cairo::availableSurfaces</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment">Procedural style:</p> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>cairo_available_surfaces</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Returns an array with the available surface backends </p> </div> <div class="refsect1 parameters" id="refsect1-cairo.availablesurfaces-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-cairo.availablesurfaces-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> A list-type array with all available surface backends. </p> </div> <div class="refsect1 examples" id="refsect1-cairo.availablesurfaces-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-2838"> <p><strong>Example #1 Object oriented style</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">/* Object Oriented style */<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Cairo</span><span style="color: #007700">::</span><span style="color: #0000BB">availableSurfaces</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output something similar to:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> array(6) { [0]=> string(5) "IMAGE" [1]=> string(3) "PNG" [2]=> string(3) "PDF" [3]=> string(2) "PS" [4]=> string(3) "SVG" [5]=> string(5) "WIN32" } </pre></div> </div> </div> </p> <p class="para"> <div class="example" id="example-2839"> <p><strong>Example #2 Procedural style</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">/* Procedural style */<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">cairo_available_surfaces</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output something similar to:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> array(6) { [0]=> string(5) "IMAGE" [1]=> string(3) "PNG" [2]=> string(3) "PDF" [3]=> string(2) "PS" [4]=> string(3) "SVG" [5]=> string(5) "WIN32" } </pre></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-cairo.availablesurfaces-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="cairo.availablefonts.html" class="methodname" rel="rdfs-seeAlso">Cairo::availableFonts()</a> - Retrieves the availables font types</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="cairo.availablefonts.html">Cairo::availableFonts</a></div> <div class="next" style="text-align: right; float: right;"><a href="cairo.statustostring.html">Cairo::statusToString</a></div> <div class="up"><a href="class.cairo.html">Cairo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>