RE: [Fxruby-users] [ANN] Updated API Documentation
Status: Inactive
Brought to you by:
lyle
From: Jacobs, D. <Dee...@Dy...> - 2003-06-09 18:41:18
|
Thanks again, Lyle. This is helpful. Generic examples, like your foo example are extremely helpful. I guess most of my questions will be of the specifics as in the mirror item. I know you will do a fine job. Dee A. Jacobs -----Original Message----- From: Lyle Johnson [mailto:jl...@cf...] Sent: Monday, June 09, 2003 1:37 PM To: fxr...@li... Subject: Re: [Fxruby-users] [ANN] Updated API Documentation Jacobs, Dee wrote: > This is the sort of changes I asked you about back in May. > This is very helpful for newbies to the GUI. Great! > I still see trouble in my understanding of some of the interfaces. > An example below from FXImage - Public functions. > > mirror(horizontal, vertical) > > Mirror image horizontally and/or vertically > > Does this indicate need for values here for each or is > it a choice of options? What are the expected values? This indicates a need for both values. If a method has some optional argument(s), its declaration will look something like this: foo(x, y, z=1) where the "z=1" notation means that the third argument to the "foo" method is optional and, if not specified, assumes a default value of 1. For your specific question: the FXImage#mirror method takes two arguments of boolean type (i.e. true or false). Neither has a default value, so you must specify both of them. If the first argument (horizontal) is true, the image will be mirrored from left-to-right. If the second argument (vertical) is true, the image will be mirrored from top-to-bottom. If both are true it's flipped in both directions. > Please check other places for ambiguities. I will do my best, but things which are ambiguous to you (or others) are not necessarily ambiguous to me. It's going to be a very iterative process, but I hope that you and others will help me to improve the docs as we go along. Thanks, Lyle ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Fxruby-users mailing list Fxr...@li... https://lists.sourceforge.net/lists/listinfo/fxruby-users |