Terminal.Gui.View.html 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222
  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.53.1.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../../">
  21. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.View">
  73. <h1 id="Terminal_Gui_View" data-uid="Terminal.Gui.View" class="text-break">Class View
  74. </h1>
  75. <div class="markdown level0 summary">
  76. 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.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  83. <div class="level2"><span class="xref">View</span></div>
  84. <div class="level3"><a class="xref" href="Terminal.Gui.Button.html">Button</a></div>
  85. <div class="level3"><a class="xref" href="Terminal.Gui.CheckBox.html">CheckBox</a></div>
  86. <div class="level3"><a class="xref" href="Terminal.Gui.ComboBox.html">ComboBox</a></div>
  87. <div class="level3"><a class="xref" href="Terminal.Gui.FrameView.html">FrameView</a></div>
  88. <div class="level3"><a class="xref" href="Terminal.Gui.HexView.html">HexView</a></div>
  89. <div class="level3"><a class="xref" href="Terminal.Gui.Label.html">Label</a></div>
  90. <div class="level3"><a class="xref" href="Terminal.Gui.ListView.html">ListView</a></div>
  91. <div class="level3"><a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a></div>
  92. <div class="level3"><a class="xref" href="Terminal.Gui.ProgressBar.html">ProgressBar</a></div>
  93. <div class="level3"><a class="xref" href="Terminal.Gui.RadioGroup.html">RadioGroup</a></div>
  94. <div class="level3"><a class="xref" href="Terminal.Gui.ScrollBarView.html">ScrollBarView</a></div>
  95. <div class="level3"><a class="xref" href="Terminal.Gui.ScrollView.html">ScrollView</a></div>
  96. <div class="level3"><a class="xref" href="Terminal.Gui.StatusBar.html">StatusBar</a></div>
  97. <div class="level3"><a class="xref" href="Terminal.Gui.TextField.html">TextField</a></div>
  98. <div class="level3"><a class="xref" href="Terminal.Gui.TextView.html">TextView</a></div>
  99. <div class="level3"><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></div>
  100. </div>
  101. <div classs="implements">
  102. <h5>Implements</h5>
  103. <div><span class="xref">System.Collections.IEnumerable</span></div>
  104. </div>
  105. <div class="inheritedMembers">
  106. <h5>Inherited Members</h5>
  107. <div>
  108. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_CanFocus">Responder.CanFocus</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a>
  112. </div>
  113. <div>
  114. <span class="xref">System.Object.Equals(System.Object)</span>
  115. </div>
  116. <div>
  117. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  118. </div>
  119. <div>
  120. <span class="xref">System.Object.GetHashCode()</span>
  121. </div>
  122. <div>
  123. <span class="xref">System.Object.GetType()</span>
  124. </div>
  125. <div>
  126. <span class="xref">System.Object.MemberwiseClone()</span>
  127. </div>
  128. <div>
  129. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  130. </div>
  131. </div>
  132. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  133. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  134. <h5 id="Terminal_Gui_View_syntax">Syntax</h5>
  135. <div class="codewrapper">
  136. <pre><code class="lang-csharp hljs">public class View : Responder, IEnumerable</code></pre>
  137. </div>
  138. <h5 id="Terminal_Gui_View_remarks"><strong>Remarks</strong></h5>
  139. <div class="markdown level0 remarks">
  140. <p>
  141. The View defines the base functionality for user interface elements in Terminal/gui.cs. Views
  142. can contain one or more subviews, can respond to user input and render themselves on the screen.
  143. </p>
  144. <p>
  145. Views can either be created with an absolute position, by calling the constructor that takes a
  146. Rect parameter to specify the absolute position and size (the Frame of the View) or by setting the
  147. X, Y, Width and Height properties on the view. Both approaches use coordinates that are relative
  148. to the container they are being added to.
  149. </p>
  150. <p>
  151. When you do not specify a Rect frame you can use the more flexible
  152. Dim and Pos objects that can dynamically update the position of a view.
  153. The X and Y properties are of type <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>
  154. and you can use either absolute positions, percentages or anchor
  155. points. The Width and Height properties are of type
  156. <a class="xref" href="Terminal.Gui.Dim.html">Dim</a> and can use absolute position,
  157. percentages and anchors. These are useful as they will take
  158. care of repositioning your views if your view&apos;s frames are resized
  159. or if the terminal size changes.
  160. </p>
  161. <p>
  162. When you specify the Rect parameter to a view, you are setting the LayoutStyle to Absolute, and the
  163. view will always stay in the position that you placed it. To change the position change the
  164. Frame property to the new position.
  165. </p>
  166. <p>
  167. Subviews can be added to a View by calling the Add method. The container of a view is the
  168. Superview.
  169. </p>
  170. <p>
  171. Developers can call the SetNeedsDisplay method on the view to flag a region or the entire view
  172. as requiring to be redrawn.
  173. </p>
  174. <p>
  175. Views have a ColorScheme property that defines the default colors that subviews
  176. should use for rendering. This ensures that the views fit in the context where
  177. they are being used, and allows for themes to be plugged in. For example, the
  178. default colors for windows and toplevels uses a blue background, while it uses
  179. a white background for dialog boxes and a red background for errors.
  180. </p>
  181. <p>
  182. If a ColorScheme is not set on a view, the result of the ColorScheme is the
  183. value of the SuperView and the value might only be valid once a view has been
  184. added to a SuperView, so your subclasses should not rely on ColorScheme being
  185. set at construction time.
  186. </p>
  187. <p>
  188. Using ColorSchemes has the advantage that your application will work both
  189. in color as well as black and white displays.
  190. </p>
  191. <p>
  192. Views that are focusable should implement the PositionCursor to make sure that
  193. the cursor is placed in a location that makes sense. Unix terminals do not have
  194. a way of hiding the cursor, so it can be distracting to have the cursor left at
  195. the last focused view. So views should make sure that they place the cursor
  196. in a visually sensible place.
  197. </p>
  198. <p>
  199. The metnod LayoutSubviews is invoked when the size or layout of a view has
  200. changed. The default processing system will keep the size and dimensions
  201. for views that use the LayoutKind.Absolute, and will recompute the
  202. frames for the vies that use LayoutKind.Computed.
  203. </p>
  204. </div>
  205. <h3 id="constructors">Constructors
  206. </h3>
  207. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  208. <h4 id="Terminal_Gui_View__ctor" data-uid="Terminal.Gui.View.#ctor">View()</h4>
  209. <div class="markdown level1 summary">
  210. Initializes a new instance of the <a class="xref" href="Terminal.Gui.View.html">View</a> class and sets the
  211. view up for Computed layout, which will use the values in X, Y, Width and Height to
  212. compute the View&apos;s Frame.
  213. </div>
  214. <div class="markdown level1 conceptual"></div>
  215. <h5 class="decalaration">Declaration</h5>
  216. <div class="codewrapper">
  217. <pre><code class="lang-csharp hljs">public View()</code></pre>
  218. </div>
  219. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  220. <h4 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.#ctor(Terminal.Gui.Rect)">View(Rect)</h4>
  221. <div class="markdown level1 summary">
  222. Initializes a new instance of the <a class="xref" href="Terminal.Gui.View.html">View</a> class with the absolute
  223. dimensions specified in the frame. If you want to have Views that can be positioned with
  224. Pos and Dim properties on X, Y, Width and Height, use the empty constructor.
  225. </div>
  226. <div class="markdown level1 conceptual"></div>
  227. <h5 class="decalaration">Declaration</h5>
  228. <div class="codewrapper">
  229. <pre><code class="lang-csharp hljs">public View(Rect frame)</code></pre>
  230. </div>
  231. <h5 class="parameters">Parameters</h5>
  232. <table class="table table-bordered table-striped table-condensed">
  233. <thead>
  234. <tr>
  235. <th>Type</th>
  236. <th>Name</th>
  237. <th>Description</th>
  238. </tr>
  239. </thead>
  240. <tbody>
  241. <tr>
  242. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  243. <td><span class="parametername">frame</span></td>
  244. <td>The region covered by this view.</td>
  245. </tr>
  246. </tbody>
  247. </table>
  248. <h3 id="properties">Properties
  249. </h3>
  250. <a id="Terminal_Gui_View_Bounds_" data-uid="Terminal.Gui.View.Bounds*"></a>
  251. <h4 id="Terminal_Gui_View_Bounds" data-uid="Terminal.Gui.View.Bounds">Bounds</h4>
  252. <div class="markdown level1 summary">
  253. 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.
  254. </div>
  255. <div class="markdown level1 conceptual"></div>
  256. <h5 class="decalaration">Declaration</h5>
  257. <div class="codewrapper">
  258. <pre><code class="lang-csharp hljs">public Rect Bounds { get; set; }</code></pre>
  259. </div>
  260. <h5 class="propertyValue">Property Value</h5>
  261. <table class="table table-bordered table-striped table-condensed">
  262. <thead>
  263. <tr>
  264. <th>Type</th>
  265. <th>Description</th>
  266. </tr>
  267. </thead>
  268. <tbody>
  269. <tr>
  270. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  271. <td>The bounds.</td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. <a id="Terminal_Gui_View_ColorScheme_" data-uid="Terminal.Gui.View.ColorScheme*"></a>
  276. <h4 id="Terminal_Gui_View_ColorScheme" data-uid="Terminal.Gui.View.ColorScheme">ColorScheme</h4>
  277. <div class="markdown level1 summary">
  278. The color scheme for this view, if it is not defined, it returns the parent&apos;s
  279. color scheme.
  280. </div>
  281. <div class="markdown level1 conceptual"></div>
  282. <h5 class="decalaration">Declaration</h5>
  283. <div class="codewrapper">
  284. <pre><code class="lang-csharp hljs">public ColorScheme ColorScheme { get; set; }</code></pre>
  285. </div>
  286. <h5 class="propertyValue">Property Value</h5>
  287. <table class="table table-bordered table-striped table-condensed">
  288. <thead>
  289. <tr>
  290. <th>Type</th>
  291. <th>Description</th>
  292. </tr>
  293. </thead>
  294. <tbody>
  295. <tr>
  296. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  297. <td></td>
  298. </tr>
  299. </tbody>
  300. </table>
  301. <a id="Terminal_Gui_View_Driver_" data-uid="Terminal.Gui.View.Driver*"></a>
  302. <h4 id="Terminal_Gui_View_Driver" data-uid="Terminal.Gui.View.Driver">Driver</h4>
  303. <div class="markdown level1 summary">
  304. Points to the current driver in use by the view, it is a convenience property
  305. for simplifying the development of new views.
  306. </div>
  307. <div class="markdown level1 conceptual"></div>
  308. <h5 class="decalaration">Declaration</h5>
  309. <div class="codewrapper">
  310. <pre><code class="lang-csharp hljs">public static ConsoleDriver Driver { get; }</code></pre>
  311. </div>
  312. <h5 class="propertyValue">Property Value</h5>
  313. <table class="table table-bordered table-striped table-condensed">
  314. <thead>
  315. <tr>
  316. <th>Type</th>
  317. <th>Description</th>
  318. </tr>
  319. </thead>
  320. <tbody>
  321. <tr>
  322. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  323. <td></td>
  324. </tr>
  325. </tbody>
  326. </table>
  327. <a id="Terminal_Gui_View_Focused_" data-uid="Terminal.Gui.View.Focused*"></a>
  328. <h4 id="Terminal_Gui_View_Focused" data-uid="Terminal.Gui.View.Focused">Focused</h4>
  329. <div class="markdown level1 summary">
  330. Returns the currently focused view inside this view, or null if nothing is focused.
  331. </div>
  332. <div class="markdown level1 conceptual"></div>
  333. <h5 class="decalaration">Declaration</h5>
  334. <div class="codewrapper">
  335. <pre><code class="lang-csharp hljs">public View Focused { get; }</code></pre>
  336. </div>
  337. <h5 class="propertyValue">Property Value</h5>
  338. <table class="table table-bordered table-striped table-condensed">
  339. <thead>
  340. <tr>
  341. <th>Type</th>
  342. <th>Description</th>
  343. </tr>
  344. </thead>
  345. <tbody>
  346. <tr>
  347. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  348. <td>The focused.</td>
  349. </tr>
  350. </tbody>
  351. </table>
  352. <a id="Terminal_Gui_View_Frame_" data-uid="Terminal.Gui.View.Frame*"></a>
  353. <h4 id="Terminal_Gui_View_Frame" data-uid="Terminal.Gui.View.Frame">Frame</h4>
  354. <div class="markdown level1 summary">
  355. Gets or sets the frame for the view.
  356. </div>
  357. <div class="markdown level1 conceptual"></div>
  358. <h5 class="decalaration">Declaration</h5>
  359. <div class="codewrapper">
  360. <pre><code class="lang-csharp hljs">public virtual Rect Frame { get; set; }</code></pre>
  361. </div>
  362. <h5 class="propertyValue">Property Value</h5>
  363. <table class="table table-bordered table-striped table-condensed">
  364. <thead>
  365. <tr>
  366. <th>Type</th>
  367. <th>Description</th>
  368. </tr>
  369. </thead>
  370. <tbody>
  371. <tr>
  372. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  373. <td>The frame.</td>
  374. </tr>
  375. </tbody>
  376. </table>
  377. <h5 id="Terminal_Gui_View_Frame_remarks">Remarks</h5>
  378. <div class="markdown level1 remarks">
  379. Altering the Frame of a view will trigger the redrawing of the
  380. view as well as the redrawing of the affected regions in the superview.
  381. </div>
  382. <a id="Terminal_Gui_View_HasFocus_" data-uid="Terminal.Gui.View.HasFocus*"></a>
  383. <h4 id="Terminal_Gui_View_HasFocus" data-uid="Terminal.Gui.View.HasFocus">HasFocus</h4>
  384. <div class="markdown level1 summary"></div>
  385. <div class="markdown level1 conceptual"></div>
  386. <h5 class="decalaration">Declaration</h5>
  387. <div class="codewrapper">
  388. <pre><code class="lang-csharp hljs">public override bool HasFocus { get; }</code></pre>
  389. </div>
  390. <h5 class="propertyValue">Property Value</h5>
  391. <table class="table table-bordered table-striped table-condensed">
  392. <thead>
  393. <tr>
  394. <th>Type</th>
  395. <th>Description</th>
  396. </tr>
  397. </thead>
  398. <tbody>
  399. <tr>
  400. <td><span class="xref">System.Boolean</span></td>
  401. <td></td>
  402. </tr>
  403. </tbody>
  404. </table>
  405. <h5 class="overrides">Overrides</h5>
  406. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_HasFocus">Responder.HasFocus</a></div>
  407. <a id="Terminal_Gui_View_Height_" data-uid="Terminal.Gui.View.Height*"></a>
  408. <h4 id="Terminal_Gui_View_Height" data-uid="Terminal.Gui.View.Height">Height</h4>
  409. <div class="markdown level1 summary">
  410. Gets or sets the height for the view. This is only used when the LayoutStyle is Computed, if the
  411. LayoutStyle is set to Absolute, this value is ignored.
  412. </div>
  413. <div class="markdown level1 conceptual"></div>
  414. <h5 class="decalaration">Declaration</h5>
  415. <div class="codewrapper">
  416. <pre><code class="lang-csharp hljs">public Dim Height { get; set; }</code></pre>
  417. </div>
  418. <h5 class="propertyValue">Property Value</h5>
  419. <table class="table table-bordered table-striped table-condensed">
  420. <thead>
  421. <tr>
  422. <th>Type</th>
  423. <th>Description</th>
  424. </tr>
  425. </thead>
  426. <tbody>
  427. <tr>
  428. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  429. <td>The height.</td>
  430. </tr>
  431. </tbody>
  432. </table>
  433. <a id="Terminal_Gui_View_Id_" data-uid="Terminal.Gui.View.Id*"></a>
  434. <h4 id="Terminal_Gui_View_Id" data-uid="Terminal.Gui.View.Id">Id</h4>
  435. <div class="markdown level1 summary">
  436. Gets or sets an identifier for the view;
  437. </div>
  438. <div class="markdown level1 conceptual"></div>
  439. <h5 class="decalaration">Declaration</h5>
  440. <div class="codewrapper">
  441. <pre><code class="lang-csharp hljs">public ustring Id { get; set; }</code></pre>
  442. </div>
  443. <h5 class="propertyValue">Property Value</h5>
  444. <table class="table table-bordered table-striped table-condensed">
  445. <thead>
  446. <tr>
  447. <th>Type</th>
  448. <th>Description</th>
  449. </tr>
  450. </thead>
  451. <tbody>
  452. <tr>
  453. <td><span class="xref">NStack.ustring</span></td>
  454. <td>The identifier.</td>
  455. </tr>
  456. </tbody>
  457. </table>
  458. <a id="Terminal_Gui_View_LayoutStyle_" data-uid="Terminal.Gui.View.LayoutStyle*"></a>
  459. <h4 id="Terminal_Gui_View_LayoutStyle" data-uid="Terminal.Gui.View.LayoutStyle">LayoutStyle</h4>
  460. <div class="markdown level1 summary">
  461. Controls how the view&apos;s Frame is computed during the LayoutSubviews method, if Absolute, then
  462. LayoutSubviews does not change the Frame properties, otherwise the Frame is updated from the
  463. values in X, Y, Width and Height properties.
  464. </div>
  465. <div class="markdown level1 conceptual"></div>
  466. <h5 class="decalaration">Declaration</h5>
  467. <div class="codewrapper">
  468. <pre><code class="lang-csharp hljs">public LayoutStyle LayoutStyle { get; set; }</code></pre>
  469. </div>
  470. <h5 class="propertyValue">Property Value</h5>
  471. <table class="table table-bordered table-striped table-condensed">
  472. <thead>
  473. <tr>
  474. <th>Type</th>
  475. <th>Description</th>
  476. </tr>
  477. </thead>
  478. <tbody>
  479. <tr>
  480. <td><a class="xref" href="Terminal.Gui.LayoutStyle.html">LayoutStyle</a></td>
  481. <td>The layout style.</td>
  482. </tr>
  483. </tbody>
  484. </table>
  485. <a id="Terminal_Gui_View_MostFocused_" data-uid="Terminal.Gui.View.MostFocused*"></a>
  486. <h4 id="Terminal_Gui_View_MostFocused" data-uid="Terminal.Gui.View.MostFocused">MostFocused</h4>
  487. <div class="markdown level1 summary">
  488. Returns the most focused view in the chain of subviews (the leaf view that has the focus).
  489. </div>
  490. <div class="markdown level1 conceptual"></div>
  491. <h5 class="decalaration">Declaration</h5>
  492. <div class="codewrapper">
  493. <pre><code class="lang-csharp hljs">public View MostFocused { get; }</code></pre>
  494. </div>
  495. <h5 class="propertyValue">Property Value</h5>
  496. <table class="table table-bordered table-striped table-condensed">
  497. <thead>
  498. <tr>
  499. <th>Type</th>
  500. <th>Description</th>
  501. </tr>
  502. </thead>
  503. <tbody>
  504. <tr>
  505. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  506. <td>The most focused.</td>
  507. </tr>
  508. </tbody>
  509. </table>
  510. <a id="Terminal_Gui_View_Subviews_" data-uid="Terminal.Gui.View.Subviews*"></a>
  511. <h4 id="Terminal_Gui_View_Subviews" data-uid="Terminal.Gui.View.Subviews">Subviews</h4>
  512. <div class="markdown level1 summary">
  513. This returns a list of the subviews contained by this view.
  514. </div>
  515. <div class="markdown level1 conceptual"></div>
  516. <h5 class="decalaration">Declaration</h5>
  517. <div class="codewrapper">
  518. <pre><code class="lang-csharp hljs">public IList&lt;View&gt; Subviews { get; }</code></pre>
  519. </div>
  520. <h5 class="propertyValue">Property Value</h5>
  521. <table class="table table-bordered table-striped table-condensed">
  522. <thead>
  523. <tr>
  524. <th>Type</th>
  525. <th>Description</th>
  526. </tr>
  527. </thead>
  528. <tbody>
  529. <tr>
  530. <td><span class="xref">System.Collections.Generic.IList</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  531. <td>The subviews.</td>
  532. </tr>
  533. </tbody>
  534. </table>
  535. <a id="Terminal_Gui_View_SuperView_" data-uid="Terminal.Gui.View.SuperView*"></a>
  536. <h4 id="Terminal_Gui_View_SuperView" data-uid="Terminal.Gui.View.SuperView">SuperView</h4>
  537. <div class="markdown level1 summary">
  538. Returns the container for this view, or null if this view has not been added to a container.
  539. </div>
  540. <div class="markdown level1 conceptual"></div>
  541. <h5 class="decalaration">Declaration</h5>
  542. <div class="codewrapper">
  543. <pre><code class="lang-csharp hljs">public View SuperView { get; }</code></pre>
  544. </div>
  545. <h5 class="propertyValue">Property Value</h5>
  546. <table class="table table-bordered table-striped table-condensed">
  547. <thead>
  548. <tr>
  549. <th>Type</th>
  550. <th>Description</th>
  551. </tr>
  552. </thead>
  553. <tbody>
  554. <tr>
  555. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  556. <td>The super view.</td>
  557. </tr>
  558. </tbody>
  559. </table>
  560. <a id="Terminal_Gui_View_WantContinuousButtonPressed_" data-uid="Terminal.Gui.View.WantContinuousButtonPressed*"></a>
  561. <h4 id="Terminal_Gui_View_WantContinuousButtonPressed" data-uid="Terminal.Gui.View.WantContinuousButtonPressed">WantContinuousButtonPressed</h4>
  562. <div class="markdown level1 summary">
  563. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> want continuous button pressed event.
  564. </div>
  565. <div class="markdown level1 conceptual"></div>
  566. <h5 class="decalaration">Declaration</h5>
  567. <div class="codewrapper">
  568. <pre><code class="lang-csharp hljs">public virtual bool WantContinuousButtonPressed { get; set; }</code></pre>
  569. </div>
  570. <h5 class="propertyValue">Property Value</h5>
  571. <table class="table table-bordered table-striped table-condensed">
  572. <thead>
  573. <tr>
  574. <th>Type</th>
  575. <th>Description</th>
  576. </tr>
  577. </thead>
  578. <tbody>
  579. <tr>
  580. <td><span class="xref">System.Boolean</span></td>
  581. <td></td>
  582. </tr>
  583. </tbody>
  584. </table>
  585. <a id="Terminal_Gui_View_WantMousePositionReports_" data-uid="Terminal.Gui.View.WantMousePositionReports*"></a>
  586. <h4 id="Terminal_Gui_View_WantMousePositionReports" data-uid="Terminal.Gui.View.WantMousePositionReports">WantMousePositionReports</h4>
  587. <div class="markdown level1 summary">
  588. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> want mouse position reports.
  589. </div>
  590. <div class="markdown level1 conceptual"></div>
  591. <h5 class="decalaration">Declaration</h5>
  592. <div class="codewrapper">
  593. <pre><code class="lang-csharp hljs">public virtual bool WantMousePositionReports { get; set; }</code></pre>
  594. </div>
  595. <h5 class="propertyValue">Property Value</h5>
  596. <table class="table table-bordered table-striped table-condensed">
  597. <thead>
  598. <tr>
  599. <th>Type</th>
  600. <th>Description</th>
  601. </tr>
  602. </thead>
  603. <tbody>
  604. <tr>
  605. <td><span class="xref">System.Boolean</span></td>
  606. <td><code>true</code> if want mouse position reports; otherwise, <code>false</code>.</td>
  607. </tr>
  608. </tbody>
  609. </table>
  610. <a id="Terminal_Gui_View_Width_" data-uid="Terminal.Gui.View.Width*"></a>
  611. <h4 id="Terminal_Gui_View_Width" data-uid="Terminal.Gui.View.Width">Width</h4>
  612. <div class="markdown level1 summary">
  613. Gets or sets the width for the view. This is only used when the LayoutStyle is Computed, if the
  614. LayoutStyle is set to Absolute, this value is ignored.
  615. </div>
  616. <div class="markdown level1 conceptual"></div>
  617. <h5 class="decalaration">Declaration</h5>
  618. <div class="codewrapper">
  619. <pre><code class="lang-csharp hljs">public Dim Width { get; set; }</code></pre>
  620. </div>
  621. <h5 class="propertyValue">Property Value</h5>
  622. <table class="table table-bordered table-striped table-condensed">
  623. <thead>
  624. <tr>
  625. <th>Type</th>
  626. <th>Description</th>
  627. </tr>
  628. </thead>
  629. <tbody>
  630. <tr>
  631. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  632. <td>The width.</td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. <a id="Terminal_Gui_View_X_" data-uid="Terminal.Gui.View.X*"></a>
  637. <h4 id="Terminal_Gui_View_X" data-uid="Terminal.Gui.View.X">X</h4>
  638. <div class="markdown level1 summary">
  639. Gets or sets the X position for the view (the column). This is only used when the LayoutStyle is Computed, if the
  640. LayoutStyle is set to Absolute, this value is ignored.
  641. </div>
  642. <div class="markdown level1 conceptual"></div>
  643. <h5 class="decalaration">Declaration</h5>
  644. <div class="codewrapper">
  645. <pre><code class="lang-csharp hljs">public Pos X { get; set; }</code></pre>
  646. </div>
  647. <h5 class="propertyValue">Property Value</h5>
  648. <table class="table table-bordered table-striped table-condensed">
  649. <thead>
  650. <tr>
  651. <th>Type</th>
  652. <th>Description</th>
  653. </tr>
  654. </thead>
  655. <tbody>
  656. <tr>
  657. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  658. <td>The X Position.</td>
  659. </tr>
  660. </tbody>
  661. </table>
  662. <a id="Terminal_Gui_View_Y_" data-uid="Terminal.Gui.View.Y*"></a>
  663. <h4 id="Terminal_Gui_View_Y" data-uid="Terminal.Gui.View.Y">Y</h4>
  664. <div class="markdown level1 summary">
  665. Gets or sets the Y position for the view (line). This is only used when the LayoutStyle is Computed, if the
  666. LayoutStyle is set to Absolute, this value is ignored.
  667. </div>
  668. <div class="markdown level1 conceptual"></div>
  669. <h5 class="decalaration">Declaration</h5>
  670. <div class="codewrapper">
  671. <pre><code class="lang-csharp hljs">public Pos Y { get; set; }</code></pre>
  672. </div>
  673. <h5 class="propertyValue">Property Value</h5>
  674. <table class="table table-bordered table-striped table-condensed">
  675. <thead>
  676. <tr>
  677. <th>Type</th>
  678. <th>Description</th>
  679. </tr>
  680. </thead>
  681. <tbody>
  682. <tr>
  683. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  684. <td>The y position (line).</td>
  685. </tr>
  686. </tbody>
  687. </table>
  688. <h3 id="methods">Methods
  689. </h3>
  690. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  691. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View)">Add(View)</h4>
  692. <div class="markdown level1 summary">
  693. Adds a subview to this view.
  694. </div>
  695. <div class="markdown level1 conceptual"></div>
  696. <h5 class="decalaration">Declaration</h5>
  697. <div class="codewrapper">
  698. <pre><code class="lang-csharp hljs">public virtual void Add(View view)</code></pre>
  699. </div>
  700. <h5 class="parameters">Parameters</h5>
  701. <table class="table table-bordered table-striped table-condensed">
  702. <thead>
  703. <tr>
  704. <th>Type</th>
  705. <th>Name</th>
  706. <th>Description</th>
  707. </tr>
  708. </thead>
  709. <tbody>
  710. <tr>
  711. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  712. <td><span class="parametername">view</span></td>
  713. <td></td>
  714. </tr>
  715. </tbody>
  716. </table>
  717. <h5 id="Terminal_Gui_View_Add_Terminal_Gui_View__remarks">Remarks</h5>
  718. <div class="markdown level1 remarks">
  719. </div>
  720. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  721. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View___" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View[])">Add(View[])</h4>
  722. <div class="markdown level1 summary">
  723. Adds the specified views to the view.
  724. </div>
  725. <div class="markdown level1 conceptual"></div>
  726. <h5 class="decalaration">Declaration</h5>
  727. <div class="codewrapper">
  728. <pre><code class="lang-csharp hljs">public void Add(params View[] views)</code></pre>
  729. </div>
  730. <h5 class="parameters">Parameters</h5>
  731. <table class="table table-bordered table-striped table-condensed">
  732. <thead>
  733. <tr>
  734. <th>Type</th>
  735. <th>Name</th>
  736. <th>Description</th>
  737. </tr>
  738. </thead>
  739. <tbody>
  740. <tr>
  741. <td><a class="xref" href="Terminal.Gui.View.html">View</a>[]</td>
  742. <td><span class="parametername">views</span></td>
  743. <td>Array of one or more views (can be optional parameter).</td>
  744. </tr>
  745. </tbody>
  746. </table>
  747. <a id="Terminal_Gui_View_AddRune_" data-uid="Terminal.Gui.View.AddRune*"></a>
  748. <h4 id="Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_" data-uid="Terminal.Gui.View.AddRune(System.Int32,System.Int32,System.Rune)">AddRune(Int32, Int32, Rune)</h4>
  749. <div class="markdown level1 summary">
  750. Displays the specified character in the specified column and row.
  751. </div>
  752. <div class="markdown level1 conceptual"></div>
  753. <h5 class="decalaration">Declaration</h5>
  754. <div class="codewrapper">
  755. <pre><code class="lang-csharp hljs">public void AddRune(int col, int row, Rune ch)</code></pre>
  756. </div>
  757. <h5 class="parameters">Parameters</h5>
  758. <table class="table table-bordered table-striped table-condensed">
  759. <thead>
  760. <tr>
  761. <th>Type</th>
  762. <th>Name</th>
  763. <th>Description</th>
  764. </tr>
  765. </thead>
  766. <tbody>
  767. <tr>
  768. <td><span class="xref">System.Int32</span></td>
  769. <td><span class="parametername">col</span></td>
  770. <td>Col.</td>
  771. </tr>
  772. <tr>
  773. <td><span class="xref">System.Int32</span></td>
  774. <td><span class="parametername">row</span></td>
  775. <td>Row.</td>
  776. </tr>
  777. <tr>
  778. <td><span class="xref">System.Rune</span></td>
  779. <td><span class="parametername">ch</span></td>
  780. <td>Ch.</td>
  781. </tr>
  782. </tbody>
  783. </table>
  784. <a id="Terminal_Gui_View_BringSubviewForward_" data-uid="Terminal.Gui.View.BringSubviewForward*"></a>
  785. <h4 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewForward(Terminal.Gui.View)">BringSubviewForward(View)</h4>
  786. <div class="markdown level1 summary">
  787. Moves the subview backwards in the hierarchy, only one step
  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 void BringSubviewForward(View subview)</code></pre>
  793. </div>
  794. <h5 class="parameters">Parameters</h5>
  795. <table class="table table-bordered table-striped table-condensed">
  796. <thead>
  797. <tr>
  798. <th>Type</th>
  799. <th>Name</th>
  800. <th>Description</th>
  801. </tr>
  802. </thead>
  803. <tbody>
  804. <tr>
  805. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  806. <td><span class="parametername">subview</span></td>
  807. <td>The subview to send backwards</td>
  808. </tr>
  809. </tbody>
  810. </table>
  811. <h5 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View__remarks">Remarks</h5>
  812. <div class="markdown level1 remarks">
  813. If you want to send the view all the way to the back use SendSubviewToBack.
  814. </div>
  815. <a id="Terminal_Gui_View_BringSubviewToFront_" data-uid="Terminal.Gui.View.BringSubviewToFront*"></a>
  816. <h4 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewToFront(Terminal.Gui.View)">BringSubviewToFront(View)</h4>
  817. <div class="markdown level1 summary">
  818. Brings the specified subview to the front so it is drawn on top of any other views.
  819. </div>
  820. <div class="markdown level1 conceptual"></div>
  821. <h5 class="decalaration">Declaration</h5>
  822. <div class="codewrapper">
  823. <pre><code class="lang-csharp hljs">public void BringSubviewToFront(View subview)</code></pre>
  824. </div>
  825. <h5 class="parameters">Parameters</h5>
  826. <table class="table table-bordered table-striped table-condensed">
  827. <thead>
  828. <tr>
  829. <th>Type</th>
  830. <th>Name</th>
  831. <th>Description</th>
  832. </tr>
  833. </thead>
  834. <tbody>
  835. <tr>
  836. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  837. <td><span class="parametername">subview</span></td>
  838. <td>The subview to send to the front</td>
  839. </tr>
  840. </tbody>
  841. </table>
  842. <h5 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View__remarks">Remarks</h5>
  843. <div class="markdown level1 remarks">
  844. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">SendSubviewToBack(View)</a>.
  845. </div>
  846. <a id="Terminal_Gui_View_ChildNeedsDisplay_" data-uid="Terminal.Gui.View.ChildNeedsDisplay*"></a>
  847. <h4 id="Terminal_Gui_View_ChildNeedsDisplay" data-uid="Terminal.Gui.View.ChildNeedsDisplay">ChildNeedsDisplay()</h4>
  848. <div class="markdown level1 summary">
  849. Flags this view for requiring the children views to be repainted.
  850. </div>
  851. <div class="markdown level1 conceptual"></div>
  852. <h5 class="decalaration">Declaration</h5>
  853. <div class="codewrapper">
  854. <pre><code class="lang-csharp hljs">public void ChildNeedsDisplay()</code></pre>
  855. </div>
  856. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  857. <h4 id="Terminal_Gui_View_Clear" data-uid="Terminal.Gui.View.Clear">Clear()</h4>
  858. <div class="markdown level1 summary">
  859. Clears the view region with the current color.
  860. </div>
  861. <div class="markdown level1 conceptual"></div>
  862. <h5 class="decalaration">Declaration</h5>
  863. <div class="codewrapper">
  864. <pre><code class="lang-csharp hljs">public void Clear()</code></pre>
  865. </div>
  866. <h5 id="Terminal_Gui_View_Clear_remarks">Remarks</h5>
  867. <div class="markdown level1 remarks">
  868. <p>
  869. This clears the entire region used by this view.
  870. </p>
  871. </div>
  872. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  873. <h4 id="Terminal_Gui_View_Clear_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Clear(Terminal.Gui.Rect)">Clear(Rect)</h4>
  874. <div class="markdown level1 summary">
  875. Clears the specified rectangular region with the current color
  876. </div>
  877. <div class="markdown level1 conceptual"></div>
  878. <h5 class="decalaration">Declaration</h5>
  879. <div class="codewrapper">
  880. <pre><code class="lang-csharp hljs">public void Clear(Rect r)</code></pre>
  881. </div>
  882. <h5 class="parameters">Parameters</h5>
  883. <table class="table table-bordered table-striped table-condensed">
  884. <thead>
  885. <tr>
  886. <th>Type</th>
  887. <th>Name</th>
  888. <th>Description</th>
  889. </tr>
  890. </thead>
  891. <tbody>
  892. <tr>
  893. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  894. <td><span class="parametername">r</span></td>
  895. <td></td>
  896. </tr>
  897. </tbody>
  898. </table>
  899. <a id="Terminal_Gui_View_ClearNeedsDisplay_" data-uid="Terminal.Gui.View.ClearNeedsDisplay*"></a>
  900. <h4 id="Terminal_Gui_View_ClearNeedsDisplay" data-uid="Terminal.Gui.View.ClearNeedsDisplay">ClearNeedsDisplay()</h4>
  901. <div class="markdown level1 summary">
  902. Removes the SetNeedsDisplay and the ChildNeedsDisplay setting on this view.
  903. </div>
  904. <div class="markdown level1 conceptual"></div>
  905. <h5 class="decalaration">Declaration</h5>
  906. <div class="codewrapper">
  907. <pre><code class="lang-csharp hljs">protected void ClearNeedsDisplay()</code></pre>
  908. </div>
  909. <a id="Terminal_Gui_View_ClipToBounds_" data-uid="Terminal.Gui.View.ClipToBounds*"></a>
  910. <h4 id="Terminal_Gui_View_ClipToBounds" data-uid="Terminal.Gui.View.ClipToBounds">ClipToBounds()</h4>
  911. <div class="markdown level1 summary">
  912. Sets the Console driver&apos;s clip region to the current View&apos;s Bounds.
  913. </div>
  914. <div class="markdown level1 conceptual"></div>
  915. <h5 class="decalaration">Declaration</h5>
  916. <div class="codewrapper">
  917. <pre><code class="lang-csharp hljs">public Rect ClipToBounds()</code></pre>
  918. </div>
  919. <h5 class="returns">Returns</h5>
  920. <table class="table table-bordered table-striped table-condensed">
  921. <thead>
  922. <tr>
  923. <th>Type</th>
  924. <th>Description</th>
  925. </tr>
  926. </thead>
  927. <tbody>
  928. <tr>
  929. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  930. <td>The existing driver&apos;s Clip region, which can be then set by setting the Driver.Clip property.</td>
  931. </tr>
  932. </tbody>
  933. </table>
  934. <a id="Terminal_Gui_View_DrawFrame_" data-uid="Terminal.Gui.View.DrawFrame*"></a>
  935. <h4 id="Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_" data-uid="Terminal.Gui.View.DrawFrame(Terminal.Gui.Rect,System.Int32,System.Boolean)">DrawFrame(Rect, Int32, Boolean)</h4>
  936. <div class="markdown level1 summary">
  937. Draws a frame in the current view, clipped by the boundary of this view
  938. </div>
  939. <div class="markdown level1 conceptual"></div>
  940. <h5 class="decalaration">Declaration</h5>
  941. <div class="codewrapper">
  942. <pre><code class="lang-csharp hljs">public void DrawFrame(Rect rect, int padding = 0, bool fill = false)</code></pre>
  943. </div>
  944. <h5 class="parameters">Parameters</h5>
  945. <table class="table table-bordered table-striped table-condensed">
  946. <thead>
  947. <tr>
  948. <th>Type</th>
  949. <th>Name</th>
  950. <th>Description</th>
  951. </tr>
  952. </thead>
  953. <tbody>
  954. <tr>
  955. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  956. <td><span class="parametername">rect</span></td>
  957. <td>Rectangular region for the frame to be drawn.</td>
  958. </tr>
  959. <tr>
  960. <td><span class="xref">System.Int32</span></td>
  961. <td><span class="parametername">padding</span></td>
  962. <td>The padding to add to the drawn frame.</td>
  963. </tr>
  964. <tr>
  965. <td><span class="xref">System.Boolean</span></td>
  966. <td><span class="parametername">fill</span></td>
  967. <td>If set to <code>true</code> it fill will the contents.</td>
  968. </tr>
  969. </tbody>
  970. </table>
  971. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  972. <h4 id="Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_" data-uid="Terminal.Gui.View.DrawHotString(NStack.ustring,System.Boolean,Terminal.Gui.ColorScheme)">DrawHotString(ustring, Boolean, ColorScheme)</h4>
  973. <div class="markdown level1 summary">
  974. Utility function to draw strings that contains a hotkey using a colorscheme and the &quot;focused&quot; state.
  975. </div>
  976. <div class="markdown level1 conceptual"></div>
  977. <h5 class="decalaration">Declaration</h5>
  978. <div class="codewrapper">
  979. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, bool focused, ColorScheme scheme)</code></pre>
  980. </div>
  981. <h5 class="parameters">Parameters</h5>
  982. <table class="table table-bordered table-striped table-condensed">
  983. <thead>
  984. <tr>
  985. <th>Type</th>
  986. <th>Name</th>
  987. <th>Description</th>
  988. </tr>
  989. </thead>
  990. <tbody>
  991. <tr>
  992. <td><span class="xref">NStack.ustring</span></td>
  993. <td><span class="parametername">text</span></td>
  994. <td>String to display, the underscoore before a letter flags the next letter as the hotkey.</td>
  995. </tr>
  996. <tr>
  997. <td><span class="xref">System.Boolean</span></td>
  998. <td><span class="parametername">focused</span></td>
  999. <td>If set to <code>true</code> this uses the focused colors from the color scheme, otherwise the regular ones.</td>
  1000. </tr>
  1001. <tr>
  1002. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  1003. <td><span class="parametername">scheme</span></td>
  1004. <td>The color scheme to use.</td>
  1005. </tr>
  1006. </tbody>
  1007. </table>
  1008. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  1009. <h4 id="Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_" data-uid="Terminal.Gui.View.DrawHotString(NStack.ustring,Terminal.Gui.Attribute,Terminal.Gui.Attribute)">DrawHotString(ustring, Attribute, Attribute)</h4>
  1010. <div class="markdown level1 summary">
  1011. Utility function to draw strings that contain a hotkey
  1012. </div>
  1013. <div class="markdown level1 conceptual"></div>
  1014. <h5 class="decalaration">Declaration</h5>
  1015. <div class="codewrapper">
  1016. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, Attribute hotColor, Attribute normalColor)</code></pre>
  1017. </div>
  1018. <h5 class="parameters">Parameters</h5>
  1019. <table class="table table-bordered table-striped table-condensed">
  1020. <thead>
  1021. <tr>
  1022. <th>Type</th>
  1023. <th>Name</th>
  1024. <th>Description</th>
  1025. </tr>
  1026. </thead>
  1027. <tbody>
  1028. <tr>
  1029. <td><span class="xref">NStack.ustring</span></td>
  1030. <td><span class="parametername">text</span></td>
  1031. <td>String to display, the underscoore before a letter flags the next letter as the hotkey.</td>
  1032. </tr>
  1033. <tr>
  1034. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1035. <td><span class="parametername">hotColor</span></td>
  1036. <td>Hot color.</td>
  1037. </tr>
  1038. <tr>
  1039. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1040. <td><span class="parametername">normalColor</span></td>
  1041. <td>Normal color.</td>
  1042. </tr>
  1043. </tbody>
  1044. </table>
  1045. <a id="Terminal_Gui_View_EnsureFocus_" data-uid="Terminal.Gui.View.EnsureFocus*"></a>
  1046. <h4 id="Terminal_Gui_View_EnsureFocus" data-uid="Terminal.Gui.View.EnsureFocus">EnsureFocus()</h4>
  1047. <div class="markdown level1 summary">
  1048. Finds the first view in the hierarchy that wants to get the focus if nothing is currently focused, otherwise, it does nothing.
  1049. </div>
  1050. <div class="markdown level1 conceptual"></div>
  1051. <h5 class="decalaration">Declaration</h5>
  1052. <div class="codewrapper">
  1053. <pre><code class="lang-csharp hljs">public void EnsureFocus()</code></pre>
  1054. </div>
  1055. <a id="Terminal_Gui_View_FocusFirst_" data-uid="Terminal.Gui.View.FocusFirst*"></a>
  1056. <h4 id="Terminal_Gui_View_FocusFirst" data-uid="Terminal.Gui.View.FocusFirst">FocusFirst()</h4>
  1057. <div class="markdown level1 summary">
  1058. Focuses the first focusable subview if one exists.
  1059. </div>
  1060. <div class="markdown level1 conceptual"></div>
  1061. <h5 class="decalaration">Declaration</h5>
  1062. <div class="codewrapper">
  1063. <pre><code class="lang-csharp hljs">public void FocusFirst()</code></pre>
  1064. </div>
  1065. <a id="Terminal_Gui_View_FocusLast_" data-uid="Terminal.Gui.View.FocusLast*"></a>
  1066. <h4 id="Terminal_Gui_View_FocusLast" data-uid="Terminal.Gui.View.FocusLast">FocusLast()</h4>
  1067. <div class="markdown level1 summary">
  1068. Focuses the last focusable subview if one exists.
  1069. </div>
  1070. <div class="markdown level1 conceptual"></div>
  1071. <h5 class="decalaration">Declaration</h5>
  1072. <div class="codewrapper">
  1073. <pre><code class="lang-csharp hljs">public void FocusLast()</code></pre>
  1074. </div>
  1075. <a id="Terminal_Gui_View_FocusNext_" data-uid="Terminal.Gui.View.FocusNext*"></a>
  1076. <h4 id="Terminal_Gui_View_FocusNext" data-uid="Terminal.Gui.View.FocusNext">FocusNext()</h4>
  1077. <div class="markdown level1 summary">
  1078. Focuses the next view.
  1079. </div>
  1080. <div class="markdown level1 conceptual"></div>
  1081. <h5 class="decalaration">Declaration</h5>
  1082. <div class="codewrapper">
  1083. <pre><code class="lang-csharp hljs">public bool FocusNext()</code></pre>
  1084. </div>
  1085. <h5 class="returns">Returns</h5>
  1086. <table class="table table-bordered table-striped table-condensed">
  1087. <thead>
  1088. <tr>
  1089. <th>Type</th>
  1090. <th>Description</th>
  1091. </tr>
  1092. </thead>
  1093. <tbody>
  1094. <tr>
  1095. <td><span class="xref">System.Boolean</span></td>
  1096. <td><code>true</code>, if next was focused, <code>false</code> otherwise.</td>
  1097. </tr>
  1098. </tbody>
  1099. </table>
  1100. <a id="Terminal_Gui_View_FocusPrev_" data-uid="Terminal.Gui.View.FocusPrev*"></a>
  1101. <h4 id="Terminal_Gui_View_FocusPrev" data-uid="Terminal.Gui.View.FocusPrev">FocusPrev()</h4>
  1102. <div class="markdown level1 summary">
  1103. Focuses the previous view.
  1104. </div>
  1105. <div class="markdown level1 conceptual"></div>
  1106. <h5 class="decalaration">Declaration</h5>
  1107. <div class="codewrapper">
  1108. <pre><code class="lang-csharp hljs">public bool FocusPrev()</code></pre>
  1109. </div>
  1110. <h5 class="returns">Returns</h5>
  1111. <table class="table table-bordered table-striped table-condensed">
  1112. <thead>
  1113. <tr>
  1114. <th>Type</th>
  1115. <th>Description</th>
  1116. </tr>
  1117. </thead>
  1118. <tbody>
  1119. <tr>
  1120. <td><span class="xref">System.Boolean</span></td>
  1121. <td><code>true</code>, if previous was focused, <code>false</code> otherwise.</td>
  1122. </tr>
  1123. </tbody>
  1124. </table>
  1125. <a id="Terminal_Gui_View_GetEnumerator_" data-uid="Terminal.Gui.View.GetEnumerator*"></a>
  1126. <h4 id="Terminal_Gui_View_GetEnumerator" data-uid="Terminal.Gui.View.GetEnumerator">GetEnumerator()</h4>
  1127. <div class="markdown level1 summary">
  1128. Gets an enumerator that enumerates the subviews in this view.
  1129. </div>
  1130. <div class="markdown level1 conceptual"></div>
  1131. <h5 class="decalaration">Declaration</h5>
  1132. <div class="codewrapper">
  1133. <pre><code class="lang-csharp hljs">public IEnumerator GetEnumerator()</code></pre>
  1134. </div>
  1135. <h5 class="returns">Returns</h5>
  1136. <table class="table table-bordered table-striped table-condensed">
  1137. <thead>
  1138. <tr>
  1139. <th>Type</th>
  1140. <th>Description</th>
  1141. </tr>
  1142. </thead>
  1143. <tbody>
  1144. <tr>
  1145. <td><span class="xref">System.Collections.IEnumerator</span></td>
  1146. <td>The enumerator.</td>
  1147. </tr>
  1148. </tbody>
  1149. </table>
  1150. <a id="Terminal_Gui_View_LayoutSubviews_" data-uid="Terminal.Gui.View.LayoutSubviews*"></a>
  1151. <h4 id="Terminal_Gui_View_LayoutSubviews" data-uid="Terminal.Gui.View.LayoutSubviews">LayoutSubviews()</h4>
  1152. <div class="markdown level1 summary">
  1153. This virtual method is invoked when a view starts executing or
  1154. when the dimensions of the view have changed, for example in
  1155. response to the container view or terminal resizing.
  1156. </div>
  1157. <div class="markdown level1 conceptual"></div>
  1158. <h5 class="decalaration">Declaration</h5>
  1159. <div class="codewrapper">
  1160. <pre><code class="lang-csharp hljs">public virtual void LayoutSubviews()</code></pre>
  1161. </div>
  1162. <a id="Terminal_Gui_View_Move_" data-uid="Terminal.Gui.View.Move*"></a>
  1163. <h4 id="Terminal_Gui_View_Move_System_Int32_System_Int32_" data-uid="Terminal.Gui.View.Move(System.Int32,System.Int32)">Move(Int32, Int32)</h4>
  1164. <div class="markdown level1 summary">
  1165. This moves the cursor to the specified column and row in the view.
  1166. </div>
  1167. <div class="markdown level1 conceptual"></div>
  1168. <h5 class="decalaration">Declaration</h5>
  1169. <div class="codewrapper">
  1170. <pre><code class="lang-csharp hljs">public void Move(int col, int row)</code></pre>
  1171. </div>
  1172. <h5 class="parameters">Parameters</h5>
  1173. <table class="table table-bordered table-striped table-condensed">
  1174. <thead>
  1175. <tr>
  1176. <th>Type</th>
  1177. <th>Name</th>
  1178. <th>Description</th>
  1179. </tr>
  1180. </thead>
  1181. <tbody>
  1182. <tr>
  1183. <td><span class="xref">System.Int32</span></td>
  1184. <td><span class="parametername">col</span></td>
  1185. <td>Col.</td>
  1186. </tr>
  1187. <tr>
  1188. <td><span class="xref">System.Int32</span></td>
  1189. <td><span class="parametername">row</span></td>
  1190. <td>Row.</td>
  1191. </tr>
  1192. </tbody>
  1193. </table>
  1194. <a id="Terminal_Gui_View_OnEnter_" data-uid="Terminal.Gui.View.OnEnter*"></a>
  1195. <h4 id="Terminal_Gui_View_OnEnter" data-uid="Terminal.Gui.View.OnEnter">OnEnter()</h4>
  1196. <div class="markdown level1 summary"></div>
  1197. <div class="markdown level1 conceptual"></div>
  1198. <h5 class="decalaration">Declaration</h5>
  1199. <div class="codewrapper">
  1200. <pre><code class="lang-csharp hljs">public override bool OnEnter()</code></pre>
  1201. </div>
  1202. <h5 class="returns">Returns</h5>
  1203. <table class="table table-bordered table-striped table-condensed">
  1204. <thead>
  1205. <tr>
  1206. <th>Type</th>
  1207. <th>Description</th>
  1208. </tr>
  1209. </thead>
  1210. <tbody>
  1211. <tr>
  1212. <td><span class="xref">System.Boolean</span></td>
  1213. <td></td>
  1214. </tr>
  1215. </tbody>
  1216. </table>
  1217. <h5 class="overrides">Overrides</h5>
  1218. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnEnter">Responder.OnEnter()</a></div>
  1219. <a id="Terminal_Gui_View_OnKeyDown_" data-uid="Terminal.Gui.View.OnKeyDown*"></a>
  1220. <h4 id="Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  1221. <div class="markdown level1 summary"></div>
  1222. <div class="markdown level1 conceptual"></div>
  1223. <h5 class="decalaration">Declaration</h5>
  1224. <div class="codewrapper">
  1225. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  1226. </div>
  1227. <h5 class="parameters">Parameters</h5>
  1228. <table class="table table-bordered table-striped table-condensed">
  1229. <thead>
  1230. <tr>
  1231. <th>Type</th>
  1232. <th>Name</th>
  1233. <th>Description</th>
  1234. </tr>
  1235. </thead>
  1236. <tbody>
  1237. <tr>
  1238. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1239. <td><span class="parametername">keyEvent</span></td>
  1240. <td>Contains the details about the key that produced the event.</td>
  1241. </tr>
  1242. </tbody>
  1243. </table>
  1244. <h5 class="returns">Returns</h5>
  1245. <table class="table table-bordered table-striped table-condensed">
  1246. <thead>
  1247. <tr>
  1248. <th>Type</th>
  1249. <th>Description</th>
  1250. </tr>
  1251. </thead>
  1252. <tbody>
  1253. <tr>
  1254. <td><span class="xref">System.Boolean</span></td>
  1255. <td></td>
  1256. </tr>
  1257. </tbody>
  1258. </table>
  1259. <h5 class="overrides">Overrides</h5>
  1260. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyDown_Terminal_Gui_KeyEvent_">Responder.OnKeyDown(KeyEvent)</a></div>
  1261. <a id="Terminal_Gui_View_OnKeyUp_" data-uid="Terminal.Gui.View.OnKeyUp*"></a>
  1262. <h4 id="Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  1263. <div class="markdown level1 summary"></div>
  1264. <div class="markdown level1 conceptual"></div>
  1265. <h5 class="decalaration">Declaration</h5>
  1266. <div class="codewrapper">
  1267. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  1268. </div>
  1269. <h5 class="parameters">Parameters</h5>
  1270. <table class="table table-bordered table-striped table-condensed">
  1271. <thead>
  1272. <tr>
  1273. <th>Type</th>
  1274. <th>Name</th>
  1275. <th>Description</th>
  1276. </tr>
  1277. </thead>
  1278. <tbody>
  1279. <tr>
  1280. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1281. <td><span class="parametername">keyEvent</span></td>
  1282. <td>Contains the details about the key that produced the event.</td>
  1283. </tr>
  1284. </tbody>
  1285. </table>
  1286. <h5 class="returns">Returns</h5>
  1287. <table class="table table-bordered table-striped table-condensed">
  1288. <thead>
  1289. <tr>
  1290. <th>Type</th>
  1291. <th>Description</th>
  1292. </tr>
  1293. </thead>
  1294. <tbody>
  1295. <tr>
  1296. <td><span class="xref">System.Boolean</span></td>
  1297. <td></td>
  1298. </tr>
  1299. </tbody>
  1300. </table>
  1301. <h5 class="overrides">Overrides</h5>
  1302. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyUp_Terminal_Gui_KeyEvent_">Responder.OnKeyUp(KeyEvent)</a></div>
  1303. <a id="Terminal_Gui_View_OnLeave_" data-uid="Terminal.Gui.View.OnLeave*"></a>
  1304. <h4 id="Terminal_Gui_View_OnLeave" data-uid="Terminal.Gui.View.OnLeave">OnLeave()</h4>
  1305. <div class="markdown level1 summary"></div>
  1306. <div class="markdown level1 conceptual"></div>
  1307. <h5 class="decalaration">Declaration</h5>
  1308. <div class="codewrapper">
  1309. <pre><code class="lang-csharp hljs">public override bool OnLeave()</code></pre>
  1310. </div>
  1311. <h5 class="returns">Returns</h5>
  1312. <table class="table table-bordered table-striped table-condensed">
  1313. <thead>
  1314. <tr>
  1315. <th>Type</th>
  1316. <th>Description</th>
  1317. </tr>
  1318. </thead>
  1319. <tbody>
  1320. <tr>
  1321. <td><span class="xref">System.Boolean</span></td>
  1322. <td></td>
  1323. </tr>
  1324. </tbody>
  1325. </table>
  1326. <h5 class="overrides">Overrides</h5>
  1327. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnLeave">Responder.OnLeave()</a></div>
  1328. <a id="Terminal_Gui_View_OnMouseEnter_" data-uid="Terminal.Gui.View.OnMouseEnter*"></a>
  1329. <h4 id="Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseEnter(Terminal.Gui.MouseEvent)">OnMouseEnter(MouseEvent)</h4>
  1330. <div class="markdown level1 summary"></div>
  1331. <div class="markdown level1 conceptual"></div>
  1332. <h5 class="decalaration">Declaration</h5>
  1333. <div class="codewrapper">
  1334. <pre><code class="lang-csharp hljs">public override bool OnMouseEnter(MouseEvent mouseEvent)</code></pre>
  1335. </div>
  1336. <h5 class="parameters">Parameters</h5>
  1337. <table class="table table-bordered table-striped table-condensed">
  1338. <thead>
  1339. <tr>
  1340. <th>Type</th>
  1341. <th>Name</th>
  1342. <th>Description</th>
  1343. </tr>
  1344. </thead>
  1345. <tbody>
  1346. <tr>
  1347. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1348. <td><span class="parametername">mouseEvent</span></td>
  1349. <td></td>
  1350. </tr>
  1351. </tbody>
  1352. </table>
  1353. <h5 class="returns">Returns</h5>
  1354. <table class="table table-bordered table-striped table-condensed">
  1355. <thead>
  1356. <tr>
  1357. <th>Type</th>
  1358. <th>Description</th>
  1359. </tr>
  1360. </thead>
  1361. <tbody>
  1362. <tr>
  1363. <td><span class="xref">System.Boolean</span></td>
  1364. <td></td>
  1365. </tr>
  1366. </tbody>
  1367. </table>
  1368. <h5 class="overrides">Overrides</h5>
  1369. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseEnter_Terminal_Gui_MouseEvent_">Responder.OnMouseEnter(MouseEvent)</a></div>
  1370. <a id="Terminal_Gui_View_OnMouseLeave_" data-uid="Terminal.Gui.View.OnMouseLeave*"></a>
  1371. <h4 id="Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseLeave(Terminal.Gui.MouseEvent)">OnMouseLeave(MouseEvent)</h4>
  1372. <div class="markdown level1 summary"></div>
  1373. <div class="markdown level1 conceptual"></div>
  1374. <h5 class="decalaration">Declaration</h5>
  1375. <div class="codewrapper">
  1376. <pre><code class="lang-csharp hljs">public override bool OnMouseLeave(MouseEvent mouseEvent)</code></pre>
  1377. </div>
  1378. <h5 class="parameters">Parameters</h5>
  1379. <table class="table table-bordered table-striped table-condensed">
  1380. <thead>
  1381. <tr>
  1382. <th>Type</th>
  1383. <th>Name</th>
  1384. <th>Description</th>
  1385. </tr>
  1386. </thead>
  1387. <tbody>
  1388. <tr>
  1389. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1390. <td><span class="parametername">mouseEvent</span></td>
  1391. <td></td>
  1392. </tr>
  1393. </tbody>
  1394. </table>
  1395. <h5 class="returns">Returns</h5>
  1396. <table class="table table-bordered table-striped table-condensed">
  1397. <thead>
  1398. <tr>
  1399. <th>Type</th>
  1400. <th>Description</th>
  1401. </tr>
  1402. </thead>
  1403. <tbody>
  1404. <tr>
  1405. <td><span class="xref">System.Boolean</span></td>
  1406. <td></td>
  1407. </tr>
  1408. </tbody>
  1409. </table>
  1410. <h5 class="overrides">Overrides</h5>
  1411. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseLeave_Terminal_Gui_MouseEvent_">Responder.OnMouseLeave(MouseEvent)</a></div>
  1412. <a id="Terminal_Gui_View_PositionCursor_" data-uid="Terminal.Gui.View.PositionCursor*"></a>
  1413. <h4 id="Terminal_Gui_View_PositionCursor" data-uid="Terminal.Gui.View.PositionCursor">PositionCursor()</h4>
  1414. <div class="markdown level1 summary">
  1415. Positions the cursor in the right position based on the currently focused view in the chain.
  1416. </div>
  1417. <div class="markdown level1 conceptual"></div>
  1418. <h5 class="decalaration">Declaration</h5>
  1419. <div class="codewrapper">
  1420. <pre><code class="lang-csharp hljs">public virtual void PositionCursor()</code></pre>
  1421. </div>
  1422. <a id="Terminal_Gui_View_ProcessColdKey_" data-uid="Terminal.Gui.View.ProcessColdKey*"></a>
  1423. <h4 id="Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  1424. <div class="markdown level1 summary"></div>
  1425. <div class="markdown level1 conceptual"></div>
  1426. <h5 class="decalaration">Declaration</h5>
  1427. <div class="codewrapper">
  1428. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey(KeyEvent keyEvent)</code></pre>
  1429. </div>
  1430. <h5 class="parameters">Parameters</h5>
  1431. <table class="table table-bordered table-striped table-condensed">
  1432. <thead>
  1433. <tr>
  1434. <th>Type</th>
  1435. <th>Name</th>
  1436. <th>Description</th>
  1437. </tr>
  1438. </thead>
  1439. <tbody>
  1440. <tr>
  1441. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1442. <td><span class="parametername">keyEvent</span></td>
  1443. <td></td>
  1444. </tr>
  1445. </tbody>
  1446. </table>
  1447. <h5 class="returns">Returns</h5>
  1448. <table class="table table-bordered table-striped table-condensed">
  1449. <thead>
  1450. <tr>
  1451. <th>Type</th>
  1452. <th>Description</th>
  1453. </tr>
  1454. </thead>
  1455. <tbody>
  1456. <tr>
  1457. <td><span class="xref">System.Boolean</span></td>
  1458. <td></td>
  1459. </tr>
  1460. </tbody>
  1461. </table>
  1462. <h5 class="overrides">Overrides</h5>
  1463. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessColdKey_Terminal_Gui_KeyEvent_">Responder.ProcessColdKey(KeyEvent)</a></div>
  1464. <a id="Terminal_Gui_View_ProcessHotKey_" data-uid="Terminal.Gui.View.ProcessHotKey*"></a>
  1465. <h4 id="Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessHotKey(Terminal.Gui.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  1466. <div class="markdown level1 summary"></div>
  1467. <div class="markdown level1 conceptual"></div>
  1468. <h5 class="decalaration">Declaration</h5>
  1469. <div class="codewrapper">
  1470. <pre><code class="lang-csharp hljs">public override bool ProcessHotKey(KeyEvent keyEvent)</code></pre>
  1471. </div>
  1472. <h5 class="parameters">Parameters</h5>
  1473. <table class="table table-bordered table-striped table-condensed">
  1474. <thead>
  1475. <tr>
  1476. <th>Type</th>
  1477. <th>Name</th>
  1478. <th>Description</th>
  1479. </tr>
  1480. </thead>
  1481. <tbody>
  1482. <tr>
  1483. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1484. <td><span class="parametername">keyEvent</span></td>
  1485. <td></td>
  1486. </tr>
  1487. </tbody>
  1488. </table>
  1489. <h5 class="returns">Returns</h5>
  1490. <table class="table table-bordered table-striped table-condensed">
  1491. <thead>
  1492. <tr>
  1493. <th>Type</th>
  1494. <th>Description</th>
  1495. </tr>
  1496. </thead>
  1497. <tbody>
  1498. <tr>
  1499. <td><span class="xref">System.Boolean</span></td>
  1500. <td></td>
  1501. </tr>
  1502. </tbody>
  1503. </table>
  1504. <h5 class="overrides">Overrides</h5>
  1505. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessHotKey_Terminal_Gui_KeyEvent_">Responder.ProcessHotKey(KeyEvent)</a></div>
  1506. <a id="Terminal_Gui_View_ProcessKey_" data-uid="Terminal.Gui.View.ProcessKey*"></a>
  1507. <h4 id="Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1508. <div class="markdown level1 summary"></div>
  1509. <div class="markdown level1 conceptual"></div>
  1510. <h5 class="decalaration">Declaration</h5>
  1511. <div class="codewrapper">
  1512. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1513. </div>
  1514. <h5 class="parameters">Parameters</h5>
  1515. <table class="table table-bordered table-striped table-condensed">
  1516. <thead>
  1517. <tr>
  1518. <th>Type</th>
  1519. <th>Name</th>
  1520. <th>Description</th>
  1521. </tr>
  1522. </thead>
  1523. <tbody>
  1524. <tr>
  1525. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1526. <td><span class="parametername">keyEvent</span></td>
  1527. <td></td>
  1528. </tr>
  1529. </tbody>
  1530. </table>
  1531. <h5 class="returns">Returns</h5>
  1532. <table class="table table-bordered table-striped table-condensed">
  1533. <thead>
  1534. <tr>
  1535. <th>Type</th>
  1536. <th>Description</th>
  1537. </tr>
  1538. </thead>
  1539. <tbody>
  1540. <tr>
  1541. <td><span class="xref">System.Boolean</span></td>
  1542. <td></td>
  1543. </tr>
  1544. </tbody>
  1545. </table>
  1546. <h5 class="overrides">Overrides</h5>
  1547. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessKey_Terminal_Gui_KeyEvent_">Responder.ProcessKey(KeyEvent)</a></div>
  1548. <a id="Terminal_Gui_View_Redraw_" data-uid="Terminal.Gui.View.Redraw*"></a>
  1549. <h4 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1550. <div class="markdown level1 summary">
  1551. Performs a redraw of this view and its subviews, only redraws the views that have been flagged for a re-display.
  1552. </div>
  1553. <div class="markdown level1 conceptual"></div>
  1554. <h5 class="decalaration">Declaration</h5>
  1555. <div class="codewrapper">
  1556. <pre><code class="lang-csharp hljs">public virtual void Redraw(Rect region)</code></pre>
  1557. </div>
  1558. <h5 class="parameters">Parameters</h5>
  1559. <table class="table table-bordered table-striped table-condensed">
  1560. <thead>
  1561. <tr>
  1562. <th>Type</th>
  1563. <th>Name</th>
  1564. <th>Description</th>
  1565. </tr>
  1566. </thead>
  1567. <tbody>
  1568. <tr>
  1569. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1570. <td><span class="parametername">region</span></td>
  1571. <td>The region to redraw, this is relative to the view itself.</td>
  1572. </tr>
  1573. </tbody>
  1574. </table>
  1575. <h5 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1576. <div class="markdown level1 remarks">
  1577. <p>
  1578. Views should set the color that they want to use on entry, as otherwise this will inherit
  1579. the last color that was set globaly on the driver.
  1580. </p>
  1581. </div>
  1582. <a id="Terminal_Gui_View_Remove_" data-uid="Terminal.Gui.View.Remove*"></a>
  1583. <h4 id="Terminal_Gui_View_Remove_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Remove(Terminal.Gui.View)">Remove(View)</h4>
  1584. <div class="markdown level1 summary">
  1585. Removes a widget from this container.
  1586. </div>
  1587. <div class="markdown level1 conceptual"></div>
  1588. <h5 class="decalaration">Declaration</h5>
  1589. <div class="codewrapper">
  1590. <pre><code class="lang-csharp hljs">public virtual void Remove(View view)</code></pre>
  1591. </div>
  1592. <h5 class="parameters">Parameters</h5>
  1593. <table class="table table-bordered table-striped table-condensed">
  1594. <thead>
  1595. <tr>
  1596. <th>Type</th>
  1597. <th>Name</th>
  1598. <th>Description</th>
  1599. </tr>
  1600. </thead>
  1601. <tbody>
  1602. <tr>
  1603. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1604. <td><span class="parametername">view</span></td>
  1605. <td></td>
  1606. </tr>
  1607. </tbody>
  1608. </table>
  1609. <h5 id="Terminal_Gui_View_Remove_Terminal_Gui_View__remarks">Remarks</h5>
  1610. <div class="markdown level1 remarks">
  1611. </div>
  1612. <a id="Terminal_Gui_View_RemoveAll_" data-uid="Terminal.Gui.View.RemoveAll*"></a>
  1613. <h4 id="Terminal_Gui_View_RemoveAll" data-uid="Terminal.Gui.View.RemoveAll">RemoveAll()</h4>
  1614. <div class="markdown level1 summary">
  1615. Removes all the widgets from this container.
  1616. </div>
  1617. <div class="markdown level1 conceptual"></div>
  1618. <h5 class="decalaration">Declaration</h5>
  1619. <div class="codewrapper">
  1620. <pre><code class="lang-csharp hljs">public virtual void RemoveAll()</code></pre>
  1621. </div>
  1622. <h5 id="Terminal_Gui_View_RemoveAll_remarks">Remarks</h5>
  1623. <div class="markdown level1 remarks">
  1624. </div>
  1625. <a id="Terminal_Gui_View_ScreenToView_" data-uid="Terminal.Gui.View.ScreenToView*"></a>
  1626. <h4 id="Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_" data-uid="Terminal.Gui.View.ScreenToView(System.Int32,System.Int32)">ScreenToView(Int32, Int32)</h4>
  1627. <div class="markdown level1 summary">
  1628. Converts a point from screen coordinates into the view coordinate space.
  1629. </div>
  1630. <div class="markdown level1 conceptual"></div>
  1631. <h5 class="decalaration">Declaration</h5>
  1632. <div class="codewrapper">
  1633. <pre><code class="lang-csharp hljs">public Point ScreenToView(int x, int y)</code></pre>
  1634. </div>
  1635. <h5 class="parameters">Parameters</h5>
  1636. <table class="table table-bordered table-striped table-condensed">
  1637. <thead>
  1638. <tr>
  1639. <th>Type</th>
  1640. <th>Name</th>
  1641. <th>Description</th>
  1642. </tr>
  1643. </thead>
  1644. <tbody>
  1645. <tr>
  1646. <td><span class="xref">System.Int32</span></td>
  1647. <td><span class="parametername">x</span></td>
  1648. <td>X screen-coordinate point.</td>
  1649. </tr>
  1650. <tr>
  1651. <td><span class="xref">System.Int32</span></td>
  1652. <td><span class="parametername">y</span></td>
  1653. <td>Y screen-coordinate point.</td>
  1654. </tr>
  1655. </tbody>
  1656. </table>
  1657. <h5 class="returns">Returns</h5>
  1658. <table class="table table-bordered table-striped table-condensed">
  1659. <thead>
  1660. <tr>
  1661. <th>Type</th>
  1662. <th>Description</th>
  1663. </tr>
  1664. </thead>
  1665. <tbody>
  1666. <tr>
  1667. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  1668. <td>The mapped point.</td>
  1669. </tr>
  1670. </tbody>
  1671. </table>
  1672. <a id="Terminal_Gui_View_SendSubviewBackwards_" data-uid="Terminal.Gui.View.SendSubviewBackwards*"></a>
  1673. <h4 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewBackwards(Terminal.Gui.View)">SendSubviewBackwards(View)</h4>
  1674. <div class="markdown level1 summary">
  1675. Moves the subview backwards in the hierarchy, only one step
  1676. </div>
  1677. <div class="markdown level1 conceptual"></div>
  1678. <h5 class="decalaration">Declaration</h5>
  1679. <div class="codewrapper">
  1680. <pre><code class="lang-csharp hljs">public void SendSubviewBackwards(View subview)</code></pre>
  1681. </div>
  1682. <h5 class="parameters">Parameters</h5>
  1683. <table class="table table-bordered table-striped table-condensed">
  1684. <thead>
  1685. <tr>
  1686. <th>Type</th>
  1687. <th>Name</th>
  1688. <th>Description</th>
  1689. </tr>
  1690. </thead>
  1691. <tbody>
  1692. <tr>
  1693. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1694. <td><span class="parametername">subview</span></td>
  1695. <td>The subview to send backwards</td>
  1696. </tr>
  1697. </tbody>
  1698. </table>
  1699. <h5 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View__remarks">Remarks</h5>
  1700. <div class="markdown level1 remarks">
  1701. If you want to send the view all the way to the back use SendSubviewToBack.
  1702. </div>
  1703. <a id="Terminal_Gui_View_SendSubviewToBack_" data-uid="Terminal.Gui.View.SendSubviewToBack*"></a>
  1704. <h4 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewToBack(Terminal.Gui.View)">SendSubviewToBack(View)</h4>
  1705. <div class="markdown level1 summary">
  1706. Sends the specified subview to the front so it is the first view drawn
  1707. </div>
  1708. <div class="markdown level1 conceptual"></div>
  1709. <h5 class="decalaration">Declaration</h5>
  1710. <div class="codewrapper">
  1711. <pre><code class="lang-csharp hljs">public void SendSubviewToBack(View subview)</code></pre>
  1712. </div>
  1713. <h5 class="parameters">Parameters</h5>
  1714. <table class="table table-bordered table-striped table-condensed">
  1715. <thead>
  1716. <tr>
  1717. <th>Type</th>
  1718. <th>Name</th>
  1719. <th>Description</th>
  1720. </tr>
  1721. </thead>
  1722. <tbody>
  1723. <tr>
  1724. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1725. <td><span class="parametername">subview</span></td>
  1726. <td>The subview to send to the front</td>
  1727. </tr>
  1728. </tbody>
  1729. </table>
  1730. <h5 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View__remarks">Remarks</h5>
  1731. <div class="markdown level1 remarks">
  1732. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">BringSubviewToFront(View)</a>.
  1733. </div>
  1734. <a id="Terminal_Gui_View_SetClip_" data-uid="Terminal.Gui.View.SetClip*"></a>
  1735. <h4 id="Terminal_Gui_View_SetClip_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetClip(Terminal.Gui.Rect)">SetClip(Rect)</h4>
  1736. <div class="markdown level1 summary">
  1737. Sets the clipping region to the specified region, the region is view-relative
  1738. </div>
  1739. <div class="markdown level1 conceptual"></div>
  1740. <h5 class="decalaration">Declaration</h5>
  1741. <div class="codewrapper">
  1742. <pre><code class="lang-csharp hljs">public Rect SetClip(Rect rect)</code></pre>
  1743. </div>
  1744. <h5 class="parameters">Parameters</h5>
  1745. <table class="table table-bordered table-striped table-condensed">
  1746. <thead>
  1747. <tr>
  1748. <th>Type</th>
  1749. <th>Name</th>
  1750. <th>Description</th>
  1751. </tr>
  1752. </thead>
  1753. <tbody>
  1754. <tr>
  1755. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1756. <td><span class="parametername">rect</span></td>
  1757. <td>Rectangle region to clip into, the region is view-relative.</td>
  1758. </tr>
  1759. </tbody>
  1760. </table>
  1761. <h5 class="returns">Returns</h5>
  1762. <table class="table table-bordered table-striped table-condensed">
  1763. <thead>
  1764. <tr>
  1765. <th>Type</th>
  1766. <th>Description</th>
  1767. </tr>
  1768. </thead>
  1769. <tbody>
  1770. <tr>
  1771. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1772. <td>The previous clip region.</td>
  1773. </tr>
  1774. </tbody>
  1775. </table>
  1776. <a id="Terminal_Gui_View_SetFocus_" data-uid="Terminal.Gui.View.SetFocus*"></a>
  1777. <h4 id="Terminal_Gui_View_SetFocus_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SetFocus(Terminal.Gui.View)">SetFocus(View)</h4>
  1778. <div class="markdown level1 summary">
  1779. Focuses the specified sub-view.
  1780. </div>
  1781. <div class="markdown level1 conceptual"></div>
  1782. <h5 class="decalaration">Declaration</h5>
  1783. <div class="codewrapper">
  1784. <pre><code class="lang-csharp hljs">public void SetFocus(View view)</code></pre>
  1785. </div>
  1786. <h5 class="parameters">Parameters</h5>
  1787. <table class="table table-bordered table-striped table-condensed">
  1788. <thead>
  1789. <tr>
  1790. <th>Type</th>
  1791. <th>Name</th>
  1792. <th>Description</th>
  1793. </tr>
  1794. </thead>
  1795. <tbody>
  1796. <tr>
  1797. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1798. <td><span class="parametername">view</span></td>
  1799. <td>View.</td>
  1800. </tr>
  1801. </tbody>
  1802. </table>
  1803. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  1804. <h4 id="Terminal_Gui_View_SetNeedsDisplay" data-uid="Terminal.Gui.View.SetNeedsDisplay">SetNeedsDisplay()</h4>
  1805. <div class="markdown level1 summary">
  1806. Invoke to flag that this view needs to be redisplayed, by any code
  1807. that alters the state of the view.
  1808. </div>
  1809. <div class="markdown level1 conceptual"></div>
  1810. <h5 class="decalaration">Declaration</h5>
  1811. <div class="codewrapper">
  1812. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay()</code></pre>
  1813. </div>
  1814. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  1815. <h4 id="Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetNeedsDisplay(Terminal.Gui.Rect)">SetNeedsDisplay(Rect)</h4>
  1816. <div class="markdown level1 summary">
  1817. Flags the specified rectangle region on this view as needing to be repainted.
  1818. </div>
  1819. <div class="markdown level1 conceptual"></div>
  1820. <h5 class="decalaration">Declaration</h5>
  1821. <div class="codewrapper">
  1822. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay(Rect region)</code></pre>
  1823. </div>
  1824. <h5 class="parameters">Parameters</h5>
  1825. <table class="table table-bordered table-striped table-condensed">
  1826. <thead>
  1827. <tr>
  1828. <th>Type</th>
  1829. <th>Name</th>
  1830. <th>Description</th>
  1831. </tr>
  1832. </thead>
  1833. <tbody>
  1834. <tr>
  1835. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1836. <td><span class="parametername">region</span></td>
  1837. <td>The region that must be flagged for repaint.</td>
  1838. </tr>
  1839. </tbody>
  1840. </table>
  1841. <a id="Terminal_Gui_View_ToString_" data-uid="Terminal.Gui.View.ToString*"></a>
  1842. <h4 id="Terminal_Gui_View_ToString" data-uid="Terminal.Gui.View.ToString">ToString()</h4>
  1843. <div class="markdown level1 summary"></div>
  1844. <div class="markdown level1 conceptual"></div>
  1845. <h5 class="decalaration">Declaration</h5>
  1846. <div class="codewrapper">
  1847. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  1848. </div>
  1849. <h5 class="returns">Returns</h5>
  1850. <table class="table table-bordered table-striped table-condensed">
  1851. <thead>
  1852. <tr>
  1853. <th>Type</th>
  1854. <th>Description</th>
  1855. </tr>
  1856. </thead>
  1857. <tbody>
  1858. <tr>
  1859. <td><span class="xref">System.String</span></td>
  1860. <td></td>
  1861. </tr>
  1862. </tbody>
  1863. </table>
  1864. <h5 class="overrides">Overrides</h5>
  1865. <div><span class="xref">System.Object.ToString()</span></div>
  1866. <h3 id="events">Events
  1867. </h3>
  1868. <h4 id="Terminal_Gui_View_Enter" data-uid="Terminal.Gui.View.Enter">Enter</h4>
  1869. <div class="markdown level1 summary">
  1870. Event fired when the view get focus.
  1871. </div>
  1872. <div class="markdown level1 conceptual"></div>
  1873. <h5 class="decalaration">Declaration</h5>
  1874. <div class="codewrapper">
  1875. <pre><code class="lang-csharp hljs">public event EventHandler Enter</code></pre>
  1876. </div>
  1877. <h5 class="eventType">Event Type</h5>
  1878. <table class="table table-bordered table-striped table-condensed">
  1879. <thead>
  1880. <tr>
  1881. <th>Type</th>
  1882. <th>Description</th>
  1883. </tr>
  1884. </thead>
  1885. <tbody>
  1886. <tr>
  1887. <td><span class="xref">System.EventHandler</span></td>
  1888. <td></td>
  1889. </tr>
  1890. </tbody>
  1891. </table>
  1892. <h4 id="Terminal_Gui_View_KeyDown" data-uid="Terminal.Gui.View.KeyDown">KeyDown</h4>
  1893. <div class="markdown level1 summary">
  1894. Invoked when a key is pressed
  1895. </div>
  1896. <div class="markdown level1 conceptual"></div>
  1897. <h5 class="decalaration">Declaration</h5>
  1898. <div class="codewrapper">
  1899. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyDown</code></pre>
  1900. </div>
  1901. <h5 class="eventType">Event Type</h5>
  1902. <table class="table table-bordered table-striped table-condensed">
  1903. <thead>
  1904. <tr>
  1905. <th>Type</th>
  1906. <th>Description</th>
  1907. </tr>
  1908. </thead>
  1909. <tbody>
  1910. <tr>
  1911. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  1912. <td></td>
  1913. </tr>
  1914. </tbody>
  1915. </table>
  1916. <h4 id="Terminal_Gui_View_KeyPress" data-uid="Terminal.Gui.View.KeyPress">KeyPress</h4>
  1917. <div class="markdown level1 summary">
  1918. Invoked when a character key is pressed and occurs after the key up event.
  1919. </div>
  1920. <div class="markdown level1 conceptual"></div>
  1921. <h5 class="decalaration">Declaration</h5>
  1922. <div class="codewrapper">
  1923. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyPress</code></pre>
  1924. </div>
  1925. <h5 class="eventType">Event Type</h5>
  1926. <table class="table table-bordered table-striped table-condensed">
  1927. <thead>
  1928. <tr>
  1929. <th>Type</th>
  1930. <th>Description</th>
  1931. </tr>
  1932. </thead>
  1933. <tbody>
  1934. <tr>
  1935. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  1936. <td></td>
  1937. </tr>
  1938. </tbody>
  1939. </table>
  1940. <h4 id="Terminal_Gui_View_KeyUp" data-uid="Terminal.Gui.View.KeyUp">KeyUp</h4>
  1941. <div class="markdown level1 summary">
  1942. Invoked when a key is released
  1943. </div>
  1944. <div class="markdown level1 conceptual"></div>
  1945. <h5 class="decalaration">Declaration</h5>
  1946. <div class="codewrapper">
  1947. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyUp</code></pre>
  1948. </div>
  1949. <h5 class="eventType">Event Type</h5>
  1950. <table class="table table-bordered table-striped table-condensed">
  1951. <thead>
  1952. <tr>
  1953. <th>Type</th>
  1954. <th>Description</th>
  1955. </tr>
  1956. </thead>
  1957. <tbody>
  1958. <tr>
  1959. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  1960. <td></td>
  1961. </tr>
  1962. </tbody>
  1963. </table>
  1964. <h4 id="Terminal_Gui_View_Leave" data-uid="Terminal.Gui.View.Leave">Leave</h4>
  1965. <div class="markdown level1 summary">
  1966. Event fired when the view lost focus.
  1967. </div>
  1968. <div class="markdown level1 conceptual"></div>
  1969. <h5 class="decalaration">Declaration</h5>
  1970. <div class="codewrapper">
  1971. <pre><code class="lang-csharp hljs">public event EventHandler Leave</code></pre>
  1972. </div>
  1973. <h5 class="eventType">Event Type</h5>
  1974. <table class="table table-bordered table-striped table-condensed">
  1975. <thead>
  1976. <tr>
  1977. <th>Type</th>
  1978. <th>Description</th>
  1979. </tr>
  1980. </thead>
  1981. <tbody>
  1982. <tr>
  1983. <td><span class="xref">System.EventHandler</span></td>
  1984. <td></td>
  1985. </tr>
  1986. </tbody>
  1987. </table>
  1988. <h4 id="Terminal_Gui_View_MouseEnter" data-uid="Terminal.Gui.View.MouseEnter">MouseEnter</h4>
  1989. <div class="markdown level1 summary">
  1990. Event fired when the view receives the mouse event for the first time.
  1991. </div>
  1992. <div class="markdown level1 conceptual"></div>
  1993. <h5 class="decalaration">Declaration</h5>
  1994. <div class="codewrapper">
  1995. <pre><code class="lang-csharp hljs">public event EventHandler&lt;MouseEvent&gt; MouseEnter</code></pre>
  1996. </div>
  1997. <h5 class="eventType">Event Type</h5>
  1998. <table class="table table-bordered table-striped table-condensed">
  1999. <thead>
  2000. <tr>
  2001. <th>Type</th>
  2002. <th>Description</th>
  2003. </tr>
  2004. </thead>
  2005. <tbody>
  2006. <tr>
  2007. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a>&gt;</td>
  2008. <td></td>
  2009. </tr>
  2010. </tbody>
  2011. </table>
  2012. <h4 id="Terminal_Gui_View_MouseLeave" data-uid="Terminal.Gui.View.MouseLeave">MouseLeave</h4>
  2013. <div class="markdown level1 summary">
  2014. Event fired when the view loses mouse event for the last time.
  2015. </div>
  2016. <div class="markdown level1 conceptual"></div>
  2017. <h5 class="decalaration">Declaration</h5>
  2018. <div class="codewrapper">
  2019. <pre><code class="lang-csharp hljs">public event EventHandler&lt;MouseEvent&gt; MouseLeave</code></pre>
  2020. </div>
  2021. <h5 class="eventType">Event Type</h5>
  2022. <table class="table table-bordered table-striped table-condensed">
  2023. <thead>
  2024. <tr>
  2025. <th>Type</th>
  2026. <th>Description</th>
  2027. </tr>
  2028. </thead>
  2029. <tbody>
  2030. <tr>
  2031. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a>&gt;</td>
  2032. <td></td>
  2033. </tr>
  2034. </tbody>
  2035. </table>
  2036. <h3 id="implements">Implements</h3>
  2037. <div>
  2038. <span class="xref">System.Collections.IEnumerable</span>
  2039. </div>
  2040. </article>
  2041. </div>
  2042. <div class="hidden-sm col-md-2" role="complementary">
  2043. <div class="sideaffix">
  2044. <div class="contribution">
  2045. <ul class="nav">
  2046. </ul>
  2047. </div>
  2048. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  2049. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  2050. </nav>
  2051. </div>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <footer>
  2056. <div class="grad-bottom"></div>
  2057. <div class="footer">
  2058. <div class="container">
  2059. <span class="pull-right">
  2060. <a href="#top">Back to top</a>
  2061. </span>
  2062. <span>Generated by <strong>DocFX</strong></span>
  2063. </div>
  2064. </div>
  2065. </footer>
  2066. </div>
  2067. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  2068. <script type="text/javascript" src="../../styles/docfx.js"></script>
  2069. <script type="text/javascript" src="../../styles/main.js"></script>
  2070. </body>
  2071. </html>