Re: [Fxruby-users] [ANN] Updated API Documentation
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <jl...@cf...> - 2003-06-09 17:28:10
|
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
|