⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classfg__x11drawinterface.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>FishGUI: FG_X11DrawInterface class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">首页</a> | <a class="qindex" href="modules.html">模块</a> | <a class="qindex" href="hierarchy.html">类继承关系</a> | <a class="qindex" href="classes.html">按字典顺序排序的列表</a> | <a class="qindex" href="annotated.html">组合类型列表</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">组合类型成员</a> | <a class="qindex" href="globals.html">文件成员</a></div><h1>FG_X11DrawInterface类参考<br><small>[<a class="el" href="group__OSAdaptor.html">操作系统适配层</a>]</small></h1><code>#include &lt;<a class="el" href="FG__X11DrawInterface_8h-source.html">FG_X11DrawInterface.h</a>&gt;</code><p><p>继承图,类FG_X11DrawInterface<p><center><img src="classFG__X11DrawInterface.png" usemap="#FG_X11DrawInterface_map" border="0" alt=""></center><map name="FG_X11DrawInterface_map"><area href="classFG__OSDrawInterface.html" alt="FG_OSDrawInterface" shape="rect" coords="0,0,139,24"></map>FG_X11DrawInterface合作图:<p><center><img src="classFG__X11DrawInterface__coll__graph.png" border="0" usemap="#FG__X11DrawInterface__coll__map" alt="Collaboration graph"></center><map name="FG__X11DrawInterface__coll__map"><area href="classFG__OSDrawInterface.html" shape="rect" coords="6,17,164,289" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__X11DrawInterface-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2>X11的绘图接口类. <p>该类封装X11的绘图过程 <p><p>在文件<a class="el" href="FG__X11DrawInterface_8h-source.html">FG_X11DrawInterface.h</a>第<a class="el" href="FG__X11DrawInterface_8h-source.html#l00051">51</a>行定义。<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>公有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a0">FG_X11DrawInterface</a> (Window win, Display *display, int screen)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">X11的绘图接口类的构造函数.  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a1">~FG_X11DrawInterface</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">X11的绘图接口类的析构函数.  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a2">BeginDraw</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">开始重画  <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a3">EndDraw</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">结束重画  <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a4">FillRect</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> ForeColor, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> background)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">填充矩形.  <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a5">Line</a> (const short x1, const short y1, const short x2, const short y2, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">画线  <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a6">DrawText</a> (const char *Text, const short x, const short y, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制文本  <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__Utility.html#ga1">WORD</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a7">GetTextWidth</a> (const char *Text)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到文本的宽度  <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__Utility.html#ga1">WORD</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a8">GetTextHeight</a> (const char *Text)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">得到文本的高度  <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a9">DrawBitmap</a> (const char *pBmpName, const short x1, const short y1)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制位图  <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a10">DrawPolyLine</a> (const short n, const <a class="el" href="structFG__Point.html">FG_Point</a> *vert, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制折线  <a href="#a10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#a11">DrawDotRect</a> (const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;rect, const <a class="el" href="group__Color.html#ga0">COLORVAL</a> color)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘制点划线矩形  <a href="#a11"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Window&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p0">m_Win</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">X11窗口结构.  <a href="#p0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Display *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p1">m_Display</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">X11显示设备.  <a href="#p1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p2">m_Depth</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">颜色深度.  <a href="#p2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>GC&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p3">m_GC</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">绘图设备  <a href="#p3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>GC&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p4">m_CopyGC</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">缓冲区绘图设备  <a href="#p4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Pixmap&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p5">m_Buffer</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">缓冲区的位图  <a href="#p5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>Colormap&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p6">m_CMap</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">颜色表.  <a href="#p6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>XFontSet&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__X11DrawInterface.html#p7">m_FontSet</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">字体组  <a href="#p7"></a><br><br></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_X11DrawInterface::FG_X11DrawInterface" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> FG_X11DrawInterface::FG_X11DrawInterface </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">Window&nbsp;</td>          <td class="mdname" nowrap> <em>win</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>Display *&nbsp;</td>          <td class="mdname" nowrap> <em>display</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>screen</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>X11的绘图接口类的构造函数. <p><p>在文件<a class="el" href="FG__X11DrawInterface_8cpp-source.html">FG_X11DrawInterface.cpp</a>第<a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00049">49</a>行定义。<p>参考 <a class="el" href="FG__X11Adaptor_8cpp-source.html#l00058">COLOR_BLACK</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00062">COLOR_BLUE</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00063">COLOR_BLUE1</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00061">COLOR_DARKGRAY</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00059">COLOR_GRAY</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00064">COLOR_RED</a>、<a class="el" href="FG__X11Adaptor_8cpp-source.html#l00060">COLOR_WHITE</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00112">m_Buffer</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00115">m_CMap</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00109">m_CopyGC</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00103">m_Depth</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00118">m_FontSet</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00106">m_GC</a>、<a class="el" href="FG__Common_8h-source.html#l00046">NULL</a>、<a class="el" href="FG__Common_8h-source.html#l00062">SCREEN_HEIGHT</a>及<a class="el" href="FG__Common_8h-source.html#l00061">SCREEN_WIDTH</a>.    </td>  </tr></table><a class="anchor" name="a1" doxytag="FG_X11DrawInterface::~FG_X11DrawInterface" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> FG_X11DrawInterface::~<a class="el" href="classFG__X11DrawInterface.html">FG_X11DrawInterface</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>X11的绘图接口类的析构函数. <p><p>在文件<a class="el" href="FG__X11DrawInterface_8cpp-source.html">FG_X11DrawInterface.cpp</a>第<a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00093">93</a>行定义。<p>参考 <a class="el" href="FG__X11DrawInterface_8h-source.html#l00112">m_Buffer</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00109">m_CopyGC</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00097">m_Display</a>、<a class="el" href="FG__X11DrawInterface_8h-source.html#l00118">m_FontSet</a>及<a class="el" href="FG__X11DrawInterface_8h-source.html#l00106">m_GC</a>.    </td>  </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a2" doxytag="FG_X11DrawInterface::BeginDraw" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void FG_X11DrawInterface::BeginDraw </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="structFG__Rect.html">FG_Rect</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>rect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>开始重画 <p>该函数执行之后,所有的绘图操作都在一个缓冲区上进行,直到对应的<a class="el" href="classFG__OSDrawInterface.html#a3">FG_OSDrawInterface::EndDraw</a>调用才把缓冲区内容刷新到屏幕上 <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>rect</em>&nbsp;</td><td>需要重画的无效区域 </td></tr>  </table></dl><p>Implements <a class="el" href="classFG__OSDrawInterface.html#a2">FG_OSDrawInterface</a>.<p>在文件<a class="el" href="FG__X11DrawInterface_8cpp-source.html">FG_X11DrawInterface.cpp</a>第<a class="el" href="FG__X11DrawInterface_8cpp-source.html#l00102">102</a>行定义。    </td>  </tr></table><a class="anchor" name="a9" doxytag="FG_X11DrawInterface::DrawBitmap" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void FG_X11DrawInterface::DrawBitmap </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>pBmpName</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>x1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const short&nbsp;</td>          <td class="mdname" nowrap> <em>y1</em></td>        </tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -