newt_draw_root_text
(PECL newt:0.1-1.1)
newt_draw_root_text — 指定した位置に文字列を表示する
説明
void newt_draw_root_text
( int $left
, int $top
, string $text
)
指定した位置に文字列を表示します。
パラメータ
- left
-
カラム番号。
注意: left が負の数の場合、画面の反対側から位置が計算されます。
- top
-
行番号。
注意: top が負の数の場合、画面の反対側から位置が計算されます。
- text
-
表示する文字列。
返り値
値を返しません。
例
Example#1 newt_draw_root_text() の例
このコードは、画面の両側の隅にタイトルを表示します。
<?php
newt_init();
newt_cls();
newt_draw_root_text (2, 0, "Some root text");
newt_refresh();
sleep(1);
newt_draw_root_text (-30, 0, "Root text in the other corner");
newt_refresh();
sleep(1);
newt_finished();
?>