Terminal.Gui.Toplevel.html 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608
  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.58.5.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 classs="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_Added">View.Added</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  110. </div>
  111. <div>
  112. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  113. </div>
  114. <div>
  115. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  116. </div>
  117. <div>
  118. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  119. </div>
  120. <div>
  121. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  122. </div>
  123. <div>
  124. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  125. </div>
  126. <div>
  127. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  128. </div>
  129. <div>
  130. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  131. </div>
  132. <div>
  133. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  134. </div>
  135. <div>
  136. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  137. </div>
  138. <div>
  139. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  140. </div>
  141. <div>
  142. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  143. </div>
  144. <div>
  145. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  146. </div>
  147. <div>
  148. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  149. </div>
  150. <div>
  151. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  152. </div>
  153. <div>
  154. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  155. </div>
  156. <div>
  157. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  158. </div>
  159. <div>
  160. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  161. </div>
  162. <div>
  163. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  164. </div>
  165. <div>
  166. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  167. </div>
  168. <div>
  169. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  170. </div>
  171. <div>
  172. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  173. </div>
  174. <div>
  175. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  176. </div>
  177. <div>
  178. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  179. </div>
  180. <div>
  181. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  182. </div>
  183. <div>
  184. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  185. </div>
  186. <div>
  187. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  188. </div>
  189. <div>
  190. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  191. </div>
  192. <div>
  193. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  194. </div>
  195. <div>
  196. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  197. </div>
  198. <div>
  199. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  200. </div>
  201. <div>
  202. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  203. </div>
  204. <div>
  205. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  206. </div>
  207. <div>
  208. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  209. </div>
  210. <div>
  211. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  212. </div>
  213. <div>
  214. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  215. </div>
  216. <div>
  217. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  218. </div>
  219. <div>
  220. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  221. </div>
  222. <div>
  223. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  224. </div>
  225. <div>
  226. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  227. </div>
  228. <div>
  229. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  230. </div>
  231. <div>
  232. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  233. </div>
  234. <div>
  235. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  236. </div>
  237. <div>
  238. <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>
  239. </div>
  240. <div>
  241. <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>
  242. </div>
  243. <div>
  244. <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>
  245. </div>
  246. <div>
  247. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_">View.Move(Int32, Int32)</a>
  248. </div>
  249. <div>
  250. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  251. </div>
  252. <div>
  253. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  254. </div>
  255. <div>
  256. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  257. </div>
  258. <div>
  259. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a>
  260. </div>
  261. <div>
  262. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a>
  263. </div>
  264. <div>
  265. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  266. </div>
  267. <div>
  268. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  281. </div>
  282. <div>
  283. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  284. </div>
  285. <div>
  286. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  287. </div>
  288. <div>
  289. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  290. </div>
  291. <div>
  292. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  293. </div>
  294. <div>
  295. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  296. </div>
  297. <div>
  298. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  299. </div>
  300. <div>
  301. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  302. </div>
  303. <div>
  304. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  305. </div>
  306. <div>
  307. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  308. </div>
  309. <div>
  310. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  311. </div>
  312. <div>
  313. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  314. </div>
  315. <div>
  316. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  317. </div>
  318. <div>
  319. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  320. </div>
  321. <div>
  322. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  323. </div>
  324. <div>
  325. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  326. </div>
  327. <div>
  328. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  329. </div>
  330. <div>
  331. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  332. </div>
  333. <div>
  334. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  335. </div>
  336. <div>
  337. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  338. </div>
  339. <div>
  340. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  341. </div>
  342. <div>
  343. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  344. </div>
  345. <div>
  346. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  347. </div>
  348. <div>
  349. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  350. </div>
  351. <div>
  352. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  353. </div>
  354. <div>
  355. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  356. </div>
  357. <div>
  358. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  359. </div>
  360. <div>
  361. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  362. </div>
  363. <div>
  364. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  365. </div>
  366. <div>
  367. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  368. </div>
  369. <div>
  370. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  371. </div>
  372. <div>
  373. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  374. </div>
  375. <div>
  376. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  377. </div>
  378. <div>
  379. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  380. </div>
  381. <div>
  382. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  383. </div>
  384. <div>
  385. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  386. </div>
  387. <div>
  388. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  389. </div>
  390. <div>
  391. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  392. </div>
  393. <div>
  394. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  395. </div>
  396. <div>
  397. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  398. </div>
  399. <div>
  400. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  401. </div>
  402. <div>
  403. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  404. </div>
  405. <div>
  406. <span class="xref">System.Object.Equals(System.Object)</span>
  407. </div>
  408. <div>
  409. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  410. </div>
  411. <div>
  412. <span class="xref">System.Object.GetHashCode()</span>
  413. </div>
  414. <div>
  415. <span class="xref">System.Object.GetType()</span>
  416. </div>
  417. <div>
  418. <span class="xref">System.Object.MemberwiseClone()</span>
  419. </div>
  420. <div>
  421. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  422. </div>
  423. </div>
  424. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  425. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  426. <h5 id="Terminal_Gui_Toplevel_syntax">Syntax</h5>
  427. <div class="codewrapper">
  428. <pre><code class="lang-csharp hljs">public class Toplevel : View, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  429. </div>
  430. <h5 id="Terminal_Gui_Toplevel_remarks"><strong>Remarks</strong></h5>
  431. <div class="markdown level0 remarks">
  432. <p>
  433. 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>.
  434. 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
  435. been called (which sets the <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_Running">Running</a> property to false).
  436. </p>
  437. <p>
  438. 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>.
  439. 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
  440. 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
  441. 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>.
  442. </p>
  443. <p>
  444. Toplevels can also opt-in to more sophisticated initialization
  445. by implementing <span class="xref">System.ComponentModel.ISupportInitialize</span>. When they do
  446. so, the <span class="xref">System.ComponentModel.ISupportInitialize.BeginInit()</span> and
  447. <span class="xref">System.ComponentModel.ISupportInitialize.EndInit()</span> methods will be called
  448. before running the view.
  449. If first-run-only initialization is preferred, the <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  450. can be implemented too, in which case the <span class="xref">System.ComponentModel.ISupportInitialize</span>
  451. methods will only be called if <span class="xref">System.ComponentModel.ISupportInitializeNotification.IsInitialized</span>
  452. is <span class="xref">false</span>. This allows proper <a class="xref" href="Terminal.Gui.View.html">View</a> inheritance hierarchies
  453. to override base class layout code optimally by doing so only on first run,
  454. instead of on every run.
  455. </p>
  456. </div>
  457. <h3 id="constructors">Constructors
  458. </h3>
  459. <a id="Terminal_Gui_Toplevel__ctor_" data-uid="Terminal.Gui.Toplevel.#ctor*"></a>
  460. <h4 id="Terminal_Gui_Toplevel__ctor" data-uid="Terminal.Gui.Toplevel.#ctor">Toplevel()</h4>
  461. <div class="markdown level1 summary">
  462. 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.
  463. </div>
  464. <div class="markdown level1 conceptual"></div>
  465. <h5 class="decalaration">Declaration</h5>
  466. <div class="codewrapper">
  467. <pre><code class="lang-csharp hljs">public Toplevel()</code></pre>
  468. </div>
  469. <a id="Terminal_Gui_Toplevel__ctor_" data-uid="Terminal.Gui.Toplevel.#ctor*"></a>
  470. <h4 id="Terminal_Gui_Toplevel__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Toplevel.#ctor(Terminal.Gui.Rect)">Toplevel(Rect)</h4>
  471. <div class="markdown level1 summary">
  472. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> class with the specified absolute layout.
  473. </div>
  474. <div class="markdown level1 conceptual"></div>
  475. <h5 class="decalaration">Declaration</h5>
  476. <div class="codewrapper">
  477. <pre><code class="lang-csharp hljs">public Toplevel(Rect frame)</code></pre>
  478. </div>
  479. <h5 class="parameters">Parameters</h5>
  480. <table class="table table-bordered table-striped table-condensed">
  481. <thead>
  482. <tr>
  483. <th>Type</th>
  484. <th>Name</th>
  485. <th>Description</th>
  486. </tr>
  487. </thead>
  488. <tbody>
  489. <tr>
  490. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  491. <td><span class="parametername">frame</span></td>
  492. <td>A superview-relative rectangle specifying the location and size for the new Toplevel</td>
  493. </tr>
  494. </tbody>
  495. </table>
  496. <h3 id="properties">Properties
  497. </h3>
  498. <a id="Terminal_Gui_Toplevel_CanFocus_" data-uid="Terminal.Gui.Toplevel.CanFocus*"></a>
  499. <h4 id="Terminal_Gui_Toplevel_CanFocus" data-uid="Terminal.Gui.Toplevel.CanFocus">CanFocus</h4>
  500. <div class="markdown level1 summary">
  501. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> can focus.
  502. </div>
  503. <div class="markdown level1 conceptual"></div>
  504. <h5 class="decalaration">Declaration</h5>
  505. <div class="codewrapper">
  506. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; }</code></pre>
  507. </div>
  508. <h5 class="propertyValue">Property Value</h5>
  509. <table class="table table-bordered table-striped table-condensed">
  510. <thead>
  511. <tr>
  512. <th>Type</th>
  513. <th>Description</th>
  514. </tr>
  515. </thead>
  516. <tbody>
  517. <tr>
  518. <td><span class="xref">System.Boolean</span></td>
  519. <td><code>true</code> if can focus; otherwise, <code>false</code>.</td>
  520. </tr>
  521. </tbody>
  522. </table>
  523. <h5 class="overrides">Overrides</h5>
  524. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a></div>
  525. <a id="Terminal_Gui_Toplevel_IsMdiChild_" data-uid="Terminal.Gui.Toplevel.IsMdiChild*"></a>
  526. <h4 id="Terminal_Gui_Toplevel_IsMdiChild" data-uid="Terminal.Gui.Toplevel.IsMdiChild">IsMdiChild</h4>
  527. <div class="markdown level1 summary">
  528. Gets or sets if this Toplevel is a Mdi child.
  529. </div>
  530. <div class="markdown level1 conceptual"></div>
  531. <h5 class="decalaration">Declaration</h5>
  532. <div class="codewrapper">
  533. <pre><code class="lang-csharp hljs">public bool IsMdiChild { get; }</code></pre>
  534. </div>
  535. <h5 class="propertyValue">Property Value</h5>
  536. <table class="table table-bordered table-striped table-condensed">
  537. <thead>
  538. <tr>
  539. <th>Type</th>
  540. <th>Description</th>
  541. </tr>
  542. </thead>
  543. <tbody>
  544. <tr>
  545. <td><span class="xref">System.Boolean</span></td>
  546. <td></td>
  547. </tr>
  548. </tbody>
  549. </table>
  550. <a id="Terminal_Gui_Toplevel_IsMdiContainer_" data-uid="Terminal.Gui.Toplevel.IsMdiContainer*"></a>
  551. <h4 id="Terminal_Gui_Toplevel_IsMdiContainer" data-uid="Terminal.Gui.Toplevel.IsMdiContainer">IsMdiContainer</h4>
  552. <div class="markdown level1 summary">
  553. Gets or sets if this Toplevel is a Mdi container.
  554. </div>
  555. <div class="markdown level1 conceptual"></div>
  556. <h5 class="decalaration">Declaration</h5>
  557. <div class="codewrapper">
  558. <pre><code class="lang-csharp hljs">public bool IsMdiContainer { get; set; }</code></pre>
  559. </div>
  560. <h5 class="propertyValue">Property Value</h5>
  561. <table class="table table-bordered table-striped table-condensed">
  562. <thead>
  563. <tr>
  564. <th>Type</th>
  565. <th>Description</th>
  566. </tr>
  567. </thead>
  568. <tbody>
  569. <tr>
  570. <td><span class="xref">System.Boolean</span></td>
  571. <td></td>
  572. </tr>
  573. </tbody>
  574. </table>
  575. <a id="Terminal_Gui_Toplevel_MenuBar_" data-uid="Terminal.Gui.Toplevel.MenuBar*"></a>
  576. <h4 id="Terminal_Gui_Toplevel_MenuBar" data-uid="Terminal.Gui.Toplevel.MenuBar">MenuBar</h4>
  577. <div class="markdown level1 summary">
  578. Gets or sets the menu for this Toplevel
  579. </div>
  580. <div class="markdown level1 conceptual"></div>
  581. <h5 class="decalaration">Declaration</h5>
  582. <div class="codewrapper">
  583. <pre><code class="lang-csharp hljs">public virtual MenuBar MenuBar { get; set; }</code></pre>
  584. </div>
  585. <h5 class="propertyValue">Property Value</h5>
  586. <table class="table table-bordered table-striped table-condensed">
  587. <thead>
  588. <tr>
  589. <th>Type</th>
  590. <th>Description</th>
  591. </tr>
  592. </thead>
  593. <tbody>
  594. <tr>
  595. <td><a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a></td>
  596. <td></td>
  597. </tr>
  598. </tbody>
  599. </table>
  600. <a id="Terminal_Gui_Toplevel_Modal_" data-uid="Terminal.Gui.Toplevel.Modal*"></a>
  601. <h4 id="Terminal_Gui_Toplevel_Modal" data-uid="Terminal.Gui.Toplevel.Modal">Modal</h4>
  602. <div class="markdown level1 summary">
  603. Determines whether the <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a> is modal or not.
  604. Causes <a class="xref" href="Terminal.Gui.Toplevel.html#Terminal_Gui_Toplevel_ProcessKey_Terminal_Gui_KeyEvent_">ProcessKey(KeyEvent)</a> to propagate keys upwards
  605. by default unless set to <span class="xref">true</span>.
  606. </div>
  607. <div class="markdown level1 conceptual"></div>
  608. <h5 class="decalaration">Declaration</h5>
  609. <div class="codewrapper">
  610. <pre><code class="lang-csharp hljs">public bool Modal { get; set; }</code></pre>
  611. </div>
  612. <h5 class="propertyValue">Property Value</h5>
  613. <table class="table table-bordered table-striped table-condensed">
  614. <thead>
  615. <tr>
  616. <th>Type</th>
  617. <th>Description</th>
  618. </tr>
  619. </thead>
  620. <tbody>
  621. <tr>
  622. <td><span class="xref">System.Boolean</span></td>
  623. <td></td>
  624. </tr>
  625. </tbody>
  626. </table>
  627. <a id="Terminal_Gui_Toplevel_Running_" data-uid="Terminal.Gui.Toplevel.Running*"></a>
  628. <h4 id="Terminal_Gui_Toplevel_Running" data-uid="Terminal.Gui.Toplevel.Running">Running</h4>
  629. <div class="markdown level1 summary">
  630. 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.
  631. </div>
  632. <div class="markdown level1 conceptual"></div>
  633. <h5 class="decalaration">Declaration</h5>
  634. <div class="codewrapper">
  635. <pre><code class="lang-csharp hljs">public bool Running { get; set; }</code></pre>
  636. </div>
  637. <h5 class="propertyValue">Property Value</h5>
  638. <table class="table table-bordered table-striped table-condensed">
  639. <thead>
  640. <tr>
  641. <th>Type</th>
  642. <th>Description</th>
  643. </tr>
  644. </thead>
  645. <tbody>
  646. <tr>
  647. <td><span class="xref">System.Boolean</span></td>
  648. <td></td>
  649. </tr>
  650. </tbody>
  651. </table>
  652. <h5 id="Terminal_Gui_Toplevel_Running_remarks">Remarks</h5>
  653. <div class="markdown level1 remarks">
  654. 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.
  655. </div>
  656. <a id="Terminal_Gui_Toplevel_StatusBar_" data-uid="Terminal.Gui.Toplevel.StatusBar*"></a>
  657. <h4 id="Terminal_Gui_Toplevel_StatusBar" data-uid="Terminal.Gui.Toplevel.StatusBar">StatusBar</h4>
  658. <div class="markdown level1 summary">
  659. Gets or sets the status bar for this Toplevel
  660. </div>
  661. <div class="markdown level1 conceptual"></div>
  662. <h5 class="decalaration">Declaration</h5>
  663. <div class="codewrapper">
  664. <pre><code class="lang-csharp hljs">public virtual StatusBar StatusBar { get; set; }</code></pre>
  665. </div>
  666. <h5 class="propertyValue">Property Value</h5>
  667. <table class="table table-bordered table-striped table-condensed">
  668. <thead>
  669. <tr>
  670. <th>Type</th>
  671. <th>Description</th>
  672. </tr>
  673. </thead>
  674. <tbody>
  675. <tr>
  676. <td><a class="xref" href="Terminal.Gui.StatusBar.html">StatusBar</a></td>
  677. <td></td>
  678. </tr>
  679. </tbody>
  680. </table>
  681. <h3 id="methods">Methods
  682. </h3>
  683. <a id="Terminal_Gui_Toplevel_Add_" data-uid="Terminal.Gui.Toplevel.Add*"></a>
  684. <h4 id="Terminal_Gui_Toplevel_Add_Terminal_Gui_View_" data-uid="Terminal.Gui.Toplevel.Add(Terminal.Gui.View)">Add(View)</h4>
  685. <div class="markdown level1 summary"></div>
  686. <div class="markdown level1 conceptual"></div>
  687. <h5 class="decalaration">Declaration</h5>
  688. <div class="codewrapper">
  689. <pre><code class="lang-csharp hljs">public override void Add(View view)</code></pre>
  690. </div>
  691. <h5 class="parameters">Parameters</h5>
  692. <table class="table table-bordered table-striped table-condensed">
  693. <thead>
  694. <tr>
  695. <th>Type</th>
  696. <th>Name</th>
  697. <th>Description</th>
  698. </tr>
  699. </thead>
  700. <tbody>
  701. <tr>
  702. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  703. <td><span class="parametername">view</span></td>
  704. <td></td>
  705. </tr>
  706. </tbody>
  707. </table>
  708. <h5 class="overrides">Overrides</h5>
  709. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a></div>
  710. <a id="Terminal_Gui_Toplevel_Create_" data-uid="Terminal.Gui.Toplevel.Create*"></a>
  711. <h4 id="Terminal_Gui_Toplevel_Create" data-uid="Terminal.Gui.Toplevel.Create">Create()</h4>
  712. <div class="markdown level1 summary">
  713. Convenience factory method that creates a new Toplevel with the current terminal dimensions.
  714. </div>
  715. <div class="markdown level1 conceptual"></div>
  716. <h5 class="decalaration">Declaration</h5>
  717. <div class="codewrapper">
  718. <pre><code class="lang-csharp hljs">public static Toplevel Create()</code></pre>
  719. </div>
  720. <h5 class="returns">Returns</h5>
  721. <table class="table table-bordered table-striped table-condensed">
  722. <thead>
  723. <tr>
  724. <th>Type</th>
  725. <th>Description</th>
  726. </tr>
  727. </thead>
  728. <tbody>
  729. <tr>
  730. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  731. <td>The create.</td>
  732. </tr>
  733. </tbody>
  734. </table>
  735. <a id="Terminal_Gui_Toplevel_GetTopMdiChild_" data-uid="Terminal.Gui.Toplevel.GetTopMdiChild*"></a>
  736. <h4 id="Terminal_Gui_Toplevel_GetTopMdiChild_System_Type_System_String___" data-uid="Terminal.Gui.Toplevel.GetTopMdiChild(System.Type,System.String[])">GetTopMdiChild(Type, String[])</h4>
  737. <div class="markdown level1 summary">
  738. Gets the current visible toplevel Mdi child that match the arguments pattern.
  739. </div>
  740. <div class="markdown level1 conceptual"></div>
  741. <h5 class="decalaration">Declaration</h5>
  742. <div class="codewrapper">
  743. <pre><code class="lang-csharp hljs">public View GetTopMdiChild(Type type = null, string[] exclude = null)</code></pre>
  744. </div>
  745. <h5 class="parameters">Parameters</h5>
  746. <table class="table table-bordered table-striped table-condensed">
  747. <thead>
  748. <tr>
  749. <th>Type</th>
  750. <th>Name</th>
  751. <th>Description</th>
  752. </tr>
  753. </thead>
  754. <tbody>
  755. <tr>
  756. <td><span class="xref">System.Type</span></td>
  757. <td><span class="parametername">type</span></td>
  758. <td>The type.</td>
  759. </tr>
  760. <tr>
  761. <td><span class="xref">System.String</span>[]</td>
  762. <td><span class="parametername">exclude</span></td>
  763. <td>The strings to exclude.</td>
  764. </tr>
  765. </tbody>
  766. </table>
  767. <h5 class="returns">Returns</h5>
  768. <table class="table table-bordered table-striped table-condensed">
  769. <thead>
  770. <tr>
  771. <th>Type</th>
  772. <th>Description</th>
  773. </tr>
  774. </thead>
  775. <tbody>
  776. <tr>
  777. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  778. <td>The matched view.</td>
  779. </tr>
  780. </tbody>
  781. </table>
  782. <a id="Terminal_Gui_Toplevel_MouseEvent_" data-uid="Terminal.Gui.Toplevel.MouseEvent*"></a>
  783. <h4 id="Terminal_Gui_Toplevel_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.Toplevel.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  784. <div class="markdown level1 summary"></div>
  785. <div class="markdown level1 conceptual"></div>
  786. <h5 class="decalaration">Declaration</h5>
  787. <div class="codewrapper">
  788. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent mouseEvent)</code></pre>
  789. </div>
  790. <h5 class="parameters">Parameters</h5>
  791. <table class="table table-bordered table-striped table-condensed">
  792. <thead>
  793. <tr>
  794. <th>Type</th>
  795. <th>Name</th>
  796. <th>Description</th>
  797. </tr>
  798. </thead>
  799. <tbody>
  800. <tr>
  801. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  802. <td><span class="parametername">mouseEvent</span></td>
  803. <td></td>
  804. </tr>
  805. </tbody>
  806. </table>
  807. <h5 class="returns">Returns</h5>
  808. <table class="table table-bordered table-striped table-condensed">
  809. <thead>
  810. <tr>
  811. <th>Type</th>
  812. <th>Description</th>
  813. </tr>
  814. </thead>
  815. <tbody>
  816. <tr>
  817. <td><span class="xref">System.Boolean</span></td>
  818. <td></td>
  819. </tr>
  820. </tbody>
  821. </table>
  822. <h5 class="overrides">Overrides</h5>
  823. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  824. <a id="Terminal_Gui_Toplevel_MoveNext_" data-uid="Terminal.Gui.Toplevel.MoveNext*"></a>
  825. <h4 id="Terminal_Gui_Toplevel_MoveNext" data-uid="Terminal.Gui.Toplevel.MoveNext">MoveNext()</h4>
  826. <div class="markdown level1 summary">
  827. Move to the next Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  828. </div>
  829. <div class="markdown level1 conceptual"></div>
  830. <h5 class="decalaration">Declaration</h5>
  831. <div class="codewrapper">
  832. <pre><code class="lang-csharp hljs">public virtual void MoveNext()</code></pre>
  833. </div>
  834. <a id="Terminal_Gui_Toplevel_MovePrevious_" data-uid="Terminal.Gui.Toplevel.MovePrevious*"></a>
  835. <h4 id="Terminal_Gui_Toplevel_MovePrevious" data-uid="Terminal.Gui.Toplevel.MovePrevious">MovePrevious()</h4>
  836. <div class="markdown level1 summary">
  837. Move to the previous Mdi child from the <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_MdiTop">MdiTop</a>.
  838. </div>
  839. <div class="markdown level1 conceptual"></div>
  840. <h5 class="decalaration">Declaration</h5>
  841. <div class="codewrapper">
  842. <pre><code class="lang-csharp hljs">public virtual void MovePrevious()</code></pre>
  843. </div>
  844. <a id="Terminal_Gui_Toplevel_OnKeyDown_" data-uid="Terminal.Gui.Toplevel.OnKeyDown*"></a>
  845. <h4 id="Terminal_Gui_Toplevel_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  846. <div class="markdown level1 summary"></div>
  847. <div class="markdown level1 conceptual"></div>
  848. <h5 class="decalaration">Declaration</h5>
  849. <div class="codewrapper">
  850. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  851. </div>
  852. <h5 class="parameters">Parameters</h5>
  853. <table class="table table-bordered table-striped table-condensed">
  854. <thead>
  855. <tr>
  856. <th>Type</th>
  857. <th>Name</th>
  858. <th>Description</th>
  859. </tr>
  860. </thead>
  861. <tbody>
  862. <tr>
  863. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  864. <td><span class="parametername">keyEvent</span></td>
  865. <td></td>
  866. </tr>
  867. </tbody>
  868. </table>
  869. <h5 class="returns">Returns</h5>
  870. <table class="table table-bordered table-striped table-condensed">
  871. <thead>
  872. <tr>
  873. <th>Type</th>
  874. <th>Description</th>
  875. </tr>
  876. </thead>
  877. <tbody>
  878. <tr>
  879. <td><span class="xref">System.Boolean</span></td>
  880. <td></td>
  881. </tr>
  882. </tbody>
  883. </table>
  884. <h5 class="overrides">Overrides</h5>
  885. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a></div>
  886. <a id="Terminal_Gui_Toplevel_OnKeyUp_" data-uid="Terminal.Gui.Toplevel.OnKeyUp*"></a>
  887. <h4 id="Terminal_Gui_Toplevel_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  888. <div class="markdown level1 summary"></div>
  889. <div class="markdown level1 conceptual"></div>
  890. <h5 class="decalaration">Declaration</h5>
  891. <div class="codewrapper">
  892. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  893. </div>
  894. <h5 class="parameters">Parameters</h5>
  895. <table class="table table-bordered table-striped table-condensed">
  896. <thead>
  897. <tr>
  898. <th>Type</th>
  899. <th>Name</th>
  900. <th>Description</th>
  901. </tr>
  902. </thead>
  903. <tbody>
  904. <tr>
  905. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  906. <td><span class="parametername">keyEvent</span></td>
  907. <td></td>
  908. </tr>
  909. </tbody>
  910. </table>
  911. <h5 class="returns">Returns</h5>
  912. <table class="table table-bordered table-striped table-condensed">
  913. <thead>
  914. <tr>
  915. <th>Type</th>
  916. <th>Description</th>
  917. </tr>
  918. </thead>
  919. <tbody>
  920. <tr>
  921. <td><span class="xref">System.Boolean</span></td>
  922. <td></td>
  923. </tr>
  924. </tbody>
  925. </table>
  926. <h5 class="overrides">Overrides</h5>
  927. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a></div>
  928. <a id="Terminal_Gui_Toplevel_PositionCursor_" data-uid="Terminal.Gui.Toplevel.PositionCursor*"></a>
  929. <h4 id="Terminal_Gui_Toplevel_PositionCursor" data-uid="Terminal.Gui.Toplevel.PositionCursor">PositionCursor()</h4>
  930. <div class="markdown level1 summary"></div>
  931. <div class="markdown level1 conceptual"></div>
  932. <h5 class="decalaration">Declaration</h5>
  933. <div class="codewrapper">
  934. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  935. </div>
  936. <h5 class="overrides">Overrides</h5>
  937. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  938. <a id="Terminal_Gui_Toplevel_PositionToplevel_" data-uid="Terminal.Gui.Toplevel.PositionToplevel*"></a>
  939. <h4 id="Terminal_Gui_Toplevel_PositionToplevel_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.PositionToplevel(Terminal.Gui.Toplevel)">PositionToplevel(Toplevel)</h4>
  940. <div class="markdown level1 summary">
  941. Virtual method which allow to be overridden to implement specific positions for inherited <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  942. </div>
  943. <div class="markdown level1 conceptual"></div>
  944. <h5 class="decalaration">Declaration</h5>
  945. <div class="codewrapper">
  946. <pre><code class="lang-csharp hljs">public virtual void PositionToplevel(Toplevel top)</code></pre>
  947. </div>
  948. <h5 class="parameters">Parameters</h5>
  949. <table class="table table-bordered table-striped table-condensed">
  950. <thead>
  951. <tr>
  952. <th>Type</th>
  953. <th>Name</th>
  954. <th>Description</th>
  955. </tr>
  956. </thead>
  957. <tbody>
  958. <tr>
  959. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  960. <td><span class="parametername">top</span></td>
  961. <td>The toplevel.</td>
  962. </tr>
  963. </tbody>
  964. </table>
  965. <a id="Terminal_Gui_Toplevel_ProcessColdKey_" data-uid="Terminal.Gui.Toplevel.ProcessColdKey*"></a>
  966. <h4 id="Terminal_Gui_Toplevel_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  967. <div class="markdown level1 summary"></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 ProcessColdKey(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></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></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_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a></div>
  1007. <a id="Terminal_Gui_Toplevel_ProcessKey_" data-uid="Terminal.Gui.Toplevel.ProcessKey*"></a>
  1008. <h4 id="Terminal_Gui_Toplevel_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.Toplevel.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1009. <div class="markdown level1 summary"></div>
  1010. <div class="markdown level1 conceptual"></div>
  1011. <h5 class="decalaration">Declaration</h5>
  1012. <div class="codewrapper">
  1013. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1014. </div>
  1015. <h5 class="parameters">Parameters</h5>
  1016. <table class="table table-bordered table-striped table-condensed">
  1017. <thead>
  1018. <tr>
  1019. <th>Type</th>
  1020. <th>Name</th>
  1021. <th>Description</th>
  1022. </tr>
  1023. </thead>
  1024. <tbody>
  1025. <tr>
  1026. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1027. <td><span class="parametername">keyEvent</span></td>
  1028. <td></td>
  1029. </tr>
  1030. </tbody>
  1031. </table>
  1032. <h5 class="returns">Returns</h5>
  1033. <table class="table table-bordered table-striped table-condensed">
  1034. <thead>
  1035. <tr>
  1036. <th>Type</th>
  1037. <th>Description</th>
  1038. </tr>
  1039. </thead>
  1040. <tbody>
  1041. <tr>
  1042. <td><span class="xref">System.Boolean</span></td>
  1043. <td></td>
  1044. </tr>
  1045. </tbody>
  1046. </table>
  1047. <h5 class="overrides">Overrides</h5>
  1048. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1049. <a id="Terminal_Gui_Toplevel_Redraw_" data-uid="Terminal.Gui.Toplevel.Redraw*"></a>
  1050. <h4 id="Terminal_Gui_Toplevel_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Toplevel.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1051. <div class="markdown level1 summary"></div>
  1052. <div class="markdown level1 conceptual"></div>
  1053. <h5 class="decalaration">Declaration</h5>
  1054. <div class="codewrapper">
  1055. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1056. </div>
  1057. <h5 class="parameters">Parameters</h5>
  1058. <table class="table table-bordered table-striped table-condensed">
  1059. <thead>
  1060. <tr>
  1061. <th>Type</th>
  1062. <th>Name</th>
  1063. <th>Description</th>
  1064. </tr>
  1065. </thead>
  1066. <tbody>
  1067. <tr>
  1068. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1069. <td><span class="parametername">bounds</span></td>
  1070. <td></td>
  1071. </tr>
  1072. </tbody>
  1073. </table>
  1074. <h5 class="overrides">Overrides</h5>
  1075. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1076. <a id="Terminal_Gui_Toplevel_Remove_" data-uid="Terminal.Gui.Toplevel.Remove*"></a>
  1077. <h4 id="Terminal_Gui_Toplevel_Remove_Terminal_Gui_View_" data-uid="Terminal.Gui.Toplevel.Remove(Terminal.Gui.View)">Remove(View)</h4>
  1078. <div class="markdown level1 summary"></div>
  1079. <div class="markdown level1 conceptual"></div>
  1080. <h5 class="decalaration">Declaration</h5>
  1081. <div class="codewrapper">
  1082. <pre><code class="lang-csharp hljs">public override void Remove(View view)</code></pre>
  1083. </div>
  1084. <h5 class="parameters">Parameters</h5>
  1085. <table class="table table-bordered table-striped table-condensed">
  1086. <thead>
  1087. <tr>
  1088. <th>Type</th>
  1089. <th>Name</th>
  1090. <th>Description</th>
  1091. </tr>
  1092. </thead>
  1093. <tbody>
  1094. <tr>
  1095. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1096. <td><span class="parametername">view</span></td>
  1097. <td></td>
  1098. </tr>
  1099. </tbody>
  1100. </table>
  1101. <h5 class="overrides">Overrides</h5>
  1102. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a></div>
  1103. <a id="Terminal_Gui_Toplevel_RemoveAll_" data-uid="Terminal.Gui.Toplevel.RemoveAll*"></a>
  1104. <h4 id="Terminal_Gui_Toplevel_RemoveAll" data-uid="Terminal.Gui.Toplevel.RemoveAll">RemoveAll()</h4>
  1105. <div class="markdown level1 summary"></div>
  1106. <div class="markdown level1 conceptual"></div>
  1107. <h5 class="decalaration">Declaration</h5>
  1108. <div class="codewrapper">
  1109. <pre><code class="lang-csharp hljs">public override void RemoveAll()</code></pre>
  1110. </div>
  1111. <h5 class="overrides">Overrides</h5>
  1112. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a></div>
  1113. <a id="Terminal_Gui_Toplevel_RequestStop_" data-uid="Terminal.Gui.Toplevel.RequestStop*"></a>
  1114. <h4 id="Terminal_Gui_Toplevel_RequestStop" data-uid="Terminal.Gui.Toplevel.RequestStop">RequestStop()</h4>
  1115. <div class="markdown level1 summary">
  1116. Stops running this <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1117. </div>
  1118. <div class="markdown level1 conceptual"></div>
  1119. <h5 class="decalaration">Declaration</h5>
  1120. <div class="codewrapper">
  1121. <pre><code class="lang-csharp hljs">public virtual void RequestStop()</code></pre>
  1122. </div>
  1123. <a id="Terminal_Gui_Toplevel_RequestStop_" data-uid="Terminal.Gui.Toplevel.RequestStop*"></a>
  1124. <h4 id="Terminal_Gui_Toplevel_RequestStop_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.RequestStop(Terminal.Gui.Toplevel)">RequestStop(Toplevel)</h4>
  1125. <div class="markdown level1 summary">
  1126. Stops running the <code data-dev-comment-type="paramref" class="paramref">top</code> <a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>.
  1127. </div>
  1128. <div class="markdown level1 conceptual"></div>
  1129. <h5 class="decalaration">Declaration</h5>
  1130. <div class="codewrapper">
  1131. <pre><code class="lang-csharp hljs">public virtual void RequestStop(Toplevel top)</code></pre>
  1132. </div>
  1133. <h5 class="parameters">Parameters</h5>
  1134. <table class="table table-bordered table-striped table-condensed">
  1135. <thead>
  1136. <tr>
  1137. <th>Type</th>
  1138. <th>Name</th>
  1139. <th>Description</th>
  1140. </tr>
  1141. </thead>
  1142. <tbody>
  1143. <tr>
  1144. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1145. <td><span class="parametername">top</span></td>
  1146. <td>The toplevel to request stop.</td>
  1147. </tr>
  1148. </tbody>
  1149. </table>
  1150. <a id="Terminal_Gui_Toplevel_ShowChild_" data-uid="Terminal.Gui.Toplevel.ShowChild*"></a>
  1151. <h4 id="Terminal_Gui_Toplevel_ShowChild_Terminal_Gui_Toplevel_" data-uid="Terminal.Gui.Toplevel.ShowChild(Terminal.Gui.Toplevel)">ShowChild(Toplevel)</h4>
  1152. <div class="markdown level1 summary">
  1153. 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>.
  1154. </div>
  1155. <div class="markdown level1 conceptual"></div>
  1156. <h5 class="decalaration">Declaration</h5>
  1157. <div class="codewrapper">
  1158. <pre><code class="lang-csharp hljs">public virtual bool ShowChild(Toplevel top = null)</code></pre>
  1159. </div>
  1160. <h5 class="parameters">Parameters</h5>
  1161. <table class="table table-bordered table-striped table-condensed">
  1162. <thead>
  1163. <tr>
  1164. <th>Type</th>
  1165. <th>Name</th>
  1166. <th>Description</th>
  1167. </tr>
  1168. </thead>
  1169. <tbody>
  1170. <tr>
  1171. <td><a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a></td>
  1172. <td><span class="parametername">top</span></td>
  1173. <td>The toplevel.</td>
  1174. </tr>
  1175. </tbody>
  1176. </table>
  1177. <h5 class="returns">Returns</h5>
  1178. <table class="table table-bordered table-striped table-condensed">
  1179. <thead>
  1180. <tr>
  1181. <th>Type</th>
  1182. <th>Description</th>
  1183. </tr>
  1184. </thead>
  1185. <tbody>
  1186. <tr>
  1187. <td><span class="xref">System.Boolean</span></td>
  1188. <td><span class="xref">true</span> if the toplevel can be showed.<span class="xref">false</span> otherwise.</td>
  1189. </tr>
  1190. </tbody>
  1191. </table>
  1192. <a id="Terminal_Gui_Toplevel_WillPresent_" data-uid="Terminal.Gui.Toplevel.WillPresent*"></a>
  1193. <h4 id="Terminal_Gui_Toplevel_WillPresent" data-uid="Terminal.Gui.Toplevel.WillPresent">WillPresent()</h4>
  1194. <div class="markdown level1 summary">
  1195. 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
  1196. the views have been laid out, and before the views are drawn for the first time.
  1197. </div>
  1198. <div class="markdown level1 conceptual"></div>
  1199. <h5 class="decalaration">Declaration</h5>
  1200. <div class="codewrapper">
  1201. <pre><code class="lang-csharp hljs">public virtual void WillPresent()</code></pre>
  1202. </div>
  1203. <h3 id="events">Events
  1204. </h3>
  1205. <h4 id="Terminal_Gui_Toplevel_Activate" data-uid="Terminal.Gui.Toplevel.Activate">Activate</h4>
  1206. <div class="markdown level1 summary">
  1207. 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>.
  1208. </div>
  1209. <div class="markdown level1 conceptual"></div>
  1210. <h5 class="decalaration">Declaration</h5>
  1211. <div class="codewrapper">
  1212. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Activate</code></pre>
  1213. </div>
  1214. <h5 class="eventType">Event Type</h5>
  1215. <table class="table table-bordered table-striped table-condensed">
  1216. <thead>
  1217. <tr>
  1218. <th>Type</th>
  1219. <th>Description</th>
  1220. </tr>
  1221. </thead>
  1222. <tbody>
  1223. <tr>
  1224. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1225. <td></td>
  1226. </tr>
  1227. </tbody>
  1228. </table>
  1229. <h4 id="Terminal_Gui_Toplevel_AllChildClosed" data-uid="Terminal.Gui.Toplevel.AllChildClosed">AllChildClosed</h4>
  1230. <div class="markdown level1 summary">
  1231. 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>
  1232. </div>
  1233. <div class="markdown level1 conceptual"></div>
  1234. <h5 class="decalaration">Declaration</h5>
  1235. <div class="codewrapper">
  1236. <pre><code class="lang-csharp hljs">public event Action AllChildClosed</code></pre>
  1237. </div>
  1238. <h5 class="eventType">Event Type</h5>
  1239. <table class="table table-bordered table-striped table-condensed">
  1240. <thead>
  1241. <tr>
  1242. <th>Type</th>
  1243. <th>Description</th>
  1244. </tr>
  1245. </thead>
  1246. <tbody>
  1247. <tr>
  1248. <td><span class="xref">System.Action</span></td>
  1249. <td></td>
  1250. </tr>
  1251. </tbody>
  1252. </table>
  1253. <h4 id="Terminal_Gui_Toplevel_ChildClosed" data-uid="Terminal.Gui.Toplevel.ChildClosed">ChildClosed</h4>
  1254. <div class="markdown level1 summary">
  1255. 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>
  1256. </div>
  1257. <div class="markdown level1 conceptual"></div>
  1258. <h5 class="decalaration">Declaration</h5>
  1259. <div class="codewrapper">
  1260. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; ChildClosed</code></pre>
  1261. </div>
  1262. <h5 class="eventType">Event Type</h5>
  1263. <table class="table table-bordered table-striped table-condensed">
  1264. <thead>
  1265. <tr>
  1266. <th>Type</th>
  1267. <th>Description</th>
  1268. </tr>
  1269. </thead>
  1270. <tbody>
  1271. <tr>
  1272. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1273. <td></td>
  1274. </tr>
  1275. </tbody>
  1276. </table>
  1277. <h4 id="Terminal_Gui_Toplevel_ChildLoaded" data-uid="Terminal.Gui.Toplevel.ChildLoaded">ChildLoaded</h4>
  1278. <div class="markdown level1 summary">
  1279. Invoked once the child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin loaded.
  1280. </div>
  1281. <div class="markdown level1 conceptual"></div>
  1282. <h5 class="decalaration">Declaration</h5>
  1283. <div class="codewrapper">
  1284. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; ChildLoaded</code></pre>
  1285. </div>
  1286. <h5 class="eventType">Event Type</h5>
  1287. <table class="table table-bordered table-striped table-condensed">
  1288. <thead>
  1289. <tr>
  1290. <th>Type</th>
  1291. <th>Description</th>
  1292. </tr>
  1293. </thead>
  1294. <tbody>
  1295. <tr>
  1296. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1297. <td></td>
  1298. </tr>
  1299. </tbody>
  1300. </table>
  1301. <h4 id="Terminal_Gui_Toplevel_ChildUnloaded" data-uid="Terminal.Gui.Toplevel.ChildUnloaded">ChildUnloaded</h4>
  1302. <div class="markdown level1 summary">
  1303. Invoked once the child Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin unloaded.
  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 event Action&lt;Toplevel&gt; ChildUnloaded</code></pre>
  1309. </div>
  1310. <h5 class="eventType">Event Type</h5>
  1311. <table class="table table-bordered table-striped table-condensed">
  1312. <thead>
  1313. <tr>
  1314. <th>Type</th>
  1315. <th>Description</th>
  1316. </tr>
  1317. </thead>
  1318. <tbody>
  1319. <tr>
  1320. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1321. <td></td>
  1322. </tr>
  1323. </tbody>
  1324. </table>
  1325. <h4 id="Terminal_Gui_Toplevel_Closed" data-uid="Terminal.Gui.Toplevel.Closed">Closed</h4>
  1326. <div class="markdown level1 summary">
  1327. 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>
  1328. </div>
  1329. <div class="markdown level1 conceptual"></div>
  1330. <h5 class="decalaration">Declaration</h5>
  1331. <div class="codewrapper">
  1332. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Closed</code></pre>
  1333. </div>
  1334. <h5 class="eventType">Event Type</h5>
  1335. <table class="table table-bordered table-striped table-condensed">
  1336. <thead>
  1337. <tr>
  1338. <th>Type</th>
  1339. <th>Description</th>
  1340. </tr>
  1341. </thead>
  1342. <tbody>
  1343. <tr>
  1344. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1345. <td></td>
  1346. </tr>
  1347. </tbody>
  1348. </table>
  1349. <h4 id="Terminal_Gui_Toplevel_Closing" data-uid="Terminal.Gui.Toplevel.Closing">Closing</h4>
  1350. <div class="markdown level1 summary">
  1351. 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>
  1352. </div>
  1353. <div class="markdown level1 conceptual"></div>
  1354. <h5 class="decalaration">Declaration</h5>
  1355. <div class="codewrapper">
  1356. <pre><code class="lang-csharp hljs">public event Action&lt;ToplevelClosingEventArgs&gt; Closing</code></pre>
  1357. </div>
  1358. <h5 class="eventType">Event Type</h5>
  1359. <table class="table table-bordered table-striped table-condensed">
  1360. <thead>
  1361. <tr>
  1362. <th>Type</th>
  1363. <th>Description</th>
  1364. </tr>
  1365. </thead>
  1366. <tbody>
  1367. <tr>
  1368. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.ToplevelClosingEventArgs.html">ToplevelClosingEventArgs</a>&gt;</td>
  1369. <td></td>
  1370. </tr>
  1371. </tbody>
  1372. </table>
  1373. <h4 id="Terminal_Gui_Toplevel_Deactivate" data-uid="Terminal.Gui.Toplevel.Deactivate">Deactivate</h4>
  1374. <div class="markdown level1 summary">
  1375. 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>.
  1376. </div>
  1377. <div class="markdown level1 conceptual"></div>
  1378. <h5 class="decalaration">Declaration</h5>
  1379. <div class="codewrapper">
  1380. <pre><code class="lang-csharp hljs">public event Action&lt;Toplevel&gt; Deactivate</code></pre>
  1381. </div>
  1382. <h5 class="eventType">Event Type</h5>
  1383. <table class="table table-bordered table-striped table-condensed">
  1384. <thead>
  1385. <tr>
  1386. <th>Type</th>
  1387. <th>Description</th>
  1388. </tr>
  1389. </thead>
  1390. <tbody>
  1391. <tr>
  1392. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Toplevel.html">Toplevel</a>&gt;</td>
  1393. <td></td>
  1394. </tr>
  1395. </tbody>
  1396. </table>
  1397. <h4 id="Terminal_Gui_Toplevel_Loaded" data-uid="Terminal.Gui.Toplevel.Loaded">Loaded</h4>
  1398. <div class="markdown level1 summary">
  1399. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin loaded.
  1400. 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>.
  1401. </div>
  1402. <div class="markdown level1 conceptual"></div>
  1403. <h5 class="decalaration">Declaration</h5>
  1404. <div class="codewrapper">
  1405. <pre><code class="lang-csharp hljs">public event Action Loaded</code></pre>
  1406. </div>
  1407. <h5 class="eventType">Event Type</h5>
  1408. <table class="table table-bordered table-striped table-condensed">
  1409. <thead>
  1410. <tr>
  1411. <th>Type</th>
  1412. <th>Description</th>
  1413. </tr>
  1414. </thead>
  1415. <tbody>
  1416. <tr>
  1417. <td><span class="xref">System.Action</span></td>
  1418. <td></td>
  1419. </tr>
  1420. </tbody>
  1421. </table>
  1422. <h4 id="Terminal_Gui_Toplevel_Ready" data-uid="Terminal.Gui.Toplevel.Ready">Ready</h4>
  1423. <div class="markdown level1 summary">
  1424. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.MainLoop.html">MainLoop</a> has started it&apos;s first iteration.
  1425. 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.
  1426. 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)`.
  1427. </div>
  1428. <div class="markdown level1 conceptual"></div>
  1429. <h5 class="decalaration">Declaration</h5>
  1430. <div class="codewrapper">
  1431. <pre><code class="lang-csharp hljs">public event Action Ready</code></pre>
  1432. </div>
  1433. <h5 class="eventType">Event Type</h5>
  1434. <table class="table table-bordered table-striped table-condensed">
  1435. <thead>
  1436. <tr>
  1437. <th>Type</th>
  1438. <th>Description</th>
  1439. </tr>
  1440. </thead>
  1441. <tbody>
  1442. <tr>
  1443. <td><span class="xref">System.Action</span></td>
  1444. <td></td>
  1445. </tr>
  1446. </tbody>
  1447. </table>
  1448. <h4 id="Terminal_Gui_Toplevel_Unloaded" data-uid="Terminal.Gui.Toplevel.Unloaded">Unloaded</h4>
  1449. <div class="markdown level1 summary">
  1450. Fired once the Toplevel&apos;s <a class="xref" href="Terminal.Gui.Application.RunState.html">Application.RunState</a> has begin unloaded.
  1451. 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>.
  1452. </div>
  1453. <div class="markdown level1 conceptual"></div>
  1454. <h5 class="decalaration">Declaration</h5>
  1455. <div class="codewrapper">
  1456. <pre><code class="lang-csharp hljs">public event Action Unloaded</code></pre>
  1457. </div>
  1458. <h5 class="eventType">Event Type</h5>
  1459. <table class="table table-bordered table-striped table-condensed">
  1460. <thead>
  1461. <tr>
  1462. <th>Type</th>
  1463. <th>Description</th>
  1464. </tr>
  1465. </thead>
  1466. <tbody>
  1467. <tr>
  1468. <td><span class="xref">System.Action</span></td>
  1469. <td></td>
  1470. </tr>
  1471. </tbody>
  1472. </table>
  1473. <h3 id="implements">Implements</h3>
  1474. <div>
  1475. <span class="xref">System.IDisposable</span>
  1476. </div>
  1477. <div>
  1478. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1479. </div>
  1480. <div>
  1481. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1482. </div>
  1483. </article>
  1484. </div>
  1485. <div class="hidden-sm col-md-2" role="complementary">
  1486. <div class="sideaffix">
  1487. <div class="contribution">
  1488. <ul class="nav">
  1489. </ul>
  1490. </div>
  1491. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1492. <h5>In This Article</h5>
  1493. <div></div>
  1494. </nav>
  1495. </div>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <footer>
  1500. <div class="grad-bottom"></div>
  1501. <div class="footer">
  1502. <div class="container">
  1503. <span class="pull-right">
  1504. <a href="#top">Back to top</a>
  1505. </span>
  1506. <span>Generated by <strong>DocFX</strong></span>
  1507. </div>
  1508. </div>
  1509. </footer>
  1510. </div>
  1511. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1512. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1513. <script type="text/javascript" src="../../styles/main.js"></script>
  1514. </body>
  1515. </html>