After some thought, I think the best thing is to allow for arbitrary
creating/setting/getting of window properties. We could do something similar
to X Windows here:

DfbPropertyId TitleId; // some int type
/* called by wm to set up possible properties */
layer->CreateProperty("Window Title", DFPT_STRING, &TitleId);
/* could also have layer->GetPropertyName(property id),
layer->GetPropertyId(property name), etc  */

window->SetStringProperty(TitleId, "My Window's Title");
int size;
window->GetPropertySize(TitleId, &size);
char name[size];
window->GetStringProperty(TitleId, name;

This is just some concept code to get us thinking...

Stephen


-----Original Message-----
From: Sven Neumann [mailto:neo@;bender.convergence.de]On Behalf Of Sven
Neumann
Sent: Saturday, October 26, 2002 1:31 PM
To: Stephen Perez
Cc: [EMAIL PROTECTED]
Subject: [directfb-dev] Re: Window Decorations


Hi,

"Stephen Perez" <[EMAIL PROTECTED]> writes:

> Other things that I believe will need to be added is the ability for
> the window to "hint" that it wants the decoration (just another
> window option?) and also a way to store and retrieve a "caption" in
> a window.

yes, we should have a window title (in UTF-8 encoding) and we should
probably support the window types, states and hints listed in the WM
spec:

 http://www.freedesktop.org/standards/wm-spec/1.2/html/x224.html

Sticking closely to this spec will make it much easier to implement
the API that wraps this stuff in GTK+ and Qt backends.


Salut, Sven


--
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.



-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to