[Y-devel] (no subject)

Matthew Allen fret at memecode.com
Mon Mar 15 23:10:27 GMT 2004


---------- Original Message ----------
To: Matthew Allen (fret at memecode.com)
From: Jost Boekemeier (jost2345 at yahoo.de)
Subject: [Y-devel] (no subject)
Date: 16/3/2004 6:37:51a

>You have mentioned a library which implements cross-platform widgets by
>using plain vector drawing requests.  Is this library available as free
>software?

Yes, LGPL:
https://www.memecode.com/lgi.php

>> - How do I create a font from face/pt size/style/weight etc?
>
>Dealing with UTF-8 strings is outside of the scope of a display server.
>The display server only needs to know about glyphs. How you create the
>glyphs is up to you.  You can use the pango lib and xft for example.

Or fontconfig and freetype to more precise.

I think font handling IS the domain of the display server. Instead of having a 100 different apps implementing the same font handling. All the caching of rendered glyphs and lookup tables for rendering missing glyphs should be in the display server, instead of dupelicated in every application.

This is how Windows and MacOSX works, and it's very successful IMHO.

>> - How does an application show an icon in the system tray (when there
>> is one)?
>
>A "system tray" is outside of the scope of a display server.

Maybe, but there is no DE yet :(

But I hope the people thinking of writing a DE keep this in mind.

>> - How do I create a client side bitmap that I can do direct pixel 
>> manipulation on (ie XImage/DIB Section)?
>
>This is outside of the scope of a display server.  How you create images
>on the client-side is up to you.  Use gdk-pixbuf for this.

But having a client side bitmap is pointless unless you can blt it to the screen on one of your windows.

>> - How do I scroll a bit of onscreen graphics?
>
>With memmove I think. Although I am not sure I've understood your
>question.

When you scroll a window on Win32, you can call ScrollDC to move the common region of graphics data and then you repaint the part of the client data that was exposed. The point of this is that the graphics card can move the common area of data at full internal bandwidth in a hardware driver implementation giving amazingly smooth flicker free scrolling.

>> - How do I take a screen shot into a memory bitmap I can access?
>
>This is outside of the scope ... gdk-pixbuf has functions for this.

I can easily create a bitmap in memory and I've already got all the functions to write to it in primitives. The question is, how to blt it onto the screen?

>> - How do I change the appearence of the cursor over specific parts of
>> a widget?
>
>Not sure, but I guess every widget has a cursor associated with it. If
>this is currently not implemented, just implement this feature.
>
>
>I have stopped reading here, because most of what you are asking for is
>not implemented.

Thats fine. I just wanted to stimulate discussion and maybe spur someone to thing about adding these sorts of things.

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