Terminal.Gui.Toplevel.html 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  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 Toplevel
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Toplevel
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.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">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></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.Toplevel">
  73. <h1 id="Terminal_Gui_Toplevel" data-uid="Terminal.Gui.Toplevel" class="text-break">Class Toplevel
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Toplevel views can be modally executed.
  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"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. <div class="level3"><span class="xref">Toplevel</span></div>
  85. <div class="level4"><a class="xref" href="Terminal.Gui.Border.ToplevelContainer.html">Border.ToplevelContainer</a></div>
  86. <div class="level4"><a class="xref" href="Terminal.Gui.Window.html">Window</a></div>
  87. </div>
  88. <div class="implements">
  89. <h5>Implements</h5>
  90. <div><span class="xref">System.IDisposable</span></div>
  91. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  92. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  93. </div>
  94. <div class="inheritedMembers">
  95. <h5>Inherited Members</h5>
  96. <div>
  97. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetMinWidthHeight_Terminal_Gui_Size__">View.GetMinWidthHeight(Size)</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetMinWidthHeight">View.SetMinWidthHeight()</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_UpdateTextFormatterText">View.UpdateTextFormatterText()</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessResizeView">View.ProcessResizeView()</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  110. </div>
  111. <div>
  112. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  113. </div>
  114. <div>
  115. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  116. </div>
  117. <div>
  118. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  119. </div>
  120. <div>
  121. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  122. </div>
  123. <div>
  124. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  125. </div>
  126. <div>
  127. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  128. </div>
  129. <div>
  130. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  131. </div>
  132. <div>
  133. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  134. </div>
  135. <div>
  136. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  137. </div>
  138. <div>
  139. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  140. </div>
  141. <div>
  142. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  143. </div>
  144. <div>
  145. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  146. </div>
  147. <div>
  148. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  149. </div>
  150. <div>
  151. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_">View.DrawFrame(Rect, Int32, Boolean)</a>
  152. </div>
  153. <div>
  154. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_">View.DrawHotString(ustring, Attribute, Attribute)</a>
  155. </div>
  156. <div>
  157. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_">View.DrawHotString(ustring, Boolean, ColorScheme)</a>
  158. </div>
  159. <div>
  160. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  161. </div>
  162. <div>
  163. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  164. </div>
  165. <div>
  166. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  167. </div>
  168. <div>
  169. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a>
  170. </div>
  171. <div>
  172. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a>
  173. </div>
  174. <div>
  175. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  176. </div>
  177. <div>
  178. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  179. </div>
  180. <div>
  181. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  182. </div>
  183. <div>
  184. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  185. </div>
  186. <div>
  187. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  188. </div>
  189. <div>
  190. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  191. </div>
  192. <div>
  193. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  194. </div>
  195. <div>
  196. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  197. </div>
  198. <div>
  199. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  200. </div>
  201. <div>
  202. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  203. </div>
  204. <div>
  205. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  206. </div>
  207. <div>
  208. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  209. </div>
  210. <div>
  211. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___">View.AddCommand(Command, Func&lt;Nullable&lt;Boolean&gt;&gt;)</a>
  212. </div>
  213. <div>
  214. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  215. </div>
  216. <div>
  217. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  218. </div>
  219. <div>
  220. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  221. </div>
  222. <div>
  223. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  224. </div>
  225. <div>
  226. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  227. </div>
  228. <div>
  229. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  230. </div>
  231. <div>
  232. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  233. </div>
  234. <div>
  235. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  236. </div>
  237. <div>
  238. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  239. </div>
  240. <div>
  241. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  242. </div>
  243. <div>
  244. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetAutoSize">View.GetAutoSize()</a>
  245. </div>
  246. <div>
  247. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetHotKeySpecifierLength_System_Boolean_">View.GetHotKeySpecifierLength(Boolean)</a>
  248. </div>
  249. <div>
  250. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTextFormatterBoundsSize">View.GetTextFormatterBoundsSize()</a>
  251. </div>
  252. <div>
  253. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetBoundsTextFormatterSize">View.GetBoundsTextFormatterSize()</a>
  254. </div>
  255. <div>
  256. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  257. </div>
  258. <div>
  259. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  260. </div>
  261. <div>
  262. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  263. </div>
  264. <div>
  265. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  266. </div>
  267. <div>
  268. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  281. </div>
  282. <div>
  283. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  284. </div>
  285. <div>
  286. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  287. </div>
  288. <div>
  289. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  290. </div>
  291. <div>
  292. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  293. </div>
  294. <div>
  295. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  296. </div>
  297. <div>
  298. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  299. </div>
  300. <div>
  301. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  302. </div>
  303. <div>
  304. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  305. </div>
  306. <div>
  307. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  308. </div>
  309. <div>
  310. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  311. </div>
  312. <div>
  313. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  314. </div>
  315. <div>
  316. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  317. </div>
  318. <div>
  319. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  320. </div>
  321. <div>
  322. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  323. </div>
  324. <div>
  325. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  326. </div>
  327. <div>
  328. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  329. </div>
  330. <div>
  331. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  332. </div>
  333. <div>
  334. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  335. </div>
  336. <div>
  337. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  338. </div>
  339. <div>
  340. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  341. </div>
  342. <div>
  343. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  344. </div>
  345. <div>
  346. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  347. </div>
  348. <div>
  349. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  350. </div>
  351. <div>
  352. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  353. </div>
  354. <div>
  355. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  356. </div>
  357. <div>
  358. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  359. </div>
  360. <div>
  361. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  362. </div>
  363. <div>
  364. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  365. </div>
  366. <div>
  367. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  368. </div>
  369. <div>
  370. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ForceValidatePosDim">View.ForceValidatePosDim</a>
  371. </div>
  372. <div>
  373. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextFormatter">View.TextFormatter</a>
  374. </div>
  375. <div>
  376. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  377. </div>
  378. <div>
  379. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  380. </div>
  381. <div>
  382. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  383. </div>
  384. <div>
  385. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  386. </div>
  387. <div>
  388. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  389. </div>
  390. <div>
  391. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  392. </div>
  393. <div>
  394. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  395. </div>
  396. <div>
  397. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PreserveTrailingSpaces">View.PreserveTrailingSpaces</a>
  398. </div>
  399. <div>
  400. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  401. </div>
  402. <div>
  403. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  404. </div>
  405. <div>
  406. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  407. </div>
  408. <div>
  409. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  410. </div>
  411. <div>
  412. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsAdded">View.IsAdded</a>
  413. </div>
  414. <div>
  415. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  416. </div>
  417. <div>
  418. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  419. </div>
  420. <div>
  421. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  422. </div>
  423. <div>
  424. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  425. </div>
  426. <div>
  427. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  428. </div>
  429. <div>
  430. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  431. </div>
  432. <div>
  433. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  434. </div>
  435. <div>
  436. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  437. </div>
  438. <div>
  439. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  440. </div>
  441. <div>
  442. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  443. </div>
  444. <div>
  445. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  446. </div>
  447. <div>
  448. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  449. </div>
  450. <div>
  451. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  452. </div>
  453. <div>
  454. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  455. </div>
  456. <div>
  457. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  458. </div>
  459. <div>
  460. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  461. </div>
  462. <div>
  463. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  464. </div>
  465. <div>
  466. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  467. </div>
  468. <div>
  469. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  470. </div>
  471. <div>
  472. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  473. </div>
  474. <div>
  475. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  476. </div>
  477. <div>
  478. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  479. </div>
  480. <div>
  481. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  482. </div>
  483. </div>
  484. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  485. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  486. <h5 id="Terminal_Gui_Toplevel_syntax">Syntax</h5>
  487. <div class="codewrapper">
  488. <pre><code class="lang-csharp hljs">public class Toplevel : View</code></pre>
  489. </div>
  490. <h5 id="Terminal_Gui_Toplevel_remarks"><strong>Remarks</strong></h5>
  491. <div class="markdown level0 remarks">
  492. <p>
  493. Toplevels can be modally executing views, started by calling <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</a>.
  494. They return control to the caller when <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_RequestStop_Terminal_Gui_Toplevel_">RequestStop(Toplevel)</a> has
  495. been called (which sets the <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_Running">Running</a> property to false).
  496. </p>
  497. <p>
  498. A Toplevel is created when an application initializes Terminal.Gui by calling <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Init_Terminal_Gui_ConsoleDriver_Terminal_Gui_IMainLoopDriver_">Init(ConsoleDriver, IMainLoopDriver)</a>.
  499. The application Toplevel can be accessed via <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Top">Top</a>. Additional Toplevels can be created
  500. and run (e.g. <a class="xref" href="Terminal.Gui.Dialog.html">Dialog</a>s. To run a Toplevel, create the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> and
  501. call <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</a>.
  502. </p>
  503. <p>
  504. Toplevels can also opt-in to more sophisticated initialization
  505. by implementing <span class="xref">System.ComponentModel.ISupportInitialize</span>. When they do
  506. so, the <span class="xref">System.ComponentModel.ISupportInitialize.BeginInit</span> and
  507. <span class="xref">System.ComponentModel.ISupportInitialize.EndInit</span> methods will be called
  508. before running the view.
  509. If first-run-only initialization is preferred, the <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  510. can be implemented too, in which case the <span class="xref">System.ComponentModel.ISupportInitialize</span>
  511. methods will only be called if <span class="xref">System.ComponentModel.ISupportInitializeNotification.IsInitialized</span>
  512. is <span class="xref">false</span>. This allows proper <a class="xref" href="Terminal.Gui.View.html">View</a> inheritance hierarchies
  513. to override base class layout code optimally by doing so only on first run,
  514. instead of on every run.
  515. </p>
  516. </div>
  517. <h3 id="constructors">Constructors
  518. </h3>
  519. <a id="Terminal_Gui_Toplevel__ctor_" data-uid="Terminal.Gui.Toplevel.#ctor*"></a>
  520. <h4 id="Terminal_Gui_Toplevel__ctor" data-uid="Terminal.Gui.Toplevel.#ctor">Toplevel()</h4>
  521. <div class="markdown level1 summary">
  522. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> class with <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout, defaulting to full screen.
  523. </div>
  524. <div class="markdown level1 conceptual"></div>
  525. <h5 class="decalaration">Declaration</h5>
  526. <div class="codewrapper">
  527. <pre><code class="lang-csharp hljs">public Toplevel()</code></pre>
  528. </div>
  529. <a id="Terminal_Gui_Toplevel__ctor_" data-uid="Terminal.Gui.Toplevel.#ctor*"></a>
  530. <h4 id="Terminal_Gui_Toplevel__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Toplevel.#ctor(Terminal.Gui.Rect)">Toplevel(Rect)</h4>
  531. <div class="markdown level1 summary">
  532. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> class with the specified absolute layout.
  533. </div>
  534. <div class="markdown level1 conceptual"></div>
  535. <h5 class="decalaration">Declaration</h5>
  536. <div class="codewrapper">
  537. <pre><code class="lang-csharp hljs">public Toplevel(Rect frame)</code></pre>
  538. </div>
  539. <h5 class="parameters">Parameters</h5>
  540. <table class="table table-bordered table-striped table-condensed">
  541. <thead>
  542. <tr>
  543. <th>Type</th>
  544. <th>Name</th>
  545. <th>Description</th>
  546. </tr>
  547. </thead>
  548. <tbody>
  549. <tr>
  550. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  551. <td><span class="parametername">frame</span></td>
  552. <td>A superview-relative rectangle specifying the location and size for the new Toplevel</td>
  553. </tr>
  554. </tbody>
  555. </table>
  556. <h3 id="properties">Properties
  557. </h3>
  558. <a id="Terminal_Gui_Toplevel_CanFocus_" data-uid="Terminal.Gui.Toplevel.CanFocus*"></a>
  559. <h4 id="Terminal_Gui_Toplevel_CanFocus" data-uid="Terminal.Gui.Toplevel.CanFocus">CanFocus</h4>
  560. <div class="markdown level1 summary">
  561. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> can focus.
  562. </div>
  563. <div class="markdown level1 conceptual"></div>
  564. <h5 class="decalaration">Declaration</h5>
  565. <div class="codewrapper">
  566. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; }</code></pre>
  567. </div>
  568. <h5 class="propertyValue">Property Value</h5>
  569. <table class="table table-bordered table-striped table-condensed">
  570. <thead>
  571. <tr>
  572. <th>Type</th>
  573. <th>Description</th>
  574. </tr>
  575. </thead>
  576. <tbody>
  577. <tr>
  578. <td><span class="xref">System.Boolean</span></td>
  579. <td><code>true</code> if can focus; otherwise, <code>false</code>.</td>
  580. </tr>
  581. </tbody>
  582. </table>
  583. <h5 class="overrides">Overrides</h5>
  584. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a></div>
  585. <a id="Terminal_Gui_Toplevel_IsMdiChild_" data-uid="Terminal.Gui.Toplevel.IsMdiChild*"></a>
  586. <h4 id="Terminal_Gui_Toplevel_IsMdiChild" data-uid="Terminal.Gui.Toplevel.IsMdiChild">IsMdiChild</h4>
  587. <div class="markdown level1 summary">
  588. Gets or sets if this Toplevel is a Mdi child.
  589. </div>
  590. <div class="markdown level1 conceptual"></div>
  591. <h5 class="decalaration">Declaration</h5>
  592. <div class="codewrapper">
  593. <pre><code class="lang-csharp hljs">public bool IsMdiChild { get; }</code></pre>
  594. </div>
  595. <h5 class="propertyValue">Property Value</h5>
  596. <table class="table table-bordered table-striped table-condensed">
  597. <thead>
  598. <tr>
  599. <th>Type</th>
  600. <th>Description</th>
  601. </tr>
  602. </thead>
  603. <tbody>
  604. <tr>
  605. <td><span class="xref">System.Boolean</span></td>
  606. <td></td>
  607. </tr>
  608. </tbody>
  609. </table>
  610. <a id="Terminal_Gui_Toplevel_IsMdiContainer_" data-uid="Terminal.Gui.Toplevel.IsMdiContainer*"></a>
  611. <h4 id="Terminal_Gui_Toplevel_IsMdiContainer" data-uid="Terminal.Gui.Toplevel.IsMdiContainer">IsMdiContainer</h4>
  612. <div class="markdown level1 summary">
  613. Gets or sets if this Toplevel is a Mdi container.
  614. </div>
  615. <div class="markdown level1 conceptual"></div>
  616. <h5 class="decalaration">Declaration</h5>
  617. <div class="codewrapper">
  618. <pre><code class="lang-csharp hljs">public bool IsMdiContainer { get; set; }</code></pre>
  619. </div>
  620. <h5 class="propertyValue">Property Value</h5>
  621. <table class="table table-bordered table-striped table-condensed">
  622. <thead>
  623. <tr>
  624. <th>Type</th>
  625. <th>Description</th>
  626. </tr>
  627. </thead>
  628. <tbody>
  629. <tr>
  630. <td><span class="xref">System.Boolean</span></td>
  631. <td></td>
  632. </tr>
  633. </tbody>
  634. </table>
  635. <a id="Terminal_Gui_Toplevel_MenuBar_" data-uid="Terminal.Gui.Toplevel.MenuBar*"></a>
  636. <h4 id="Terminal_Gui_Toplevel_MenuBar" data-uid="Terminal.Gui.Toplevel.MenuBar">MenuBar</h4>
  637. <div class="markdown level1 summary">
  638. Gets or sets the menu for this Toplevel
  639. </div>
  640. <div class="markdown level1 conceptual"></div>
  641. <h5 class="decalaration">Declaration</h5>
  642. <div class="codewrapper">
  643. <pre><code class="lang-csharp hljs">public virtual MenuBar MenuBar { get; set; }</code></pre>
  644. </div>
  645. <h5 class="propertyValue">Property Value</h5>
  646. <table class="table table-bordered table-striped table-condensed">
  647. <thead>
  648. <tr>
  649. <th>Type</th>
  650. <th>Description</th>
  651. </tr>
  652. </thead>
  653. <tbody>
  654. <tr>
  655. <td><a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a></td>
  656. <td></td>
  657. </tr>
  658. </tbody>
  659. </table>
  660. <a id="Terminal_Gui_Toplevel_Modal_" data-uid="Terminal.Gui.Toplevel.Modal*"></a>
  661. <h4 id="Terminal_Gui_Toplevel_Modal" data-uid="Terminal.Gui.Toplevel.Modal">Modal</h4>
  662. <div class="markdown level1 summary">
  663. Determines whether the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> is modal or not.
  664. Causes <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_ProcessKey_Terminal_Gui_KeyEvent_">ProcessKey(KeyEvent)</a> to propagate keys upwards
  665. by default unless set to <span class="xref">true</span>.
  666. </div>
  667. <div class="markdown level1 conceptual"></div>
  668. <h5 class="decalaration">Declaration</h5>
  669. <div class="codewrapper">
  670. <pre><code class="lang-csharp hljs">public bool Modal { get; set; }</code></pre>
  671. </div>
  672. <h5 class="propertyValue">Property Value</h5>
  673. <table class="table table-bordered table-striped table-condensed">
  674. <thead>
  675. <tr>
  676. <th>Type</th>
  677. <th>Description</th>
  678. </tr>
  679. </thead>
  680. <tbody>
  681. <tr>
  682. <td><span class="xref">System.Boolean</span></td>
  683. <td></td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. <a id="Terminal_Gui_Toplevel_Running_" data-uid="Terminal.Gui.Toplevel.Running*"></a>
  688. <h4 id="Terminal_Gui_Toplevel_Running" data-uid="Terminal.Gui.Toplevel.Running">Running</h4>
  689. <div class="markdown level1 summary">
  690. Gets or sets whether the <a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a> for this <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> is running or not.
  691. </div>
  692. <div class="markdown level1 conceptual"></div>
  693. <h5 class="decalaration">Declaration</h5>
  694. <div class="codewrapper">
  695. <pre><code class="lang-csharp hljs">public bool Running { get; set; }</code></pre>
  696. </div>
  697. <h5 class="propertyValue">Property Value</h5>
  698. <table class="table table-bordered table-striped table-condensed">
  699. <thead>
  700. <tr>
  701. <th>Type</th>
  702. <th>Description</th>
  703. </tr>
  704. </thead>
  705. <tbody>
  706. <tr>
  707. <td><span class="xref">System.Boolean</span></td>
  708. <td></td>
  709. </tr>
  710. </tbody>
  711. </table>
  712. <h5 id="Terminal_Gui_Toplevel_Running_remarks">Remarks</h5>
  713. <div class="markdown level1 remarks">
  714. Setting this property directly is discouraged. Use <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_RequestStop_Terminal_Gui_Toplevel_">RequestStop(Toplevel)</a> instead.
  715. </div>
  716. <a id="Terminal_Gui_Toplevel_StatusBar_" data-uid="Terminal.Gui.Toplevel.StatusBar*"></a>
  717. <h4 id="Terminal_Gui_Toplevel_StatusBar" data-uid="Terminal.Gui.Toplevel.StatusBar">StatusBar</h4>
  718. <div class="markdown level1 summary">
  719. Gets or sets the status bar for this Toplevel
  720. </div>
  721. <div class="markdown level1 conceptual"></div>
  722. <h5 class="decalaration">Declaration</h5>
  723. <div class="codewrapper">
  724. <pre><code class="lang-csharp hljs">public virtual StatusBar StatusBar { get; set; }</code></pre>
  725. </div>
  726. <h5 class="propertyValue">Property Value</h5>
  727. <table class="table table-bordered table-striped table-condensed">
  728. <thead>
  729. <tr>
  730. <th>Type</th>
  731. <th>Description</th>
  732. </tr>
  733. </thead>
  734. <tbody>
  735. <tr>
  736. <td><a class="xref" href="Terminal.Gui.StatusBar.html">StatusBar</a></td>
  737. <td></td>
  738. </tr>
  739. </tbody>
  740. </table>
  741. <h3 id="methods">Methods
  742. </h3>
  743. <a id="Terminal_Gui_Toplevel_Add_" data-uid="Terminal.Gui.Toplevel.Add*"></a>
  744. <h4 id="Terminal_Gui_Toplevel_Add_Terminal_Gui_View_" data-uid="Terminal.Gui.Toplevel.Add(Terminal.Gui.View)">Add(View)</h4>
  745. <div class="markdown level1 summary">
  746. Adds a subview (child) to this view.
  747. </div>
  748. <div class="markdown level1 conceptual"></div>
  749. <h5 class="decalaration">Declaration</h5>
  750. <div class="codewrapper">
  751. <pre><code class="lang-csharp hljs">public override void Add(View view)</code></pre>
  752. </div>
  753. <h5 class="parameters">Parameters</h5>
  754. <table class="table table-bordered table-striped table-condensed">
  755. <thead>
  756. <tr>
  757. <th>Type</th>
  758. <th>Name</th>
  759. <th>Description</th>
  760. </tr>
  761. </thead>
  762. <tbody>
  763. <tr>
  764. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  765. <td><span class="parametername">view</span></td>
  766. <td></td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <h5 class="overrides">Overrides</h5>
  771. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a></div>
  772. <h5 id="Terminal_Gui_Toplevel_Add_Terminal_Gui_View__remarks">Remarks</h5>
  773. <div class="markdown level1 remarks">
  774. 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>
  775. </div>
  776. <a id="Terminal_Gui_Toplevel_Create_" data-uid="Terminal.Gui.Toplevel.Create*"></a>
  777. <h4 id="Terminal_Gui_Toplevel_Create" data-uid="Terminal.Gui.Toplevel.Create">Create()</h4>
  778. <div class="markdown level1 summary">
  779. Convenience factory method that creates a new Toplevel with the current terminal dimensions.
  780. </div>
  781. <div class="markdown level1 conceptual"></div>
  782. <h5 class="decalaration">Declaration</h5>
  783. <div class="codewrapper">
  784. <pre><code class="lang-csharp hljs">public static Toplevel Create()</code></pre>
  785. </div>
  786. <h5 class="returns">Returns</h5>
  787. <table class="table table-bordered table-striped table-condensed">
  788. <thead>
  789. <tr>
  790. <th>Type</th>
  791. <th>Description</th>
  792. </tr>
  793. </thead>
  794. <tbody>
  795. <tr>
  796. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  797. <td>The create.</td>
  798. </tr>
  799. </tbody>
  800. </table>
  801. <a id="Terminal_Gui_Toplevel_GetTopMdiChild_" data-uid="Terminal.Gui.Toplevel.GetTopMdiChild*"></a>
  802. <h4 id="Terminal_Gui_Toplevel_GetTopMdiChild_System_Type_System_String___" data-uid="Terminal.Gui.Toplevel.GetTopMdiChild(System.Type,System.String[])">GetTopMdiChild(Type, String[])</h4>
  803. <div class="markdown level1 summary">
  804. Gets the current visible toplevel Mdi child that match the arguments pattern.
  805. </div>
  806. <div class="markdown level1 conceptual"></div>
  807. <h5 class="decalaration">Declaration</h5>
  808. <div class="codewrapper">
  809. <pre><code class="lang-csharp hljs">public View GetTopMdiChild(Type type = null, string[] exclude = null)</code></pre>
  810. </div>
  811. <h5 class="parameters">Parameters</h5>
  812. <table class="table table-bordered table-striped table-condensed">
  813. <thead>
  814. <tr>
  815. <th>Type</th>
  816. <th>Name</th>
  817. <th>Description</th>
  818. </tr>
  819. </thead>
  820. <tbody>
  821. <tr>
  822. <td><span class="xref">System.Type</span></td>
  823. <td><span class="parametername">type</span></td>
  824. <td>The type.</td>
  825. </tr>
  826. <tr>
  827. <td><span class="xref">System.String</span>[]</td>
  828. <td><span class="parametername">exclude</span></td>
  829. <td>The strings to exclude.</td>
  830. </tr>
  831. </tbody>
  832. </table>
  833. <h5 class="returns">Returns</h5>
  834. <table class="table table-bordered table-striped table-condensed">
  835. <thead>
  836. <tr>
  837. <th>Type</th>
  838. <th>Description</th>
  839. </tr>
  840. </thead>
  841. <tbody>
  842. <tr>
  843. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  844. <td>The matched view.</td>
  845. </tr>
  846. </tbody>
  847. </table>
  848. <a id="Terminal_Gui_Toplevel_MouseEvent_" data-uid="Terminal.Gui.Toplevel.MouseEvent*"></a>
  849. <h4 id="Terminal_Gui_Toplevel_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Toplevel.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  850. <div class="markdown level1 summary">
  851. Method invoked when a mouse event is generated
  852. </div>
  853. <div class="markdown level1 conceptual"></div>
  854. <h5 class="decalaration">Declaration</h5>
  855. <div class="codewrapper">
  856. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent mouseEvent)</code></pre>
  857. </div>
  858. <h5 class="parameters">Parameters</h5>
  859. <table class="table table-bordered table-striped table-condensed">
  860. <thead>
  861. <tr>
  862. <th>Type</th>
  863. <th>Name</th>
  864. <th>Description</th>
  865. </tr>
  866. </thead>
  867. <tbody>
  868. <tr>
  869. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  870. <td><span class="parametername">mouseEvent</span></td>
  871. <td>Contains the details about the mouse event.</td>
  872. </tr>
  873. </tbody>
  874. </table>
  875. <h5 class="returns">Returns</h5>
  876. <table class="table table-bordered table-striped table-condensed">
  877. <thead>
  878. <tr>
  879. <th>Type</th>
  880. <th>Description</th>
  881. </tr>
  882. </thead>
  883. <tbody>
  884. <tr>
  885. <td><span class="xref">System.Boolean</span></td>
  886. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  887. </tr>
  888. </tbody>
  889. </table>
  890. <h5 class="overrides">Overrides</h5>
  891. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  892. <a id="Terminal_Gui_Toplevel_MoveNext_" data-uid="Terminal.Gui.Toplevel.MoveNext*"></a>
  893. <h4 id="Terminal_Gui_Toplevel_MoveNext" data-uid="Terminal.Gui.Toplevel.MoveNext">MoveNext()</h4>
  894. <div class="markdown level1 summary">
  895. Move to the next Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  896. </div>
  897. <div class="markdown level1 conceptual"></div>
  898. <h5 class="decalaration">Declaration</h5>
  899. <div class="codewrapper">
  900. <pre><code class="lang-csharp hljs">public virtual void MoveNext()</code></pre>
  901. </div>
  902. <a id="Terminal_Gui_Toplevel_MovePrevious_" data-uid="Terminal.Gui.Toplevel.MovePrevious*"></a>
  903. <h4 id="Terminal_Gui_Toplevel_MovePrevious" data-uid="Terminal.Gui.Toplevel.MovePrevious">MovePrevious()</h4>
  904. <div class="markdown level1 summary">
  905. Move to the previous Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  906. </div>
  907. <div class="markdown level1 conceptual"></div>
  908. <h5 class="decalaration">Declaration</h5>
  909. <div class="codewrapper">
  910. <pre><code class="lang-csharp hljs">public virtual void MovePrevious()</code></pre>
  911. </div>
  912. <a id="Terminal_Gui_Toplevel_OnAlternateBackwardKeyChanged_" data-uid="Terminal.Gui.Toplevel.OnAlternateBackwardKeyChanged*"></a>
  913. <h4 id="Terminal_Gui_Toplevel_OnAlternateBackwardKeyChanged_Terminal_Gui_Key_" data-uid="Terminal.Gui.Toplevel.OnAlternateBackwardKeyChanged(Terminal.Gui.Key)">OnAlternateBackwardKeyChanged(Key)</h4>
  914. <div class="markdown level1 summary">
  915. Virtual method to invoke the <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_AlternateBackwardKeyChanged">AlternateBackwardKeyChanged</a> event.
  916. </div>
  917. <div class="markdown level1 conceptual"></div>
  918. <h5 class="decalaration">Declaration</h5>
  919. <div class="codewrapper">
  920. <pre><code class="lang-csharp hljs">public virtual void OnAlternateBackwardKeyChanged(Key oldKey)</code></pre>
  921. </div>
  922. <h5 class="parameters">Parameters</h5>
  923. <table class="table table-bordered table-striped table-condensed">
  924. <thead>
  925. <tr>
  926. <th>Type</th>
  927. <th>Name</th>
  928. <th>Description</th>
  929. </tr>
  930. </thead>
  931. <tbody>
  932. <tr>
  933. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  934. <td><span class="parametername">oldKey</span></td>
  935. <td></td>
  936. </tr>
  937. </tbody>
  938. </table>
  939. <a id="Terminal_Gui_Toplevel_OnAlternateForwardKeyChanged_" data-uid="Terminal.Gui.Toplevel.OnAlternateForwardKeyChanged*"></a>
  940. <h4 id="Terminal_Gui_Toplevel_OnAlternateForwardKeyChanged_Terminal_Gui_Key_" data-uid="Terminal.Gui.Toplevel.OnAlternateForwardKeyChanged(Terminal.Gui.Key)">OnAlternateForwardKeyChanged(Key)</h4>
  941. <div class="markdown level1 summary">
  942. Virtual method to invoke the <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_AlternateForwardKeyChanged">AlternateForwardKeyChanged</a> event.
  943. </div>
  944. <div class="markdown level1 conceptual"></div>
  945. <h5 class="decalaration">Declaration</h5>
  946. <div class="codewrapper">
  947. <pre><code class="lang-csharp hljs">public virtual void OnAlternateForwardKeyChanged(Key oldKey)</code></pre>
  948. </div>
  949. <h5 class="parameters">Parameters</h5>
  950. <table class="table table-bordered table-striped table-condensed">
  951. <thead>
  952. <tr>
  953. <th>Type</th>
  954. <th>Name</th>
  955. <th>Description</th>
  956. </tr>
  957. </thead>
  958. <tbody>
  959. <tr>
  960. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  961. <td><span class="parametername">oldKey</span></td>
  962. <td></td>
  963. </tr>
  964. </tbody>
  965. </table>
  966. <a id="Terminal_Gui_Toplevel_OnKeyDown_" data-uid="Terminal.Gui.Toplevel.OnKeyDown*"></a>
  967. <h4 id="Terminal_Gui_Toplevel_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  968. <div class="markdown level1 summary">
  969. Method invoked when a key is pressed.
  970. </div>
  971. <div class="markdown level1 conceptual"></div>
  972. <h5 class="decalaration">Declaration</h5>
  973. <div class="codewrapper">
  974. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  975. </div>
  976. <h5 class="parameters">Parameters</h5>
  977. <table class="table table-bordered table-striped table-condensed">
  978. <thead>
  979. <tr>
  980. <th>Type</th>
  981. <th>Name</th>
  982. <th>Description</th>
  983. </tr>
  984. </thead>
  985. <tbody>
  986. <tr>
  987. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  988. <td><span class="parametername">keyEvent</span></td>
  989. <td>Contains the details about the key that produced the event.</td>
  990. </tr>
  991. </tbody>
  992. </table>
  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><span class="xref">System.Boolean</span></td>
  1004. <td>true if the event was handled</td>
  1005. </tr>
  1006. </tbody>
  1007. </table>
  1008. <h5 class="overrides">Overrides</h5>
  1009. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a></div>
  1010. <a id="Terminal_Gui_Toplevel_OnKeyUp_" data-uid="Terminal.Gui.Toplevel.OnKeyUp*"></a>
  1011. <h4 id="Terminal_Gui_Toplevel_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  1012. <div class="markdown level1 summary">
  1013. Method invoked when a key is released.
  1014. </div>
  1015. <div class="markdown level1 conceptual"></div>
  1016. <h5 class="decalaration">Declaration</h5>
  1017. <div class="codewrapper">
  1018. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  1019. </div>
  1020. <h5 class="parameters">Parameters</h5>
  1021. <table class="table table-bordered table-striped table-condensed">
  1022. <thead>
  1023. <tr>
  1024. <th>Type</th>
  1025. <th>Name</th>
  1026. <th>Description</th>
  1027. </tr>
  1028. </thead>
  1029. <tbody>
  1030. <tr>
  1031. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1032. <td><span class="parametername">keyEvent</span></td>
  1033. <td>Contains the details about the key that produced the event.</td>
  1034. </tr>
  1035. </tbody>
  1036. </table>
  1037. <h5 class="returns">Returns</h5>
  1038. <table class="table table-bordered table-striped table-condensed">
  1039. <thead>
  1040. <tr>
  1041. <th>Type</th>
  1042. <th>Description</th>
  1043. </tr>
  1044. </thead>
  1045. <tbody>
  1046. <tr>
  1047. <td><span class="xref">System.Boolean</span></td>
  1048. <td>true if the event was handled</td>
  1049. </tr>
  1050. </tbody>
  1051. </table>
  1052. <h5 class="overrides">Overrides</h5>
  1053. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a></div>
  1054. <a id="Terminal_Gui_Toplevel_OnLoaded_" data-uid="Terminal.Gui.Toplevel.OnLoaded*"></a>
  1055. <h4 id="Terminal_Gui_Toplevel_OnLoaded" data-uid="Terminal.Gui.Toplevel.OnLoaded">OnLoaded()</h4>
  1056. <div class="markdown level1 summary">
  1057. Called from <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> before the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> is redraws for the first time.
  1058. </div>
  1059. <div class="markdown level1 conceptual"></div>
  1060. <h5 class="decalaration">Declaration</h5>
  1061. <div class="codewrapper">
  1062. <pre><code class="lang-csharp hljs">public virtual void OnLoaded()</code></pre>
  1063. </div>
  1064. <a id="Terminal_Gui_Toplevel_OnQuitKeyChanged_" data-uid="Terminal.Gui.Toplevel.OnQuitKeyChanged*"></a>
  1065. <h4 id="Terminal_Gui_Toplevel_OnQuitKeyChanged_Terminal_Gui_Key_" data-uid="Terminal.Gui.Toplevel.OnQuitKeyChanged(Terminal.Gui.Key)">OnQuitKeyChanged(Key)</h4>
  1066. <div class="markdown level1 summary">
  1067. Virtual method to invoke the <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_QuitKeyChanged">QuitKeyChanged</a> event.
  1068. </div>
  1069. <div class="markdown level1 conceptual"></div>
  1070. <h5 class="decalaration">Declaration</h5>
  1071. <div class="codewrapper">
  1072. <pre><code class="lang-csharp hljs">public virtual void OnQuitKeyChanged(Key oldKey)</code></pre>
  1073. </div>
  1074. <h5 class="parameters">Parameters</h5>
  1075. <table class="table table-bordered table-striped table-condensed">
  1076. <thead>
  1077. <tr>
  1078. <th>Type</th>
  1079. <th>Name</th>
  1080. <th>Description</th>
  1081. </tr>
  1082. </thead>
  1083. <tbody>
  1084. <tr>
  1085. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  1086. <td><span class="parametername">oldKey</span></td>
  1087. <td></td>
  1088. </tr>
  1089. </tbody>
  1090. </table>
  1091. <a id="Terminal_Gui_Toplevel_PositionCursor_" data-uid="Terminal.Gui.Toplevel.PositionCursor*"></a>
  1092. <h4 id="Terminal_Gui_Toplevel_PositionCursor" data-uid="Terminal.Gui.Toplevel.PositionCursor">PositionCursor()</h4>
  1093. <div class="markdown level1 summary">
  1094. Positions the cursor in the right position based on the currently focused view in the chain.
  1095. </div>
  1096. <div class="markdown level1 conceptual"></div>
  1097. <h5 class="decalaration">Declaration</h5>
  1098. <div class="codewrapper">
  1099. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1100. </div>
  1101. <h5 class="overrides">Overrides</h5>
  1102. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1103. <a id="Terminal_Gui_Toplevel_PositionToplevel_" data-uid="Terminal.Gui.Toplevel.PositionToplevel*"></a>
  1104. <h4 id="Terminal_Gui_Toplevel_PositionToplevel_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.PositionToplevel(Terminal.Gui.Toplevel)">PositionToplevel(Toplevel)</h4>
  1105. <div class="markdown level1 summary">
  1106. Virtual method which allow to be overridden to implement specific positions for inherited <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1107. </div>
  1108. <div class="markdown level1 conceptual"></div>
  1109. <h5 class="decalaration">Declaration</h5>
  1110. <div class="codewrapper">
  1111. <pre><code class="lang-csharp hljs">public virtual void PositionToplevel(Toplevel top)</code></pre>
  1112. </div>
  1113. <h5 class="parameters">Parameters</h5>
  1114. <table class="table table-bordered table-striped table-condensed">
  1115. <thead>
  1116. <tr>
  1117. <th>Type</th>
  1118. <th>Name</th>
  1119. <th>Description</th>
  1120. </tr>
  1121. </thead>
  1122. <tbody>
  1123. <tr>
  1124. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1125. <td><span class="parametername">top</span></td>
  1126. <td>The toplevel.</td>
  1127. </tr>
  1128. </tbody>
  1129. </table>
  1130. <a id="Terminal_Gui_Toplevel_ProcessColdKey_" data-uid="Terminal.Gui.Toplevel.ProcessColdKey*"></a>
  1131. <h4 id="Terminal_Gui_Toplevel_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  1132. <div class="markdown level1 summary">
  1133. This method can be overwritten by views that
  1134. want to provide accelerator functionality
  1135. (Alt-key for example), but without
  1136. interefering with normal ProcessKey behavior.
  1137. </div>
  1138. <div class="markdown level1 conceptual"></div>
  1139. <h5 class="decalaration">Declaration</h5>
  1140. <div class="codewrapper">
  1141. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey(KeyEvent keyEvent)</code></pre>
  1142. </div>
  1143. <h5 class="parameters">Parameters</h5>
  1144. <table class="table table-bordered table-striped table-condensed">
  1145. <thead>
  1146. <tr>
  1147. <th>Type</th>
  1148. <th>Name</th>
  1149. <th>Description</th>
  1150. </tr>
  1151. </thead>
  1152. <tbody>
  1153. <tr>
  1154. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1155. <td><span class="parametername">keyEvent</span></td>
  1156. <td>Contains the details about the key that produced the event.</td>
  1157. </tr>
  1158. </tbody>
  1159. </table>
  1160. <h5 class="returns">Returns</h5>
  1161. <table class="table table-bordered table-striped table-condensed">
  1162. <thead>
  1163. <tr>
  1164. <th>Type</th>
  1165. <th>Description</th>
  1166. </tr>
  1167. </thead>
  1168. <tbody>
  1169. <tr>
  1170. <td><span class="xref">System.Boolean</span></td>
  1171. <td></td>
  1172. </tr>
  1173. </tbody>
  1174. </table>
  1175. <h5 class="overrides">Overrides</h5>
  1176. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a></div>
  1177. <h5 id="Terminal_Gui_Toplevel_ProcessColdKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1178. <div class="markdown level1 remarks">
  1179. <p>
  1180. After keys are sent to the subviews on the
  1181. current view, all the view are
  1182. processed and the key is passed to the views
  1183. to allow some of them to process the keystroke
  1184. as a cold-key. </p>
  1185. <p>
  1186. This functionality is used, for example, by
  1187. default buttons to act on the enter key.
  1188. Processing this as a hot-key would prevent
  1189. non-default buttons from consuming the enter
  1190. keypress when they have the focus.
  1191. </p>
  1192. </div>
  1193. <a id="Terminal_Gui_Toplevel_ProcessKey_" data-uid="Terminal.Gui.Toplevel.ProcessKey*"></a>
  1194. <h4 id="Terminal_Gui_Toplevel_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1195. <div class="markdown level1 summary">
  1196. If the view is focused, gives the view a
  1197. chance to process the keystroke.
  1198. </div>
  1199. <div class="markdown level1 conceptual"></div>
  1200. <h5 class="decalaration">Declaration</h5>
  1201. <div class="codewrapper">
  1202. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1203. </div>
  1204. <h5 class="parameters">Parameters</h5>
  1205. <table class="table table-bordered table-striped table-condensed">
  1206. <thead>
  1207. <tr>
  1208. <th>Type</th>
  1209. <th>Name</th>
  1210. <th>Description</th>
  1211. </tr>
  1212. </thead>
  1213. <tbody>
  1214. <tr>
  1215. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1216. <td><span class="parametername">keyEvent</span></td>
  1217. <td>Contains the details about the key that produced the event.</td>
  1218. </tr>
  1219. </tbody>
  1220. </table>
  1221. <h5 class="returns">Returns</h5>
  1222. <table class="table table-bordered table-striped table-condensed">
  1223. <thead>
  1224. <tr>
  1225. <th>Type</th>
  1226. <th>Description</th>
  1227. </tr>
  1228. </thead>
  1229. <tbody>
  1230. <tr>
  1231. <td><span class="xref">System.Boolean</span></td>
  1232. <td></td>
  1233. </tr>
  1234. </tbody>
  1235. </table>
  1236. <h5 class="overrides">Overrides</h5>
  1237. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1238. <h5 id="Terminal_Gui_Toplevel_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1239. <div class="markdown level1 remarks">
  1240. <p>
  1241. Views can override this method if they are
  1242. interested in processing the given keystroke.
  1243. If they consume the keystroke, they must
  1244. return true to stop the keystroke from being
  1245. processed by other widgets or consumed by the
  1246. widget engine. If they return false, the
  1247. keystroke will be passed using the ProcessColdKey
  1248. method to other views to process.
  1249. </p>
  1250. <p>
  1251. The View implementation does nothing but return false,
  1252. so it is not necessary to call base.ProcessKey if you
  1253. derive directly from View, but you should if you derive
  1254. other View subclasses.
  1255. </p>
  1256. </div>
  1257. <a id="Terminal_Gui_Toplevel_Redraw_" data-uid="Terminal.Gui.Toplevel.Redraw*"></a>
  1258. <h4 id="Terminal_Gui_Toplevel_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Toplevel.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1259. <div class="markdown level1 summary">
  1260. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  1261. </div>
  1262. <div class="markdown level1 conceptual"></div>
  1263. <h5 class="decalaration">Declaration</h5>
  1264. <div class="codewrapper">
  1265. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1266. </div>
  1267. <h5 class="parameters">Parameters</h5>
  1268. <table class="table table-bordered table-striped table-condensed">
  1269. <thead>
  1270. <tr>
  1271. <th>Type</th>
  1272. <th>Name</th>
  1273. <th>Description</th>
  1274. </tr>
  1275. </thead>
  1276. <tbody>
  1277. <tr>
  1278. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1279. <td><span class="parametername">bounds</span></td>
  1280. <td>The bounds (view-relative region) to redraw.</td>
  1281. </tr>
  1282. </tbody>
  1283. </table>
  1284. <h5 class="overrides">Overrides</h5>
  1285. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1286. <h5 id="Terminal_Gui_Toplevel_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1287. <div class="markdown level1 remarks">
  1288. <p>
  1289. 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).
  1290. </p>
  1291. <p>
  1292. Views should set the color that they want to use on entry, as otherwise this will inherit
  1293. the last color that was set globally on the driver.
  1294. </p>
  1295. <p>
  1296. 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
  1297. larger than the <code>region</code> parameter.
  1298. </p>
  1299. </div>
  1300. <a id="Terminal_Gui_Toplevel_Remove_" data-uid="Terminal.Gui.Toplevel.Remove*"></a>
  1301. <h4 id="Terminal_Gui_Toplevel_Remove_Terminal_Gui_View_" data-uid="Terminal.Gui.Toplevel.Remove(Terminal.Gui.View)">Remove(View)</h4>
  1302. <div class="markdown level1 summary">
  1303. 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.
  1304. </div>
  1305. <div class="markdown level1 conceptual"></div>
  1306. <h5 class="decalaration">Declaration</h5>
  1307. <div class="codewrapper">
  1308. <pre><code class="lang-csharp hljs">public override void Remove(View view)</code></pre>
  1309. </div>
  1310. <h5 class="parameters">Parameters</h5>
  1311. <table class="table table-bordered table-striped table-condensed">
  1312. <thead>
  1313. <tr>
  1314. <th>Type</th>
  1315. <th>Name</th>
  1316. <th>Description</th>
  1317. </tr>
  1318. </thead>
  1319. <tbody>
  1320. <tr>
  1321. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1322. <td><span class="parametername">view</span></td>
  1323. <td></td>
  1324. </tr>
  1325. </tbody>
  1326. </table>
  1327. <h5 class="overrides">Overrides</h5>
  1328. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a></div>
  1329. <h5 id="Terminal_Gui_Toplevel_Remove_Terminal_Gui_View__remarks">Remarks</h5>
  1330. <div class="markdown level1 remarks">
  1331. </div>
  1332. <a id="Terminal_Gui_Toplevel_RemoveAll_" data-uid="Terminal.Gui.Toplevel.RemoveAll*"></a>
  1333. <h4 id="Terminal_Gui_Toplevel_RemoveAll" data-uid="Terminal.Gui.Toplevel.RemoveAll">RemoveAll()</h4>
  1334. <div class="markdown level1 summary">
  1335. 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.
  1336. </div>
  1337. <div class="markdown level1 conceptual"></div>
  1338. <h5 class="decalaration">Declaration</h5>
  1339. <div class="codewrapper">
  1340. <pre><code class="lang-csharp hljs">public override void RemoveAll()</code></pre>
  1341. </div>
  1342. <h5 class="overrides">Overrides</h5>
  1343. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a></div>
  1344. <a id="Terminal_Gui_Toplevel_RequestStop_" data-uid="Terminal.Gui.Toplevel.RequestStop*"></a>
  1345. <h4 id="Terminal_Gui_Toplevel_RequestStop" data-uid="Terminal.Gui.Toplevel.RequestStop">RequestStop()</h4>
  1346. <div class="markdown level1 summary">
  1347. Stops running this <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1348. </div>
  1349. <div class="markdown level1 conceptual"></div>
  1350. <h5 class="decalaration">Declaration</h5>
  1351. <div class="codewrapper">
  1352. <pre><code class="lang-csharp hljs">public virtual void RequestStop()</code></pre>
  1353. </div>
  1354. <a id="Terminal_Gui_Toplevel_RequestStop_" data-uid="Terminal.Gui.Toplevel.RequestStop*"></a>
  1355. <h4 id="Terminal_Gui_Toplevel_RequestStop_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.RequestStop(Terminal.Gui.Toplevel)">RequestStop(Toplevel)</h4>
  1356. <div class="markdown level1 summary">
  1357. Stops running the <code data-dev-comment-type="paramref" class="paramref">top</code> <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1358. </div>
  1359. <div class="markdown level1 conceptual"></div>
  1360. <h5 class="decalaration">Declaration</h5>
  1361. <div class="codewrapper">
  1362. <pre><code class="lang-csharp hljs">public virtual void RequestStop(Toplevel top)</code></pre>
  1363. </div>
  1364. <h5 class="parameters">Parameters</h5>
  1365. <table class="table table-bordered table-striped table-condensed">
  1366. <thead>
  1367. <tr>
  1368. <th>Type</th>
  1369. <th>Name</th>
  1370. <th>Description</th>
  1371. </tr>
  1372. </thead>
  1373. <tbody>
  1374. <tr>
  1375. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1376. <td><span class="parametername">top</span></td>
  1377. <td>The toplevel to request stop.</td>
  1378. </tr>
  1379. </tbody>
  1380. </table>
  1381. <a id="Terminal_Gui_Toplevel_ShowChild_" data-uid="Terminal.Gui.Toplevel.ShowChild*"></a>
  1382. <h4 id="Terminal_Gui_Toplevel_ShowChild_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.ShowChild(Terminal.Gui.Toplevel)">ShowChild(Toplevel)</h4>
  1383. <div class="markdown level1 summary">
  1384. Shows the Mdi child indicated by the <code data-dev-comment-type="paramref" class="paramref">top</code> setting as <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Current">Current</a>.
  1385. </div>
  1386. <div class="markdown level1 conceptual"></div>
  1387. <h5 class="decalaration">Declaration</h5>
  1388. <div class="codewrapper">
  1389. <pre><code class="lang-csharp hljs">public virtual bool ShowChild(Toplevel top = null)</code></pre>
  1390. </div>
  1391. <h5 class="parameters">Parameters</h5>
  1392. <table class="table table-bordered table-striped table-condensed">
  1393. <thead>
  1394. <tr>
  1395. <th>Type</th>
  1396. <th>Name</th>
  1397. <th>Description</th>
  1398. </tr>
  1399. </thead>
  1400. <tbody>
  1401. <tr>
  1402. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1403. <td><span class="parametername">top</span></td>
  1404. <td>The toplevel.</td>
  1405. </tr>
  1406. </tbody>
  1407. </table>
  1408. <h5 class="returns">Returns</h5>
  1409. <table class="table table-bordered table-striped table-condensed">
  1410. <thead>
  1411. <tr>
  1412. <th>Type</th>
  1413. <th>Description</th>
  1414. </tr>
  1415. </thead>
  1416. <tbody>
  1417. <tr>
  1418. <td><span class="xref">System.Boolean</span></td>
  1419. <td><span class="xref">true</span> if the toplevel can be showed.<span class="xref">false</span> otherwise.</td>
  1420. </tr>
  1421. </tbody>
  1422. </table>
  1423. <a id="Terminal_Gui_Toplevel_WillPresent_" data-uid="Terminal.Gui.Toplevel.WillPresent*"></a>
  1424. <h4 id="Terminal_Gui_Toplevel_WillPresent" data-uid="Terminal.Gui.Toplevel.WillPresent">WillPresent()</h4>
  1425. <div class="markdown level1 summary">
  1426. Invoked by <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Begin_Terminal_Gui_Toplevel_">Begin(Toplevel)</a> as part of the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_Terminal_Gui_Toplevel_System_Func_System_Exception_System_Boolean__">Run(Toplevel, Func&lt;Exception, Boolean&gt;)</a> after
  1427. the views have been laid out, and before the views are drawn for the first time.
  1428. </div>
  1429. <div class="markdown level1 conceptual"></div>
  1430. <h5 class="decalaration">Declaration</h5>
  1431. <div class="codewrapper">
  1432. <pre><code class="lang-csharp hljs">public virtual void WillPresent()</code></pre>
  1433. </div>
  1434. <h3 id="events">Events
  1435. </h3>
  1436. <h4 id="Terminal_Gui_Toplevel_Activate" data-uid="Terminal.Gui.Toplevel.Activate">Activate</h4>
  1437. <div class="markdown level1 summary">
  1438. Invoked once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> becomes the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Current">Current</a>.
  1439. </div>
  1440. <div class="markdown level1 conceptual"></div>
  1441. <h5 class="decalaration">Declaration</h5>
  1442. <div class="codewrapper">
  1443. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Activate</code></pre>
  1444. </div>
  1445. <h5 class="eventType">Event Type</h5>
  1446. <table class="table table-bordered table-striped table-condensed">
  1447. <thead>
  1448. <tr>
  1449. <th>Type</th>
  1450. <th>Description</th>
  1451. </tr>
  1452. </thead>
  1453. <tbody>
  1454. <tr>
  1455. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1456. <td></td>
  1457. </tr>
  1458. </tbody>
  1459. </table>
  1460. <h4 id="Terminal_Gui_Toplevel_AllChildClosed" data-uid="Terminal.Gui.Toplevel.AllChildClosed">AllChildClosed</h4>
  1461. <div class="markdown level1 summary">
  1462. Invoked once the last child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> is closed from the <span class="xref">Terminal.Gui.Application.End(Terminal.Gui.View)</span>
  1463. </div>
  1464. <div class="markdown level1 conceptual"></div>
  1465. <h5 class="decalaration">Declaration</h5>
  1466. <div class="codewrapper">
  1467. <pre><code class="lang-csharp hljs">public event Action AllChildClosed</code></pre>
  1468. </div>
  1469. <h5 class="eventType">Event Type</h5>
  1470. <table class="table table-bordered table-striped table-condensed">
  1471. <thead>
  1472. <tr>
  1473. <th>Type</th>
  1474. <th>Description</th>
  1475. </tr>
  1476. </thead>
  1477. <tbody>
  1478. <tr>
  1479. <td><span class="xref">System.Action</span></td>
  1480. <td></td>
  1481. </tr>
  1482. </tbody>
  1483. </table>
  1484. <h4 id="Terminal_Gui_Toplevel_AlternateBackwardKeyChanged" data-uid="Terminal.Gui.Toplevel.AlternateBackwardKeyChanged">AlternateBackwardKeyChanged</h4>
  1485. <div class="markdown level1 summary">
  1486. Invoked when the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_AlternateBackwardKey">AlternateBackwardKey</a> is changed.
  1487. </div>
  1488. <div class="markdown level1 conceptual"></div>
  1489. <h5 class="decalaration">Declaration</h5>
  1490. <div class="codewrapper">
  1491. <pre><code class="lang-csharp hljs">public event Action&lt;Key&gt; AlternateBackwardKeyChanged</code></pre>
  1492. </div>
  1493. <h5 class="eventType">Event Type</h5>
  1494. <table class="table table-bordered table-striped table-condensed">
  1495. <thead>
  1496. <tr>
  1497. <th>Type</th>
  1498. <th>Description</th>
  1499. </tr>
  1500. </thead>
  1501. <tbody>
  1502. <tr>
  1503. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Key.html">Key</a>&gt;</td>
  1504. <td></td>
  1505. </tr>
  1506. </tbody>
  1507. </table>
  1508. <h4 id="Terminal_Gui_Toplevel_AlternateForwardKeyChanged" data-uid="Terminal.Gui.Toplevel.AlternateForwardKeyChanged">AlternateForwardKeyChanged</h4>
  1509. <div class="markdown level1 summary">
  1510. Invoked when the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_AlternateForwardKey">AlternateForwardKey</a> is changed.
  1511. </div>
  1512. <div class="markdown level1 conceptual"></div>
  1513. <h5 class="decalaration">Declaration</h5>
  1514. <div class="codewrapper">
  1515. <pre><code class="lang-csharp hljs">public event Action&lt;Key&gt; AlternateForwardKeyChanged</code></pre>
  1516. </div>
  1517. <h5 class="eventType">Event Type</h5>
  1518. <table class="table table-bordered table-striped table-condensed">
  1519. <thead>
  1520. <tr>
  1521. <th>Type</th>
  1522. <th>Description</th>
  1523. </tr>
  1524. </thead>
  1525. <tbody>
  1526. <tr>
  1527. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Key.html">Key</a>&gt;</td>
  1528. <td></td>
  1529. </tr>
  1530. </tbody>
  1531. </table>
  1532. <h4 id="Terminal_Gui_Toplevel_ChildClosed" data-uid="Terminal.Gui.Toplevel.ChildClosed">ChildClosed</h4>
  1533. <div class="markdown level1 summary">
  1534. Invoked once the child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> is closed from the <span class="xref">Terminal.Gui.Application.End(Terminal.Gui.View)</span>
  1535. </div>
  1536. <div class="markdown level1 conceptual"></div>
  1537. <h5 class="decalaration">Declaration</h5>
  1538. <div class="codewrapper">
  1539. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; ChildClosed</code></pre>
  1540. </div>
  1541. <h5 class="eventType">Event Type</h5>
  1542. <table class="table table-bordered table-striped table-condensed">
  1543. <thead>
  1544. <tr>
  1545. <th>Type</th>
  1546. <th>Description</th>
  1547. </tr>
  1548. </thead>
  1549. <tbody>
  1550. <tr>
  1551. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1552. <td></td>
  1553. </tr>
  1554. </tbody>
  1555. </table>
  1556. <h4 id="Terminal_Gui_Toplevel_ChildLoaded" data-uid="Terminal.Gui.Toplevel.ChildLoaded">ChildLoaded</h4>
  1557. <div class="markdown level1 summary">
  1558. Invoked once the child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin loaded.
  1559. </div>
  1560. <div class="markdown level1 conceptual"></div>
  1561. <h5 class="decalaration">Declaration</h5>
  1562. <div class="codewrapper">
  1563. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; ChildLoaded</code></pre>
  1564. </div>
  1565. <h5 class="eventType">Event Type</h5>
  1566. <table class="table table-bordered table-striped table-condensed">
  1567. <thead>
  1568. <tr>
  1569. <th>Type</th>
  1570. <th>Description</th>
  1571. </tr>
  1572. </thead>
  1573. <tbody>
  1574. <tr>
  1575. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1576. <td></td>
  1577. </tr>
  1578. </tbody>
  1579. </table>
  1580. <h4 id="Terminal_Gui_Toplevel_ChildUnloaded" data-uid="Terminal.Gui.Toplevel.ChildUnloaded">ChildUnloaded</h4>
  1581. <div class="markdown level1 summary">
  1582. Invoked once the child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin unloaded.
  1583. </div>
  1584. <div class="markdown level1 conceptual"></div>
  1585. <h5 class="decalaration">Declaration</h5>
  1586. <div class="codewrapper">
  1587. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; ChildUnloaded</code></pre>
  1588. </div>
  1589. <h5 class="eventType">Event Type</h5>
  1590. <table class="table table-bordered table-striped table-condensed">
  1591. <thead>
  1592. <tr>
  1593. <th>Type</th>
  1594. <th>Description</th>
  1595. </tr>
  1596. </thead>
  1597. <tbody>
  1598. <tr>
  1599. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1600. <td></td>
  1601. </tr>
  1602. </tbody>
  1603. </table>
  1604. <h4 id="Terminal_Gui_Toplevel_Closed" data-uid="Terminal.Gui.Toplevel.Closed">Closed</h4>
  1605. <div class="markdown level1 summary">
  1606. Invoked once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> is closed from the <span class="xref">Terminal.Gui.Application.End(Terminal.Gui.View)</span>
  1607. </div>
  1608. <div class="markdown level1 conceptual"></div>
  1609. <h5 class="decalaration">Declaration</h5>
  1610. <div class="codewrapper">
  1611. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Closed</code></pre>
  1612. </div>
  1613. <h5 class="eventType">Event Type</h5>
  1614. <table class="table table-bordered table-striped table-condensed">
  1615. <thead>
  1616. <tr>
  1617. <th>Type</th>
  1618. <th>Description</th>
  1619. </tr>
  1620. </thead>
  1621. <tbody>
  1622. <tr>
  1623. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1624. <td></td>
  1625. </tr>
  1626. </tbody>
  1627. </table>
  1628. <h4 id="Terminal_Gui_Toplevel_Closing" data-uid="Terminal.Gui.Toplevel.Closing">Closing</h4>
  1629. <div class="markdown level1 summary">
  1630. Invoked once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> is being closing from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_RequestStop_Terminal_Gui_Toplevel_">RequestStop(Toplevel)</a>
  1631. </div>
  1632. <div class="markdown level1 conceptual"></div>
  1633. <h5 class="decalaration">Declaration</h5>
  1634. <div class="codewrapper">
  1635. <pre><code class="lang-csharp hljs">public event Action&lt;ToplevelClosingEventArgs&gt; Closing</code></pre>
  1636. </div>
  1637. <h5 class="eventType">Event Type</h5>
  1638. <table class="table table-bordered table-striped table-condensed">
  1639. <thead>
  1640. <tr>
  1641. <th>Type</th>
  1642. <th>Description</th>
  1643. </tr>
  1644. </thead>
  1645. <tbody>
  1646. <tr>
  1647. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.ToplevelClosingEventArgs.html">ToplevelClosingEventArgs</a>&gt;</td>
  1648. <td></td>
  1649. </tr>
  1650. </tbody>
  1651. </table>
  1652. <h4 id="Terminal_Gui_Toplevel_Deactivate" data-uid="Terminal.Gui.Toplevel.Deactivate">Deactivate</h4>
  1653. <div class="markdown level1 summary">
  1654. Invoked once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> ceases to be the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Current">Current</a>.
  1655. </div>
  1656. <div class="markdown level1 conceptual"></div>
  1657. <h5 class="decalaration">Declaration</h5>
  1658. <div class="codewrapper">
  1659. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Deactivate</code></pre>
  1660. </div>
  1661. <h5 class="eventType">Event Type</h5>
  1662. <table class="table table-bordered table-striped table-condensed">
  1663. <thead>
  1664. <tr>
  1665. <th>Type</th>
  1666. <th>Description</th>
  1667. </tr>
  1668. </thead>
  1669. <tbody>
  1670. <tr>
  1671. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1672. <td></td>
  1673. </tr>
  1674. </tbody>
  1675. </table>
  1676. <h4 id="Terminal_Gui_Toplevel_Loaded" data-uid="Terminal.Gui.Toplevel.Loaded">Loaded</h4>
  1677. <div class="markdown level1 summary">
  1678. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin loaded.
  1679. A Loaded event handler is a good place to finalize initialization before calling `<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_RunLoop_Terminal_Gui_Application_RunState_System_Boolean_">RunLoop(Application.RunState, Boolean)</a>.
  1680. </div>
  1681. <div class="markdown level1 conceptual"></div>
  1682. <h5 class="decalaration">Declaration</h5>
  1683. <div class="codewrapper">
  1684. <pre><code class="lang-csharp hljs">public event Action Loaded</code></pre>
  1685. </div>
  1686. <h5 class="eventType">Event Type</h5>
  1687. <table class="table table-bordered table-striped table-condensed">
  1688. <thead>
  1689. <tr>
  1690. <th>Type</th>
  1691. <th>Description</th>
  1692. </tr>
  1693. </thead>
  1694. <tbody>
  1695. <tr>
  1696. <td><span class="xref">System.Action</span></td>
  1697. <td></td>
  1698. </tr>
  1699. </tbody>
  1700. </table>
  1701. <h4 id="Terminal_Gui_Toplevel_QuitKeyChanged" data-uid="Terminal.Gui.Toplevel.QuitKeyChanged">QuitKeyChanged</h4>
  1702. <div class="markdown level1 summary">
  1703. Invoked when the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_QuitKey">QuitKey</a> is changed.
  1704. </div>
  1705. <div class="markdown level1 conceptual"></div>
  1706. <h5 class="decalaration">Declaration</h5>
  1707. <div class="codewrapper">
  1708. <pre><code class="lang-csharp hljs">public event Action&lt;Key&gt; QuitKeyChanged</code></pre>
  1709. </div>
  1710. <h5 class="eventType">Event Type</h5>
  1711. <table class="table table-bordered table-striped table-condensed">
  1712. <thead>
  1713. <tr>
  1714. <th>Type</th>
  1715. <th>Description</th>
  1716. </tr>
  1717. </thead>
  1718. <tbody>
  1719. <tr>
  1720. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Key.html">Key</a>&gt;</td>
  1721. <td></td>
  1722. </tr>
  1723. </tbody>
  1724. </table>
  1725. <h4 id="Terminal_Gui_Toplevel_Ready" data-uid="Terminal.Gui.Toplevel.Ready">Ready</h4>
  1726. <div class="markdown level1 summary">
  1727. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a> has started it&apos;s first iteration.
  1728. Subscribe to this event to perform tasks when the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> has been laid out and focus has been set.
  1729. changes. A Ready event handler is a good place to finalize initialization after calling `<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Run_System_Func_System_Exception_System_Boolean__">Run(Func&lt;Exception, Boolean&gt;)</a>(topLevel)`.
  1730. </div>
  1731. <div class="markdown level1 conceptual"></div>
  1732. <h5 class="decalaration">Declaration</h5>
  1733. <div class="codewrapper">
  1734. <pre><code class="lang-csharp hljs">public event Action Ready</code></pre>
  1735. </div>
  1736. <h5 class="eventType">Event Type</h5>
  1737. <table class="table table-bordered table-striped table-condensed">
  1738. <thead>
  1739. <tr>
  1740. <th>Type</th>
  1741. <th>Description</th>
  1742. </tr>
  1743. </thead>
  1744. <tbody>
  1745. <tr>
  1746. <td><span class="xref">System.Action</span></td>
  1747. <td></td>
  1748. </tr>
  1749. </tbody>
  1750. </table>
  1751. <h4 id="Terminal_Gui_Toplevel_Resized" data-uid="Terminal.Gui.Toplevel.Resized">Resized</h4>
  1752. <div class="markdown level1 summary">
  1753. Invoked when the terminal was resized. The new <a class="xref" href="Terminal.Gui.Size.html">Size</a> of the terminal is provided.
  1754. </div>
  1755. <div class="markdown level1 conceptual"></div>
  1756. <h5 class="decalaration">Declaration</h5>
  1757. <div class="codewrapper">
  1758. <pre><code class="lang-csharp hljs">public event Action&lt;Size&gt; Resized</code></pre>
  1759. </div>
  1760. <h5 class="eventType">Event Type</h5>
  1761. <table class="table table-bordered table-striped table-condensed">
  1762. <thead>
  1763. <tr>
  1764. <th>Type</th>
  1765. <th>Description</th>
  1766. </tr>
  1767. </thead>
  1768. <tbody>
  1769. <tr>
  1770. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Size.html">Size</a>&gt;</td>
  1771. <td></td>
  1772. </tr>
  1773. </tbody>
  1774. </table>
  1775. <h4 id="Terminal_Gui_Toplevel_Unloaded" data-uid="Terminal.Gui.Toplevel.Unloaded">Unloaded</h4>
  1776. <div class="markdown level1 summary">
  1777. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin unloaded.
  1778. A Unloaded event handler is a good place to disposing after calling `<a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_End_Terminal_Gui_Application_RunState_">End(Application.RunState)</a>.
  1779. </div>
  1780. <div class="markdown level1 conceptual"></div>
  1781. <h5 class="decalaration">Declaration</h5>
  1782. <div class="codewrapper">
  1783. <pre><code class="lang-csharp hljs">public event Action Unloaded</code></pre>
  1784. </div>
  1785. <h5 class="eventType">Event Type</h5>
  1786. <table class="table table-bordered table-striped table-condensed">
  1787. <thead>
  1788. <tr>
  1789. <th>Type</th>
  1790. <th>Description</th>
  1791. </tr>
  1792. </thead>
  1793. <tbody>
  1794. <tr>
  1795. <td><span class="xref">System.Action</span></td>
  1796. <td></td>
  1797. </tr>
  1798. </tbody>
  1799. </table>
  1800. <h3 id="implements">Implements</h3>
  1801. <div>
  1802. <span class="xref">System.IDisposable</span>
  1803. </div>
  1804. <div>
  1805. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1806. </div>
  1807. <div>
  1808. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1809. </div>
  1810. </article>
  1811. </div>
  1812. <div class="hidden-sm col-md-2" role="complementary">
  1813. <div class="sideaffix">
  1814. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1815. <h5>In This Article</h5>
  1816. <div></div>
  1817. </nav>
  1818. </div>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <footer>
  1823. <div class="grad-bottom"></div>
  1824. <div class="footer">
  1825. <div class="container">
  1826. <span class="pull-right">
  1827. <a href="#top">Back to top</a>
  1828. </span>
  1829. <span>Generated by <strong>DocFX</strong></span>
  1830. </div>
  1831. </div>
  1832. </footer>
  1833. </div>
  1834. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1835. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1836. <script type="text/javascript" src="../../styles/main.js"></script>
  1837. </body>
  1838. </html>