summaryrefslogtreecommitdiff
path: root/freebsdtvision/doc/html/system_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'freebsdtvision/doc/html/system_8h-source.html')
-rw-r--r--freebsdtvision/doc/html/system_8h-source.html187
1 files changed, 187 insertions, 0 deletions
diff --git a/freebsdtvision/doc/html/system_8h-source.html b/freebsdtvision/doc/html/system_8h-source.html
new file mode 100644
index 0000000..8a09ce5
--- /dev/null
+++ b/freebsdtvision/doc/html/system_8h-source.html
@@ -0,0 +1,187 @@
+<!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>system.h Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.2.18 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
+<hr><h1>system.h</h1><a href="system_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
+00002 <span class="comment"> * system.h</span>
+00003 <span class="comment"> *</span>
+00004 <span class="comment"> * Turbo Vision - Version 2.0</span>
+00005 <span class="comment"> *</span>
+00006 <span class="comment"> * Copyright (c) 1994 by Borland International</span>
+00007 <span class="comment"> * All Rights Reserved.</span>
+00008 <span class="comment"> *</span>
+00009 <span class="comment"> * Modified by Sergio Sigala &lt;sergio@sigala.it&gt;</span>
+00010 <span class="comment"> */</span>
+00011
+00012 <span class="preprocessor">#if !defined( __EVENT_CODES )</span>
+00013 <span class="preprocessor"></span><span class="preprocessor">#define __EVENT_CODES</span>
+00014 <span class="preprocessor"></span>
+00019 <span class="comment">/* Event codes */</span>
+00020
+00025 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a0">evMouseDown</a> = 0x0001;
+00026
+00031 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a1">evMouseUp</a> = 0x0002;
+00032
+00037 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a2">evMouseMove</a> = 0x0004;
+00038
+00043 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a3">evMouseAuto</a> = 0x0008;
+00044
+00049 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a4">evKeyDown</a> = 0x0010;
+00050
+00055 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a5">evCommand</a> = 0x0100;
+00056
+00061 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a6">evBroadcast</a> = 0x0200;
+00062
+00063 <span class="comment">/* Event masks */</span>
+00064
+00069 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a7">evNothing</a> = 0x0000;
+00070
+00075 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a8">evMouse</a> = 0x000f;
+00076
+00081 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a9">evKeyboard</a> = 0x0010;
+00082
+00087 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="system_8h.html#a10">evMessage</a> = 0xFF00;
+00088
+00089 <span class="comment">/* Mouse button state masks */</span>
+00090
+00091 <span class="keyword">const</span> <span class="keywordtype">int</span> mbLeftButton = 0x01;
+00092 <span class="keyword">const</span> <span class="keywordtype">int</span> mbRightButton = 0x02;
+00093
+00094 <span class="comment">/* Mouse event flags */</span>
+00095
+00096 <span class="keyword">const</span> <span class="keywordtype">int</span> meMouseMoved = 0x01;
+00097 <span class="keyword">const</span> <span class="keywordtype">int</span> meDoubleClick = 0x02;
+00098
+00099 <span class="preprocessor">#endif // __EVENT_CODES</span>
+00100 <span class="preprocessor"></span>
+00101 <span class="preprocessor">#if defined( Uses_TEvent ) &amp;&amp; !defined( __TEvent )</span>
+00102 <span class="preprocessor"></span><span class="preprocessor">#define __TEvent</span>
+00103 <span class="preprocessor"></span>
+<a name="l00114"></a><a class="code" href="structMouseEventType.html">00114</a> <span class="keyword">struct </span><a class="code" href="structMouseEventType.html">MouseEventType</a>
+00115 {
+<a name="l00119"></a><a class="code" href="structMouseEventType.html#m0">00119</a> <a class="code" href="classTPoint.html">TPoint</a> <a class="code" href="structMouseEventType.html#m0">where</a>;
+<a name="l00134"></a><a class="code" href="structMouseEventType.html#m1">00134</a> <a class="code" href="ttypes_8h.html#a3">ulong</a> <a class="code" href="structMouseEventType.html#m1">eventFlags</a>; <span class="comment">// Replacement for doubleClick.</span>
+<a name="l00158"></a><a class="code" href="structMouseEventType.html#m2">00158</a> <span class="comment"></span> <a class="code" href="ttypes_8h.html#a3">ulong</a> <a class="code" href="structMouseEventType.html#m2">controlKeyState</a>;
+<a name="l00182"></a><a class="code" href="structMouseEventType.html#m3">00182</a> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structMouseEventType.html#m3">buttons</a>;
+00183 };
+00184
+00185 <span class="preprocessor">#include &lt;myendian.h&gt;</span>
+00186
+<a name="l00193"></a><a class="code" href="structCharScanType.html">00193</a> <span class="keyword">struct </span><a class="code" href="structCharScanType.html">CharScanType</a>
+00194 {
+00195 <span class="preprocessor">#if (BYTE_ORDER == LITTLE_ENDIAN)</span>
+00196 <span class="preprocessor"></span>
+00203 <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structCharScanType.html#m0">charCode</a>;
+00210 <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structCharScanType.html#m1">scanCode</a>;
+00211 <span class="preprocessor">#elif (BYTE_ORDER == BIG_ENDIAN)</span>
+00212 <span class="preprocessor"></span>
+<a name="l00215"></a><a class="code" href="structCharScanType.html#m1">00215</a> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structCharScanType.html#m1">scanCode</a>;
+<a name="l00219"></a><a class="code" href="structCharScanType.html#m0">00219</a> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structCharScanType.html#m0">charCode</a>;
+00220 <span class="preprocessor">#else</span>
+00221 <span class="preprocessor"></span><span class="preprocessor"> #error architecture not supported by this library</span>
+00222 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
+00223 <span class="preprocessor"></span>};
+00224
+<a name="l00239"></a><a class="code" href="structKeyDownEvent.html">00239</a> <span class="keyword">struct </span><a class="code" href="structKeyDownEvent.html">KeyDownEvent</a>
+00240 {
+00241 <span class="keyword">union </span><span class="comment">//____keyUnion</span>
+00242 {
+<a name="l00249"></a><a class="code" href="structKeyDownEvent.html#m0">00249</a> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="structKeyDownEvent.html#m0">keyCode</a>;
+<a name="l00254"></a><a class="code" href="structKeyDownEvent.html#m1">00254</a> <a class="code" href="structCharScanType.html">CharScanType</a> <a class="code" href="structKeyDownEvent.html#m1">charScan</a>;
+00255 };
+<a name="l00279"></a><a class="code" href="structKeyDownEvent.html#m2">00279</a> <a class="code" href="ttypes_8h.html#a3">ulong</a> <a class="code" href="structKeyDownEvent.html#m2">controlKeyState</a>;
+00280 };
+00281
+<a name="l00294"></a><a class="code" href="structMessageEvent.html">00294</a> <span class="keyword">struct </span><a class="code" href="structMessageEvent.html">MessageEvent</a>
+00295 {
+<a name="l00303"></a><a class="code" href="structMessageEvent.html#m0">00303</a> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="structMessageEvent.html#m0">command</a>;
+00304 <span class="keyword">union </span><span class="comment">//____pointerUnion</span>
+00305 {
+<a name="l00313"></a><a class="code" href="structMessageEvent.html#m1">00313</a> <span class="keywordtype">void</span> *<a class="code" href="structMessageEvent.html#m1">infoPtr</a>;
+<a name="l00317"></a><a class="code" href="structMessageEvent.html#m2">00317</a> <span class="keywordtype">long</span> <a class="code" href="structMessageEvent.html#m2">infoLong</a>;
+<a name="l00321"></a><a class="code" href="structMessageEvent.html#m3">00321</a> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="structMessageEvent.html#m3">infoWord</a>;
+<a name="l00325"></a><a class="code" href="structMessageEvent.html#m4">00325</a> <span class="keywordtype">short</span> <a class="code" href="structMessageEvent.html#m4">infoInt</a>;
+<a name="l00329"></a><a class="code" href="structMessageEvent.html#m5">00329</a> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="structMessageEvent.html#m5">infoByte</a>;
+<a name="l00333"></a><a class="code" href="structMessageEvent.html#m6">00333</a> <span class="keywordtype">char</span> <a class="code" href="structMessageEvent.html#m6">infoChar</a>;
+00334 };
+00335 };
+00336
+<a name="l00349"></a><a class="code" href="structTEvent.html">00349</a> <span class="keyword">struct </span><a class="code" href="structTEvent.html">TEvent</a>
+00350 {
+<a name="l00391"></a><a class="code" href="structTEvent.html#m0">00391</a> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="structTEvent.html#m0">what</a>;
+00392 <span class="keyword">union </span><span class="comment">//____eventUnion</span>
+00393 {
+<a name="l00397"></a><a class="code" href="structTEvent.html#m1">00397</a> <a class="code" href="structMouseEventType.html">MouseEventType</a> <a class="code" href="structTEvent.html#m1">mouse</a>;
+<a name="l00401"></a><a class="code" href="structTEvent.html#m2">00401</a> <a class="code" href="structKeyDownEvent.html">KeyDownEvent</a> <a class="code" href="structTEvent.html#m2">keyDown</a>;
+<a name="l00405"></a><a class="code" href="structTEvent.html#m3">00405</a> <a class="code" href="structMessageEvent.html">MessageEvent</a> <a class="code" href="structTEvent.html#m3">message</a>;
+00406 };
+00407 };
+00408
+00409 <span class="preprocessor">#endif // Uses_TEvent</span>
+00410 <span class="preprocessor"></span>
+00411 <span class="preprocessor">#if defined( Uses_TEventQueue ) &amp;&amp; !defined( __TEventQueue )</span>
+00412 <span class="preprocessor"></span><span class="preprocessor">#define __TEventQueue</span>
+00413 <span class="preprocessor"></span>
+<a name="l00425"></a><a class="code" href="classTEventQueue.html">00425</a> <span class="keyword">class </span><a class="code" href="classTEventQueue.html">TEventQueue</a>
+00426 {
+00427 <span class="keyword">public</span>:
+<a name="l00435"></a><a class="code" href="classTEventQueue.html#p0">00435</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="classTEventQueue.html#p0">doubleDelay</a>;
+<a name="l00440"></a><a class="code" href="classTEventQueue.html#p1">00440</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a13">Boolean</a> <a class="code" href="classTEventQueue.html#p1">mouseReverse</a>;
+00441 };
+00442
+00443 <span class="preprocessor">#endif // Uses_TEventQueue</span>
+00444 <span class="preprocessor"></span>
+00445 <span class="preprocessor">#if defined( Uses_TScreen ) &amp;&amp; !defined( __TScreen )</span>
+00446 <span class="preprocessor"></span><span class="preprocessor">#define __TScreen</span>
+00447 <span class="preprocessor"></span>
+<a name="l00458"></a><a class="code" href="classTDisplay.html">00458</a> <span class="keyword">class </span><a class="code" href="classTDisplay.html">TDisplay</a>
+00459 {
+00460 <span class="keyword">public</span>:
+<a name="l00466"></a><a class="code" href="classTDisplay.html#s4">00466</a> <span class="keyword">enum</span> <a class="code" href="classTDisplay.html#s4">videoModes</a>
+00467 {
+00468 smBW80 = 0x0002,
+00469 smCO80 = 0x0003,
+00470 smMono = 0x0007,
+00471 smFont8x8 = 0x0100
+00472 };
+00473 };
+00474
+00475 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
+00476
+<a name="l00489"></a><a class="code" href="classTScreen.html">00489</a> <span class="keyword">class </span><a class="code" href="classTScreen.html">TScreen</a>: <span class="keyword">public</span> <a class="code" href="classTDisplay.html">TDisplay</a>
+00490 {
+00491 <span class="keyword">public</span>:
+00499 <a class="code" href="classTScreen.html#a0">TScreen</a>();
+00505 <a class="code" href="classTScreen.html#a1">~TScreen</a>();
+00509 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d0">getEvent</a>(<a class="code" href="structTEvent.html">TEvent</a> &amp;event);
+00513 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d1">makeBeep</a>();
+00519 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d2">putEvent</a>(<a class="code" href="structTEvent.html">TEvent</a> &amp;event);
+00527 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d3">resume</a>();
+00535 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d4">suspend</a>();
+00541 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d5">drawCursor</a>(<span class="keywordtype">int</span> show);
+00547 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d6">drawMouse</a>(<span class="keywordtype">int</span> show);
+00553 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d7">moveCursor</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
+00561 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTScreen.html#d8">writeRow</a>(<span class="keywordtype">int</span> dst, <a class="code" href="ttypes_8h.html#a0">ushort</a> *src, <span class="keywordtype">int</span> len);
+<a name="l00569"></a><a class="code" href="classTScreen.html#p0">00569</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="classTScreen.html#p0">screenMode</a>;
+<a name="l00575"></a><a class="code" href="classTScreen.html#p1">00575</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="classTScreen.html#p1">screenWidth</a>;
+<a name="l00581"></a><a class="code" href="classTScreen.html#p2">00581</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a1">uchar</a> <a class="code" href="classTScreen.html#p2">screenHeight</a>;
+<a name="l00587"></a><a class="code" href="classTScreen.html#p3">00587</a> <span class="keyword">static</span> <a class="code" href="ttypes_8h.html#a0">ushort</a> *<a class="code" href="classTScreen.html#p3">screenBuffer</a>;
+<a name="l00595"></a><a class="code" href="classTScreen.html#p4">00595</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p4">fdSetRead</a>;
+<a name="l00602"></a><a class="code" href="classTScreen.html#p5">00602</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p5">fdSetWrite</a>;
+<a name="l00609"></a><a class="code" href="classTScreen.html#p6">00609</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p6">fdSetExcept</a>;
+<a name="l00616"></a><a class="code" href="classTScreen.html#p7">00616</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p7">fdActualRead</a>;
+<a name="l00623"></a><a class="code" href="classTScreen.html#p8">00623</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p8">fdActualWrite</a>;
+<a name="l00630"></a><a class="code" href="classTScreen.html#p9">00630</a> <span class="keyword">static</span> fd_set <a class="code" href="classTScreen.html#p9">fdActualExcept</a>;
+00631 };
+00632
+00633 <span class="preprocessor">#endif // Uses_TScreen</span>
+</pre></div><hr><address style="align: right;"><small>Generated on Wed Apr 2 22:13:09 2003 for TVision 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.2.18 </small></address>
+</body>
+</html>