1
|
<?xml version="1.0"?><phpdoc><class name="ImlibText" extends="ImlibColor" undoc="false" access="public" package="Imlib"><file>/home/matt/src/cvs/imlib/docs/class.ImlibText.php</file><doc><author email="cardinal@dodds.net">Matt McClanahan</author><inherited src="Array"/><description>The routine for dealing text is to load a font, set an image to draw on,and draw a string.</description><shortdescription>Does everything relevant to text drawing</shortdescription><version>0.3</version></doc><function name="ImlibText" undoc="false" access="public"><doc><return type="void"/><description/><shortdescription>ImlibText constructor</shortdescription></doc></function><function name="draw" undoc="false" access="public"><doc><parameter name="$x" type="int">coordinate of the upper left corner of the string</parameter><parameter name="$y" type="int">coordinate of the upper left corner of the string</parameter><parameter name="$str" type="string">string to draw</parameter><parameter name="$dir" default="IMLIB_TEXT_TO_RIGHT" type="string">of the text</parameter><return name="" type="bool">False if no font is loaded</return><description/><shortdescription>Draw a text string onto the current image</shortdescription></doc></function><function name="free" undoc="false" access="public"><doc><return name="" type="bool">False if no font is loaded</return><description/><shortdescription>Free the currently loaded font</shortdescription></doc></function><function name="get_image" undoc="false" access="public"><doc><return name="" type="integer">Image resource id#</return><description/><shortdescription>Get the current image resource id#</shortdescription></doc></function><function name="get_size" undoc="false" access="public"><doc><parameter name="$str" type="string">to measure</parameter><parameter name="&$w" type="int">Width the string would be</parameter><parameter name="&$h" type="int">Height the string would be</parameter><parameter name="$dir" default="IMLIB_TEXT_TO_RIGHT" type="string">to measure the string</parameter><return name="" type="bool">False if no font is loaded</return><description/><shortdescription>Get the width and height of a given string if it were drawn</shortdescription></doc></function><function name="load" undoc="false" access="public"><doc><parameter name="$path" type="string">, or current directory if passed blank</parameter><parameter name="$font" type="string">name</parameter><parameter name="$size" type="int">size</parameter><return name="" type="bool">False if no font is loaded</return><description>If the font is in the font path, it can be referred to by font name,and the path does not need to be specified. Otherwise, it must bereferred to by filename.</description><shortdescription>Load a font</shortdescription></doc></function><function name="set_image" undoc="false" access="public"><doc><parameter name="$im" type="int">resource id#</parameter><return type="void"/><description/><shortdescription>Set the image resource id# to draw on</shortdescription></doc></function><variable name="$fnt" access="private" type="unknown"><doc><description/><shortdescription>Resource id# of the currently loaded font</shortdescription></doc></variable><variable name="$im" access="private" type="unknown"><doc><description/><shortdescription>Resource id# of the image to draw on</shortdescription></doc></variable><inherited src="ImlibColor" type="functions"><element>imlibcolor</element><element>get_color</element><element>get_color_array</element><element>set_color</element><element>set_color_array</element></inherited><inherited src="ImlibColor" type="variables"><element>$color</element></inherited><path><parent>ImlibColor</parent></path><baseclass>ImlibColor</baseclass></class></phpdoc>
|