Terminal.Gui.View.html 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553
  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.54.0.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <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. 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 supports two layout styles: Absolute or Computed. The choice as to which layout style is used by the View
  146. is determined when the View is initizlied. To create a View using Absolute layout, call a constructor that takes a
  147. Rect parameter to specify the absolute position and size (the <code>View.<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a></code>)/. To create a View
  148. using Computed layout use a constructor that does not take a Rect parametr and set the X, Y, Width and Height
  149. properties on the view. Both approaches use coordinates that are relative to the container they are being added to.
  150. </p>
  151. <p>
  152. To switch between Absolute and Computed layout, use the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> property.
  153. </p>
  154. <p>
  155. Computed layout is more flexible and supports dynamic console apps where controls adjust layout
  156. as the terminal resizes or other Views change size or position. The X, Y, Width and Height
  157. properties are Dim and Pos objects that dynamically update the position of a view.
  158. The X and Y properties are of type <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>
  159. and you can use either absolute positions, percentages or anchor
  160. points. The Width and Height properties are of type
  161. <a class="xref" href="Terminal.Gui.Dim.html">Dim</a> and can use absolute position,
  162. percentages and anchors. These are useful as they will take
  163. care of repositioning views when view&apos;s frames are resized or
  164. if the terminal size changes.
  165. </p>
  166. <p>
  167. Absolute layout requires specifying coordiantes and sizes of Views explicitly, and the
  168. View will typcialy stay in a fixed position and size. To change the position and size use the
  169. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> property.
  170. </p>
  171. <p>
  172. Subviews (child views) can be added to a View by calling the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> method.
  173. The container of a View can be accessed with the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a> property.
  174. </p>
  175. <p>
  176. To flag a region of the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> to be redrawn call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">SetNeedsDisplay(Rect)</a>. To flag the entire view
  177. for redraw call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a>.
  178. </p>
  179. <p>
  180. Views have a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> property that defines the default colors that subviews
  181. should use for rendering. This ensures that the views fit in the context where
  182. they are being used, and allows for themes to be plugged in. For example, the
  183. default colors for windows and toplevels uses a blue background, while it uses
  184. a white background for dialog boxes and a red background for errors.
  185. </p>
  186. <p>
  187. Subclasses should not rely on <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> being
  188. set at construction time. If a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> is not set on a view, the view will inherit the
  189. value from its <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a> and the value might only be valid once a view has been
  190. added to a SuperView.
  191. </p>
  192. <p>
  193. By using <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> applications will work both
  194. in color as well as black and white displays.
  195. </p>
  196. <p>
  197. Views that are focusable should implement the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">PositionCursor()</a> to make sure that
  198. the cursor is placed in a location that makes sense. Unix terminals do not have
  199. a way of hiding the cursor, so it can be distracting to have the cursor left at
  200. the last focused view. So views should make sure that they place the cursor
  201. in a visually sensible place.
  202. </p>
  203. <p>
  204. The <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">LayoutSubviews()</a> method is invoked when the size or layout of a view has
  205. changed. The default processing system will keep the size and dimensions
  206. for views that use the <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>, and will recompute the
  207. frames for the vies that use <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  208. </p>
  209. </div>
  210. <h3 id="constructors">Constructors
  211. </h3>
  212. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  213. <h4 id="Terminal_Gui_View__ctor" data-uid="Terminal.Gui.View.#ctor">View()</h4>
  214. <div class="markdown level1 summary">
  215. Initializes a new instance of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> <a class="xref" href="Terminal.Gui.View.html">View</a> class.
  216. </div>
  217. <div class="markdown level1 conceptual"></div>
  218. <h5 class="decalaration">Declaration</h5>
  219. <div class="codewrapper">
  220. <pre><code class="lang-csharp hljs">public View()</code></pre>
  221. </div>
  222. <h5 id="Terminal_Gui_View__ctor_remarks">Remarks</h5>
  223. <div class="markdown level1 remarks">
  224. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">X</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">Y</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a>, and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> properties to dynamically control the size and location of the view.
  225. </div>
  226. <a id="Terminal_Gui_View__ctor_" data-uid="Terminal.Gui.View.#ctor*"></a>
  227. <h4 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.#ctor(Terminal.Gui.Rect)">View(Rect)</h4>
  228. <div class="markdown level1 summary">
  229. Initializes a new instance of a <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> <a class="xref" href="Terminal.Gui.View.html">View</a> class with the absolute
  230. dimensions specified in the <code>frame</code> parameter.
  231. </div>
  232. <div class="markdown level1 conceptual"></div>
  233. <h5 class="decalaration">Declaration</h5>
  234. <div class="codewrapper">
  235. <pre><code class="lang-csharp hljs">public View(Rect frame)</code></pre>
  236. </div>
  237. <h5 class="parameters">Parameters</h5>
  238. <table class="table table-bordered table-striped table-condensed">
  239. <thead>
  240. <tr>
  241. <th>Type</th>
  242. <th>Name</th>
  243. <th>Description</th>
  244. </tr>
  245. </thead>
  246. <tbody>
  247. <tr>
  248. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  249. <td><span class="parametername">frame</span></td>
  250. <td>The region covered by this view.</td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <h5 id="Terminal_Gui_View__ctor_Terminal_Gui_Rect__remarks">Remarks</h5>
  255. <div class="markdown level1 remarks">
  256. This constructor intitalize a View with a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>. Use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View__ctor">View()</a> to
  257. initialize a View with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> of <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>
  258. </div>
  259. <h3 id="properties">Properties
  260. </h3>
  261. <a id="Terminal_Gui_View_Bounds_" data-uid="Terminal.Gui.View.Bounds*"></a>
  262. <h4 id="Terminal_Gui_View_Bounds" data-uid="Terminal.Gui.View.Bounds">Bounds</h4>
  263. <div class="markdown level1 summary">
  264. The bounds represent the View-relative rectangle used for this view; the area inside of the view.
  265. </div>
  266. <div class="markdown level1 conceptual"></div>
  267. <h5 class="decalaration">Declaration</h5>
  268. <div class="codewrapper">
  269. <pre><code class="lang-csharp hljs">public Rect Bounds { get; set; }</code></pre>
  270. </div>
  271. <h5 class="propertyValue">Property Value</h5>
  272. <table class="table table-bordered table-striped table-condensed">
  273. <thead>
  274. <tr>
  275. <th>Type</th>
  276. <th>Description</th>
  277. </tr>
  278. </thead>
  279. <tbody>
  280. <tr>
  281. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  282. <td>The bounds.</td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <h5 id="Terminal_Gui_View_Bounds_remarks">Remarks</h5>
  287. <div class="markdown level1 remarks">
  288. <p>
  289. Updates to the Bounds update the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>,
  290. and has the same side effects as updating the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>.
  291. </p>
  292. <p>
  293. Because <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> coordinates are relative to the upper-left corner of the <a class="xref" href="Terminal.Gui.View.html">View</a>,
  294. the coordinates of the upper-left corner of the rectangle returned by this property are (0,0).
  295. Use this property to obtain the size and coordinates of the client area of the
  296. control for tasks such as drawing on the surface of the control.
  297. </p>
  298. </div>
  299. <a id="Terminal_Gui_View_ColorScheme_" data-uid="Terminal.Gui.View.ColorScheme*"></a>
  300. <h4 id="Terminal_Gui_View_ColorScheme" data-uid="Terminal.Gui.View.ColorScheme">ColorScheme</h4>
  301. <div class="markdown level1 summary">
  302. The color scheme for this view, if it is not defined, it returns the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>&apos;s
  303. color scheme.
  304. </div>
  305. <div class="markdown level1 conceptual"></div>
  306. <h5 class="decalaration">Declaration</h5>
  307. <div class="codewrapper">
  308. <pre><code class="lang-csharp hljs">public ColorScheme ColorScheme { get; set; }</code></pre>
  309. </div>
  310. <h5 class="propertyValue">Property Value</h5>
  311. <table class="table table-bordered table-striped table-condensed">
  312. <thead>
  313. <tr>
  314. <th>Type</th>
  315. <th>Description</th>
  316. </tr>
  317. </thead>
  318. <tbody>
  319. <tr>
  320. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  321. <td></td>
  322. </tr>
  323. </tbody>
  324. </table>
  325. <a id="Terminal_Gui_View_Driver_" data-uid="Terminal.Gui.View.Driver*"></a>
  326. <h4 id="Terminal_Gui_View_Driver" data-uid="Terminal.Gui.View.Driver">Driver</h4>
  327. <div class="markdown level1 summary">
  328. Points to the current driver in use by the view, it is a convenience property
  329. for simplifying the development of new views.
  330. </div>
  331. <div class="markdown level1 conceptual"></div>
  332. <h5 class="decalaration">Declaration</h5>
  333. <div class="codewrapper">
  334. <pre><code class="lang-csharp hljs">public static ConsoleDriver Driver { get; }</code></pre>
  335. </div>
  336. <h5 class="propertyValue">Property Value</h5>
  337. <table class="table table-bordered table-striped table-condensed">
  338. <thead>
  339. <tr>
  340. <th>Type</th>
  341. <th>Description</th>
  342. </tr>
  343. </thead>
  344. <tbody>
  345. <tr>
  346. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  347. <td></td>
  348. </tr>
  349. </tbody>
  350. </table>
  351. <a id="Terminal_Gui_View_Focused_" data-uid="Terminal.Gui.View.Focused*"></a>
  352. <h4 id="Terminal_Gui_View_Focused" data-uid="Terminal.Gui.View.Focused">Focused</h4>
  353. <div class="markdown level1 summary">
  354. Returns the currently focused view inside this view, or null if nothing is focused.
  355. </div>
  356. <div class="markdown level1 conceptual"></div>
  357. <h5 class="decalaration">Declaration</h5>
  358. <div class="codewrapper">
  359. <pre><code class="lang-csharp hljs">public View Focused { get; }</code></pre>
  360. </div>
  361. <h5 class="propertyValue">Property Value</h5>
  362. <table class="table table-bordered table-striped table-condensed">
  363. <thead>
  364. <tr>
  365. <th>Type</th>
  366. <th>Description</th>
  367. </tr>
  368. </thead>
  369. <tbody>
  370. <tr>
  371. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  372. <td>The focused.</td>
  373. </tr>
  374. </tbody>
  375. </table>
  376. <a id="Terminal_Gui_View_Frame_" data-uid="Terminal.Gui.View.Frame*"></a>
  377. <h4 id="Terminal_Gui_View_Frame" data-uid="Terminal.Gui.View.Frame">Frame</h4>
  378. <div class="markdown level1 summary">
  379. Gets or sets the frame for the view. The frame is relative to the view&apos;s container (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>).
  380. </div>
  381. <div class="markdown level1 conceptual"></div>
  382. <h5 class="decalaration">Declaration</h5>
  383. <div class="codewrapper">
  384. <pre><code class="lang-csharp hljs">public virtual Rect Frame { get; set; }</code></pre>
  385. </div>
  386. <h5 class="propertyValue">Property Value</h5>
  387. <table class="table table-bordered table-striped table-condensed">
  388. <thead>
  389. <tr>
  390. <th>Type</th>
  391. <th>Description</th>
  392. </tr>
  393. </thead>
  394. <tbody>
  395. <tr>
  396. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  397. <td>The frame.</td>
  398. </tr>
  399. </tbody>
  400. </table>
  401. <h5 id="Terminal_Gui_View_Frame_remarks">Remarks</h5>
  402. <div class="markdown level1 remarks">
  403. <p>
  404. Change the Frame when using the <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> layout style to move or resize views.
  405. </p>
  406. <p>
  407. Altering the Frame of a view will trigger the redrawing of the
  408. view as well as the redrawing of the affected regions of the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>.
  409. </p>
  410. </div>
  411. <a id="Terminal_Gui_View_HasFocus_" data-uid="Terminal.Gui.View.HasFocus*"></a>
  412. <h4 id="Terminal_Gui_View_HasFocus" data-uid="Terminal.Gui.View.HasFocus">HasFocus</h4>
  413. <div class="markdown level1 summary">
  414. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Responder.html">Responder</a> has focus.
  415. </div>
  416. <div class="markdown level1 conceptual"></div>
  417. <h5 class="decalaration">Declaration</h5>
  418. <div class="codewrapper">
  419. <pre><code class="lang-csharp hljs">public override bool HasFocus { get; }</code></pre>
  420. </div>
  421. <h5 class="propertyValue">Property Value</h5>
  422. <table class="table table-bordered table-striped table-condensed">
  423. <thead>
  424. <tr>
  425. <th>Type</th>
  426. <th>Description</th>
  427. </tr>
  428. </thead>
  429. <tbody>
  430. <tr>
  431. <td><span class="xref">System.Boolean</span></td>
  432. <td><code>true</code> if has focus; otherwise, <code>false</code>.</td>
  433. </tr>
  434. </tbody>
  435. </table>
  436. <h5 class="overrides">Overrides</h5>
  437. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_HasFocus">Responder.HasFocus</a></div>
  438. <a id="Terminal_Gui_View_Height_" data-uid="Terminal.Gui.View.Height*"></a>
  439. <h4 id="Terminal_Gui_View_Height" data-uid="Terminal.Gui.View.Height">Height</h4>
  440. <div class="markdown level1 summary">
  441. Gets or sets the height of the view. Only used whe <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  442. </div>
  443. <div class="markdown level1 conceptual"></div>
  444. <h5 class="decalaration">Declaration</h5>
  445. <div class="codewrapper">
  446. <pre><code class="lang-csharp hljs">public Dim Height { get; set; }</code></pre>
  447. </div>
  448. <h5 class="propertyValue">Property Value</h5>
  449. <table class="table table-bordered table-striped table-condensed">
  450. <thead>
  451. <tr>
  452. <th>Type</th>
  453. <th>Description</th>
  454. </tr>
  455. </thead>
  456. <tbody>
  457. <tr>
  458. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  459. <td>The height.</td>
  460. </tr>
  461. </tbody>
  462. </table>
  463. <a id="Terminal_Gui_View_Id_" data-uid="Terminal.Gui.View.Id*"></a>
  464. <h4 id="Terminal_Gui_View_Id" data-uid="Terminal.Gui.View.Id">Id</h4>
  465. <div class="markdown level1 summary">
  466. Gets or sets an identifier for the view;
  467. </div>
  468. <div class="markdown level1 conceptual"></div>
  469. <h5 class="decalaration">Declaration</h5>
  470. <div class="codewrapper">
  471. <pre><code class="lang-csharp hljs">public ustring Id { get; set; }</code></pre>
  472. </div>
  473. <h5 class="propertyValue">Property Value</h5>
  474. <table class="table table-bordered table-striped table-condensed">
  475. <thead>
  476. <tr>
  477. <th>Type</th>
  478. <th>Description</th>
  479. </tr>
  480. </thead>
  481. <tbody>
  482. <tr>
  483. <td><span class="xref">NStack.ustring</span></td>
  484. <td>The identifier.</td>
  485. </tr>
  486. </tbody>
  487. </table>
  488. <h5 id="Terminal_Gui_View_Id_remarks">Remarks</h5>
  489. <div class="markdown level1 remarks">The id should be unique across all Views that share a SuperView.</div>
  490. <a id="Terminal_Gui_View_IsCurrentTop_" data-uid="Terminal.Gui.View.IsCurrentTop*"></a>
  491. <h4 id="Terminal_Gui_View_IsCurrentTop" data-uid="Terminal.Gui.View.IsCurrentTop">IsCurrentTop</h4>
  492. <div class="markdown level1 summary">
  493. Returns a value indicating if this View is currently on Top (Active)
  494. </div>
  495. <div class="markdown level1 conceptual"></div>
  496. <h5 class="decalaration">Declaration</h5>
  497. <div class="codewrapper">
  498. <pre><code class="lang-csharp hljs">public bool IsCurrentTop { get; }</code></pre>
  499. </div>
  500. <h5 class="propertyValue">Property Value</h5>
  501. <table class="table table-bordered table-striped table-condensed">
  502. <thead>
  503. <tr>
  504. <th>Type</th>
  505. <th>Description</th>
  506. </tr>
  507. </thead>
  508. <tbody>
  509. <tr>
  510. <td><span class="xref">System.Boolean</span></td>
  511. <td></td>
  512. </tr>
  513. </tbody>
  514. </table>
  515. <a id="Terminal_Gui_View_LayoutStyle_" data-uid="Terminal.Gui.View.LayoutStyle*"></a>
  516. <h4 id="Terminal_Gui_View_LayoutStyle" data-uid="Terminal.Gui.View.LayoutStyle">LayoutStyle</h4>
  517. <div class="markdown level1 summary">
  518. Controls how the View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> is computed during the LayoutSubviews method, if the style is set to <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a>,
  519. LayoutSubviews does not change the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a>. If the style is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> is updated using
  520. the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">X</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">Y</a>, <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a>, and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> properties.
  521. </div>
  522. <div class="markdown level1 conceptual"></div>
  523. <h5 class="decalaration">Declaration</h5>
  524. <div class="codewrapper">
  525. <pre><code class="lang-csharp hljs">public LayoutStyle LayoutStyle { get; set; }</code></pre>
  526. </div>
  527. <h5 class="propertyValue">Property Value</h5>
  528. <table class="table table-bordered table-striped table-condensed">
  529. <thead>
  530. <tr>
  531. <th>Type</th>
  532. <th>Description</th>
  533. </tr>
  534. </thead>
  535. <tbody>
  536. <tr>
  537. <td><a class="xref" href="Terminal.Gui.LayoutStyle.html">LayoutStyle</a></td>
  538. <td>The layout style.</td>
  539. </tr>
  540. </tbody>
  541. </table>
  542. <a id="Terminal_Gui_View_MostFocused_" data-uid="Terminal.Gui.View.MostFocused*"></a>
  543. <h4 id="Terminal_Gui_View_MostFocused" data-uid="Terminal.Gui.View.MostFocused">MostFocused</h4>
  544. <div class="markdown level1 summary">
  545. Returns the most focused view in the chain of subviews (the leaf view that has the focus).
  546. </div>
  547. <div class="markdown level1 conceptual"></div>
  548. <h5 class="decalaration">Declaration</h5>
  549. <div class="codewrapper">
  550. <pre><code class="lang-csharp hljs">public View MostFocused { get; }</code></pre>
  551. </div>
  552. <h5 class="propertyValue">Property Value</h5>
  553. <table class="table table-bordered table-striped table-condensed">
  554. <thead>
  555. <tr>
  556. <th>Type</th>
  557. <th>Description</th>
  558. </tr>
  559. </thead>
  560. <tbody>
  561. <tr>
  562. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  563. <td>The most focused.</td>
  564. </tr>
  565. </tbody>
  566. </table>
  567. <a id="Terminal_Gui_View_Subviews_" data-uid="Terminal.Gui.View.Subviews*"></a>
  568. <h4 id="Terminal_Gui_View_Subviews" data-uid="Terminal.Gui.View.Subviews">Subviews</h4>
  569. <div class="markdown level1 summary">
  570. This returns a list of the subviews contained by this view.
  571. </div>
  572. <div class="markdown level1 conceptual"></div>
  573. <h5 class="decalaration">Declaration</h5>
  574. <div class="codewrapper">
  575. <pre><code class="lang-csharp hljs">public IList&lt;View&gt; Subviews { get; }</code></pre>
  576. </div>
  577. <h5 class="propertyValue">Property Value</h5>
  578. <table class="table table-bordered table-striped table-condensed">
  579. <thead>
  580. <tr>
  581. <th>Type</th>
  582. <th>Description</th>
  583. </tr>
  584. </thead>
  585. <tbody>
  586. <tr>
  587. <td><span class="xref">System.Collections.Generic.IList</span>&lt;<a class="xref" href="Terminal.Gui.View.html">View</a>&gt;</td>
  588. <td>The subviews.</td>
  589. </tr>
  590. </tbody>
  591. </table>
  592. <a id="Terminal_Gui_View_SuperView_" data-uid="Terminal.Gui.View.SuperView*"></a>
  593. <h4 id="Terminal_Gui_View_SuperView" data-uid="Terminal.Gui.View.SuperView">SuperView</h4>
  594. <div class="markdown level1 summary">
  595. Returns the container for this view, or null if this view has not been added to a container.
  596. </div>
  597. <div class="markdown level1 conceptual"></div>
  598. <h5 class="decalaration">Declaration</h5>
  599. <div class="codewrapper">
  600. <pre><code class="lang-csharp hljs">public View SuperView { get; }</code></pre>
  601. </div>
  602. <h5 class="propertyValue">Property Value</h5>
  603. <table class="table table-bordered table-striped table-condensed">
  604. <thead>
  605. <tr>
  606. <th>Type</th>
  607. <th>Description</th>
  608. </tr>
  609. </thead>
  610. <tbody>
  611. <tr>
  612. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  613. <td>The super view.</td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <a id="Terminal_Gui_View_WantContinuousButtonPressed_" data-uid="Terminal.Gui.View.WantContinuousButtonPressed*"></a>
  618. <h4 id="Terminal_Gui_View_WantContinuousButtonPressed" data-uid="Terminal.Gui.View.WantContinuousButtonPressed">WantContinuousButtonPressed</h4>
  619. <div class="markdown level1 summary">
  620. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> want continuous button pressed event.
  621. </div>
  622. <div class="markdown level1 conceptual"></div>
  623. <h5 class="decalaration">Declaration</h5>
  624. <div class="codewrapper">
  625. <pre><code class="lang-csharp hljs">public virtual bool WantContinuousButtonPressed { get; set; }</code></pre>
  626. </div>
  627. <h5 class="propertyValue">Property Value</h5>
  628. <table class="table table-bordered table-striped table-condensed">
  629. <thead>
  630. <tr>
  631. <th>Type</th>
  632. <th>Description</th>
  633. </tr>
  634. </thead>
  635. <tbody>
  636. <tr>
  637. <td><span class="xref">System.Boolean</span></td>
  638. <td></td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. <a id="Terminal_Gui_View_WantMousePositionReports_" data-uid="Terminal.Gui.View.WantMousePositionReports*"></a>
  643. <h4 id="Terminal_Gui_View_WantMousePositionReports" data-uid="Terminal.Gui.View.WantMousePositionReports">WantMousePositionReports</h4>
  644. <div class="markdown level1 summary">
  645. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.View.html">View</a> wants mouse position reports.
  646. </div>
  647. <div class="markdown level1 conceptual"></div>
  648. <h5 class="decalaration">Declaration</h5>
  649. <div class="codewrapper">
  650. <pre><code class="lang-csharp hljs">public virtual bool WantMousePositionReports { get; set; }</code></pre>
  651. </div>
  652. <h5 class="propertyValue">Property Value</h5>
  653. <table class="table table-bordered table-striped table-condensed">
  654. <thead>
  655. <tr>
  656. <th>Type</th>
  657. <th>Description</th>
  658. </tr>
  659. </thead>
  660. <tbody>
  661. <tr>
  662. <td><span class="xref">System.Boolean</span></td>
  663. <td><code>true</code> if want mouse position reports; otherwise, <code>false</code>.</td>
  664. </tr>
  665. </tbody>
  666. </table>
  667. <a id="Terminal_Gui_View_Width_" data-uid="Terminal.Gui.View.Width*"></a>
  668. <h4 id="Terminal_Gui_View_Width" data-uid="Terminal.Gui.View.Width">Width</h4>
  669. <div class="markdown level1 summary">
  670. Gets or sets the width of the view. Only used whe <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  671. </div>
  672. <div class="markdown level1 conceptual"></div>
  673. <h5 class="decalaration">Declaration</h5>
  674. <div class="codewrapper">
  675. <pre><code class="lang-csharp hljs">public Dim Width { get; set; }</code></pre>
  676. </div>
  677. <h5 class="propertyValue">Property Value</h5>
  678. <table class="table table-bordered table-striped table-condensed">
  679. <thead>
  680. <tr>
  681. <th>Type</th>
  682. <th>Description</th>
  683. </tr>
  684. </thead>
  685. <tbody>
  686. <tr>
  687. <td><a class="xref" href="Terminal.Gui.Dim.html">Dim</a></td>
  688. <td>The width.</td>
  689. </tr>
  690. </tbody>
  691. </table>
  692. <h5 id="Terminal_Gui_View_Width_remarks">Remarks</h5>
  693. <div class="markdown level1 remarks">
  694. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  695. </div>
  696. <a id="Terminal_Gui_View_X_" data-uid="Terminal.Gui.View.X*"></a>
  697. <h4 id="Terminal_Gui_View_X" data-uid="Terminal.Gui.View.X">X</h4>
  698. <div class="markdown level1 summary">
  699. Gets or sets the X position for the view (the column). Only used whe <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  700. </div>
  701. <div class="markdown level1 conceptual"></div>
  702. <h5 class="decalaration">Declaration</h5>
  703. <div class="codewrapper">
  704. <pre><code class="lang-csharp hljs">public Pos X { get; set; }</code></pre>
  705. </div>
  706. <h5 class="propertyValue">Property Value</h5>
  707. <table class="table table-bordered table-striped table-condensed">
  708. <thead>
  709. <tr>
  710. <th>Type</th>
  711. <th>Description</th>
  712. </tr>
  713. </thead>
  714. <tbody>
  715. <tr>
  716. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  717. <td>The X Position.</td>
  718. </tr>
  719. </tbody>
  720. </table>
  721. <h5 id="Terminal_Gui_View_X_remarks">Remarks</h5>
  722. <div class="markdown level1 remarks">
  723. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  724. </div>
  725. <a id="Terminal_Gui_View_Y_" data-uid="Terminal.Gui.View.Y*"></a>
  726. <h4 id="Terminal_Gui_View_Y" data-uid="Terminal.Gui.View.Y">Y</h4>
  727. <div class="markdown level1 summary">
  728. Gets or sets the Y position for the view (the row). Only used whe <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a>.
  729. </div>
  730. <div class="markdown level1 conceptual"></div>
  731. <h5 class="decalaration">Declaration</h5>
  732. <div class="codewrapper">
  733. <pre><code class="lang-csharp hljs">public Pos Y { get; set; }</code></pre>
  734. </div>
  735. <h5 class="propertyValue">Property Value</h5>
  736. <table class="table table-bordered table-striped table-condensed">
  737. <thead>
  738. <tr>
  739. <th>Type</th>
  740. <th>Description</th>
  741. </tr>
  742. </thead>
  743. <tbody>
  744. <tr>
  745. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  746. <td>The y position (line).</td>
  747. </tr>
  748. </tbody>
  749. </table>
  750. <h5 id="Terminal_Gui_View_Y_remarks">Remarks</h5>
  751. <div class="markdown level1 remarks">
  752. If <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">LayoutStyle</a> is <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> changing this property has no effect and its value is indeterminate.
  753. </div>
  754. <h3 id="methods">Methods
  755. </h3>
  756. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  757. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View)">Add(View)</h4>
  758. <div class="markdown level1 summary">
  759. Adds a subview (child) to this view.
  760. </div>
  761. <div class="markdown level1 conceptual"></div>
  762. <h5 class="decalaration">Declaration</h5>
  763. <div class="codewrapper">
  764. <pre><code class="lang-csharp hljs">public virtual void Add(View view)</code></pre>
  765. </div>
  766. <h5 class="parameters">Parameters</h5>
  767. <table class="table table-bordered table-striped table-condensed">
  768. <thead>
  769. <tr>
  770. <th>Type</th>
  771. <th>Name</th>
  772. <th>Description</th>
  773. </tr>
  774. </thead>
  775. <tbody>
  776. <tr>
  777. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  778. <td><span class="parametername">view</span></td>
  779. <td></td>
  780. </tr>
  781. </tbody>
  782. </table>
  783. <h5 id="Terminal_Gui_View_Add_Terminal_Gui_View__remarks">Remarks</h5>
  784. <div class="markdown level1 remarks">
  785. The Views that have been added to this view can be retrieved via the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> property. See also <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">RemoveAll()</a>
  786. </div>
  787. <a id="Terminal_Gui_View_Add_" data-uid="Terminal.Gui.View.Add*"></a>
  788. <h4 id="Terminal_Gui_View_Add_Terminal_Gui_View___" data-uid="Terminal.Gui.View.Add(Terminal.Gui.View[])">Add(View[])</h4>
  789. <div class="markdown level1 summary">
  790. Adds the specified views (children) to the view.
  791. </div>
  792. <div class="markdown level1 conceptual"></div>
  793. <h5 class="decalaration">Declaration</h5>
  794. <div class="codewrapper">
  795. <pre><code class="lang-csharp hljs">public void Add(params View[] views)</code></pre>
  796. </div>
  797. <h5 class="parameters">Parameters</h5>
  798. <table class="table table-bordered table-striped table-condensed">
  799. <thead>
  800. <tr>
  801. <th>Type</th>
  802. <th>Name</th>
  803. <th>Description</th>
  804. </tr>
  805. </thead>
  806. <tbody>
  807. <tr>
  808. <td><a class="xref" href="Terminal.Gui.View.html">View</a>[]</td>
  809. <td><span class="parametername">views</span></td>
  810. <td>Array of one or more views (can be optional parameter).</td>
  811. </tr>
  812. </tbody>
  813. </table>
  814. <h5 id="Terminal_Gui_View_Add_Terminal_Gui_View____remarks">Remarks</h5>
  815. <div class="markdown level1 remarks">
  816. The Views that have been added to this view can be retrieved via the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> property. See also <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">Remove(View)</a> <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">RemoveAll()</a>
  817. </div>
  818. <a id="Terminal_Gui_View_AddRune_" data-uid="Terminal.Gui.View.AddRune*"></a>
  819. <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>
  820. <div class="markdown level1 summary">
  821. Displays the specified character in the specified column and row of the View.
  822. </div>
  823. <div class="markdown level1 conceptual"></div>
  824. <h5 class="decalaration">Declaration</h5>
  825. <div class="codewrapper">
  826. <pre><code class="lang-csharp hljs">public void AddRune(int col, int row, Rune ch)</code></pre>
  827. </div>
  828. <h5 class="parameters">Parameters</h5>
  829. <table class="table table-bordered table-striped table-condensed">
  830. <thead>
  831. <tr>
  832. <th>Type</th>
  833. <th>Name</th>
  834. <th>Description</th>
  835. </tr>
  836. </thead>
  837. <tbody>
  838. <tr>
  839. <td><span class="xref">System.Int32</span></td>
  840. <td><span class="parametername">col</span></td>
  841. <td>Column (view-relative).</td>
  842. </tr>
  843. <tr>
  844. <td><span class="xref">System.Int32</span></td>
  845. <td><span class="parametername">row</span></td>
  846. <td>Row (view-relative).</td>
  847. </tr>
  848. <tr>
  849. <td><span class="xref">System.Rune</span></td>
  850. <td><span class="parametername">ch</span></td>
  851. <td>Ch.</td>
  852. </tr>
  853. </tbody>
  854. </table>
  855. <a id="Terminal_Gui_View_BringSubviewForward_" data-uid="Terminal.Gui.View.BringSubviewForward*"></a>
  856. <h4 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewForward(Terminal.Gui.View)">BringSubviewForward(View)</h4>
  857. <div class="markdown level1 summary">
  858. Moves the subview backwards in the hierarchy, only one step
  859. </div>
  860. <div class="markdown level1 conceptual"></div>
  861. <h5 class="decalaration">Declaration</h5>
  862. <div class="codewrapper">
  863. <pre><code class="lang-csharp hljs">public void BringSubviewForward(View subview)</code></pre>
  864. </div>
  865. <h5 class="parameters">Parameters</h5>
  866. <table class="table table-bordered table-striped table-condensed">
  867. <thead>
  868. <tr>
  869. <th>Type</th>
  870. <th>Name</th>
  871. <th>Description</th>
  872. </tr>
  873. </thead>
  874. <tbody>
  875. <tr>
  876. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  877. <td><span class="parametername">subview</span></td>
  878. <td>The subview to send backwards</td>
  879. </tr>
  880. </tbody>
  881. </table>
  882. <h5 id="Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View__remarks">Remarks</h5>
  883. <div class="markdown level1 remarks">
  884. If you want to send the view all the way to the back use SendSubviewToBack.
  885. </div>
  886. <a id="Terminal_Gui_View_BringSubviewToFront_" data-uid="Terminal.Gui.View.BringSubviewToFront*"></a>
  887. <h4 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_" data-uid="Terminal.Gui.View.BringSubviewToFront(Terminal.Gui.View)">BringSubviewToFront(View)</h4>
  888. <div class="markdown level1 summary">
  889. Brings the specified subview to the front so it is drawn on top of any other views.
  890. </div>
  891. <div class="markdown level1 conceptual"></div>
  892. <h5 class="decalaration">Declaration</h5>
  893. <div class="codewrapper">
  894. <pre><code class="lang-csharp hljs">public void BringSubviewToFront(View subview)</code></pre>
  895. </div>
  896. <h5 class="parameters">Parameters</h5>
  897. <table class="table table-bordered table-striped table-condensed">
  898. <thead>
  899. <tr>
  900. <th>Type</th>
  901. <th>Name</th>
  902. <th>Description</th>
  903. </tr>
  904. </thead>
  905. <tbody>
  906. <tr>
  907. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  908. <td><span class="parametername">subview</span></td>
  909. <td>The subview to send to the front</td>
  910. </tr>
  911. </tbody>
  912. </table>
  913. <h5 id="Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View__remarks">Remarks</h5>
  914. <div class="markdown level1 remarks">
  915. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">SendSubviewToBack(View)</a>.
  916. </div>
  917. <a id="Terminal_Gui_View_ChildNeedsDisplay_" data-uid="Terminal.Gui.View.ChildNeedsDisplay*"></a>
  918. <h4 id="Terminal_Gui_View_ChildNeedsDisplay" data-uid="Terminal.Gui.View.ChildNeedsDisplay">ChildNeedsDisplay()</h4>
  919. <div class="markdown level1 summary">
  920. Indicates that any child views (in the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">Subviews</a> list) need to be repainted.
  921. </div>
  922. <div class="markdown level1 conceptual"></div>
  923. <h5 class="decalaration">Declaration</h5>
  924. <div class="codewrapper">
  925. <pre><code class="lang-csharp hljs">public void ChildNeedsDisplay()</code></pre>
  926. </div>
  927. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  928. <h4 id="Terminal_Gui_View_Clear" data-uid="Terminal.Gui.View.Clear">Clear()</h4>
  929. <div class="markdown level1 summary">
  930. Clears the view region with the current color.
  931. </div>
  932. <div class="markdown level1 conceptual"></div>
  933. <h5 class="decalaration">Declaration</h5>
  934. <div class="codewrapper">
  935. <pre><code class="lang-csharp hljs">public void Clear()</code></pre>
  936. </div>
  937. <h5 id="Terminal_Gui_View_Clear_remarks">Remarks</h5>
  938. <div class="markdown level1 remarks">
  939. <p>
  940. This clears the entire region used by this view.
  941. </p>
  942. </div>
  943. <a id="Terminal_Gui_View_Clear_" data-uid="Terminal.Gui.View.Clear*"></a>
  944. <h4 id="Terminal_Gui_View_Clear_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Clear(Terminal.Gui.Rect)">Clear(Rect)</h4>
  945. <div class="markdown level1 summary">
  946. Clears the specified region with the current color.
  947. </div>
  948. <div class="markdown level1 conceptual"></div>
  949. <h5 class="decalaration">Declaration</h5>
  950. <div class="codewrapper">
  951. <pre><code class="lang-csharp hljs">public void Clear(Rect regionScreen)</code></pre>
  952. </div>
  953. <h5 class="parameters">Parameters</h5>
  954. <table class="table table-bordered table-striped table-condensed">
  955. <thead>
  956. <tr>
  957. <th>Type</th>
  958. <th>Name</th>
  959. <th>Description</th>
  960. </tr>
  961. </thead>
  962. <tbody>
  963. <tr>
  964. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  965. <td><span class="parametername">regionScreen</span></td>
  966. <td>The screen-relative region to clear.</td>
  967. </tr>
  968. </tbody>
  969. </table>
  970. <h5 id="Terminal_Gui_View_Clear_Terminal_Gui_Rect__remarks">Remarks</h5>
  971. <div class="markdown level1 remarks">
  972. </div>
  973. <a id="Terminal_Gui_View_ClearNeedsDisplay_" data-uid="Terminal.Gui.View.ClearNeedsDisplay*"></a>
  974. <h4 id="Terminal_Gui_View_ClearNeedsDisplay" data-uid="Terminal.Gui.View.ClearNeedsDisplay">ClearNeedsDisplay()</h4>
  975. <div class="markdown level1 summary">
  976. Removes the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a> and the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ChildNeedsDisplay">ChildNeedsDisplay()</a> setting on this view.
  977. </div>
  978. <div class="markdown level1 conceptual"></div>
  979. <h5 class="decalaration">Declaration</h5>
  980. <div class="codewrapper">
  981. <pre><code class="lang-csharp hljs">protected void ClearNeedsDisplay()</code></pre>
  982. </div>
  983. <a id="Terminal_Gui_View_ClipToBounds_" data-uid="Terminal.Gui.View.ClipToBounds*"></a>
  984. <h4 id="Terminal_Gui_View_ClipToBounds" data-uid="Terminal.Gui.View.ClipToBounds">ClipToBounds()</h4>
  985. <div class="markdown level1 summary">
  986. Sets the <a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a>&apos;s clip region to the current View&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a>.
  987. </div>
  988. <div class="markdown level1 conceptual"></div>
  989. <h5 class="decalaration">Declaration</h5>
  990. <div class="codewrapper">
  991. <pre><code class="lang-csharp hljs">public Rect ClipToBounds()</code></pre>
  992. </div>
  993. <h5 class="returns">Returns</h5>
  994. <table class="table table-bordered table-striped table-condensed">
  995. <thead>
  996. <tr>
  997. <th>Type</th>
  998. <th>Description</th>
  999. </tr>
  1000. </thead>
  1001. <tbody>
  1002. <tr>
  1003. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1004. <td>The existing driver&apos;s clip region, which can be then re-eapplied by setting <code><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a>.Clip</code> (<a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_Clip">Clip</a>).</td>
  1005. </tr>
  1006. </tbody>
  1007. </table>
  1008. <h5 id="Terminal_Gui_View_ClipToBounds_remarks">Remarks</h5>
  1009. <div class="markdown level1 remarks">
  1010. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> is View-relative.
  1011. </div>
  1012. <a id="Terminal_Gui_View_DrawFrame_" data-uid="Terminal.Gui.View.DrawFrame*"></a>
  1013. <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>
  1014. <div class="markdown level1 summary">
  1015. Draws a frame in the current view, clipped by the boundary of this view
  1016. </div>
  1017. <div class="markdown level1 conceptual"></div>
  1018. <h5 class="decalaration">Declaration</h5>
  1019. <div class="codewrapper">
  1020. <pre><code class="lang-csharp hljs">public void DrawFrame(Rect region, int padding = 0, bool fill = false)</code></pre>
  1021. </div>
  1022. <h5 class="parameters">Parameters</h5>
  1023. <table class="table table-bordered table-striped table-condensed">
  1024. <thead>
  1025. <tr>
  1026. <th>Type</th>
  1027. <th>Name</th>
  1028. <th>Description</th>
  1029. </tr>
  1030. </thead>
  1031. <tbody>
  1032. <tr>
  1033. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1034. <td><span class="parametername">region</span></td>
  1035. <td>View-relative region for the frame to be drawn.</td>
  1036. </tr>
  1037. <tr>
  1038. <td><span class="xref">System.Int32</span></td>
  1039. <td><span class="parametername">padding</span></td>
  1040. <td>The padding to add around the outside of the drawn frame.</td>
  1041. </tr>
  1042. <tr>
  1043. <td><span class="xref">System.Boolean</span></td>
  1044. <td><span class="parametername">fill</span></td>
  1045. <td>If set to <code>true</code> it fill will the contents.</td>
  1046. </tr>
  1047. </tbody>
  1048. </table>
  1049. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  1050. <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>
  1051. <div class="markdown level1 summary">
  1052. Utility function to draw strings that contains a hotkey using a <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">ColorScheme</a> and the &quot;focused&quot; state.
  1053. </div>
  1054. <div class="markdown level1 conceptual"></div>
  1055. <h5 class="decalaration">Declaration</h5>
  1056. <div class="codewrapper">
  1057. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, bool focused, ColorScheme scheme)</code></pre>
  1058. </div>
  1059. <h5 class="parameters">Parameters</h5>
  1060. <table class="table table-bordered table-striped table-condensed">
  1061. <thead>
  1062. <tr>
  1063. <th>Type</th>
  1064. <th>Name</th>
  1065. <th>Description</th>
  1066. </tr>
  1067. </thead>
  1068. <tbody>
  1069. <tr>
  1070. <td><span class="xref">NStack.ustring</span></td>
  1071. <td><span class="parametername">text</span></td>
  1072. <td>String to display, the underscoore before a letter flags the next letter as the hotkey.</td>
  1073. </tr>
  1074. <tr>
  1075. <td><span class="xref">System.Boolean</span></td>
  1076. <td><span class="parametername">focused</span></td>
  1077. <td>If set to <code>true</code> this uses the focused colors from the color scheme, otherwise the regular ones.</td>
  1078. </tr>
  1079. <tr>
  1080. <td><a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a></td>
  1081. <td><span class="parametername">scheme</span></td>
  1082. <td>The color scheme to use.</td>
  1083. </tr>
  1084. </tbody>
  1085. </table>
  1086. <a id="Terminal_Gui_View_DrawHotString_" data-uid="Terminal.Gui.View.DrawHotString*"></a>
  1087. <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>
  1088. <div class="markdown level1 summary">
  1089. Utility function to draw strings that contain a hotkey.
  1090. </div>
  1091. <div class="markdown level1 conceptual"></div>
  1092. <h5 class="decalaration">Declaration</h5>
  1093. <div class="codewrapper">
  1094. <pre><code class="lang-csharp hljs">public void DrawHotString(ustring text, Attribute hotColor, Attribute normalColor)</code></pre>
  1095. </div>
  1096. <h5 class="parameters">Parameters</h5>
  1097. <table class="table table-bordered table-striped table-condensed">
  1098. <thead>
  1099. <tr>
  1100. <th>Type</th>
  1101. <th>Name</th>
  1102. <th>Description</th>
  1103. </tr>
  1104. </thead>
  1105. <tbody>
  1106. <tr>
  1107. <td><span class="xref">NStack.ustring</span></td>
  1108. <td><span class="parametername">text</span></td>
  1109. <td>String to display, the underscoore before a letter flags the next letter as the hotkey.</td>
  1110. </tr>
  1111. <tr>
  1112. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1113. <td><span class="parametername">hotColor</span></td>
  1114. <td>Hot color.</td>
  1115. </tr>
  1116. <tr>
  1117. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  1118. <td><span class="parametername">normalColor</span></td>
  1119. <td>Normal color.</td>
  1120. </tr>
  1121. </tbody>
  1122. </table>
  1123. <h5 id="Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute__remarks">Remarks</h5>
  1124. <div class="markdown level1 remarks">
  1125. The hotkey is any character following an underscore (&apos;_&apos;) character.</div>
  1126. <a id="Terminal_Gui_View_EnsureFocus_" data-uid="Terminal.Gui.View.EnsureFocus*"></a>
  1127. <h4 id="Terminal_Gui_View_EnsureFocus" data-uid="Terminal.Gui.View.EnsureFocus">EnsureFocus()</h4>
  1128. <div class="markdown level1 summary">
  1129. Finds the first view in the hierarchy that wants to get the focus if nothing is currently focused, otherwise, it does nothing.
  1130. </div>
  1131. <div class="markdown level1 conceptual"></div>
  1132. <h5 class="decalaration">Declaration</h5>
  1133. <div class="codewrapper">
  1134. <pre><code class="lang-csharp hljs">public void EnsureFocus()</code></pre>
  1135. </div>
  1136. <a id="Terminal_Gui_View_FocusFirst_" data-uid="Terminal.Gui.View.FocusFirst*"></a>
  1137. <h4 id="Terminal_Gui_View_FocusFirst" data-uid="Terminal.Gui.View.FocusFirst">FocusFirst()</h4>
  1138. <div class="markdown level1 summary">
  1139. Focuses the first focusable subview if one exists.
  1140. </div>
  1141. <div class="markdown level1 conceptual"></div>
  1142. <h5 class="decalaration">Declaration</h5>
  1143. <div class="codewrapper">
  1144. <pre><code class="lang-csharp hljs">public void FocusFirst()</code></pre>
  1145. </div>
  1146. <a id="Terminal_Gui_View_FocusLast_" data-uid="Terminal.Gui.View.FocusLast*"></a>
  1147. <h4 id="Terminal_Gui_View_FocusLast" data-uid="Terminal.Gui.View.FocusLast">FocusLast()</h4>
  1148. <div class="markdown level1 summary">
  1149. Focuses the last focusable subview if one exists.
  1150. </div>
  1151. <div class="markdown level1 conceptual"></div>
  1152. <h5 class="decalaration">Declaration</h5>
  1153. <div class="codewrapper">
  1154. <pre><code class="lang-csharp hljs">public void FocusLast()</code></pre>
  1155. </div>
  1156. <a id="Terminal_Gui_View_FocusNext_" data-uid="Terminal.Gui.View.FocusNext*"></a>
  1157. <h4 id="Terminal_Gui_View_FocusNext" data-uid="Terminal.Gui.View.FocusNext">FocusNext()</h4>
  1158. <div class="markdown level1 summary">
  1159. Focuses the next view.
  1160. </div>
  1161. <div class="markdown level1 conceptual"></div>
  1162. <h5 class="decalaration">Declaration</h5>
  1163. <div class="codewrapper">
  1164. <pre><code class="lang-csharp hljs">public bool FocusNext()</code></pre>
  1165. </div>
  1166. <h5 class="returns">Returns</h5>
  1167. <table class="table table-bordered table-striped table-condensed">
  1168. <thead>
  1169. <tr>
  1170. <th>Type</th>
  1171. <th>Description</th>
  1172. </tr>
  1173. </thead>
  1174. <tbody>
  1175. <tr>
  1176. <td><span class="xref">System.Boolean</span></td>
  1177. <td><code>true</code>, if next was focused, <code>false</code> otherwise.</td>
  1178. </tr>
  1179. </tbody>
  1180. </table>
  1181. <a id="Terminal_Gui_View_FocusPrev_" data-uid="Terminal.Gui.View.FocusPrev*"></a>
  1182. <h4 id="Terminal_Gui_View_FocusPrev" data-uid="Terminal.Gui.View.FocusPrev">FocusPrev()</h4>
  1183. <div class="markdown level1 summary">
  1184. Focuses the previous view.
  1185. </div>
  1186. <div class="markdown level1 conceptual"></div>
  1187. <h5 class="decalaration">Declaration</h5>
  1188. <div class="codewrapper">
  1189. <pre><code class="lang-csharp hljs">public bool FocusPrev()</code></pre>
  1190. </div>
  1191. <h5 class="returns">Returns</h5>
  1192. <table class="table table-bordered table-striped table-condensed">
  1193. <thead>
  1194. <tr>
  1195. <th>Type</th>
  1196. <th>Description</th>
  1197. </tr>
  1198. </thead>
  1199. <tbody>
  1200. <tr>
  1201. <td><span class="xref">System.Boolean</span></td>
  1202. <td><code>true</code>, if previous was focused, <code>false</code> otherwise.</td>
  1203. </tr>
  1204. </tbody>
  1205. </table>
  1206. <a id="Terminal_Gui_View_GetEnumerator_" data-uid="Terminal.Gui.View.GetEnumerator*"></a>
  1207. <h4 id="Terminal_Gui_View_GetEnumerator" data-uid="Terminal.Gui.View.GetEnumerator">GetEnumerator()</h4>
  1208. <div class="markdown level1 summary">
  1209. Gets an enumerator that enumerates the subviews in this view.
  1210. </div>
  1211. <div class="markdown level1 conceptual"></div>
  1212. <h5 class="decalaration">Declaration</h5>
  1213. <div class="codewrapper">
  1214. <pre><code class="lang-csharp hljs">public IEnumerator GetEnumerator()</code></pre>
  1215. </div>
  1216. <h5 class="returns">Returns</h5>
  1217. <table class="table table-bordered table-striped table-condensed">
  1218. <thead>
  1219. <tr>
  1220. <th>Type</th>
  1221. <th>Description</th>
  1222. </tr>
  1223. </thead>
  1224. <tbody>
  1225. <tr>
  1226. <td><span class="xref">System.Collections.IEnumerator</span></td>
  1227. <td>The enumerator.</td>
  1228. </tr>
  1229. </tbody>
  1230. </table>
  1231. <a id="Terminal_Gui_View_LayoutSubviews_" data-uid="Terminal.Gui.View.LayoutSubviews*"></a>
  1232. <h4 id="Terminal_Gui_View_LayoutSubviews" data-uid="Terminal.Gui.View.LayoutSubviews">LayoutSubviews()</h4>
  1233. <div class="markdown level1 summary">
  1234. Invoked when a view starts executing or when the dimensions of the view have changed, for example in
  1235. response to the container view or terminal resizing.
  1236. </div>
  1237. <div class="markdown level1 conceptual"></div>
  1238. <h5 class="decalaration">Declaration</h5>
  1239. <div class="codewrapper">
  1240. <pre><code class="lang-csharp hljs">public virtual void LayoutSubviews()</code></pre>
  1241. </div>
  1242. <h5 id="Terminal_Gui_View_LayoutSubviews_remarks">Remarks</h5>
  1243. <div class="markdown level1 remarks">
  1244. Calls <span class="xref">Terminal.Gui.View.OnLayoutComplete(Terminal.Gui.View.LayoutEventArgs)</span> (which raises the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">LayoutComplete</a> event) before it returns.
  1245. </div>
  1246. <a id="Terminal_Gui_View_Move_" data-uid="Terminal.Gui.View.Move*"></a>
  1247. <h4 id="Terminal_Gui_View_Move_System_Int32_System_Int32_" data-uid="Terminal.Gui.View.Move(System.Int32,System.Int32)">Move(Int32, Int32)</h4>
  1248. <div class="markdown level1 summary">
  1249. This moves the cursor to the specified column and row in the view.
  1250. </div>
  1251. <div class="markdown level1 conceptual"></div>
  1252. <h5 class="decalaration">Declaration</h5>
  1253. <div class="codewrapper">
  1254. <pre><code class="lang-csharp hljs">public void Move(int col, int row)</code></pre>
  1255. </div>
  1256. <h5 class="parameters">Parameters</h5>
  1257. <table class="table table-bordered table-striped table-condensed">
  1258. <thead>
  1259. <tr>
  1260. <th>Type</th>
  1261. <th>Name</th>
  1262. <th>Description</th>
  1263. </tr>
  1264. </thead>
  1265. <tbody>
  1266. <tr>
  1267. <td><span class="xref">System.Int32</span></td>
  1268. <td><span class="parametername">col</span></td>
  1269. <td>Col (view-relative).</td>
  1270. </tr>
  1271. <tr>
  1272. <td><span class="xref">System.Int32</span></td>
  1273. <td><span class="parametername">row</span></td>
  1274. <td>Row (view-relative).</td>
  1275. </tr>
  1276. </tbody>
  1277. </table>
  1278. <a id="Terminal_Gui_View_OnDrawContent_" data-uid="Terminal.Gui.View.OnDrawContent*"></a>
  1279. <h4 id="Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.OnDrawContent(Terminal.Gui.Rect)">OnDrawContent(Rect)</h4>
  1280. <div class="markdown level1 summary">
  1281. Enables overrides to draw infinitely scrolled content and/or a background behind added controls.
  1282. </div>
  1283. <div class="markdown level1 conceptual"></div>
  1284. <h5 class="decalaration">Declaration</h5>
  1285. <div class="codewrapper">
  1286. <pre><code class="lang-csharp hljs">public virtual void OnDrawContent(Rect viewport)</code></pre>
  1287. </div>
  1288. <h5 class="parameters">Parameters</h5>
  1289. <table class="table table-bordered table-striped table-condensed">
  1290. <thead>
  1291. <tr>
  1292. <th>Type</th>
  1293. <th>Name</th>
  1294. <th>Description</th>
  1295. </tr>
  1296. </thead>
  1297. <tbody>
  1298. <tr>
  1299. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1300. <td><span class="parametername">viewport</span></td>
  1301. <td>The view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1302. </tr>
  1303. </tbody>
  1304. </table>
  1305. <h5 id="Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect__remarks">Remarks</h5>
  1306. <div class="markdown level1 remarks">
  1307. This method will be called before any subviews added with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> have been drawn.
  1308. </div>
  1309. <a id="Terminal_Gui_View_OnEnter_" data-uid="Terminal.Gui.View.OnEnter*"></a>
  1310. <h4 id="Terminal_Gui_View_OnEnter" data-uid="Terminal.Gui.View.OnEnter">OnEnter()</h4>
  1311. <div class="markdown level1 summary">
  1312. Method invoked when a view gets focus.
  1313. </div>
  1314. <div class="markdown level1 conceptual"></div>
  1315. <h5 class="decalaration">Declaration</h5>
  1316. <div class="codewrapper">
  1317. <pre><code class="lang-csharp hljs">public override bool OnEnter()</code></pre>
  1318. </div>
  1319. <h5 class="returns">Returns</h5>
  1320. <table class="table table-bordered table-striped table-condensed">
  1321. <thead>
  1322. <tr>
  1323. <th>Type</th>
  1324. <th>Description</th>
  1325. </tr>
  1326. </thead>
  1327. <tbody>
  1328. <tr>
  1329. <td><span class="xref">System.Boolean</span></td>
  1330. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1331. </tr>
  1332. </tbody>
  1333. </table>
  1334. <h5 class="overrides">Overrides</h5>
  1335. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnEnter">Responder.OnEnter()</a></div>
  1336. <a id="Terminal_Gui_View_OnKeyDown_" data-uid="Terminal.Gui.View.OnKeyDown*"></a>
  1337. <h4 id="Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  1338. <div class="markdown level1 summary"></div>
  1339. <div class="markdown level1 conceptual"></div>
  1340. <h5 class="decalaration">Declaration</h5>
  1341. <div class="codewrapper">
  1342. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  1343. </div>
  1344. <h5 class="parameters">Parameters</h5>
  1345. <table class="table table-bordered table-striped table-condensed">
  1346. <thead>
  1347. <tr>
  1348. <th>Type</th>
  1349. <th>Name</th>
  1350. <th>Description</th>
  1351. </tr>
  1352. </thead>
  1353. <tbody>
  1354. <tr>
  1355. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1356. <td><span class="parametername">keyEvent</span></td>
  1357. <td>Contains the details about the key that produced the event.</td>
  1358. </tr>
  1359. </tbody>
  1360. </table>
  1361. <h5 class="returns">Returns</h5>
  1362. <table class="table table-bordered table-striped table-condensed">
  1363. <thead>
  1364. <tr>
  1365. <th>Type</th>
  1366. <th>Description</th>
  1367. </tr>
  1368. </thead>
  1369. <tbody>
  1370. <tr>
  1371. <td><span class="xref">System.Boolean</span></td>
  1372. <td></td>
  1373. </tr>
  1374. </tbody>
  1375. </table>
  1376. <h5 class="overrides">Overrides</h5>
  1377. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyDown_Terminal_Gui_KeyEvent_">Responder.OnKeyDown(KeyEvent)</a></div>
  1378. <a id="Terminal_Gui_View_OnKeyUp_" data-uid="Terminal.Gui.View.OnKeyUp*"></a>
  1379. <h4 id="Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  1380. <div class="markdown level1 summary"></div>
  1381. <div class="markdown level1 conceptual"></div>
  1382. <h5 class="decalaration">Declaration</h5>
  1383. <div class="codewrapper">
  1384. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  1385. </div>
  1386. <h5 class="parameters">Parameters</h5>
  1387. <table class="table table-bordered table-striped table-condensed">
  1388. <thead>
  1389. <tr>
  1390. <th>Type</th>
  1391. <th>Name</th>
  1392. <th>Description</th>
  1393. </tr>
  1394. </thead>
  1395. <tbody>
  1396. <tr>
  1397. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1398. <td><span class="parametername">keyEvent</span></td>
  1399. <td>Contains the details about the key that produced the event.</td>
  1400. </tr>
  1401. </tbody>
  1402. </table>
  1403. <h5 class="returns">Returns</h5>
  1404. <table class="table table-bordered table-striped table-condensed">
  1405. <thead>
  1406. <tr>
  1407. <th>Type</th>
  1408. <th>Description</th>
  1409. </tr>
  1410. </thead>
  1411. <tbody>
  1412. <tr>
  1413. <td><span class="xref">System.Boolean</span></td>
  1414. <td></td>
  1415. </tr>
  1416. </tbody>
  1417. </table>
  1418. <h5 class="overrides">Overrides</h5>
  1419. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnKeyUp_Terminal_Gui_KeyEvent_">Responder.OnKeyUp(KeyEvent)</a></div>
  1420. <a id="Terminal_Gui_View_OnLeave_" data-uid="Terminal.Gui.View.OnLeave*"></a>
  1421. <h4 id="Terminal_Gui_View_OnLeave" data-uid="Terminal.Gui.View.OnLeave">OnLeave()</h4>
  1422. <div class="markdown level1 summary">
  1423. Method invoked when a view loses focus.
  1424. </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 OnLeave()</code></pre>
  1429. </div>
  1430. <h5 class="returns">Returns</h5>
  1431. <table class="table table-bordered table-striped table-condensed">
  1432. <thead>
  1433. <tr>
  1434. <th>Type</th>
  1435. <th>Description</th>
  1436. </tr>
  1437. </thead>
  1438. <tbody>
  1439. <tr>
  1440. <td><span class="xref">System.Boolean</span></td>
  1441. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1442. </tr>
  1443. </tbody>
  1444. </table>
  1445. <h5 class="overrides">Overrides</h5>
  1446. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnLeave">Responder.OnLeave()</a></div>
  1447. <a id="Terminal_Gui_View_OnMouseEnter_" data-uid="Terminal.Gui.View.OnMouseEnter*"></a>
  1448. <h4 id="Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseEnter(Terminal.Gui.MouseEvent)">OnMouseEnter(MouseEvent)</h4>
  1449. <div class="markdown level1 summary">
  1450. Method invoked when a mouse event is generated for the first time.
  1451. </div>
  1452. <div class="markdown level1 conceptual"></div>
  1453. <h5 class="decalaration">Declaration</h5>
  1454. <div class="codewrapper">
  1455. <pre><code class="lang-csharp hljs">public override bool OnMouseEnter(MouseEvent mouseEvent)</code></pre>
  1456. </div>
  1457. <h5 class="parameters">Parameters</h5>
  1458. <table class="table table-bordered table-striped table-condensed">
  1459. <thead>
  1460. <tr>
  1461. <th>Type</th>
  1462. <th>Name</th>
  1463. <th>Description</th>
  1464. </tr>
  1465. </thead>
  1466. <tbody>
  1467. <tr>
  1468. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1469. <td><span class="parametername">mouseEvent</span></td>
  1470. <td></td>
  1471. </tr>
  1472. </tbody>
  1473. </table>
  1474. <h5 class="returns">Returns</h5>
  1475. <table class="table table-bordered table-striped table-condensed">
  1476. <thead>
  1477. <tr>
  1478. <th>Type</th>
  1479. <th>Description</th>
  1480. </tr>
  1481. </thead>
  1482. <tbody>
  1483. <tr>
  1484. <td><span class="xref">System.Boolean</span></td>
  1485. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1486. </tr>
  1487. </tbody>
  1488. </table>
  1489. <h5 class="overrides">Overrides</h5>
  1490. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseEnter_Terminal_Gui_MouseEvent_">Responder.OnMouseEnter(MouseEvent)</a></div>
  1491. <a id="Terminal_Gui_View_OnMouseEvent_" data-uid="Terminal.Gui.View.OnMouseEvent*"></a>
  1492. <h4 id="Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseEvent(Terminal.Gui.MouseEvent)">OnMouseEvent(MouseEvent)</h4>
  1493. <div class="markdown level1 summary">
  1494. Method invoked when a mouse event is generated
  1495. </div>
  1496. <div class="markdown level1 conceptual"></div>
  1497. <h5 class="decalaration">Declaration</h5>
  1498. <div class="codewrapper">
  1499. <pre><code class="lang-csharp hljs">public virtual bool OnMouseEvent(MouseEvent mouseEvent)</code></pre>
  1500. </div>
  1501. <h5 class="parameters">Parameters</h5>
  1502. <table class="table table-bordered table-striped table-condensed">
  1503. <thead>
  1504. <tr>
  1505. <th>Type</th>
  1506. <th>Name</th>
  1507. <th>Description</th>
  1508. </tr>
  1509. </thead>
  1510. <tbody>
  1511. <tr>
  1512. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1513. <td><span class="parametername">mouseEvent</span></td>
  1514. <td></td>
  1515. </tr>
  1516. </tbody>
  1517. </table>
  1518. <h5 class="returns">Returns</h5>
  1519. <table class="table table-bordered table-striped table-condensed">
  1520. <thead>
  1521. <tr>
  1522. <th>Type</th>
  1523. <th>Description</th>
  1524. </tr>
  1525. </thead>
  1526. <tbody>
  1527. <tr>
  1528. <td><span class="xref">System.Boolean</span></td>
  1529. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1530. </tr>
  1531. </tbody>
  1532. </table>
  1533. <a id="Terminal_Gui_View_OnMouseLeave_" data-uid="Terminal.Gui.View.OnMouseLeave*"></a>
  1534. <h4 id="Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.View.OnMouseLeave(Terminal.Gui.MouseEvent)">OnMouseLeave(MouseEvent)</h4>
  1535. <div class="markdown level1 summary">
  1536. Method invoked when a mouse event is generated for the last time.
  1537. </div>
  1538. <div class="markdown level1 conceptual"></div>
  1539. <h5 class="decalaration">Declaration</h5>
  1540. <div class="codewrapper">
  1541. <pre><code class="lang-csharp hljs">public override bool OnMouseLeave(MouseEvent mouseEvent)</code></pre>
  1542. </div>
  1543. <h5 class="parameters">Parameters</h5>
  1544. <table class="table table-bordered table-striped table-condensed">
  1545. <thead>
  1546. <tr>
  1547. <th>Type</th>
  1548. <th>Name</th>
  1549. <th>Description</th>
  1550. </tr>
  1551. </thead>
  1552. <tbody>
  1553. <tr>
  1554. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1555. <td><span class="parametername">mouseEvent</span></td>
  1556. <td></td>
  1557. </tr>
  1558. </tbody>
  1559. </table>
  1560. <h5 class="returns">Returns</h5>
  1561. <table class="table table-bordered table-striped table-condensed">
  1562. <thead>
  1563. <tr>
  1564. <th>Type</th>
  1565. <th>Description</th>
  1566. </tr>
  1567. </thead>
  1568. <tbody>
  1569. <tr>
  1570. <td><span class="xref">System.Boolean</span></td>
  1571. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1572. </tr>
  1573. </tbody>
  1574. </table>
  1575. <h5 class="overrides">Overrides</h5>
  1576. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_OnMouseLeave_Terminal_Gui_MouseEvent_">Responder.OnMouseLeave(MouseEvent)</a></div>
  1577. <a id="Terminal_Gui_View_PositionCursor_" data-uid="Terminal.Gui.View.PositionCursor*"></a>
  1578. <h4 id="Terminal_Gui_View_PositionCursor" data-uid="Terminal.Gui.View.PositionCursor">PositionCursor()</h4>
  1579. <div class="markdown level1 summary">
  1580. Positions the cursor in the right position based on the currently focused view in the chain.
  1581. </div>
  1582. <div class="markdown level1 conceptual"></div>
  1583. <h5 class="decalaration">Declaration</h5>
  1584. <div class="codewrapper">
  1585. <pre><code class="lang-csharp hljs">public virtual void PositionCursor()</code></pre>
  1586. </div>
  1587. <a id="Terminal_Gui_View_ProcessColdKey_" data-uid="Terminal.Gui.View.ProcessColdKey*"></a>
  1588. <h4 id="Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  1589. <div class="markdown level1 summary">
  1590. This method can be overwritten by views that
  1591. want to provide accelerator functionality
  1592. (Alt-key for example), but without
  1593. interefering with normal ProcessKey behavior.
  1594. </div>
  1595. <div class="markdown level1 conceptual"></div>
  1596. <h5 class="decalaration">Declaration</h5>
  1597. <div class="codewrapper">
  1598. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey(KeyEvent keyEvent)</code></pre>
  1599. </div>
  1600. <h5 class="parameters">Parameters</h5>
  1601. <table class="table table-bordered table-striped table-condensed">
  1602. <thead>
  1603. <tr>
  1604. <th>Type</th>
  1605. <th>Name</th>
  1606. <th>Description</th>
  1607. </tr>
  1608. </thead>
  1609. <tbody>
  1610. <tr>
  1611. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1612. <td><span class="parametername">keyEvent</span></td>
  1613. <td>Contains the details about the key that produced the event.</td>
  1614. </tr>
  1615. </tbody>
  1616. </table>
  1617. <h5 class="returns">Returns</h5>
  1618. <table class="table table-bordered table-striped table-condensed">
  1619. <thead>
  1620. <tr>
  1621. <th>Type</th>
  1622. <th>Description</th>
  1623. </tr>
  1624. </thead>
  1625. <tbody>
  1626. <tr>
  1627. <td><span class="xref">System.Boolean</span></td>
  1628. <td></td>
  1629. </tr>
  1630. </tbody>
  1631. </table>
  1632. <h5 class="overrides">Overrides</h5>
  1633. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessColdKey_Terminal_Gui_KeyEvent_">Responder.ProcessColdKey(KeyEvent)</a></div>
  1634. <h5 id="Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1635. <div class="markdown level1 remarks">
  1636. <p>
  1637. After keys are sent to the subviews on the
  1638. current view, all the view are
  1639. processed and the key is passed to the views
  1640. to allow some of them to process the keystroke
  1641. as a cold-key. </p>
  1642. <p>
  1643. This functionality is used, for example, by
  1644. default buttons to act on the enter key.
  1645. Processing this as a hot-key would prevent
  1646. non-default buttons from consuming the enter
  1647. keypress when they have the focus.
  1648. </p>
  1649. </div>
  1650. <a id="Terminal_Gui_View_ProcessHotKey_" data-uid="Terminal.Gui.View.ProcessHotKey*"></a>
  1651. <h4 id="Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessHotKey(Terminal.Gui.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  1652. <div class="markdown level1 summary">
  1653. This method can be overwritten by view that
  1654. want to provide accelerator functionality
  1655. (Alt-key for example).
  1656. </div>
  1657. <div class="markdown level1 conceptual"></div>
  1658. <h5 class="decalaration">Declaration</h5>
  1659. <div class="codewrapper">
  1660. <pre><code class="lang-csharp hljs">public override bool ProcessHotKey(KeyEvent keyEvent)</code></pre>
  1661. </div>
  1662. <h5 class="parameters">Parameters</h5>
  1663. <table class="table table-bordered table-striped table-condensed">
  1664. <thead>
  1665. <tr>
  1666. <th>Type</th>
  1667. <th>Name</th>
  1668. <th>Description</th>
  1669. </tr>
  1670. </thead>
  1671. <tbody>
  1672. <tr>
  1673. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1674. <td><span class="parametername">keyEvent</span></td>
  1675. <td></td>
  1676. </tr>
  1677. </tbody>
  1678. </table>
  1679. <h5 class="returns">Returns</h5>
  1680. <table class="table table-bordered table-striped table-condensed">
  1681. <thead>
  1682. <tr>
  1683. <th>Type</th>
  1684. <th>Description</th>
  1685. </tr>
  1686. </thead>
  1687. <tbody>
  1688. <tr>
  1689. <td><span class="xref">System.Boolean</span></td>
  1690. <td></td>
  1691. </tr>
  1692. </tbody>
  1693. </table>
  1694. <h5 class="overrides">Overrides</h5>
  1695. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessHotKey_Terminal_Gui_KeyEvent_">Responder.ProcessHotKey(KeyEvent)</a></div>
  1696. <h5 id="Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1697. <div class="markdown level1 remarks">
  1698. <p>
  1699. Before keys are sent to the subview on the
  1700. current view, all the views are
  1701. processed and the key is passed to the widgets
  1702. to allow some of them to process the keystroke
  1703. as a hot-key. </p>
  1704. <p>
  1705. For example, if you implement a button that
  1706. has a hotkey ok &quot;o&quot;, you would catch the
  1707. combination Alt-o here. If the event is
  1708. caught, you must return true to stop the
  1709. keystroke from being dispatched to other
  1710. views.
  1711. </p>
  1712. </div>
  1713. <a id="Terminal_Gui_View_ProcessKey_" data-uid="Terminal.Gui.View.ProcessKey*"></a>
  1714. <h4 id="Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.View.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1715. <div class="markdown level1 summary">
  1716. If the view is focused, gives the view a
  1717. chance to process the keystroke.
  1718. </div>
  1719. <div class="markdown level1 conceptual"></div>
  1720. <h5 class="decalaration">Declaration</h5>
  1721. <div class="codewrapper">
  1722. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1723. </div>
  1724. <h5 class="parameters">Parameters</h5>
  1725. <table class="table table-bordered table-striped table-condensed">
  1726. <thead>
  1727. <tr>
  1728. <th>Type</th>
  1729. <th>Name</th>
  1730. <th>Description</th>
  1731. </tr>
  1732. </thead>
  1733. <tbody>
  1734. <tr>
  1735. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1736. <td><span class="parametername">keyEvent</span></td>
  1737. <td>Contains the details about the key that produced the event.</td>
  1738. </tr>
  1739. </tbody>
  1740. </table>
  1741. <h5 class="returns">Returns</h5>
  1742. <table class="table table-bordered table-striped table-condensed">
  1743. <thead>
  1744. <tr>
  1745. <th>Type</th>
  1746. <th>Description</th>
  1747. </tr>
  1748. </thead>
  1749. <tbody>
  1750. <tr>
  1751. <td><span class="xref">System.Boolean</span></td>
  1752. <td></td>
  1753. </tr>
  1754. </tbody>
  1755. </table>
  1756. <h5 class="overrides">Overrides</h5>
  1757. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_ProcessKey_Terminal_Gui_KeyEvent_">Responder.ProcessKey(KeyEvent)</a></div>
  1758. <h5 id="Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1759. <div class="markdown level1 remarks">
  1760. <p>
  1761. Views can override this method if they are
  1762. interested in processing the given keystroke.
  1763. If they consume the keystroke, they must
  1764. return true to stop the keystroke from being
  1765. processed by other widgets or consumed by the
  1766. widget engine. If they return false, the
  1767. keystroke will be passed using the ProcessColdKey
  1768. method to other views to process.
  1769. </p>
  1770. <p>
  1771. The View implementation does nothing but return false,
  1772. so it is not necessary to call base.ProcessKey if you
  1773. derive directly from View, but you should if you derive
  1774. other View subclasses.
  1775. </p>
  1776. </div>
  1777. <a id="Terminal_Gui_View_Redraw_" data-uid="Terminal.Gui.View.Redraw*"></a>
  1778. <h4 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1779. <div class="markdown level1 summary">
  1780. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  1781. </div>
  1782. <div class="markdown level1 conceptual"></div>
  1783. <h5 class="decalaration">Declaration</h5>
  1784. <div class="codewrapper">
  1785. <pre><code class="lang-csharp hljs">public virtual void Redraw(Rect bounds)</code></pre>
  1786. </div>
  1787. <h5 class="parameters">Parameters</h5>
  1788. <table class="table table-bordered table-striped table-condensed">
  1789. <thead>
  1790. <tr>
  1791. <th>Type</th>
  1792. <th>Name</th>
  1793. <th>Description</th>
  1794. </tr>
  1795. </thead>
  1796. <tbody>
  1797. <tr>
  1798. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1799. <td><span class="parametername">bounds</span></td>
  1800. <td>The bounds (view-relative region) to redraw.</td>
  1801. </tr>
  1802. </tbody>
  1803. </table>
  1804. <h5 id="Terminal_Gui_View_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1805. <div class="markdown level1 remarks">
  1806. <p>
  1807. Always use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> (view-relative) when calling <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a>, NOT <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> (superview-relative).
  1808. </p>
  1809. <p>
  1810. Views should set the color that they want to use on entry, as otherwise this will inherit
  1811. the last color that was set globaly on the driver.
  1812. </p>
  1813. <p>
  1814. Overrides of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a> must ensure they do not set <code>Driver.Clip</code> to a clip region
  1815. larger than the <code>region</code> parameter.
  1816. </p>
  1817. </div>
  1818. <a id="Terminal_Gui_View_Remove_" data-uid="Terminal.Gui.View.Remove*"></a>
  1819. <h4 id="Terminal_Gui_View_Remove_Terminal_Gui_View_" data-uid="Terminal.Gui.View.Remove(Terminal.Gui.View)">Remove(View)</h4>
  1820. <div class="markdown level1 summary">
  1821. Removes a subview added via <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> or <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">Add(View[])</a> from this View.
  1822. </div>
  1823. <div class="markdown level1 conceptual"></div>
  1824. <h5 class="decalaration">Declaration</h5>
  1825. <div class="codewrapper">
  1826. <pre><code class="lang-csharp hljs">public virtual void Remove(View view)</code></pre>
  1827. </div>
  1828. <h5 class="parameters">Parameters</h5>
  1829. <table class="table table-bordered table-striped table-condensed">
  1830. <thead>
  1831. <tr>
  1832. <th>Type</th>
  1833. <th>Name</th>
  1834. <th>Description</th>
  1835. </tr>
  1836. </thead>
  1837. <tbody>
  1838. <tr>
  1839. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1840. <td><span class="parametername">view</span></td>
  1841. <td></td>
  1842. </tr>
  1843. </tbody>
  1844. </table>
  1845. <h5 id="Terminal_Gui_View_Remove_Terminal_Gui_View__remarks">Remarks</h5>
  1846. <div class="markdown level1 remarks">
  1847. </div>
  1848. <a id="Terminal_Gui_View_RemoveAll_" data-uid="Terminal.Gui.View.RemoveAll*"></a>
  1849. <h4 id="Terminal_Gui_View_RemoveAll" data-uid="Terminal.Gui.View.RemoveAll">RemoveAll()</h4>
  1850. <div class="markdown level1 summary">
  1851. Removes all subviews (children) added via <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> or <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">Add(View[])</a> from this View.
  1852. </div>
  1853. <div class="markdown level1 conceptual"></div>
  1854. <h5 class="decalaration">Declaration</h5>
  1855. <div class="codewrapper">
  1856. <pre><code class="lang-csharp hljs">public virtual void RemoveAll()</code></pre>
  1857. </div>
  1858. <a id="Terminal_Gui_View_ScreenToView_" data-uid="Terminal.Gui.View.ScreenToView*"></a>
  1859. <h4 id="Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_" data-uid="Terminal.Gui.View.ScreenToView(System.Int32,System.Int32)">ScreenToView(Int32, Int32)</h4>
  1860. <div class="markdown level1 summary">
  1861. Converts a point from screen-relative coordinates to view-relative coordinates.
  1862. </div>
  1863. <div class="markdown level1 conceptual"></div>
  1864. <h5 class="decalaration">Declaration</h5>
  1865. <div class="codewrapper">
  1866. <pre><code class="lang-csharp hljs">public Point ScreenToView(int x, int y)</code></pre>
  1867. </div>
  1868. <h5 class="parameters">Parameters</h5>
  1869. <table class="table table-bordered table-striped table-condensed">
  1870. <thead>
  1871. <tr>
  1872. <th>Type</th>
  1873. <th>Name</th>
  1874. <th>Description</th>
  1875. </tr>
  1876. </thead>
  1877. <tbody>
  1878. <tr>
  1879. <td><span class="xref">System.Int32</span></td>
  1880. <td><span class="parametername">x</span></td>
  1881. <td>X screen-coordinate point.</td>
  1882. </tr>
  1883. <tr>
  1884. <td><span class="xref">System.Int32</span></td>
  1885. <td><span class="parametername">y</span></td>
  1886. <td>Y screen-coordinate point.</td>
  1887. </tr>
  1888. </tbody>
  1889. </table>
  1890. <h5 class="returns">Returns</h5>
  1891. <table class="table table-bordered table-striped table-condensed">
  1892. <thead>
  1893. <tr>
  1894. <th>Type</th>
  1895. <th>Description</th>
  1896. </tr>
  1897. </thead>
  1898. <tbody>
  1899. <tr>
  1900. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  1901. <td>The mapped point.</td>
  1902. </tr>
  1903. </tbody>
  1904. </table>
  1905. <a id="Terminal_Gui_View_SendSubviewBackwards_" data-uid="Terminal.Gui.View.SendSubviewBackwards*"></a>
  1906. <h4 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewBackwards(Terminal.Gui.View)">SendSubviewBackwards(View)</h4>
  1907. <div class="markdown level1 summary">
  1908. Moves the subview backwards in the hierarchy, only one step
  1909. </div>
  1910. <div class="markdown level1 conceptual"></div>
  1911. <h5 class="decalaration">Declaration</h5>
  1912. <div class="codewrapper">
  1913. <pre><code class="lang-csharp hljs">public void SendSubviewBackwards(View subview)</code></pre>
  1914. </div>
  1915. <h5 class="parameters">Parameters</h5>
  1916. <table class="table table-bordered table-striped table-condensed">
  1917. <thead>
  1918. <tr>
  1919. <th>Type</th>
  1920. <th>Name</th>
  1921. <th>Description</th>
  1922. </tr>
  1923. </thead>
  1924. <tbody>
  1925. <tr>
  1926. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1927. <td><span class="parametername">subview</span></td>
  1928. <td>The subview to send backwards</td>
  1929. </tr>
  1930. </tbody>
  1931. </table>
  1932. <h5 id="Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View__remarks">Remarks</h5>
  1933. <div class="markdown level1 remarks">
  1934. If you want to send the view all the way to the back use SendSubviewToBack.
  1935. </div>
  1936. <a id="Terminal_Gui_View_SendSubviewToBack_" data-uid="Terminal.Gui.View.SendSubviewToBack*"></a>
  1937. <h4 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SendSubviewToBack(Terminal.Gui.View)">SendSubviewToBack(View)</h4>
  1938. <div class="markdown level1 summary">
  1939. Sends the specified subview to the front so it is the first view drawn
  1940. </div>
  1941. <div class="markdown level1 conceptual"></div>
  1942. <h5 class="decalaration">Declaration</h5>
  1943. <div class="codewrapper">
  1944. <pre><code class="lang-csharp hljs">public void SendSubviewToBack(View subview)</code></pre>
  1945. </div>
  1946. <h5 class="parameters">Parameters</h5>
  1947. <table class="table table-bordered table-striped table-condensed">
  1948. <thead>
  1949. <tr>
  1950. <th>Type</th>
  1951. <th>Name</th>
  1952. <th>Description</th>
  1953. </tr>
  1954. </thead>
  1955. <tbody>
  1956. <tr>
  1957. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1958. <td><span class="parametername">subview</span></td>
  1959. <td>The subview to send to the front</td>
  1960. </tr>
  1961. </tbody>
  1962. </table>
  1963. <h5 id="Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View__remarks">Remarks</h5>
  1964. <div class="markdown level1 remarks">
  1965. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">BringSubviewToFront(View)</a>.
  1966. </div>
  1967. <a id="Terminal_Gui_View_SetClip_" data-uid="Terminal.Gui.View.SetClip*"></a>
  1968. <h4 id="Terminal_Gui_View_SetClip_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetClip(Terminal.Gui.Rect)">SetClip(Rect)</h4>
  1969. <div class="markdown level1 summary">
  1970. Sets the clip region to the specified view-relative region.
  1971. </div>
  1972. <div class="markdown level1 conceptual"></div>
  1973. <h5 class="decalaration">Declaration</h5>
  1974. <div class="codewrapper">
  1975. <pre><code class="lang-csharp hljs">public Rect SetClip(Rect region)</code></pre>
  1976. </div>
  1977. <h5 class="parameters">Parameters</h5>
  1978. <table class="table table-bordered table-striped table-condensed">
  1979. <thead>
  1980. <tr>
  1981. <th>Type</th>
  1982. <th>Name</th>
  1983. <th>Description</th>
  1984. </tr>
  1985. </thead>
  1986. <tbody>
  1987. <tr>
  1988. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1989. <td><span class="parametername">region</span></td>
  1990. <td>View-relative clip region.</td>
  1991. </tr>
  1992. </tbody>
  1993. </table>
  1994. <h5 class="returns">Returns</h5>
  1995. <table class="table table-bordered table-striped table-condensed">
  1996. <thead>
  1997. <tr>
  1998. <th>Type</th>
  1999. <th>Description</th>
  2000. </tr>
  2001. </thead>
  2002. <tbody>
  2003. <tr>
  2004. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2005. <td>The previous screen-relative clip region.</td>
  2006. </tr>
  2007. </tbody>
  2008. </table>
  2009. <a id="Terminal_Gui_View_SetFocus_" data-uid="Terminal.Gui.View.SetFocus*"></a>
  2010. <h4 id="Terminal_Gui_View_SetFocus_Terminal_Gui_View_" data-uid="Terminal.Gui.View.SetFocus(Terminal.Gui.View)">SetFocus(View)</h4>
  2011. <div class="markdown level1 summary">
  2012. Causes the specified subview to have focus.
  2013. </div>
  2014. <div class="markdown level1 conceptual"></div>
  2015. <h5 class="decalaration">Declaration</h5>
  2016. <div class="codewrapper">
  2017. <pre><code class="lang-csharp hljs">public void SetFocus(View view)</code></pre>
  2018. </div>
  2019. <h5 class="parameters">Parameters</h5>
  2020. <table class="table table-bordered table-striped table-condensed">
  2021. <thead>
  2022. <tr>
  2023. <th>Type</th>
  2024. <th>Name</th>
  2025. <th>Description</th>
  2026. </tr>
  2027. </thead>
  2028. <tbody>
  2029. <tr>
  2030. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  2031. <td><span class="parametername">view</span></td>
  2032. <td>View.</td>
  2033. </tr>
  2034. </tbody>
  2035. </table>
  2036. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  2037. <h4 id="Terminal_Gui_View_SetNeedsDisplay" data-uid="Terminal.Gui.View.SetNeedsDisplay">SetNeedsDisplay()</h4>
  2038. <div class="markdown level1 summary">
  2039. Sets a flag indicating this view needs to be redisplayed because its state has changed.
  2040. </div>
  2041. <div class="markdown level1 conceptual"></div>
  2042. <h5 class="decalaration">Declaration</h5>
  2043. <div class="codewrapper">
  2044. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay()</code></pre>
  2045. </div>
  2046. <a id="Terminal_Gui_View_SetNeedsDisplay_" data-uid="Terminal.Gui.View.SetNeedsDisplay*"></a>
  2047. <h4 id="Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_" data-uid="Terminal.Gui.View.SetNeedsDisplay(Terminal.Gui.Rect)">SetNeedsDisplay(Rect)</h4>
  2048. <div class="markdown level1 summary">
  2049. Flags the view-relative region on this View as needing to be repainted.
  2050. </div>
  2051. <div class="markdown level1 conceptual"></div>
  2052. <h5 class="decalaration">Declaration</h5>
  2053. <div class="codewrapper">
  2054. <pre><code class="lang-csharp hljs">public void SetNeedsDisplay(Rect region)</code></pre>
  2055. </div>
  2056. <h5 class="parameters">Parameters</h5>
  2057. <table class="table table-bordered table-striped table-condensed">
  2058. <thead>
  2059. <tr>
  2060. <th>Type</th>
  2061. <th>Name</th>
  2062. <th>Description</th>
  2063. </tr>
  2064. </thead>
  2065. <tbody>
  2066. <tr>
  2067. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2068. <td><span class="parametername">region</span></td>
  2069. <td>The view-relative region that must be flagged for repaint.</td>
  2070. </tr>
  2071. </tbody>
  2072. </table>
  2073. <a id="Terminal_Gui_View_ToString_" data-uid="Terminal.Gui.View.ToString*"></a>
  2074. <h4 id="Terminal_Gui_View_ToString" data-uid="Terminal.Gui.View.ToString">ToString()</h4>
  2075. <div class="markdown level1 summary">
  2076. Pretty prints the View
  2077. </div>
  2078. <div class="markdown level1 conceptual"></div>
  2079. <h5 class="decalaration">Declaration</h5>
  2080. <div class="codewrapper">
  2081. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  2082. </div>
  2083. <h5 class="returns">Returns</h5>
  2084. <table class="table table-bordered table-striped table-condensed">
  2085. <thead>
  2086. <tr>
  2087. <th>Type</th>
  2088. <th>Description</th>
  2089. </tr>
  2090. </thead>
  2091. <tbody>
  2092. <tr>
  2093. <td><span class="xref">System.String</span></td>
  2094. <td></td>
  2095. </tr>
  2096. </tbody>
  2097. </table>
  2098. <h5 class="overrides">Overrides</h5>
  2099. <div><span class="xref">System.Object.ToString()</span></div>
  2100. <h3 id="events">Events
  2101. </h3>
  2102. <h4 id="Terminal_Gui_View_DrawContent" data-uid="Terminal.Gui.View.DrawContent">DrawContent</h4>
  2103. <div class="markdown level1 summary">
  2104. Event invoked when the content area of the View is to be drawn.
  2105. </div>
  2106. <div class="markdown level1 conceptual"></div>
  2107. <h5 class="decalaration">Declaration</h5>
  2108. <div class="codewrapper">
  2109. <pre><code class="lang-csharp hljs">public event EventHandler&lt;Rect&gt; DrawContent</code></pre>
  2110. </div>
  2111. <h5 class="eventType">Event Type</h5>
  2112. <table class="table table-bordered table-striped table-condensed">
  2113. <thead>
  2114. <tr>
  2115. <th>Type</th>
  2116. <th>Description</th>
  2117. </tr>
  2118. </thead>
  2119. <tbody>
  2120. <tr>
  2121. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.Rect.html">Rect</a>&gt;</td>
  2122. <td></td>
  2123. </tr>
  2124. </tbody>
  2125. </table>
  2126. <h5 id="Terminal_Gui_View_DrawContent_remarks">Remarks</h5>
  2127. <div class="markdown level1 remarks">
  2128. <p>
  2129. Will be invoked before any subviews added with <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">Add(View)</a> have been drawn.
  2130. </p>
  2131. <p>
  2132. Rect provides the view-relative rectangle describing the currently visible viewport into the <a class="xref" href="Terminal.Gui.View.html">View</a>.
  2133. </p>
  2134. </div>
  2135. <h4 id="Terminal_Gui_View_Enter" data-uid="Terminal.Gui.View.Enter">Enter</h4>
  2136. <div class="markdown level1 summary">
  2137. Event fired when the view gets focus.
  2138. </div>
  2139. <div class="markdown level1 conceptual"></div>
  2140. <h5 class="decalaration">Declaration</h5>
  2141. <div class="codewrapper">
  2142. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.FocusEventArgs&gt; Enter</code></pre>
  2143. </div>
  2144. <h5 class="eventType">Event Type</h5>
  2145. <table class="table table-bordered table-striped table-condensed">
  2146. <thead>
  2147. <tr>
  2148. <th>Type</th>
  2149. <th>Description</th>
  2150. </tr>
  2151. </thead>
  2152. <tbody>
  2153. <tr>
  2154. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.FocusEventArgs.html">View.FocusEventArgs</a>&gt;</td>
  2155. <td></td>
  2156. </tr>
  2157. </tbody>
  2158. </table>
  2159. <h4 id="Terminal_Gui_View_KeyDown" data-uid="Terminal.Gui.View.KeyDown">KeyDown</h4>
  2160. <div class="markdown level1 summary">
  2161. Invoked when a key is pressed
  2162. </div>
  2163. <div class="markdown level1 conceptual"></div>
  2164. <h5 class="decalaration">Declaration</h5>
  2165. <div class="codewrapper">
  2166. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyDown</code></pre>
  2167. </div>
  2168. <h5 class="eventType">Event Type</h5>
  2169. <table class="table table-bordered table-striped table-condensed">
  2170. <thead>
  2171. <tr>
  2172. <th>Type</th>
  2173. <th>Description</th>
  2174. </tr>
  2175. </thead>
  2176. <tbody>
  2177. <tr>
  2178. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  2179. <td></td>
  2180. </tr>
  2181. </tbody>
  2182. </table>
  2183. <h4 id="Terminal_Gui_View_KeyPress" data-uid="Terminal.Gui.View.KeyPress">KeyPress</h4>
  2184. <div class="markdown level1 summary">
  2185. Invoked when a character key is pressed and occurs after the key up event.
  2186. </div>
  2187. <div class="markdown level1 conceptual"></div>
  2188. <h5 class="decalaration">Declaration</h5>
  2189. <div class="codewrapper">
  2190. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyPress</code></pre>
  2191. </div>
  2192. <h5 class="eventType">Event Type</h5>
  2193. <table class="table table-bordered table-striped table-condensed">
  2194. <thead>
  2195. <tr>
  2196. <th>Type</th>
  2197. <th>Description</th>
  2198. </tr>
  2199. </thead>
  2200. <tbody>
  2201. <tr>
  2202. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  2203. <td></td>
  2204. </tr>
  2205. </tbody>
  2206. </table>
  2207. <h4 id="Terminal_Gui_View_KeyUp" data-uid="Terminal.Gui.View.KeyUp">KeyUp</h4>
  2208. <div class="markdown level1 summary">
  2209. Invoked when a key is released
  2210. </div>
  2211. <div class="markdown level1 conceptual"></div>
  2212. <h5 class="decalaration">Declaration</h5>
  2213. <div class="codewrapper">
  2214. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.KeyEventEventArgs&gt; KeyUp</code></pre>
  2215. </div>
  2216. <h5 class="eventType">Event Type</h5>
  2217. <table class="table table-bordered table-striped table-condensed">
  2218. <thead>
  2219. <tr>
  2220. <th>Type</th>
  2221. <th>Description</th>
  2222. </tr>
  2223. </thead>
  2224. <tbody>
  2225. <tr>
  2226. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.KeyEventEventArgs.html">View.KeyEventEventArgs</a>&gt;</td>
  2227. <td></td>
  2228. </tr>
  2229. </tbody>
  2230. </table>
  2231. <h4 id="Terminal_Gui_View_LayoutComplete" data-uid="Terminal.Gui.View.LayoutComplete">LayoutComplete</h4>
  2232. <div class="markdown level1 summary">
  2233. Fired after the Views&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">LayoutSubviews()</a> method has completed.
  2234. </div>
  2235. <div class="markdown level1 conceptual"></div>
  2236. <h5 class="decalaration">Declaration</h5>
  2237. <div class="codewrapper">
  2238. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.LayoutEventArgs&gt; LayoutComplete</code></pre>
  2239. </div>
  2240. <h5 class="eventType">Event Type</h5>
  2241. <table class="table table-bordered table-striped table-condensed">
  2242. <thead>
  2243. <tr>
  2244. <th>Type</th>
  2245. <th>Description</th>
  2246. </tr>
  2247. </thead>
  2248. <tbody>
  2249. <tr>
  2250. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.LayoutEventArgs.html">View.LayoutEventArgs</a>&gt;</td>
  2251. <td></td>
  2252. </tr>
  2253. </tbody>
  2254. </table>
  2255. <h5 id="Terminal_Gui_View_LayoutComplete_remarks">Remarks</h5>
  2256. <div class="markdown level1 remarks">
  2257. Subscribe to this event to perform tasks when the <a class="xref" href="Terminal.Gui.View.html">View</a> has been resized or the layout has otherwise changed.
  2258. </div>
  2259. <h4 id="Terminal_Gui_View_Leave" data-uid="Terminal.Gui.View.Leave">Leave</h4>
  2260. <div class="markdown level1 summary">
  2261. Event fired when the view looses focus.
  2262. </div>
  2263. <div class="markdown level1 conceptual"></div>
  2264. <h5 class="decalaration">Declaration</h5>
  2265. <div class="codewrapper">
  2266. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.FocusEventArgs&gt; Leave</code></pre>
  2267. </div>
  2268. <h5 class="eventType">Event Type</h5>
  2269. <table class="table table-bordered table-striped table-condensed">
  2270. <thead>
  2271. <tr>
  2272. <th>Type</th>
  2273. <th>Description</th>
  2274. </tr>
  2275. </thead>
  2276. <tbody>
  2277. <tr>
  2278. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.FocusEventArgs.html">View.FocusEventArgs</a>&gt;</td>
  2279. <td></td>
  2280. </tr>
  2281. </tbody>
  2282. </table>
  2283. <h4 id="Terminal_Gui_View_MouseClick" data-uid="Terminal.Gui.View.MouseClick">MouseClick</h4>
  2284. <div class="markdown level1 summary">
  2285. Event fired when a mouse event is generated.
  2286. </div>
  2287. <div class="markdown level1 conceptual"></div>
  2288. <h5 class="decalaration">Declaration</h5>
  2289. <div class="codewrapper">
  2290. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.MouseEventEventArgs&gt; MouseClick</code></pre>
  2291. </div>
  2292. <h5 class="eventType">Event Type</h5>
  2293. <table class="table table-bordered table-striped table-condensed">
  2294. <thead>
  2295. <tr>
  2296. <th>Type</th>
  2297. <th>Description</th>
  2298. </tr>
  2299. </thead>
  2300. <tbody>
  2301. <tr>
  2302. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventEventArgs.html">View.MouseEventEventArgs</a>&gt;</td>
  2303. <td></td>
  2304. </tr>
  2305. </tbody>
  2306. </table>
  2307. <h4 id="Terminal_Gui_View_MouseEnter" data-uid="Terminal.Gui.View.MouseEnter">MouseEnter</h4>
  2308. <div class="markdown level1 summary">
  2309. Event fired when the view receives the mouse event for the first time.
  2310. </div>
  2311. <div class="markdown level1 conceptual"></div>
  2312. <h5 class="decalaration">Declaration</h5>
  2313. <div class="codewrapper">
  2314. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.MouseEventEventArgs&gt; MouseEnter</code></pre>
  2315. </div>
  2316. <h5 class="eventType">Event Type</h5>
  2317. <table class="table table-bordered table-striped table-condensed">
  2318. <thead>
  2319. <tr>
  2320. <th>Type</th>
  2321. <th>Description</th>
  2322. </tr>
  2323. </thead>
  2324. <tbody>
  2325. <tr>
  2326. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventEventArgs.html">View.MouseEventEventArgs</a>&gt;</td>
  2327. <td></td>
  2328. </tr>
  2329. </tbody>
  2330. </table>
  2331. <h4 id="Terminal_Gui_View_MouseLeave" data-uid="Terminal.Gui.View.MouseLeave">MouseLeave</h4>
  2332. <div class="markdown level1 summary">
  2333. Event fired when the view receives a mouse event for the last time.
  2334. </div>
  2335. <div class="markdown level1 conceptual"></div>
  2336. <h5 class="decalaration">Declaration</h5>
  2337. <div class="codewrapper">
  2338. <pre><code class="lang-csharp hljs">public event EventHandler&lt;View.MouseEventEventArgs&gt; MouseLeave</code></pre>
  2339. </div>
  2340. <h5 class="eventType">Event Type</h5>
  2341. <table class="table table-bordered table-striped table-condensed">
  2342. <thead>
  2343. <tr>
  2344. <th>Type</th>
  2345. <th>Description</th>
  2346. </tr>
  2347. </thead>
  2348. <tbody>
  2349. <tr>
  2350. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.View.MouseEventEventArgs.html">View.MouseEventEventArgs</a>&gt;</td>
  2351. <td></td>
  2352. </tr>
  2353. </tbody>
  2354. </table>
  2355. <h3 id="implements">Implements</h3>
  2356. <div>
  2357. <span class="xref">System.Collections.IEnumerable</span>
  2358. </div>
  2359. </article>
  2360. </div>
  2361. <div class="hidden-sm col-md-2" role="complementary">
  2362. <div class="sideaffix">
  2363. <div class="contribution">
  2364. <ul class="nav">
  2365. </ul>
  2366. </div>
  2367. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  2368. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  2369. </nav>
  2370. </div>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. <footer>
  2375. <div class="grad-bottom"></div>
  2376. <div class="footer">
  2377. <div class="container">
  2378. <span class="pull-right">
  2379. <a href="#top">Back to top</a>
  2380. </span>
  2381. <span>Generated by <strong>DocFX</strong></span>
  2382. </div>
  2383. </div>
  2384. </footer>
  2385. </div>
  2386. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  2387. <script type="text/javascript" src="../../styles/docfx.js"></script>
  2388. <script type="text/javascript" src="../../styles/main.js"></script>
  2389. </body>
  2390. </html>