Terminal.Responder.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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 Responder
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Responder
  11. ">
  12. <meta name="generator" content="docfx 2.18.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="">
  18. <meta property="docfx:tocrel" content="../toc.html">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="Terminal.Responder">
  63. <h1 id="Terminal_Responder" data-uid="Terminal.Responder">Class Responder
  64. </h1>
  65. <div class="markdown level0 summary"></div>
  66. <div class="markdown level0 conceptual"></div>
  67. <div class="inheritance">
  68. <h5>Inheritance</h5>
  69. <div class="level0"><span class="xref">System.Object</span></div>
  70. <div class="level1"><span class="xref">Responder</span></div>
  71. </div>
  72. <div class="level2"><a class="xref" href="Terminal.View.html">View</a></div>
  73. <h6><strong>Namespace</strong>: <a class="xref" href="../Terminal.html">Terminal</a></h6>
  74. <h6><strong>Assembly</strong>: Terminal.dll</h6>
  75. <h5 id="Terminal_Responder_syntax">Syntax</h5>
  76. <div class="codewrapper">
  77. <pre><code class="lang-csharp hljs">public class Responder</code></pre>
  78. </div>
  79. <h3 id="constructors">Constructors
  80. </h3>
  81. <a id="Terminal_Responder__ctor_" data-uid="Terminal.Responder.#ctor*"></a>
  82. <h4 id="Terminal_Responder__ctor" data-uid="Terminal.Responder.#ctor">Responder()</h4>
  83. <div class="markdown level1 summary"></div>
  84. <div class="markdown level1 conceptual"></div>
  85. <h5 class="decalaration">Declaration</h5>
  86. <div class="codewrapper">
  87. <pre><code class="lang-csharp hljs">public Responder ();</code></pre>
  88. </div>
  89. <h3 id="properties">Properties
  90. </h3>
  91. <a id="Terminal_Responder_CanFocus_" data-uid="Terminal.Responder.CanFocus*"></a>
  92. <h4 id="Terminal_Responder_CanFocus" data-uid="Terminal.Responder.CanFocus">CanFocus</h4>
  93. <div class="markdown level1 summary"></div>
  94. <div class="markdown level1 conceptual"></div>
  95. <h5 class="decalaration">Declaration</h5>
  96. <div class="codewrapper">
  97. <pre><code class="lang-csharp hljs">public virtual bool CanFocus { get; set; }</code></pre>
  98. </div>
  99. <h5 class="propertyValue">Property Value</h5>
  100. <table class="table table-bordered table-striped table-condensed">
  101. <thead>
  102. <tr>
  103. <th>Type</th>
  104. <th>Description</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. <tr>
  109. <td><span class="xref">System.Boolean</span></td>
  110. <td><p>To be added.</p>
  111. </td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <a id="Terminal_Responder_HasFocus_" data-uid="Terminal.Responder.HasFocus*"></a>
  116. <h4 id="Terminal_Responder_HasFocus" data-uid="Terminal.Responder.HasFocus">HasFocus</h4>
  117. <div class="markdown level1 summary"></div>
  118. <div class="markdown level1 conceptual"></div>
  119. <h5 class="decalaration">Declaration</h5>
  120. <div class="codewrapper">
  121. <pre><code class="lang-csharp hljs">public virtual bool HasFocus { get; }</code></pre>
  122. </div>
  123. <h5 class="propertyValue">Property Value</h5>
  124. <table class="table table-bordered table-striped table-condensed">
  125. <thead>
  126. <tr>
  127. <th>Type</th>
  128. <th>Description</th>
  129. </tr>
  130. </thead>
  131. <tbody>
  132. <tr>
  133. <td><span class="xref">System.Boolean</span></td>
  134. <td><p>To be added.</p>
  135. </td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. <h3 id="methods">Methods
  140. </h3>
  141. <a id="Terminal_Responder_MouseEvent_" data-uid="Terminal.Responder.MouseEvent*"></a>
  142. <h4 id="Terminal_Responder_MouseEvent_Terminal_MouseEvent_" data-uid="Terminal.Responder.MouseEvent(Terminal.MouseEvent)">MouseEvent(MouseEvent)</h4>
  143. <div class="markdown level1 summary"></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">public virtual bool MouseEvent (Terminal.MouseEvent me);</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.MouseEvent.html">MouseEvent</a></td>
  161. <td><span class="parametername">me</span></td>
  162. <td><p>To be added.</p>
  163. </td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. <h5 class="returns">Returns</h5>
  168. <table class="table table-bordered table-striped table-condensed">
  169. <thead>
  170. <tr>
  171. <th>Type</th>
  172. <th>Description</th>
  173. </tr>
  174. </thead>
  175. <tbody>
  176. <tr>
  177. <td><span class="xref">System.Boolean</span></td>
  178. <td><p>To be added.</p>
  179. </td>
  180. </tr>
  181. </tbody>
  182. </table>
  183. <a id="Terminal_Responder_ProcessColdKey_" data-uid="Terminal.Responder.ProcessColdKey*"></a>
  184. <h4 id="Terminal_Responder_ProcessColdKey_Terminal_KeyEvent_" data-uid="Terminal.Responder.ProcessColdKey(Terminal.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  185. <div class="markdown level1 summary"><p>This method can be overwritten by views that
  186. want to provide accelerator functionality
  187. (Alt-key for example), but without
  188. interefering with normal ProcessKey behavior.</p>
  189. </div>
  190. <div class="markdown level1 conceptual"></div>
  191. <h5 class="decalaration">Declaration</h5>
  192. <div class="codewrapper">
  193. <pre><code class="lang-csharp hljs">public virtual bool ProcessColdKey (Terminal.KeyEvent kb);</code></pre>
  194. </div>
  195. <h5 class="parameters">Parameters</h5>
  196. <table class="table table-bordered table-striped table-condensed">
  197. <thead>
  198. <tr>
  199. <th>Type</th>
  200. <th>Name</th>
  201. <th>Description</th>
  202. </tr>
  203. </thead>
  204. <tbody>
  205. <tr>
  206. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  207. <td><span class="parametername">kb</span></td>
  208. <td><p>To be added.</p>
  209. </td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <h5 class="returns">Returns</h5>
  214. <table class="table table-bordered table-striped table-condensed">
  215. <thead>
  216. <tr>
  217. <th>Type</th>
  218. <th>Description</th>
  219. </tr>
  220. </thead>
  221. <tbody>
  222. <tr>
  223. <td><span class="xref">System.Boolean</span></td>
  224. <td><p>To be added.</p>
  225. </td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <h5 id="Terminal_Responder_ProcessColdKey_Terminal_KeyEvent__remarks">Remarks</h5>
  230. <div class="markdown level1 remarks"><p>
  231. After keys are sent to the subviews on the
  232. current view, all the view are
  233. processed and the key is passed to the views
  234. to allow some of them to process the keystroke
  235. as a cold-key. </p>
  236. <p>
  237. This functionality is used, for example, by
  238. default buttons to act on the enter key.
  239. Processing this as a hot-key would prevent
  240. non-default buttons from consuming the enter
  241. keypress when they have the focus.
  242. </p></div>
  243. <a id="Terminal_Responder_ProcessHotKey_" data-uid="Terminal.Responder.ProcessHotKey*"></a>
  244. <h4 id="Terminal_Responder_ProcessHotKey_Terminal_KeyEvent_" data-uid="Terminal.Responder.ProcessHotKey(Terminal.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  245. <div class="markdown level1 summary"><p>This method can be overwritten by view that
  246. want to provide accelerator functionality
  247. (Alt-key for example).</p>
  248. </div>
  249. <div class="markdown level1 conceptual"></div>
  250. <h5 class="decalaration">Declaration</h5>
  251. <div class="codewrapper">
  252. <pre><code class="lang-csharp hljs">public virtual bool ProcessHotKey (Terminal.KeyEvent kb);</code></pre>
  253. </div>
  254. <h5 class="parameters">Parameters</h5>
  255. <table class="table table-bordered table-striped table-condensed">
  256. <thead>
  257. <tr>
  258. <th>Type</th>
  259. <th>Name</th>
  260. <th>Description</th>
  261. </tr>
  262. </thead>
  263. <tbody>
  264. <tr>
  265. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  266. <td><span class="parametername">kb</span></td>
  267. <td><p>To be added.</p>
  268. </td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. <h5 class="returns">Returns</h5>
  273. <table class="table table-bordered table-striped table-condensed">
  274. <thead>
  275. <tr>
  276. <th>Type</th>
  277. <th>Description</th>
  278. </tr>
  279. </thead>
  280. <tbody>
  281. <tr>
  282. <td><span class="xref">System.Boolean</span></td>
  283. <td><p>To be added.</p>
  284. </td>
  285. </tr>
  286. </tbody>
  287. </table>
  288. <h5 id="Terminal_Responder_ProcessHotKey_Terminal_KeyEvent__remarks">Remarks</h5>
  289. <div class="markdown level1 remarks"><p>
  290. Before keys are sent to the subview on the
  291. current view, all the views are
  292. processed and the key is passed to the widgets
  293. to allow some of them to process the keystroke
  294. as a hot-key. </p>
  295. <p>
  296. For example, if you implement a button that
  297. has a hotkey ok &quot;o&quot;, you would catch the
  298. combination Alt-o here. If the event is
  299. caught, you must return true to stop the
  300. keystroke from being dispatched to other
  301. views.
  302. </p></div>
  303. <a id="Terminal_Responder_ProcessKey_" data-uid="Terminal.Responder.ProcessKey*"></a>
  304. <h4 id="Terminal_Responder_ProcessKey_Terminal_KeyEvent_" data-uid="Terminal.Responder.ProcessKey(Terminal.KeyEvent)">ProcessKey(KeyEvent)</h4>
  305. <div class="markdown level1 summary"><p>If the view is focused, gives the view a
  306. chance to process the keystroke.</p>
  307. </div>
  308. <div class="markdown level1 conceptual"></div>
  309. <h5 class="decalaration">Declaration</h5>
  310. <div class="codewrapper">
  311. <pre><code class="lang-csharp hljs">public virtual bool ProcessKey (Terminal.KeyEvent kb);</code></pre>
  312. </div>
  313. <h5 class="parameters">Parameters</h5>
  314. <table class="table table-bordered table-striped table-condensed">
  315. <thead>
  316. <tr>
  317. <th>Type</th>
  318. <th>Name</th>
  319. <th>Description</th>
  320. </tr>
  321. </thead>
  322. <tbody>
  323. <tr>
  324. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  325. <td><span class="parametername">kb</span></td>
  326. <td><p>To be added.</p>
  327. </td>
  328. </tr>
  329. </tbody>
  330. </table>
  331. <h5 class="returns">Returns</h5>
  332. <table class="table table-bordered table-striped table-condensed">
  333. <thead>
  334. <tr>
  335. <th>Type</th>
  336. <th>Description</th>
  337. </tr>
  338. </thead>
  339. <tbody>
  340. <tr>
  341. <td><span class="xref">System.Boolean</span></td>
  342. <td><p>To be added.</p>
  343. </td>
  344. </tr>
  345. </tbody>
  346. </table>
  347. <h5 id="Terminal_Responder_ProcessKey_Terminal_KeyEvent__remarks">Remarks</h5>
  348. <div class="markdown level1 remarks"><p>
  349. Views can override this method if they are
  350. interested in processing the given keystroke.
  351. If they consume the keystroke, they must
  352. return true to stop the keystroke from being
  353. processed by other widgets or consumed by the
  354. widget engine. If they return false, the
  355. keystroke will be passed using the ProcessColdKey
  356. method to other views to process.
  357. </p>
  358. <p>
  359. The View implementation does nothing but return false,
  360. so it is not necessary to call base.ProcessKey if you
  361. derive directly from View, but you should if you derive
  362. other View subclasses.
  363. </p></div>
  364. </article>
  365. </div>
  366. <div class="hidden-sm col-md-2" role="complementary">
  367. <div class="sideaffix">
  368. <div class="contribution">
  369. <ul class="nav">
  370. </ul>
  371. </div>
  372. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  373. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  374. </nav>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <footer>
  380. <div class="grad-bottom"></div>
  381. <div class="footer">
  382. <div class="container">
  383. <span class="pull-right">
  384. <a href="#top">Back to top</a>
  385. </span>
  386. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  387. </div>
  388. </div>
  389. </footer>
  390. </div>
  391. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  392. <script type="text/javascript" src="../../styles/docfx.js"></script>
  393. <script type="text/javascript" src="../../styles/main.js"></script>
  394. </body>
  395. </html>