medit/doc/help/Application-object.html
2010-09-23 01:18:27 -07:00

50 lines
2.1 KiB
HTML

<html lang="en">
<head>
<title>Application object - medit 0.99.0-devel manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="medit 0.99.0-devel manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Scripting.html#Scripting" title="Scripting">
<link rel="next" href="Editor-object.html#Editor-object" title="Editor object">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="Application-object"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Editor-object.html#Editor-object">Editor object</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Scripting.html#Scripting">Scripting</a>
<hr>
</div>
<h3 class="section">5.1 Application object</h3>
<p><!-- moo-help-section: SCRIPT_APPLICATION -->
<dl>
<dt><code>Application.editor()</code><dd>returns Editor object.
<br><dt><code>Application.active_view()</code><dd>returns current active document view or <code>null</code> if no documents are open.
<br><dt><code>Application.active_document()</code><dd>returns current active document or <code>null</code> if no documents are open.
<br><dt><code>Application.active_window()</code><dd>returns current active window.
<br><dt><code>Application.set_active_window(window)</code><dd>activates <var>window</var>.
<br><dt><code>Application.windows()</code><dd>returns a list of all editor windows.
<br><dt><code>Application.quit()</code><dd>quit medit.
</dl>
</body></html>