📄 group__nanox__color.html
字号:
<!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>Nano-X color/palette management API.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="pages.html">Related Pages</a> </center><hr><h1>Nano-X color/palette management API.<br><small>[<a class="el" href="group__nanox.html">Nano-X public API</a>]</small></h1>Functions for querying and modifying the palette on palette-based Nano-X systems. <a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>GR_COLOR </td><td valign=bottom><a class="el" href="group__nanox__color.html#a0">GrGetSysColor</a> (int index)</td></tr><tr><td> </td><td><em class="mdesc">Returns the colour at the specified index into the server's color look up table.</em> <a href="#a0"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__color.html#a1">GrGetSystemPalette</a> (<a class="el" href="structGR__PALETTE.html">GR_PALETTE</a> *pal)</td></tr><tr><td> </td><td><em class="mdesc">Retrieves the system palette and places it in the specified palette structure.</em> <a href="#a1"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__color.html#a2">GrSetSystemPalette</a> (GR_COUNT first, <a class="el" href="structGR__PALETTE.html">GR_PALETTE</a> *pal)</td></tr><tr><td> </td><td><em class="mdesc">Sets the system palette to the values stored in the specified palette structure.</em> <a href="#a2"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__color.html#a3">GrFindColor</a> (GR_COLOR c, GR_PIXELVAL *retpixel)</td></tr><tr><td> </td><td><em class="mdesc">Calculates the pixel value to use to display the specified colour value.</em> <a href="#a3"></a><em></em><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Functions for querying and modifying the palette on palette-based Nano-X systems.<p><hr><h2>Function Documentation</h2><a name="a3" doxytag="nano-X.h::GrFindColor"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void GrFindColor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_COLOR </td> <td class="mdname" nowrap> <em>c</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_PIXELVAL * </td> <td class="mdname" nowrap> <em>retpixel</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Calculates the pixel value to use to display the specified colour value.<p>The colour value is specified as a GR_COLOR, which is a 32 bit truecolour value stored as RGBX. The pixel value size depends on the architecture.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>c</em> </td><td>the colour value to find </td></tr> <tr><td valign=top><em>retpixel</em> </td><td>pointer to the returned pixel value </td></tr> </table></dl> </td> </tr></table><a name="a0" doxytag="nano-X.h::GrGetSysColor"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GR_COLOR GrGetSysColor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>index</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Returns the colour at the specified index into the server's color look up table.<p>The colours in the table are those with names like "GR_COLOR_DESKTOP", "GR_COLOR_ACTIVECAPTION", "GR_COLOR_APPWINDOW", etc. as listed in nano-X.h<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>index</em> </td><td>An index into the server's colour look up table. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The color found at the specified index. </dd></dl> </td> </tr></table><a name="a1" doxytag="nano-X.h::GrGetSystemPalette"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void GrGetSystemPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structGR__PALETTE.html">GR_PALETTE</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pal</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Retrieves the system palette and places it in the specified palette structure.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pal</em> </td><td>pointer to a palette structure to fill in with the system palette </td></tr> </table></dl> </td> </tr></table><a name="a2" doxytag="nano-X.h::GrSetSystemPalette"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void GrSetSystemPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_COUNT </td> <td class="mdname" nowrap> <em>first</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structGR__PALETTE.html">GR_PALETTE</a> * </td> <td class="mdname" nowrap> <em>pal</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the system palette to the values stored in the specified palette structure.<p>The values before the specified first value are not set.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>first</em> </td><td>the first palette value to set </td></tr> <tr><td valign=top><em>pal</em> </td><td>pointer to a palette structure containing the new values </td></tr> </table></dl> </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun May 18 21:03:06 2003 for Microwindows Nano-X API by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.3 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -