Class: Curses::Window

Inherits:
Object
  • Object
show all
Defined in:
lib/ppcurses/Screen.rb

Overview

Add some methods that allow accessing a window by PPPoint.

Direct Known Subclasses

PPCurses::Window

Instance Method Summary collapse

Instance Method Details

#cur_pointObject



28
29
30
# File 'lib/ppcurses/Screen.rb', line 28

def cur_point
  PPCurses::Point.new(curx, cury)
end

#move_to_point(p) ⇒ Object



36
37
38
# File 'lib/ppcurses/Screen.rb', line 36

def move_to_point( p )
  move(p.y, p.x)
end

#set_pos_by_point(p) ⇒ Object



32
33
34
# File 'lib/ppcurses/Screen.rb', line 32

def set_pos_by_point( p )
  setpos(p.y, p.x)
end