class Curses::Window

Add some methods that allow accessing a window by PPPoint.

Public Instance Methods

cur_point() click to toggle source
# File lib/ppcurses/Screen.rb, line 28
def cur_point
  PPCurses::Point.new(curx, cury)
end
move_to_point( p ) click to toggle source
# File lib/ppcurses/Screen.rb, line 36
def move_to_point( p )
  move(p.y, p.x)
end
set_pos_by_point( p ) click to toggle source
# File lib/ppcurses/Screen.rb, line 32
def set_pos_by_point( p )
  setpos(p.y, p.x)
end