Terminal.View.html 48 KB

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