Terminal.Gui.IMainLoopDriver.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Interface IMainLoopDriver
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IMainLoopDriver
  11. ">
  12. <meta name="generator" content="docfx 2.59.2.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.IMainLoopDriver">
  73. <h1 id="Terminal_Gui_IMainLoopDriver" data-uid="Terminal.Gui.IMainLoopDriver" class="text-break">Interface IMainLoopDriver
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Public interface to create your own platform specific main loop driver.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  80. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  81. <h5 id="Terminal_Gui_IMainLoopDriver_syntax">Syntax</h5>
  82. <div class="codewrapper">
  83. <pre><code class="lang-csharp hljs">public interface IMainLoopDriver</code></pre>
  84. </div>
  85. <h3 id="methods">Methods
  86. </h3>
  87. <a id="Terminal_Gui_IMainLoopDriver_EventsPending_" data-uid="Terminal.Gui.IMainLoopDriver.EventsPending*"></a>
  88. <h4 id="Terminal_Gui_IMainLoopDriver_EventsPending_System_Boolean_" data-uid="Terminal.Gui.IMainLoopDriver.EventsPending(System.Boolean)">EventsPending(Boolean)</h4>
  89. <div class="markdown level1 summary">
  90. Must report whether there are any events pending, or even block waiting for events.
  91. </div>
  92. <div class="markdown level1 conceptual"></div>
  93. <h5 class="decalaration">Declaration</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">bool EventsPending(bool wait)</code></pre>
  96. </div>
  97. <h5 class="parameters">Parameters</h5>
  98. <table class="table table-bordered table-striped table-condensed">
  99. <thead>
  100. <tr>
  101. <th>Type</th>
  102. <th>Name</th>
  103. <th>Description</th>
  104. </tr>
  105. </thead>
  106. <tbody>
  107. <tr>
  108. <td><span class="xref">System.Boolean</span></td>
  109. <td><span class="parametername">wait</span></td>
  110. <td>If set to <code>true</code> wait until an event is available, otherwise return immediately.</td>
  111. </tr>
  112. </tbody>
  113. </table>
  114. <h5 class="returns">Returns</h5>
  115. <table class="table table-bordered table-striped table-condensed">
  116. <thead>
  117. <tr>
  118. <th>Type</th>
  119. <th>Description</th>
  120. </tr>
  121. </thead>
  122. <tbody>
  123. <tr>
  124. <td><span class="xref">System.Boolean</span></td>
  125. <td><code>true</code>, if there were pending events, <code>false</code> otherwise.</td>
  126. </tr>
  127. </tbody>
  128. </table>
  129. <a id="Terminal_Gui_IMainLoopDriver_MainIteration_" data-uid="Terminal.Gui.IMainLoopDriver.MainIteration*"></a>
  130. <h4 id="Terminal_Gui_IMainLoopDriver_MainIteration" data-uid="Terminal.Gui.IMainLoopDriver.MainIteration">MainIteration()</h4>
  131. <div class="markdown level1 summary">
  132. The iteration function.
  133. </div>
  134. <div class="markdown level1 conceptual"></div>
  135. <h5 class="decalaration">Declaration</h5>
  136. <div class="codewrapper">
  137. <pre><code class="lang-csharp hljs">void MainIteration()</code></pre>
  138. </div>
  139. <a id="Terminal_Gui_IMainLoopDriver_Setup_" data-uid="Terminal.Gui.IMainLoopDriver.Setup*"></a>
  140. <h4 id="Terminal_Gui_IMainLoopDriver_Setup_Terminal_Gui_MainLoop_" data-uid="Terminal.Gui.IMainLoopDriver.Setup(Terminal.Gui.MainLoop)">Setup(MainLoop)</h4>
  141. <div class="markdown level1 summary">
  142. Initializes the main loop driver, gets the calling main loop for the initialization.
  143. </div>
  144. <div class="markdown level1 conceptual"></div>
  145. <h5 class="decalaration">Declaration</h5>
  146. <div class="codewrapper">
  147. <pre><code class="lang-csharp hljs">void Setup(MainLoop mainLoop)</code></pre>
  148. </div>
  149. <h5 class="parameters">Parameters</h5>
  150. <table class="table table-bordered table-striped table-condensed">
  151. <thead>
  152. <tr>
  153. <th>Type</th>
  154. <th>Name</th>
  155. <th>Description</th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td><a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a></td>
  161. <td><span class="parametername">mainLoop</span></td>
  162. <td>Main loop.</td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. <a id="Terminal_Gui_IMainLoopDriver_Wakeup_" data-uid="Terminal.Gui.IMainLoopDriver.Wakeup*"></a>
  167. <h4 id="Terminal_Gui_IMainLoopDriver_Wakeup" data-uid="Terminal.Gui.IMainLoopDriver.Wakeup">Wakeup()</h4>
  168. <div class="markdown level1 summary">
  169. Wakes up the mainloop that might be waiting on input, must be thread safe.
  170. </div>
  171. <div class="markdown level1 conceptual"></div>
  172. <h5 class="decalaration">Declaration</h5>
  173. <div class="codewrapper">
  174. <pre><code class="lang-csharp hljs">void Wakeup()</code></pre>
  175. </div>
  176. </article>
  177. </div>
  178. <div class="hidden-sm col-md-2" role="complementary">
  179. <div class="sideaffix">
  180. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  181. <h5>In This Article</h5>
  182. <div></div>
  183. </nav>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <footer>
  189. <div class="grad-bottom"></div>
  190. <div class="footer">
  191. <div class="container">
  192. <span class="pull-right">
  193. <a href="#top">Back to top</a>
  194. </span>
  195. <span>Generated by <strong>DocFX</strong></span>
  196. </div>
  197. </div>
  198. </footer>
  199. </div>
  200. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  201. <script type="text/javascript" src="../../styles/docfx.js"></script>
  202. <script type="text/javascript" src="../../styles/main.js"></script>
  203. </body>
  204. </html>