lib/ncursesw.rb in ncursesw-0.9.2 vs lib/ncursesw.rb in ncursesw-1.2.4.1

- old
+ new

@@ -15,11 +15,11 @@ # # You should have received a copy of the GNU Lesser General Public # License along with this module; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# $Id: ncurses.rb,v 1.7 2005/02/26 22:51:29 t-peters Exp $ +# $Id: ncurses.rb,v 1.8 2009/05/03 10:37:54 t-peters Exp $ require "ncursesw_bin.so" # Ncurses constants with leading underscore @@ -107,11 +107,11 @@ module Form class FORM attr_reader :user_object - # This placeholder replaces the field_userptr function in curses + # This placeholder replaces the form_userptr function in curses def user_object=(obj) @user_object = obj end end @@ -123,9 +123,29 @@ @user_object = obj end end class FIELDTYPE + end + end + + module Menu + class MENU + attr_reader :user_object + + # This placeholder replaces the menu_userptr function in curses + def user_object=(obj) + @user_object = obj + end + end + + class ITEM + attr_reader :user_object + + # This placeholder replaces the item_userptr function in curses + def user_object=(obj) + @user_object = obj + end end end end def Ncurses.inchnstr(str,n) Ncurses.winchnstr(Ncurses.stdscr, str, n)