Terminal.Gui.FakeMainLoop.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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>Class FakeMainLoop
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class FakeMainLoop
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.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. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.FakeMainLoop">
  74. <h1 id="Terminal_Gui_FakeMainLoop" data-uid="Terminal.Gui.FakeMainLoop" class="text-break">Class FakeMainLoop
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Mainloop intended to be used with the .NET System.Console API, and can
  78. be used on Windows and Unix, it is cross platform but lacks things like
  79. file descriptor monitoring.
  80. </div>
  81. <div class="markdown level0 conceptual"></div>
  82. <div class="inheritance">
  83. <h5>Inheritance</h5>
  84. <div class="level0"><span class="xref">System.Object</span></div>
  85. <div class="level1"><span class="xref">FakeMainLoop</span></div>
  86. </div>
  87. <div class="implements">
  88. <h5>Implements</h5>
  89. <div><a class="xref" href="Terminal.Gui.IMainLoopDriver.html">IMainLoopDriver</a></div>
  90. </div>
  91. <h5 id="Terminal_Gui_FakeMainLoop_remarks"><strong>Remarks</strong></h5>
  92. <div class="markdown level0 remarks">
  93. This implementation is used for FakeDriver.
  94. </div>
  95. <div class="inheritedMembers">
  96. <h5>Inherited Members</h5>
  97. <div>
  98. <span class="xref">System.Object.Equals(System.Object)</span>
  99. </div>
  100. <div>
  101. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  102. </div>
  103. <div>
  104. <span class="xref">System.Object.GetHashCode()</span>
  105. </div>
  106. <div>
  107. <span class="xref">System.Object.GetType()</span>
  108. </div>
  109. <div>
  110. <span class="xref">System.Object.MemberwiseClone()</span>
  111. </div>
  112. <div>
  113. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  114. </div>
  115. <div>
  116. <span class="xref">System.Object.ToString()</span>
  117. </div>
  118. </div>
  119. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  120. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  121. <h5 id="Terminal_Gui_FakeMainLoop_syntax">Syntax</h5>
  122. <div class="codewrapper">
  123. <pre><code class="lang-csharp hljs">public class FakeMainLoop : IMainLoopDriver</code></pre>
  124. </div>
  125. <h3 id="constructors">Constructors
  126. </h3>
  127. <span class="small pull-right mobile-hide">
  128. <span class="divider">|</span>
  129. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop__ctor_System_Func_System_ConsoleKeyInfo__.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.%23ctor(System.Func%7BSystem.ConsoleKeyInfo%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  130. </span>
  131. <span class="small pull-right mobile-hide">
  132. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L32">View Source</a>
  133. </span>
  134. <a id="Terminal_Gui_FakeMainLoop__ctor_" data-uid="Terminal.Gui.FakeMainLoop.#ctor*"></a>
  135. <h4 id="Terminal_Gui_FakeMainLoop__ctor_System_Func_System_ConsoleKeyInfo__" data-uid="Terminal.Gui.FakeMainLoop.#ctor(System.Func{System.ConsoleKeyInfo})">FakeMainLoop(Func&lt;ConsoleKeyInfo&gt;)</h4>
  136. <div class="markdown level1 summary">
  137. Initializes the class.
  138. </div>
  139. <div class="markdown level1 conceptual"></div>
  140. <h5 class="decalaration">Declaration</h5>
  141. <div class="codewrapper">
  142. <pre><code class="lang-csharp hljs">public FakeMainLoop(Func&lt;ConsoleKeyInfo&gt; consoleKeyReaderFn = null)</code></pre>
  143. </div>
  144. <h5 class="parameters">Parameters</h5>
  145. <table class="table table-bordered table-striped table-condensed">
  146. <thead>
  147. <tr>
  148. <th>Type</th>
  149. <th>Name</th>
  150. <th>Description</th>
  151. </tr>
  152. </thead>
  153. <tbody>
  154. <tr>
  155. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.ConsoleKeyInfo</span>&gt;</td>
  156. <td><span class="parametername">consoleKeyReaderFn</span></td>
  157. <td>The method to be called to get a key from the console.</td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. <h3 id="fields">Fields
  162. </h3>
  163. <span class="small pull-right mobile-hide">
  164. <span class="divider">|</span>
  165. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop_KeyPressed.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.KeyPressed%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  166. </span>
  167. <span class="small pull-right mobile-hide">
  168. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L23">View Source</a>
  169. </span>
  170. <h4 id="Terminal_Gui_FakeMainLoop_KeyPressed" data-uid="Terminal.Gui.FakeMainLoop.KeyPressed">KeyPressed</h4>
  171. <div class="markdown level1 summary">
  172. Invoked when a Key is pressed.
  173. </div>
  174. <div class="markdown level1 conceptual"></div>
  175. <h5 class="decalaration">Declaration</h5>
  176. <div class="codewrapper">
  177. <pre><code class="lang-csharp hljs">public Action&lt;ConsoleKeyInfo&gt; KeyPressed</code></pre>
  178. </div>
  179. <h5 class="fieldValue">Field Value</h5>
  180. <table class="table table-bordered table-striped table-condensed">
  181. <thead>
  182. <tr>
  183. <th>Type</th>
  184. <th>Description</th>
  185. </tr>
  186. </thead>
  187. <tbody>
  188. <tr>
  189. <td><span class="xref">System.Action</span>&lt;<span class="xref">System.ConsoleKeyInfo</span>&gt;</td>
  190. <td></td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <h3 id="eii">Explicit Interface Implementations
  195. </h3>
  196. <span class="small pull-right mobile-hide">
  197. <span class="divider">|</span>
  198. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_EventsPending_System_Boolean_.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.Terminal%23Gui%23IMainLoopDriver%23EventsPending(System.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  199. </span>
  200. <span class="small pull-right mobile-hide">
  201. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L60">View Source</a>
  202. </span>
  203. <a id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_EventsPending_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#EventsPending*"></a>
  204. <h4 id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_EventsPending_System_Boolean_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#EventsPending(System.Boolean)">IMainLoopDriver.EventsPending(Boolean)</h4>
  205. <div class="markdown level1 summary"></div>
  206. <div class="markdown level1 conceptual"></div>
  207. <h5 class="decalaration">Declaration</h5>
  208. <div class="codewrapper">
  209. <pre><code class="lang-csharp hljs">bool IMainLoopDriver.EventsPending(bool wait)</code></pre>
  210. </div>
  211. <h5 class="parameters">Parameters</h5>
  212. <table class="table table-bordered table-striped table-condensed">
  213. <thead>
  214. <tr>
  215. <th>Type</th>
  216. <th>Name</th>
  217. <th>Description</th>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr>
  222. <td><span class="xref">System.Boolean</span></td>
  223. <td><span class="parametername">wait</span></td>
  224. <td></td>
  225. </tr>
  226. </tbody>
  227. </table>
  228. <h5 class="returns">Returns</h5>
  229. <table class="table table-bordered table-striped table-condensed">
  230. <thead>
  231. <tr>
  232. <th>Type</th>
  233. <th>Description</th>
  234. </tr>
  235. </thead>
  236. <tbody>
  237. <tr>
  238. <td><span class="xref">System.Boolean</span></td>
  239. <td></td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. <span class="small pull-right mobile-hide">
  244. <span class="divider">|</span>
  245. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_MainIteration.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.Terminal%23Gui%23IMainLoopDriver%23MainIteration%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  246. </span>
  247. <span class="small pull-right mobile-hide">
  248. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L96">View Source</a>
  249. </span>
  250. <a id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_MainIteration_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#MainIteration*"></a>
  251. <h4 id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_MainIteration" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#MainIteration">IMainLoopDriver.MainIteration()</h4>
  252. <div class="markdown level1 summary"></div>
  253. <div class="markdown level1 conceptual"></div>
  254. <h5 class="decalaration">Declaration</h5>
  255. <div class="codewrapper">
  256. <pre><code class="lang-csharp hljs">void IMainLoopDriver.MainIteration()</code></pre>
  257. </div>
  258. <span class="small pull-right mobile-hide">
  259. <span class="divider">|</span>
  260. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Setup_Terminal_Gui_MainLoop_.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.Terminal%23Gui%23IMainLoopDriver%23Setup(Terminal.Gui.MainLoop)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  261. </span>
  262. <span class="small pull-right mobile-hide">
  263. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L49">View Source</a>
  264. </span>
  265. <a id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Setup_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#Setup*"></a>
  266. <h4 id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Setup_Terminal_Gui_MainLoop_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#Setup(Terminal.Gui.MainLoop)">IMainLoopDriver.Setup(MainLoop)</h4>
  267. <div class="markdown level1 summary"></div>
  268. <div class="markdown level1 conceptual"></div>
  269. <h5 class="decalaration">Declaration</h5>
  270. <div class="codewrapper">
  271. <pre><code class="lang-csharp hljs">void IMainLoopDriver.Setup(MainLoop mainLoop)</code></pre>
  272. </div>
  273. <h5 class="parameters">Parameters</h5>
  274. <table class="table table-bordered table-striped table-condensed">
  275. <thead>
  276. <tr>
  277. <th>Type</th>
  278. <th>Name</th>
  279. <th>Description</th>
  280. </tr>
  281. </thead>
  282. <tbody>
  283. <tr>
  284. <td><a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a></td>
  285. <td><span class="parametername">mainLoop</span></td>
  286. <td></td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <span class="small pull-right mobile-hide">
  291. <span class="divider">|</span>
  292. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Wakeup.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop.Terminal%23Gui%23IMainLoopDriver%23Wakeup%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  293. </span>
  294. <span class="small pull-right mobile-hide">
  295. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L56">View Source</a>
  296. </span>
  297. <a id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Wakeup_" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#Wakeup*"></a>
  298. <h4 id="Terminal_Gui_FakeMainLoop_Terminal_Gui_IMainLoopDriver_Wakeup" data-uid="Terminal.Gui.FakeMainLoop.Terminal#Gui#IMainLoopDriver#Wakeup">IMainLoopDriver.Wakeup()</h4>
  299. <div class="markdown level1 summary"></div>
  300. <div class="markdown level1 conceptual"></div>
  301. <h5 class="decalaration">Declaration</h5>
  302. <div class="codewrapper">
  303. <pre><code class="lang-csharp hljs">void IMainLoopDriver.Wakeup()</code></pre>
  304. </div>
  305. <h3 id="implements">Implements</h3>
  306. <div>
  307. <a class="xref" href="Terminal.Gui.IMainLoopDriver.html">IMainLoopDriver</a>
  308. </div>
  309. </article>
  310. </div>
  311. <div class="hidden-sm col-md-2" role="complementary">
  312. <div class="sideaffix">
  313. <div class="contribution">
  314. <ul class="nav">
  315. <li>
  316. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_FakeMainLoop.md&amp;value=---%0Auid%3A%20Terminal.Gui.FakeMainLoop%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  317. </li>
  318. <li>
  319. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs/#L13" class="contribution-link">View Source</a>
  320. </li>
  321. </ul>
  322. </div>
  323. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  324. <h5>In This Article</h5>
  325. <div></div>
  326. </nav>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. <footer>
  332. <div class="grad-bottom"></div>
  333. <div class="footer">
  334. <div class="container">
  335. <span class="pull-right">
  336. <a href="#top">Back to top</a>
  337. </span>
  338. <span>Generated by <strong>DocFX</strong></span>
  339. </div>
  340. </div>
  341. </footer>
  342. </div>
  343. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  344. <script type="text/javascript" src="../../styles/docfx.js"></script>
  345. <script type="text/javascript" src="../../styles/main.js"></script>
  346. </body>
  347. </html>