[Y-devel] How do I...

Matthew Allen fret at memecode.com
Tue Apr 27 01:42:08 BST 2004


---------- Original Message ----------
To: Matthew Allen (matthew at cisra.canon.com.au)
From: Mark Thomas (mark at www.y-windows.org)
Subject: Re: [Y-devel] How do I...
Date: 24/4/2004 5:27:06a

>On Fri, 23 Apr 2004, Matthew Allen wrote:
>
>> ...close my top level Y::Window without quiting the application?
>> [...]
>> There is a nice "show" function to put it on the screen but no "hide" to
>> quit it.
>
>This (as well as object deletion), is yet to be implemented.  There's a
>slight caveat with object deletion in that other things (be they part of
>the server, or later on other clients) may have references to that object.
>We need to notify them of the objects demise and keep its data around long
>enough so that they can do things with it if they need to.  Thoughts?

As long as the reference ID for the window isn't reused any time soon. Dangling references to it should be ok. Any request for that windows properties/methods should just fail with a "doesn't exist" error code.

Generally the shutdown of a window is an async sort of thing. The application "quits" or "hides" the window and several events along the lines of "about to delete this window?" and then "deleting now!" should get sent through which should give the client side a chance to clean up it's references to the Y::Window object. Then the Y::Window instance should be deleted on the delete last message from the server, after the client has processed the message. But thats based on the Linux / Windows sort of event model. I'm not aware of the internals of Y enough to comment on whether it maps or not. Although I'd be nice to have a "quit" separate from "hide" so that making the window disappear for a while and then "show" it again is possible without having to setup all the widgets and events again. Quit should hide and then delete a window.

I'm just a widget set writer, but I know what I like in an API. So as I get furthur into implementing support for things I'll let people know where the API is difficult to use. If the Y coders were a company I'd be a "customer" :)

>> I'm still waiting for some way of sending bitmap image data to a
>> Y::Canvas as well. Is that going to happen soon? Currently I'm storing
>> all my images in a chuck of my own memory (although I can't put them on
>> to the screen). Until such time as Y has it's own client read/writable
>> image store (think DIB section or XImage).
>
>This won't be written until I've finished overhauling the buffer system
>with s.faubel's PixelBuffer work.  I've been pressed for time lately, so
>no Y development :(   It is next on my list though.

Ok great. I'll work on text output and my own client side widget layout and drawing in the mean time.
--
Matthew Allen




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved