comparison src/DLD-FUNCTIONS/__init_fltk__.cc @ 12295:2b7aa04f6b53 release-3-4-x

Add fltk_gui_mode, fltk_mouse_wheel_zoom to documentation.
author Rik <octave@nomad.inbox5.com>
date Sat, 29 Jan 2011 22:31:31 -0800
parents db14b8095edd
children 8cc154f45e37
comparison
equal deleted inserted replaced
12294:e6a2008b14b8 12295:2b7aa04f6b53
1968 1968
1969 DEFUN_DLD (fltk_mouse_wheel_zoom, args, , 1969 DEFUN_DLD (fltk_mouse_wheel_zoom, args, ,
1970 "-*- texinfo -*-\n\ 1970 "-*- texinfo -*-\n\
1971 @deftypefn {Built-in Function} {@var{speed} =} fltk_mouse_wheel_zoom ()\n\ 1971 @deftypefn {Built-in Function} {@var{speed} =} fltk_mouse_wheel_zoom ()\n\
1972 @deftypefnx {Built-in Function} {} fltk_mouse_wheel_zoom (@var{speed})\n\ 1972 @deftypefnx {Built-in Function} {} fltk_mouse_wheel_zoom (@var{speed})\n\
1973 Query or set the mouse wheel zoom factor in the fltk graphics toolkit.\n\ 1973 Query or set the mouse wheel zoom factor in the FLTK graphics toolkit.\n\
1974 @seealso{fltk_gui_mode}\n\
1974 @end deftypefn") 1975 @end deftypefn")
1975 { 1976 {
1976 octave_value retval = wheel_zoom_speed; 1977 octave_value retval = wheel_zoom_speed;
1977 1978
1978 if (args.length () == 1) 1979 if (args.length () == 1)
2000 Allows rotating and zooming of current axes.\n\ 2001 Allows rotating and zooming of current axes.\n\
2001 \n\ 2002 \n\
2002 @item 'none'\n\ 2003 @item 'none'\n\
2003 Mouse inputs have no effect.\n\ 2004 Mouse inputs have no effect.\n\
2004 @end table\n\ 2005 @end table\n\
2006 @seealso{fltk_mouse_wheel_zoom}\n\
2005 @end deftypefn") 2007 @end deftypefn")
2006 { 2008 {
2007 caseless_str mode_str; 2009 caseless_str mode_str;
2008 2010
2009 if (gui_mode == pan_zoom) 2011 if (gui_mode == pan_zoom)
2034 else 2036 else
2035 failed = true; 2037 failed = true;
2036 } 2038 }
2037 2039
2038 if (failed) 2040 if (failed)
2039 error ("MODE must be one of the strings: \"2D\", \"3D\", or \"None\""); 2041 error ("MODE must be one of the strings: \"2D\", \"3D\", or \"none\"");
2040 2042
2041 2043
2042 return octave_value(mode_str); 2044 return octave_value(mode_str);
2043 } 2045 }
2044 2046