<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>SDLmm::ColorRGBA class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.8.1 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>SDLmm::ColorRGBA Class Reference</h1>A small usefull class representing an RGBA color. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="sdlmm__color_8h-source.html">sdlmm_color.h</a>></code> <p> Inheritance diagram for SDLmm::ColorRGBA:<p><center><img src="classSDLmm_1_1ColorRGBA__inherit__graph.gif" border="0" usemap="#SDLmm::ColorRGBA_inherit_map" alt="Inheritance graph"></center> <map name="SDLmm::ColorRGBA_inherit_map"> <area href="classSDLmm_1_1ColorRGB.html" shape="rect" coords="4,11,129,30"> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classSDLmm_1_1ColorRGBA-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#a0">ColorRGBA</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Default constructor which creates an empty <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> (rgb variables set to zero).</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#a1">ColorRGBA</a> (const ColorRGBA &color)</td></tr> <tr><td> </td><td><font size=-1><em>This is the copy constructor. Simply initializes the value of an <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> to that of another <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a>.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#a2">ColorRGBA</a> (Uint8 nr, Uint8 ng, Uint8 nb, Uint8 na)</td></tr> <tr><td> </td><td><font size=-1><em>Constructor which initializes the class from integer values.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>ColorRGBA& </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#a3">operator=</a> (const ColorRGBA &color)</td></tr> <tr><td> </td><td><font size=-1><em>Set the value of an <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> to that of an existing <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a>.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#a4">operator==</a> (const ColorRGBA &color) const</td></tr> <tr><td> </td><td><font size=-1><em>Compare two colors for equality.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>Uint8 </td><td valign=bottom><a class="el" href="classSDLmm_1_1ColorRGBA.html#m0">a</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A small usefull class representing an RGBA color. <p> <dl compact><dt> <b>Author: </b><dd> Adam Gates </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="SDLmm::ColorRGBA::ColorRGBA"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> SDLmm::ColorRGBA::ColorRGBA ( </b></td> <td valign="bottom"><b> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Default constructor which creates an empty <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> (rgb variables set to zero). <p> </td> </tr> </table> <a name="a1" doxytag="SDLmm::ColorRGBA::ColorRGBA"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> SDLmm::ColorRGBA::ColorRGBA ( </b></td> <td valign="bottom"><b> const ColorRGBA & <em>color</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> This is the copy constructor. Simply initializes the value of an <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> to that of another <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a>. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>color</em> </td><td> an existing <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> object. </td></tr> </table> </dl> </td> </tr> </table> <a name="a2" doxytag="SDLmm::ColorRGBA::ColorRGBA"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> SDLmm::ColorRGBA::ColorRGBA ( </b></td> <td valign="bottom"><b> Uint8 <em>nr</em>, </b></td> </tr> <tr> <td></td> <td><b> Uint8 <em>ng</em>, </b></td> </tr> <tr> <td></td> <td><b> Uint8 <em>nb</em>, </b></td> </tr> <tr> <td></td> <td><b> Uint8 <em>na</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Constructor which initializes the class from integer values. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>nr, red</em> </td><td> component </td></tr> <tr><td valign=top><em>ng, green</em> </td><td> component </td></tr> <tr><td valign=top><em>nb, blue</em> </td><td> component </td></tr> <tr><td valign=top><em>na, alpha</em> </td><td> component </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a3" doxytag="SDLmm::ColorRGBA::operator="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> ColorRGBA & SDLmm::ColorRGBA::operator= ( </b></td> <td valign="bottom"><b> const ColorRGBA & <em>color</em> )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set the value of an <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a> to that of an existing <a class="el" href="classSDLmm_1_1ColorRGBA.html">ColorRGBA</a>. <p> </td> </tr> </table> <a name="a4" doxytag="SDLmm::ColorRGBA::operator=="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> bool SDLmm::ColorRGBA::operator== ( </b></td> <td valign="bottom"><b> const ColorRGBA & <em>color</em> ) const<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Compare two colors for equality. <p> <dl compact><dt> <b>Returns: </b><dd> true if coordinates are identical in both colors. </dl> </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="m0" doxytag="SDLmm::ColorRGBA::a"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> Uint8 SDLmm::ColorRGBA::a </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="sdlmm__color_8h-source.html">sdlmm_color.h</a></ul> <hr> <table cellspacing=10 cellpadding=0 border=0 width=100%> <tr valign=middle><td><font size=-1>Documentation automatically generated by <a href="http://www.stack.nl/~dimitri/doxygen/"><img border=0 align=center src="doxygen.gif" alt="doxygen"></a> written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>.</font></td> <td align=right><font size=-1>Project hosted at <br><a href="http://sourceforge.net"><img align=middle src="http://sourceforge.net/sflogo.php?group_id=25445&type=1" width="88" height="31" border="0" alt="Hosted by SourceForge"></a></font></td></tr></table>