[Gambas-devel] To Tobias : about gb.ncurses interface
Benoît Minisini
gambas at ...1...
Sun Jun 3 17:34:49 CEST 2012
Hi Tobi,
Here is a few (strong) suggestions about the gb.ncurses interface :-)
This is mainly some symbol renaming for simplification and coherency
with other components.
Tell me of course if you disagree or if you have a better solution!
Color class
-----------
I suggest splitting the class, and having a Color class for colors, and
a Pair class for pairs.
Color.Capabilities.Color ---> Color.Available
Color.Capabilities.Change ---> Color.CanChange
Color.Colors ---> Color.Count
Color[] ---> Pair[]
Color.Pairs ---> Pair.Count
Color.Content & Color.Define ---> Color[].{Red,Green,Blue}
Color.Define ---> Color.Set
I strongly suggest to use floating point values between 0.0 and 1.0 for
color components, and not the library values between 0 and 1000.
Window class
------------
ContainerW & ContainerH: I don't like the name of these properties. :-)
Are they really useful? Can't we assume that the window border is always
one character?
Otherwise, can't you have X,Y,W,H property for the outer, and
ClientX,ClientY,ClientW,ClientH for the inner, like in gui components?
Screen class
------------
Screen.Repeater ---> Screen.RepeatDelay
That's all at the moment! Now waiting for your comments...
Regards,
--
Benoît Minisini
More information about the Devel
mailing list