[Vm-dev] X11 HostWindowPlugin (was: Re: ioGetWindowLabel/ioSetWindowLabel (was Re: How to use Croquet VMMaker)

David T. Lewis lewis at mail.msen.com
Sat Jul 19 14:28:13 UTC 2008


Here is a snapshot of a partially implemented HostWindowPlugin
for X11. I have not looked at this in quite a while, but when
I last worked on it a number of things were functional (including
ioSetTitleOfWindow(), for whatever that may be worth).

Some of the support code is crudely hacked out of Ian's original
work, and I would anticipate some effort to make this right. In
particular, it was not clear to me how the X event dispatching
should ultimately work, and whether the host windows should behave 
analogously to Squeak projects or if they were intended to be
more like passive display surfaces.

I could probably be motivated to pick this up again and/or to
help you with it, but in any case feel free to use this in any
way you like. MIT license of course, and the plagiarized parts
should be MIT because I stole them all from Ian ;)


On Fri, Jul 18, 2008 at 06:53:29PM -0700, Bert Freudenberg wrote:
> Am 05.02.2008 um 02:11 schrieb Bert Freudenberg:
> >On Feb 5, 2008, at 8:15 , Andreas Raab wrote:
> >
> >>ioGetWindowLabel/ioSetWindowLabel
> >>
> >>These are support functions that are currently not implemented in  
> >>the Unix/Mac VMs (we use them to get/set the main window title  
> >>directly). Here is how to stub them (best done in sqUnixMain.c):
> >>
> >>char* ioGetWindowLabel(void) {return "";}
> >>sqInt ioSetWindowLabelOfSize(void* lbl, sqInt size) {return 0;}
> >>
> >>This should do the trick.
> >
> >Actually, I need to implement these for X11 anyway. Expect this to  
> >soon be supported in the OLPC branch. Unless someone beats me to it  
> >of course :)
> Hmm, where could I find the code calling this? I'd need both the slang  
> and image-side code.
> - Bert -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X11HostWindowPlugin-dtl.1.cs.gz
Type: application/octet-stream
Size: 1286 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20080719/8abd2fee/X11HostWindowPlugin-dtl.1.cs-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X11HostWindow.tgz
Type: application/x-gtar
Size: 70966 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20080719/8abd2fee/X11HostWindow-0001.tgz

More information about the Vm-dev mailing list