[Y-devel] (no subject)
Matthew Allen fret at memecode.com
Mon Mar 15 12:19:11 GMT 2004
---------- Original Message ----------
To: (fret at memecode.com)
From: Jost Boekemeier (jost2345 at yahoo.de)
Subject: [Y-devel] (no subject)
Date: 15/3/2004 11:52:52p
> > To start with, is there any documentation for Y::Object::setProperty
> > parameters?
>
> Read the source. :)
Ok, thats fine.
> > To map my own cross platform API onto Y I need control over the
> > positioning and layout myself.
>
> Do you want to implement your widgets on the server-side in parallel to
> the Y standard widgets and extend the network protocol or you want to
> use a canvas widget?
At the moment I'll use the canvas widget for a client side implementation. It'll fit in nicely with how Lgi works on X11 and Win32. It's mostly owner drawn there.
To the rest of the list:
I'm a little concerned about the memory usage of lots of canvas windows. Should a treat a canvas as a 1:1 entity with a top level window and do all my painting / clipping into that to simulate a widget heirarchy or create a canvas for every child widget of the top level window?
Also is there any drag and drop API implemented yet?
One thing I really like about the win32 API is that a window has associated text with it. This allows any application to read/write a HWND's string. This is an important part of interoperability between programs. For instance imagine trying to write a generic spell checker program for Y, that can spell check any text box. Does the API support getting/setting the text of another applications window? Maybe it should.
At least the ARGB component format maps perfectly to Lgi's internal colour representation. No tweaking required :)
Ok 20 questions (which probably don't have answers but I need answered to port Lgi):
- How do I query all the installed fonts?
- How do I retreive the "default font face/pt size/style"?
- How do I create a font from face/pt size/style/weight etc?
- How do I measure a utf-8 string for width and height?
- Can I get a fonts ascent/descent?
- Can I find out how many characters will fit into a given width?
- Can I find out the glyphs supported in a given font?
- How does an application show an icon in the system tray (when there is one)?
- How do I create a client side bitmap that I can do direct pixel manipulation on (ie XImage/DIB Section)?
- How do I scroll a bit of onscreen graphics?
- How do I take a screen shot into a memory bitmap I can access?
- How do I change the appearence of the cursor over specific parts of a widget?
- How do I grab/capture the mouse to implement a button properly?
- How can I track all mouse events without "grabbing" the mouse? (essential for popup menus)
- What sort of charset are keyboard events in? Can I get them in unicode?
- How do I create a top level window without decor (window borders)?
- How do I calculate the size of the decor?
- How do I "hide" a top level window (make invisible)?
- How do I detect the user clicking the "X" in the top right corner of the decor (what event is that)?
- How do I get Y to run with hardware support so it isn't sooooooo sssssssllllllllllllooooooowwwwwww?
regards
--
Matthew Allen
(fret at memecode.com) (https://www.memecode.com)
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved