Terminal.Gui.Toplevel.html 77 KB

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