Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > cursesライブラリ > Curses::Windowクラス

class Curses::Window

クラスの継承リスト: Curses::Window < Object < Kernel < BasicObject

要約

特異メソッド

定義 説明
new(height, width, y, x)

画面の座標 (x,y) を左上端とし、幅 width 高さ height とする curses のトップレベルウィンドウを 作成し、それを表現する Curses::Window オブジェクトを 返します。

インスタンスメソッド

定義 説明
addstr(str)
self << str

ウィンドウのカーソル位置に文字列 str を上書きします。

addch(ch)

ウィンドウのカーソル位置に ch (1 バイト) を上書きします。

attroff(attrs)
attron(attrs)
attrset(attrs)
begx

親ウィンドウの中でウィンドウの左上がある x 座標を返します。 始点は 0 です。

begy

親ウィンドウの中でウィンドウの左上がある y 座標を返します。 始点は 0 です。

bkgd(ch)
bkgdset(ch)
box(ver_char, hor_char)

縦の線に ver_char、横の線に hor_char を使い ウィンドウに沿って箱を書きます。線は普通にウィンドウ内に 書かれるだけなので上書きしないよう注意してください。

clear

ウィンドウの表示を消去します。 この操作は即座に実行されます。

close

ウィンドウを閉じます。 以降のこのウィンドウオブジェクトに対する操作は例外を発生します。

clrtoeol(color)
color_set(color)
curx

ウィンドウ内におけるカーソルの桁番号を返します。 一桁目が 0 です。

cury

ウィンドウ内におけるカーソルの行番号を返します。 一行目が 0 です。

delch

ウィンドウのカーソル位置から 1 バイト消去します。

deleteln

ウィンドウの、カーソルがある行を消去します。

getbkgd
getch

ウィンドウへの入力から 1 バイト読みこみます。

getstr

ウィンドウへの入力から一行読みこみます。

idlok(bf)
inch

ウィンドウのカーソル位置から 1 バイト読みとって返します。

insch(ch)

ウィンドウのカーソル位置に ch (1 バイト) を挿入します。

insertln
keypad(val)
keypad=(val)
maxx

移動可能な最大の x 座標を返します。 表示可能なバイト数 + 1 です。

maxy

移動可能な最大の y 座標を返します。 表示可能な行 + 1 です。

move(y, x)

ウィンドウを (x,y) に移動します。

nodelay=(val)
noutrefresh
refresh

ウィンドウの表示を更新します。

resize(lin, col)
scrl(n)
scroll
scrollok(bf)
setpos(y, x)

ウィンドウ内の (x,y) にカーソルを移動します。

setscrreg(top, bottom)
standend

強調書き込みを終了します。

standout

以後書き込む文字を強調表示します。

subwin(height, width, y, x)

画面の座標 (x,y) を左上端とし、幅 width 高さ height とするサブウィンドウを作成し、 それを表現する Curses::Window オブジェクトを返します。

timeout=(delay)

継承したメソッド

! != == === =~ __id__ __send__ _dump class clone dclone display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? marshal_dump marshal_load method method_missing methods must_be must_be_close_to must_be_empty must_be_instance_of must_be_kind_of must_be_nil must_be_same_as must_be_within_epsilon must_equal must_include must_match must_raise must_respond_to must_send must_throw nil? pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods public_methods remove_instance_variable respond_to? respond_to_missing? singleton_class singleton_method_added singleton_method_removed singleton_method_undefined singleton_methods taint tainted? tap to_a to_ary to_hash to_int to_io to_proc to_regexp to_s to_str to_yaml to_yaml_properties to_yaml_style trust untaint untrust untrusted? wont_be wont_be_close_to wont_be_empty wont_be_instance_of wont_be_kind_of wont_be_nil wont_be_same_as wont_be_within_epsilon wont_equal wont_include wont_match wont_respond_to