Terminal.View.html 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  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 View
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class View
  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.View">
  63. <h1 id="Terminal_View" data-uid="Terminal.View">Class View
  64. </h1>
  65. <div class="markdown level0 summary"><p>View is the base class for all views on the screen and represents a visible element that can render itself and contains zero or more nested views.</p>
  66. </div>
  67. <div class="markdown level0 conceptual"></div>
  68. <div class="inheritance">
  69. <h5>Inheritance</h5>
  70. <div class="level0"><span class="xref">System.Object</span></div>
  71. <div class="level1"><a class="xref" href="Terminal.Responder.html">Responder</a></div>
  72. <div class="level2"><span class="xref">View</span></div>
  73. </div>
  74. <div class="level3"><a class="xref" href="Terminal.Button.html">Button</a></div>
  75. <div class="level3"><a class="xref" href="Terminal.CheckBox.html">CheckBox</a></div>
  76. <div class="level3"><a class="xref" href="Terminal.Label.html">Label</a></div>
  77. <div class="level3"><a class="xref" href="Terminal.MenuBar.html">MenuBar</a></div>
  78. <div class="level3"><a class="xref" href="Terminal.RadioGroup.html">RadioGroup</a></div>
  79. <div class="level3"><a class="xref" href="Terminal.ScrollView.html">ScrollView</a></div>
  80. <div class="level3"><a class="xref" href="Terminal.TextField.html">TextField</a></div>
  81. <div class="level3"><a class="xref" href="Terminal.Toplevel.html">Toplevel</a></div>
  82. <div class="inheritedMembers">
  83. <h5>Inherited Members</h5>
  84. <div>
  85. <a class="xref" href="Terminal.Responder.html#Terminal_Responder_CanFocus">Responder.CanFocus</a>
  86. </div>
  87. <div>
  88. <a class="xref" href="Terminal.Responder.html#Terminal_Responder_MouseEvent_Terminal_MouseEvent_">Responder.MouseEvent(MouseEvent)</a>
  89. </div>
  90. </div>
  91. <h6><strong>Namespace</strong>: <a class="xref" href="../Terminal.html">Terminal</a></h6>
  92. <h6><strong>Assembly</strong>: Terminal.dll</h6>
  93. <h5 id="Terminal_View_syntax">Syntax</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">public class View : Terminal.Responder, System.Collections.IEnumerable</code></pre>
  96. </div>
  97. <h5 id="Terminal_View_remarks"><strong>Remarks</strong></h5>
  98. <div class="markdown level0 remarks"><p>
  99. The View defines the base functionality for user interface elements in Terminal/gui.cs. Views
  100. can contain one or more subviews, can respond to user input and render themselves on the screen.
  101. </p>
  102. <p>
  103. Views are created with a specified rectangle region (the frame) that is relative to the container
  104. that they are added into.<br> </p>
  105. <p>
  106. Subviews can be added to a View by calling the Add method. The container of a view is the
  107. Superview.
  108. </p>
  109. <p>
  110. Developers can call the SetNeedsDisplay method on the view to flag a region or the entire view
  111. as requiring to be redrawn.
  112. </p></div>
  113. <h3 id="constructors">Constructors
  114. </h3>
  115. <a id="Terminal_View__ctor_" data-uid="Terminal.View.#ctor*"></a>
  116. <h4 id="Terminal_View__ctor_Terminal_Rect_" data-uid="Terminal.View.#ctor(Terminal.Rect)">View(Rect)</h4>
  117. <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Terminal.View.html">View</a> class with the specified frame. This is the default constructor.</p>
  118. </div>
  119. <div class="markdown level1 conceptual"></div>
  120. <h5 class="decalaration">Declaration</h5>
  121. <div class="codewrapper">
  122. <pre><code class="lang-csharp hljs">public View (Terminal.Rect frame);</code></pre>
  123. </div>
  124. <h5 class="parameters">Parameters</h5>
  125. <table class="table table-bordered table-striped table-condensed">
  126. <thead>
  127. <tr>
  128. <th>Type</th>
  129. <th>Name</th>
  130. <th>Description</th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr>
  135. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  136. <td><span class="parametername">frame</span></td>
  137. <td><p>The region covered by this view.</p>
  138. </td>
  139. </tr>
  140. </tbody>
  141. </table>
  142. <h3 id="fields">Fields
  143. </h3>
  144. <h4 id="Terminal_View_Driver" data-uid="Terminal.View.Driver">Driver</h4>
  145. <div class="markdown level1 summary"><p>Points to the current driver in use by the view, it is a convenience property
  146. for simplifying the development of new views.</p>
  147. </div>
  148. <div class="markdown level1 conceptual"></div>
  149. <h5 class="decalaration">Declaration</h5>
  150. <div class="codewrapper">
  151. <pre><code class="lang-csharp hljs">public static Terminal.ConsoleDriver Driver;</code></pre>
  152. </div>
  153. <h5 class="fieldValue">Field Value</h5>
  154. <table class="table table-bordered table-striped table-condensed">
  155. <thead>
  156. <tr>
  157. <th>Type</th>
  158. <th>Description</th>
  159. </tr>
  160. </thead>
  161. <tbody>
  162. <tr>
  163. <td><a class="xref" href="Terminal.ConsoleDriver.html">ConsoleDriver</a></td>
  164. <td><p>To be added.</p>
  165. </td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <h3 id="properties">Properties
  170. </h3>
  171. <a id="Terminal_View_Bounds_" data-uid="Terminal.View.Bounds*"></a>
  172. <h4 id="Terminal_View_Bounds" data-uid="Terminal.View.Bounds">Bounds</h4>
  173. <div class="markdown level1 summary"><p>The bounds represent the View-relative rectangle used for this view. Updates to the Bounds update the Frame, and has the same side effects as updating the frame.</p>
  174. </div>
  175. <div class="markdown level1 conceptual"></div>
  176. <h5 class="decalaration">Declaration</h5>
  177. <div class="codewrapper">
  178. <pre><code class="lang-csharp hljs">public Terminal.Rect Bounds { get; set; }</code></pre>
  179. </div>
  180. <h5 class="propertyValue">Property Value</h5>
  181. <table class="table table-bordered table-striped table-condensed">
  182. <thead>
  183. <tr>
  184. <th>Type</th>
  185. <th>Description</th>
  186. </tr>
  187. </thead>
  188. <tbody>
  189. <tr>
  190. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  191. <td><p>The bounds.</p>
  192. </td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <a id="Terminal_View_Focused_" data-uid="Terminal.View.Focused*"></a>
  197. <h4 id="Terminal_View_Focused" data-uid="Terminal.View.Focused">Focused</h4>
  198. <div class="markdown level1 summary"><p>Returns the currently focused view inside this view, or null if nothing is focused.</p>
  199. </div>
  200. <div class="markdown level1 conceptual"></div>
  201. <h5 class="decalaration">Declaration</h5>
  202. <div class="codewrapper">
  203. <pre><code class="lang-csharp hljs">public Terminal.View Focused { get; }</code></pre>
  204. </div>
  205. <h5 class="propertyValue">Property Value</h5>
  206. <table class="table table-bordered table-striped table-condensed">
  207. <thead>
  208. <tr>
  209. <th>Type</th>
  210. <th>Description</th>
  211. </tr>
  212. </thead>
  213. <tbody>
  214. <tr>
  215. <td><a class="xref" href="Terminal.View.html">View</a></td>
  216. <td><p>The focused.</p>
  217. </td>
  218. </tr>
  219. </tbody>
  220. </table>
  221. <a id="Terminal_View_Frame_" data-uid="Terminal.View.Frame*"></a>
  222. <h4 id="Terminal_View_Frame" data-uid="Terminal.View.Frame">Frame</h4>
  223. <div class="markdown level1 summary"><p>Gets or sets the frame for the view.</p>
  224. </div>
  225. <div class="markdown level1 conceptual"></div>
  226. <h5 class="decalaration">Declaration</h5>
  227. <div class="codewrapper">
  228. <pre><code class="lang-csharp hljs">public Terminal.Rect Frame { get; set; }</code></pre>
  229. </div>
  230. <h5 class="propertyValue">Property Value</h5>
  231. <table class="table table-bordered table-striped table-condensed">
  232. <thead>
  233. <tr>
  234. <th>Type</th>
  235. <th>Description</th>
  236. </tr>
  237. </thead>
  238. <tbody>
  239. <tr>
  240. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  241. <td><p>The frame.</p>
  242. </td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. <h5 id="Terminal_View_Frame_remarks">Remarks</h5>
  247. <div class="markdown level1 remarks"><p>Altering the Frame of a view will trigger the redrawing of the
  248. view as well as the redrawing of the affected regions in the superview.</p>
  249. </div>
  250. <a id="Terminal_View_HasFocus_" data-uid="Terminal.View.HasFocus*"></a>
  251. <h4 id="Terminal_View_HasFocus" data-uid="Terminal.View.HasFocus">HasFocus</h4>
  252. <div class="markdown level1 summary"><p>Gets or sets a value indicating whether this <a class="xref" href="Terminal.View.html">View</a> has focus.</p>
  253. </div>
  254. <div class="markdown level1 conceptual"></div>
  255. <h5 class="decalaration">Declaration</h5>
  256. <div class="codewrapper">
  257. <pre><code class="lang-csharp hljs">public override bool HasFocus { get; }</code></pre>
  258. </div>
  259. <h5 class="propertyValue">Property Value</h5>
  260. <table class="table table-bordered table-striped table-condensed">
  261. <thead>
  262. <tr>
  263. <th>Type</th>
  264. <th>Description</th>
  265. </tr>
  266. </thead>
  267. <tbody>
  268. <tr>
  269. <td><span class="xref">System.Boolean</span></td>
  270. <td><p><code>true</code> if has focus; otherwise, <code>false</code>.</p>
  271. </td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. <a id="Terminal_View_Id_" data-uid="Terminal.View.Id*"></a>
  276. <h4 id="Terminal_View_Id" data-uid="Terminal.View.Id">Id</h4>
  277. <div class="markdown level1 summary"></div>
  278. <div class="markdown level1 conceptual"></div>
  279. <h5 class="decalaration">Declaration</h5>
  280. <div class="codewrapper">
  281. <pre><code class="lang-csharp hljs">public string Id { get; set; }</code></pre>
  282. </div>
  283. <h5 class="propertyValue">Property Value</h5>
  284. <table class="table table-bordered table-striped table-condensed">
  285. <thead>
  286. <tr>
  287. <th>Type</th>
  288. <th>Description</th>
  289. </tr>
  290. </thead>
  291. <tbody>
  292. <tr>
  293. <td><span class="xref">System.String</span></td>
  294. <td><p>To be added.</p>
  295. </td>
  296. </tr>
  297. </tbody>
  298. </table>
  299. <a id="Terminal_View_MostFocused_" data-uid="Terminal.View.MostFocused*"></a>
  300. <h4 id="Terminal_View_MostFocused" data-uid="Terminal.View.MostFocused">MostFocused</h4>
  301. <div class="markdown level1 summary"><p>Returns the most focused view in the chain of subviews (the leaf view that has the focus).</p>
  302. </div>
  303. <div class="markdown level1 conceptual"></div>
  304. <h5 class="decalaration">Declaration</h5>
  305. <div class="codewrapper">
  306. <pre><code class="lang-csharp hljs">public Terminal.View MostFocused { get; }</code></pre>
  307. </div>
  308. <h5 class="propertyValue">Property Value</h5>
  309. <table class="table table-bordered table-striped table-condensed">
  310. <thead>
  311. <tr>
  312. <th>Type</th>
  313. <th>Description</th>
  314. </tr>
  315. </thead>
  316. <tbody>
  317. <tr>
  318. <td><a class="xref" href="Terminal.View.html">View</a></td>
  319. <td><p>The most focused.</p>
  320. </td>
  321. </tr>
  322. </tbody>
  323. </table>
  324. <a id="Terminal_View_Subviews_" data-uid="Terminal.View.Subviews*"></a>
  325. <h4 id="Terminal_View_Subviews" data-uid="Terminal.View.Subviews">Subviews</h4>
  326. <div class="markdown level1 summary"><p>This returns a list of the subviews contained by this view.</p>
  327. </div>
  328. <div class="markdown level1 conceptual"></div>
  329. <h5 class="decalaration">Declaration</h5>
  330. <div class="codewrapper">
  331. <pre><code class="lang-csharp hljs">public System.Collections.Generic.IList&lt;Terminal.View&gt; Subviews { get; }</code></pre>
  332. </div>
  333. <h5 class="propertyValue">Property Value</h5>
  334. <table class="table table-bordered table-striped table-condensed">
  335. <thead>
  336. <tr>
  337. <th>Type</th>
  338. <th>Description</th>
  339. </tr>
  340. </thead>
  341. <tbody>
  342. <tr>
  343. <td><span class="xref">System.Collections.Generic.IList</span>&lt;<a class="xref" href="Terminal.View.html">View</a>&gt;</td>
  344. <td><p>The subviews.</p>
  345. </td>
  346. </tr>
  347. </tbody>
  348. </table>
  349. <a id="Terminal_View_SuperView_" data-uid="Terminal.View.SuperView*"></a>
  350. <h4 id="Terminal_View_SuperView" data-uid="Terminal.View.SuperView">SuperView</h4>
  351. <div class="markdown level1 summary"><p>Returns the container for this view, or null if this view has not been added to a container.</p>
  352. </div>
  353. <div class="markdown level1 conceptual"></div>
  354. <h5 class="decalaration">Declaration</h5>
  355. <div class="codewrapper">
  356. <pre><code class="lang-csharp hljs">public Terminal.View SuperView { get; }</code></pre>
  357. </div>
  358. <h5 class="propertyValue">Property Value</h5>
  359. <table class="table table-bordered table-striped table-condensed">
  360. <thead>
  361. <tr>
  362. <th>Type</th>
  363. <th>Description</th>
  364. </tr>
  365. </thead>
  366. <tbody>
  367. <tr>
  368. <td><a class="xref" href="Terminal.View.html">View</a></td>
  369. <td><p>The super view.</p>
  370. </td>
  371. </tr>
  372. </tbody>
  373. </table>
  374. <a id="Terminal_View_WantMousePositionReports_" data-uid="Terminal.View.WantMousePositionReports*"></a>
  375. <h4 id="Terminal_View_WantMousePositionReports" data-uid="Terminal.View.WantMousePositionReports">WantMousePositionReports</h4>
  376. <div class="markdown level1 summary"><p>Gets or sets a value indicating whether this <a class="xref" href="Terminal.View.html">View</a> want mouse position reports.</p>
  377. </div>
  378. <div class="markdown level1 conceptual"></div>
  379. <h5 class="decalaration">Declaration</h5>
  380. <div class="codewrapper">
  381. <pre><code class="lang-csharp hljs">public virtual bool WantMousePositionReports { get; set; }</code></pre>
  382. </div>
  383. <h5 class="propertyValue">Property Value</h5>
  384. <table class="table table-bordered table-striped table-condensed">
  385. <thead>
  386. <tr>
  387. <th>Type</th>
  388. <th>Description</th>
  389. </tr>
  390. </thead>
  391. <tbody>
  392. <tr>
  393. <td><span class="xref">System.Boolean</span></td>
  394. <td><p><code>true</code> if want mouse position reports; otherwise, <code>false</code>.</p>
  395. </td>
  396. </tr>
  397. </tbody>
  398. </table>
  399. <h3 id="methods">Methods
  400. </h3>
  401. <a id="Terminal_View_Add_" data-uid="Terminal.View.Add*"></a>
  402. <h4 id="Terminal_View_Add_Terminal_View_" data-uid="Terminal.View.Add(Terminal.View)">Add(View)</h4>
  403. <div class="markdown level1 summary"><p>Adds a subview to this view.</p>
  404. </div>
  405. <div class="markdown level1 conceptual"></div>
  406. <h5 class="decalaration">Declaration</h5>
  407. <div class="codewrapper">
  408. <pre><code class="lang-csharp hljs">public virtual void Add (Terminal.View view);</code></pre>
  409. </div>
  410. <h5 class="parameters">Parameters</h5>
  411. <table class="table table-bordered table-striped table-condensed">
  412. <thead>
  413. <tr>
  414. <th>Type</th>
  415. <th>Name</th>
  416. <th>Description</th>
  417. </tr>
  418. </thead>
  419. <tbody>
  420. <tr>
  421. <td><a class="xref" href="Terminal.View.html">View</a></td>
  422. <td><span class="parametername">view</span></td>
  423. <td><p>To be added.</p>
  424. </td>
  425. </tr>
  426. </tbody>
  427. </table>
  428. <a id="Terminal_View_Add_" data-uid="Terminal.View.Add*"></a>
  429. <h4 id="Terminal_View_Add_Terminal_View___" data-uid="Terminal.View.Add(Terminal.View[])">Add(View[])</h4>
  430. <div class="markdown level1 summary"><p>Adds the specified views to the view.</p>
  431. </div>
  432. <div class="markdown level1 conceptual"></div>
  433. <h5 class="decalaration">Declaration</h5>
  434. <div class="codewrapper">
  435. <pre><code class="lang-csharp hljs">public void Add (Terminal.View[] views);</code></pre>
  436. </div>
  437. <h5 class="parameters">Parameters</h5>
  438. <table class="table table-bordered table-striped table-condensed">
  439. <thead>
  440. <tr>
  441. <th>Type</th>
  442. <th>Name</th>
  443. <th>Description</th>
  444. </tr>
  445. </thead>
  446. <tbody>
  447. <tr>
  448. <td><a class="xref" href="Terminal.View.html">View</a>[]</td>
  449. <td><span class="parametername">views</span></td>
  450. <td><p>Array of one or more views (can be optional parameter).</p>
  451. </td>
  452. </tr>
  453. </tbody>
  454. </table>
  455. <a id="Terminal_View_AddCh_" data-uid="Terminal.View.AddCh*"></a>
  456. <h4 id="Terminal_View_AddCh_System_Int32_System_Int32_System_Int32_" data-uid="Terminal.View.AddCh(System.Int32,System.Int32,System.Int32)">AddCh(Int32, Int32, Int32)</h4>
  457. <div class="markdown level1 summary"><p>Displays the specified character in the specified column and row.</p>
  458. </div>
  459. <div class="markdown level1 conceptual"></div>
  460. <h5 class="decalaration">Declaration</h5>
  461. <div class="codewrapper">
  462. <pre><code class="lang-csharp hljs">public void AddCh (int col, int row, int ch);</code></pre>
  463. </div>
  464. <h5 class="parameters">Parameters</h5>
  465. <table class="table table-bordered table-striped table-condensed">
  466. <thead>
  467. <tr>
  468. <th>Type</th>
  469. <th>Name</th>
  470. <th>Description</th>
  471. </tr>
  472. </thead>
  473. <tbody>
  474. <tr>
  475. <td><span class="xref">System.Int32</span></td>
  476. <td><span class="parametername">col</span></td>
  477. <td><p>Col.</p>
  478. </td>
  479. </tr>
  480. <tr>
  481. <td><span class="xref">System.Int32</span></td>
  482. <td><span class="parametername">row</span></td>
  483. <td><p>Row.</p>
  484. </td>
  485. </tr>
  486. <tr>
  487. <td><span class="xref">System.Int32</span></td>
  488. <td><span class="parametername">ch</span></td>
  489. <td><p>Ch.</p>
  490. </td>
  491. </tr>
  492. </tbody>
  493. </table>
  494. <a id="Terminal_View_ChildNeedsDisplay_" data-uid="Terminal.View.ChildNeedsDisplay*"></a>
  495. <h4 id="Terminal_View_ChildNeedsDisplay" data-uid="Terminal.View.ChildNeedsDisplay">ChildNeedsDisplay()</h4>
  496. <div class="markdown level1 summary"><p>Flags this view for requiring the children views to be repainted.</p>
  497. </div>
  498. <div class="markdown level1 conceptual"></div>
  499. <h5 class="decalaration">Declaration</h5>
  500. <div class="codewrapper">
  501. <pre><code class="lang-csharp hljs">public void ChildNeedsDisplay ();</code></pre>
  502. </div>
  503. <a id="Terminal_View_Clear_" data-uid="Terminal.View.Clear*"></a>
  504. <h4 id="Terminal_View_Clear" data-uid="Terminal.View.Clear">Clear()</h4>
  505. <div class="markdown level1 summary"><p>Clears the view region with the current color.</p>
  506. </div>
  507. <div class="markdown level1 conceptual"></div>
  508. <h5 class="decalaration">Declaration</h5>
  509. <div class="codewrapper">
  510. <pre><code class="lang-csharp hljs">public void Clear ();</code></pre>
  511. </div>
  512. <h5 id="Terminal_View_Clear_remarks">Remarks</h5>
  513. <div class="markdown level1 remarks"><p>
  514. This clears the entire region used by this view.
  515. </p></div>
  516. <a id="Terminal_View_ClearNeedsDisplay_" data-uid="Terminal.View.ClearNeedsDisplay*"></a>
  517. <h4 id="Terminal_View_ClearNeedsDisplay" data-uid="Terminal.View.ClearNeedsDisplay">ClearNeedsDisplay()</h4>
  518. <div class="markdown level1 summary"><p>Removes the SetNeedsDisplay and the ChildNeedsDisplay setting on this view.</p>
  519. </div>
  520. <div class="markdown level1 conceptual"></div>
  521. <h5 class="decalaration">Declaration</h5>
  522. <div class="codewrapper">
  523. <pre><code class="lang-csharp hljs">protected void ClearNeedsDisplay ();</code></pre>
  524. </div>
  525. <a id="Terminal_View_DrawFrame_" data-uid="Terminal.View.DrawFrame*"></a>
  526. <h4 id="Terminal_View_DrawFrame_Terminal_Rect_System_Boolean_" data-uid="Terminal.View.DrawFrame(Terminal.Rect,System.Boolean)">DrawFrame(Rect, Boolean)</h4>
  527. <div class="markdown level1 summary"><p>Draws a frame in the current view, clipped by the boundary of this view</p>
  528. </div>
  529. <div class="markdown level1 conceptual"></div>
  530. <h5 class="decalaration">Declaration</h5>
  531. <div class="codewrapper">
  532. <pre><code class="lang-csharp hljs">public void DrawFrame (Terminal.Rect rect, bool fill = false);</code></pre>
  533. </div>
  534. <h5 class="parameters">Parameters</h5>
  535. <table class="table table-bordered table-striped table-condensed">
  536. <thead>
  537. <tr>
  538. <th>Type</th>
  539. <th>Name</th>
  540. <th>Description</th>
  541. </tr>
  542. </thead>
  543. <tbody>
  544. <tr>
  545. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  546. <td><span class="parametername">rect</span></td>
  547. <td><p>Rectangular region for the frame to be drawn.</p>
  548. </td>
  549. </tr>
  550. <tr>
  551. <td><span class="xref">System.Boolean</span></td>
  552. <td><span class="parametername">fill</span></td>
  553. <td><p>If set to <code>true</code> it fill will the contents.</p>
  554. </td>
  555. </tr>
  556. </tbody>
  557. </table>
  558. <a id="Terminal_View_DrawHotString_" data-uid="Terminal.View.DrawHotString*"></a>
  559. <h4 id="Terminal_View_DrawHotString_System_String_Terminal_Attribute_Terminal_Attribute_" data-uid="Terminal.View.DrawHotString(System.String,Terminal.Attribute,Terminal.Attribute)">DrawHotString(String, Attribute, Attribute)</h4>
  560. <div class="markdown level1 summary"><p>Utility function to draw strings that contain a hotkey</p>
  561. </div>
  562. <div class="markdown level1 conceptual"></div>
  563. <h5 class="decalaration">Declaration</h5>
  564. <div class="codewrapper">
  565. <pre><code class="lang-csharp hljs">public void DrawHotString (string text, Terminal.Attribute hotColor, Terminal.Attribute normalColor);</code></pre>
  566. </div>
  567. <h5 class="parameters">Parameters</h5>
  568. <table class="table table-bordered table-striped table-condensed">
  569. <thead>
  570. <tr>
  571. <th>Type</th>
  572. <th>Name</th>
  573. <th>Description</th>
  574. </tr>
  575. </thead>
  576. <tbody>
  577. <tr>
  578. <td><span class="xref">System.String</span></td>
  579. <td><span class="parametername">text</span></td>
  580. <td><p>String to display, the underscoore before a letter flags the next letter as the hotkey.</p>
  581. </td>
  582. </tr>
  583. <tr>
  584. <td><a class="xref" href="Terminal.Attribute.html">Attribute</a></td>
  585. <td><span class="parametername">hotColor</span></td>
  586. <td><p>Hot color.</p>
  587. </td>
  588. </tr>
  589. <tr>
  590. <td><a class="xref" href="Terminal.Attribute.html">Attribute</a></td>
  591. <td><span class="parametername">normalColor</span></td>
  592. <td><p>Normal color.</p>
  593. </td>
  594. </tr>
  595. </tbody>
  596. </table>
  597. <a id="Terminal_View_DrawHotString_" data-uid="Terminal.View.DrawHotString*"></a>
  598. <h4 id="Terminal_View_DrawHotString_System_String_System_Boolean_Terminal_ColorScheme_" data-uid="Terminal.View.DrawHotString(System.String,System.Boolean,Terminal.ColorScheme)">DrawHotString(String, Boolean, ColorScheme)</h4>
  599. <div class="markdown level1 summary"><p>Utility function to draw strings that contains a hotkey using a colorscheme and the &quot;focused&quot; state.</p>
  600. </div>
  601. <div class="markdown level1 conceptual"></div>
  602. <h5 class="decalaration">Declaration</h5>
  603. <div class="codewrapper">
  604. <pre><code class="lang-csharp hljs">public void DrawHotString (string text, bool focused, Terminal.ColorScheme scheme);</code></pre>
  605. </div>
  606. <h5 class="parameters">Parameters</h5>
  607. <table class="table table-bordered table-striped table-condensed">
  608. <thead>
  609. <tr>
  610. <th>Type</th>
  611. <th>Name</th>
  612. <th>Description</th>
  613. </tr>
  614. </thead>
  615. <tbody>
  616. <tr>
  617. <td><span class="xref">System.String</span></td>
  618. <td><span class="parametername">text</span></td>
  619. <td><p>String to display, the underscoore before a letter flags the next letter as the hotkey.</p>
  620. </td>
  621. </tr>
  622. <tr>
  623. <td><span class="xref">System.Boolean</span></td>
  624. <td><span class="parametername">focused</span></td>
  625. <td><p>If set to <code>true</code> this uses the focused colors from the color scheme, otherwise the regular ones.</p>
  626. </td>
  627. </tr>
  628. <tr>
  629. <td><a class="xref" href="Terminal.ColorScheme.html">ColorScheme</a></td>
  630. <td><span class="parametername">scheme</span></td>
  631. <td><p>The color scheme to use.</p>
  632. </td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. <a id="Terminal_View_EnsureFocus_" data-uid="Terminal.View.EnsureFocus*"></a>
  637. <h4 id="Terminal_View_EnsureFocus" data-uid="Terminal.View.EnsureFocus">EnsureFocus()</h4>
  638. <div class="markdown level1 summary"><p>Finds the first view in the hierarchy that wants to get the focus if nothing is currently focused, otherwise, it does nothing.</p>
  639. </div>
  640. <div class="markdown level1 conceptual"></div>
  641. <h5 class="decalaration">Declaration</h5>
  642. <div class="codewrapper">
  643. <pre><code class="lang-csharp hljs">public void EnsureFocus ();</code></pre>
  644. </div>
  645. <a id="Terminal_View_FocusFirst_" data-uid="Terminal.View.FocusFirst*"></a>
  646. <h4 id="Terminal_View_FocusFirst" data-uid="Terminal.View.FocusFirst">FocusFirst()</h4>
  647. <div class="markdown level1 summary"><p>Focuses the first focusable subview if one exists.</p>
  648. </div>
  649. <div class="markdown level1 conceptual"></div>
  650. <h5 class="decalaration">Declaration</h5>
  651. <div class="codewrapper">
  652. <pre><code class="lang-csharp hljs">public void FocusFirst ();</code></pre>
  653. </div>
  654. <a id="Terminal_View_FocusLast_" data-uid="Terminal.View.FocusLast*"></a>
  655. <h4 id="Terminal_View_FocusLast" data-uid="Terminal.View.FocusLast">FocusLast()</h4>
  656. <div class="markdown level1 summary"><p>Focuses the last focusable subview if one exists.</p>
  657. </div>
  658. <div class="markdown level1 conceptual"></div>
  659. <h5 class="decalaration">Declaration</h5>
  660. <div class="codewrapper">
  661. <pre><code class="lang-csharp hljs">public void FocusLast ();</code></pre>
  662. </div>
  663. <a id="Terminal_View_FocusNext_" data-uid="Terminal.View.FocusNext*"></a>
  664. <h4 id="Terminal_View_FocusNext" data-uid="Terminal.View.FocusNext">FocusNext()</h4>
  665. <div class="markdown level1 summary"><p>Focuses the next view.</p>
  666. </div>
  667. <div class="markdown level1 conceptual"></div>
  668. <h5 class="decalaration">Declaration</h5>
  669. <div class="codewrapper">
  670. <pre><code class="lang-csharp hljs">public bool FocusNext ();</code></pre>
  671. </div>
  672. <h5 class="returns">Returns</h5>
  673. <table class="table table-bordered table-striped table-condensed">
  674. <thead>
  675. <tr>
  676. <th>Type</th>
  677. <th>Description</th>
  678. </tr>
  679. </thead>
  680. <tbody>
  681. <tr>
  682. <td><span class="xref">System.Boolean</span></td>
  683. <td><p><code>true</code>, if next was focused, <code>false</code> otherwise.</p>
  684. </td>
  685. </tr>
  686. </tbody>
  687. </table>
  688. <a id="Terminal_View_FocusPrev_" data-uid="Terminal.View.FocusPrev*"></a>
  689. <h4 id="Terminal_View_FocusPrev" data-uid="Terminal.View.FocusPrev">FocusPrev()</h4>
  690. <div class="markdown level1 summary"><p>Focuses the previous view.</p>
  691. </div>
  692. <div class="markdown level1 conceptual"></div>
  693. <h5 class="decalaration">Declaration</h5>
  694. <div class="codewrapper">
  695. <pre><code class="lang-csharp hljs">public bool FocusPrev ();</code></pre>
  696. </div>
  697. <h5 class="returns">Returns</h5>
  698. <table class="table table-bordered table-striped table-condensed">
  699. <thead>
  700. <tr>
  701. <th>Type</th>
  702. <th>Description</th>
  703. </tr>
  704. </thead>
  705. <tbody>
  706. <tr>
  707. <td><span class="xref">System.Boolean</span></td>
  708. <td><p><code>true</code>, if previous was focused, <code>false</code> otherwise.</p>
  709. </td>
  710. </tr>
  711. </tbody>
  712. </table>
  713. <a id="Terminal_View_GetEnumerator_" data-uid="Terminal.View.GetEnumerator*"></a>
  714. <h4 id="Terminal_View_GetEnumerator" data-uid="Terminal.View.GetEnumerator">GetEnumerator()</h4>
  715. <div class="markdown level1 summary"><p>Gets an enumerator that enumerates the subviews in this view.</p>
  716. </div>
  717. <div class="markdown level1 conceptual"></div>
  718. <h5 class="decalaration">Declaration</h5>
  719. <div class="codewrapper">
  720. <pre><code class="lang-csharp hljs">[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Terminal.View/&lt;GetEnumerator&gt;d__23))]
  721. public System.Collections.IEnumerator GetEnumerator ();</code></pre>
  722. </div>
  723. <h5 class="returns">Returns</h5>
  724. <table class="table table-bordered table-striped table-condensed">
  725. <thead>
  726. <tr>
  727. <th>Type</th>
  728. <th>Description</th>
  729. </tr>
  730. </thead>
  731. <tbody>
  732. <tr>
  733. <td><span class="xref">System.Collections.IEnumerator</span></td>
  734. <td><p>The enumerator.</p>
  735. </td>
  736. </tr>
  737. </tbody>
  738. </table>
  739. <a id="Terminal_View_LayoutSubviews_" data-uid="Terminal.View.LayoutSubviews*"></a>
  740. <h4 id="Terminal_View_LayoutSubviews" data-uid="Terminal.View.LayoutSubviews">LayoutSubviews()</h4>
  741. <div class="markdown level1 summary"><p>This virtual method is invoked when a view starts executing or
  742. when the dimensions of the view have changed, for example in
  743. response to the container view or terminal resizing.</p>
  744. </div>
  745. <div class="markdown level1 conceptual"></div>
  746. <h5 class="decalaration">Declaration</h5>
  747. <div class="codewrapper">
  748. <pre><code class="lang-csharp hljs">public virtual void LayoutSubviews ();</code></pre>
  749. </div>
  750. <a id="Terminal_View_Move_" data-uid="Terminal.View.Move*"></a>
  751. <h4 id="Terminal_View_Move_System_Int32_System_Int32_" data-uid="Terminal.View.Move(System.Int32,System.Int32)">Move(Int32, Int32)</h4>
  752. <div class="markdown level1 summary"><p>This moves the cursor to the specified column and row in the view.</p>
  753. </div>
  754. <div class="markdown level1 conceptual"></div>
  755. <h5 class="decalaration">Declaration</h5>
  756. <div class="codewrapper">
  757. <pre><code class="lang-csharp hljs">public void Move (int col, int row);</code></pre>
  758. </div>
  759. <h5 class="parameters">Parameters</h5>
  760. <table class="table table-bordered table-striped table-condensed">
  761. <thead>
  762. <tr>
  763. <th>Type</th>
  764. <th>Name</th>
  765. <th>Description</th>
  766. </tr>
  767. </thead>
  768. <tbody>
  769. <tr>
  770. <td><span class="xref">System.Int32</span></td>
  771. <td><span class="parametername">col</span></td>
  772. <td><p>Col.</p>
  773. </td>
  774. </tr>
  775. <tr>
  776. <td><span class="xref">System.Int32</span></td>
  777. <td><span class="parametername">row</span></td>
  778. <td><p>Row.</p>
  779. </td>
  780. </tr>
  781. </tbody>
  782. </table>
  783. <a id="Terminal_View_PositionCursor_" data-uid="Terminal.View.PositionCursor*"></a>
  784. <h4 id="Terminal_View_PositionCursor" data-uid="Terminal.View.PositionCursor">PositionCursor()</h4>
  785. <div class="markdown level1 summary"><p>Positions the cursor in the right position based on the currently focused view in the chain.</p>
  786. </div>
  787. <div class="markdown level1 conceptual"></div>
  788. <h5 class="decalaration">Declaration</h5>
  789. <div class="codewrapper">
  790. <pre><code class="lang-csharp hljs">public virtual void PositionCursor ();</code></pre>
  791. </div>
  792. <a id="Terminal_View_ProcessColdKey_" data-uid="Terminal.View.ProcessColdKey*"></a>
  793. <h4 id="Terminal_View_ProcessColdKey_Terminal_KeyEvent_" data-uid="Terminal.View.ProcessColdKey(Terminal.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  794. <div class="markdown level1 summary"></div>
  795. <div class="markdown level1 conceptual"></div>
  796. <h5 class="decalaration">Declaration</h5>
  797. <div class="codewrapper">
  798. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey (Terminal.KeyEvent kb);</code></pre>
  799. </div>
  800. <h5 class="parameters">Parameters</h5>
  801. <table class="table table-bordered table-striped table-condensed">
  802. <thead>
  803. <tr>
  804. <th>Type</th>
  805. <th>Name</th>
  806. <th>Description</th>
  807. </tr>
  808. </thead>
  809. <tbody>
  810. <tr>
  811. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  812. <td><span class="parametername">kb</span></td>
  813. <td><p>To be added.</p>
  814. </td>
  815. </tr>
  816. </tbody>
  817. </table>
  818. <h5 class="returns">Returns</h5>
  819. <table class="table table-bordered table-striped table-condensed">
  820. <thead>
  821. <tr>
  822. <th>Type</th>
  823. <th>Description</th>
  824. </tr>
  825. </thead>
  826. <tbody>
  827. <tr>
  828. <td><span class="xref">System.Boolean</span></td>
  829. <td><p>To be added.</p>
  830. </td>
  831. </tr>
  832. </tbody>
  833. </table>
  834. <a id="Terminal_View_ProcessHotKey_" data-uid="Terminal.View.ProcessHotKey*"></a>
  835. <h4 id="Terminal_View_ProcessHotKey_Terminal_KeyEvent_" data-uid="Terminal.View.ProcessHotKey(Terminal.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  836. <div class="markdown level1 summary"></div>
  837. <div class="markdown level1 conceptual"></div>
  838. <h5 class="decalaration">Declaration</h5>
  839. <div class="codewrapper">
  840. <pre><code class="lang-csharp hljs">public override bool ProcessHotKey (Terminal.KeyEvent kb);</code></pre>
  841. </div>
  842. <h5 class="parameters">Parameters</h5>
  843. <table class="table table-bordered table-striped table-condensed">
  844. <thead>
  845. <tr>
  846. <th>Type</th>
  847. <th>Name</th>
  848. <th>Description</th>
  849. </tr>
  850. </thead>
  851. <tbody>
  852. <tr>
  853. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  854. <td><span class="parametername">kb</span></td>
  855. <td><p>To be added.</p>
  856. </td>
  857. </tr>
  858. </tbody>
  859. </table>
  860. <h5 class="returns">Returns</h5>
  861. <table class="table table-bordered table-striped table-condensed">
  862. <thead>
  863. <tr>
  864. <th>Type</th>
  865. <th>Description</th>
  866. </tr>
  867. </thead>
  868. <tbody>
  869. <tr>
  870. <td><span class="xref">System.Boolean</span></td>
  871. <td><p>To be added.</p>
  872. </td>
  873. </tr>
  874. </tbody>
  875. </table>
  876. <a id="Terminal_View_ProcessKey_" data-uid="Terminal.View.ProcessKey*"></a>
  877. <h4 id="Terminal_View_ProcessKey_Terminal_KeyEvent_" data-uid="Terminal.View.ProcessKey(Terminal.KeyEvent)">ProcessKey(KeyEvent)</h4>
  878. <div class="markdown level1 summary"></div>
  879. <div class="markdown level1 conceptual"></div>
  880. <h5 class="decalaration">Declaration</h5>
  881. <div class="codewrapper">
  882. <pre><code class="lang-csharp hljs">public override bool ProcessKey (Terminal.KeyEvent kb);</code></pre>
  883. </div>
  884. <h5 class="parameters">Parameters</h5>
  885. <table class="table table-bordered table-striped table-condensed">
  886. <thead>
  887. <tr>
  888. <th>Type</th>
  889. <th>Name</th>
  890. <th>Description</th>
  891. </tr>
  892. </thead>
  893. <tbody>
  894. <tr>
  895. <td><a class="xref" href="Terminal.KeyEvent.html">KeyEvent</a></td>
  896. <td><span class="parametername">kb</span></td>
  897. <td><p>To be added.</p>
  898. </td>
  899. </tr>
  900. </tbody>
  901. </table>
  902. <h5 class="returns">Returns</h5>
  903. <table class="table table-bordered table-striped table-condensed">
  904. <thead>
  905. <tr>
  906. <th>Type</th>
  907. <th>Description</th>
  908. </tr>
  909. </thead>
  910. <tbody>
  911. <tr>
  912. <td><span class="xref">System.Boolean</span></td>
  913. <td><p>To be added.</p>
  914. </td>
  915. </tr>
  916. </tbody>
  917. </table>
  918. <a id="Terminal_View_Redraw_" data-uid="Terminal.View.Redraw*"></a>
  919. <h4 id="Terminal_View_Redraw_Terminal_Rect_" data-uid="Terminal.View.Redraw(Terminal.Rect)">Redraw(Rect)</h4>
  920. <div class="markdown level1 summary"><p>Performs a redraw of this view and its subviews, only redraws the views that have been flagged for a re-display.</p>
  921. </div>
  922. <div class="markdown level1 conceptual"></div>
  923. <h5 class="decalaration">Declaration</h5>
  924. <div class="codewrapper">
  925. <pre><code class="lang-csharp hljs">public virtual void Redraw (Terminal.Rect region);</code></pre>
  926. </div>
  927. <h5 class="parameters">Parameters</h5>
  928. <table class="table table-bordered table-striped table-condensed">
  929. <thead>
  930. <tr>
  931. <th>Type</th>
  932. <th>Name</th>
  933. <th>Description</th>
  934. </tr>
  935. </thead>
  936. <tbody>
  937. <tr>
  938. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  939. <td><span class="parametername">region</span></td>
  940. <td><p>To be added.</p>
  941. </td>
  942. </tr>
  943. </tbody>
  944. </table>
  945. <h5 id="Terminal_View_Redraw_Terminal_Rect__remarks">Remarks</h5>
  946. <div class="markdown level1 remarks"><p>The region argument is relative to the view itself.</p>
  947. </div>
  948. <a id="Terminal_View_Remove_" data-uid="Terminal.View.Remove*"></a>
  949. <h4 id="Terminal_View_Remove_Terminal_View_" data-uid="Terminal.View.Remove(Terminal.View)">Remove(View)</h4>
  950. <div class="markdown level1 summary"><p>Removes a widget from this container.</p>
  951. </div>
  952. <div class="markdown level1 conceptual"></div>
  953. <h5 class="decalaration">Declaration</h5>
  954. <div class="codewrapper">
  955. <pre><code class="lang-csharp hljs">public virtual void Remove (Terminal.View view);</code></pre>
  956. </div>
  957. <h5 class="parameters">Parameters</h5>
  958. <table class="table table-bordered table-striped table-condensed">
  959. <thead>
  960. <tr>
  961. <th>Type</th>
  962. <th>Name</th>
  963. <th>Description</th>
  964. </tr>
  965. </thead>
  966. <tbody>
  967. <tr>
  968. <td><a class="xref" href="Terminal.View.html">View</a></td>
  969. <td><span class="parametername">view</span></td>
  970. <td><p>To be added.</p>
  971. </td>
  972. </tr>
  973. </tbody>
  974. </table>
  975. <a id="Terminal_View_RemoveAll_" data-uid="Terminal.View.RemoveAll*"></a>
  976. <h4 id="Terminal_View_RemoveAll" data-uid="Terminal.View.RemoveAll">RemoveAll()</h4>
  977. <div class="markdown level1 summary"><p>Removes all the widgets from this container.</p>
  978. </div>
  979. <div class="markdown level1 conceptual"></div>
  980. <h5 class="decalaration">Declaration</h5>
  981. <div class="codewrapper">
  982. <pre><code class="lang-csharp hljs">public virtual void RemoveAll ();</code></pre>
  983. </div>
  984. <a id="Terminal_View_ScreenToView_" data-uid="Terminal.View.ScreenToView*"></a>
  985. <h4 id="Terminal_View_ScreenToView_System_Int32_System_Int32_" data-uid="Terminal.View.ScreenToView(System.Int32,System.Int32)">ScreenToView(Int32, Int32)</h4>
  986. <div class="markdown level1 summary"><p>Converts a point from screen coordinates into the view coordinate space.</p>
  987. </div>
  988. <div class="markdown level1 conceptual"></div>
  989. <h5 class="decalaration">Declaration</h5>
  990. <div class="codewrapper">
  991. <pre><code class="lang-csharp hljs">public Terminal.Point ScreenToView (int x, int y);</code></pre>
  992. </div>
  993. <h5 class="parameters">Parameters</h5>
  994. <table class="table table-bordered table-striped table-condensed">
  995. <thead>
  996. <tr>
  997. <th>Type</th>
  998. <th>Name</th>
  999. <th>Description</th>
  1000. </tr>
  1001. </thead>
  1002. <tbody>
  1003. <tr>
  1004. <td><span class="xref">System.Int32</span></td>
  1005. <td><span class="parametername">x</span></td>
  1006. <td><p>X screen-coordinate point.</p>
  1007. </td>
  1008. </tr>
  1009. <tr>
  1010. <td><span class="xref">System.Int32</span></td>
  1011. <td><span class="parametername">y</span></td>
  1012. <td><p>Y screen-coordinate point.</p>
  1013. </td>
  1014. </tr>
  1015. </tbody>
  1016. </table>
  1017. <h5 class="returns">Returns</h5>
  1018. <table class="table table-bordered table-striped table-condensed">
  1019. <thead>
  1020. <tr>
  1021. <th>Type</th>
  1022. <th>Description</th>
  1023. </tr>
  1024. </thead>
  1025. <tbody>
  1026. <tr>
  1027. <td><a class="xref" href="Terminal.Point.html">Point</a></td>
  1028. <td><p>The mapped point.</p>
  1029. </td>
  1030. </tr>
  1031. </tbody>
  1032. </table>
  1033. <a id="Terminal_View_SetFocus_" data-uid="Terminal.View.SetFocus*"></a>
  1034. <h4 id="Terminal_View_SetFocus_Terminal_View_" data-uid="Terminal.View.SetFocus(Terminal.View)">SetFocus(View)</h4>
  1035. <div class="markdown level1 summary"><p>Focuses the specified sub-view.</p>
  1036. </div>
  1037. <div class="markdown level1 conceptual"></div>
  1038. <h5 class="decalaration">Declaration</h5>
  1039. <div class="codewrapper">
  1040. <pre><code class="lang-csharp hljs">public void SetFocus (Terminal.View view);</code></pre>
  1041. </div>
  1042. <h5 class="parameters">Parameters</h5>
  1043. <table class="table table-bordered table-striped table-condensed">
  1044. <thead>
  1045. <tr>
  1046. <th>Type</th>
  1047. <th>Name</th>
  1048. <th>Description</th>
  1049. </tr>
  1050. </thead>
  1051. <tbody>
  1052. <tr>
  1053. <td><a class="xref" href="Terminal.View.html">View</a></td>
  1054. <td><span class="parametername">view</span></td>
  1055. <td><p>View.</p>
  1056. </td>
  1057. </tr>
  1058. </tbody>
  1059. </table>
  1060. <a id="Terminal_View_SetNeedsDisplay_" data-uid="Terminal.View.SetNeedsDisplay*"></a>
  1061. <h4 id="Terminal_View_SetNeedsDisplay" data-uid="Terminal.View.SetNeedsDisplay">SetNeedsDisplay()</h4>
  1062. <div class="markdown level1 summary"><p>Invoke to flag that this view needs to be redisplayed, by any code
  1063. that alters the state of the view.</p>
  1064. </div>
  1065. <div class="markdown level1 conceptual"></div>
  1066. <h5 class="decalaration">Declaration</h5>
  1067. <div class="codewrapper">
  1068. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay ();</code></pre>
  1069. </div>
  1070. <a id="Terminal_View_SetNeedsDisplay_" data-uid="Terminal.View.SetNeedsDisplay*"></a>
  1071. <h4 id="Terminal_View_SetNeedsDisplay_Terminal_Rect_" data-uid="Terminal.View.SetNeedsDisplay(Terminal.Rect)">SetNeedsDisplay(Rect)</h4>
  1072. <div class="markdown level1 summary"><p>Flags the specified rectangle region on this view as needing to be repainted.</p>
  1073. </div>
  1074. <div class="markdown level1 conceptual"></div>
  1075. <h5 class="decalaration">Declaration</h5>
  1076. <div class="codewrapper">
  1077. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay (Terminal.Rect region);</code></pre>
  1078. </div>
  1079. <h5 class="parameters">Parameters</h5>
  1080. <table class="table table-bordered table-striped table-condensed">
  1081. <thead>
  1082. <tr>
  1083. <th>Type</th>
  1084. <th>Name</th>
  1085. <th>Description</th>
  1086. </tr>
  1087. </thead>
  1088. <tbody>
  1089. <tr>
  1090. <td><a class="xref" href="Terminal.Rect.html">Rect</a></td>
  1091. <td><span class="parametername">region</span></td>
  1092. <td><p>The region that must be flagged for repaint.</p>
  1093. </td>
  1094. </tr>
  1095. </tbody>
  1096. </table>
  1097. <a id="Terminal_View_ToString_" data-uid="Terminal.View.ToString*"></a>
  1098. <h4 id="Terminal_View_ToString" data-uid="Terminal.View.ToString">ToString()</h4>
  1099. <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> that represents the current <a class="xref" href="Terminal.View.html">View</a>.</p>
  1100. </div>
  1101. <div class="markdown level1 conceptual"></div>
  1102. <h5 class="decalaration">Declaration</h5>
  1103. <div class="codewrapper">
  1104. <pre><code class="lang-csharp hljs">public override string ToString ();</code></pre>
  1105. </div>
  1106. <h5 class="returns">Returns</h5>
  1107. <table class="table table-bordered table-striped table-condensed">
  1108. <thead>
  1109. <tr>
  1110. <th>Type</th>
  1111. <th>Description</th>
  1112. </tr>
  1113. </thead>
  1114. <tbody>
  1115. <tr>
  1116. <td><span class="xref">System.String</span></td>
  1117. <td><p>A <span class="xref">System.String</span> that represents the current <a class="xref" href="Terminal.View.html">View</a>.</p>
  1118. </td>
  1119. </tr>
  1120. </tbody>
  1121. </table>
  1122. </article>
  1123. </div>
  1124. <div class="hidden-sm col-md-2" role="complementary">
  1125. <div class="sideaffix">
  1126. <div class="contribution">
  1127. <ul class="nav">
  1128. </ul>
  1129. </div>
  1130. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1131. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  1132. </nav>
  1133. </div>
  1134. </div>
  1135. </div>
  1136. </div>
  1137. <footer>
  1138. <div class="grad-bottom"></div>
  1139. <div class="footer">
  1140. <div class="container">
  1141. <span class="pull-right">
  1142. <a href="#top">Back to top</a>
  1143. </span>
  1144. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  1145. </div>
  1146. </div>
  1147. </footer>
  1148. </div>
  1149. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1150. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1151. <script type="text/javascript" src="../../styles/main.js"></script>
  1152. </body>
  1153. </html>