2008/11/9 David T. Lewis <lewis@mail.msen.com>:
On Sun, Nov 09, 2008 at 01:47:26PM +0200, Igor Stasenko wrote:
Hello list,
i started design of new plugin, which is conceptually based on HostWindows, but will be more integral & flexible. ...
Awaiting for your comments or suggestions.
I tried implementing HostWindowPlugin for X11 a couple of years ago but did not complete it. IIRC, one area of difficulty was the encoding of X-Y coordinates in the plugin parameters, which put the X and Y values into the high and low order 16 bits of a 32 bit int. On X11, the coordinates are (32 bit) signed ints, and I recall that negative screen positions causes problems. Sorry I can't recall the exact details, but if you do reimplement the plugin, I would suggest encoding screen position parameters as separate X and Y ints rather than the hi and lo 16 bit scheme used in the current plugin.
Oh, that's the bits i'm missing. I found the sources of HostWindowPlugin for win and mac, but was unable to find anything for X11. Can you please send me a sources of it, or link for downloads? Concerning 16/32 bit - forget it :) Internally, all attribute declarations having a type. Currently it will support only most commonly used types: - int - boolean - string but of course, in case of need, more types can be added later. A plugin will coerce values back and forth without any problems. And of course, i don't see a need in packing X and Y into a single 32 bit int as its currently done in HostWindowPlugin. Partly, because there will be no #setXY or #setSizeXY , but instead you'll have only an attributeAt: #attributeName put: value and setAttributes: { #name1 -> value1. #name2-> value2 ... } primitives for setting multiple attributes in single batch.
Dave
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.