mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
88 lines
2.8 KiB
HTML
88 lines
2.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Returns the size of a window</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.ncurses-getmaxyx" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">ncurses_getmaxyx</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.3.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)</p><p class="refpurpose"><span class="refname">ncurses_getmaxyx</span> — <span class="dc-title">Returns the size of a window</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.ncurses-getmaxyx-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>ncurses_getmaxyx</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$window</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$y</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$x</code></span>
|
|
) : <span class="type"><span class="type void">void</span></span></div>
|
|
|
|
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象,包括名称及其相关文档都可能在未来的
|
|
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
|
|
<p class="para">
|
|
Gets the horizontal and vertical size of the given
|
|
<code class="parameter">window</code> into the given variables.
|
|
</p>
|
|
<p class="para">
|
|
Variables must be passed as reference, so they are updated when the user
|
|
changes the terminal size.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.ncurses-getmaxyx-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">window</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The measured window
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">y</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
This will be set to the window height
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">x</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
This will be set to the window width
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.ncurses-getmaxyx-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
没有返回值。
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |