gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DirectFB backend, I'm going for it!


From: Chad Hardin
Subject: Re: DirectFB backend, I'm going for it!
Date: Fri, 9 Jan 2004 21:40:02 -1000

Just as a heads up, Serg Stoyan wrote an NSTitleView class that did window
decoration. Serg you still have this code? If I can get my old powerbook to
turn on I'll fish it out for you...
Thanks! I'd like to see that code.




It looks like the following changes will need to be made for window decorations in NSWindow, please review for me.
GSWindowView
add subviews for decorations.
[GSWindowView -drawRect]
[GSWindowView -frameRect] //to compensate for a smaller contentView
Do you all think it is more appropriate to put the decoration code in GSWindowView? It seems logical to me, but you never know. I'm still a bit confused about what exactly GSwindowView is used for. I thought that the root view for the window is supplied by the program, which means it would be something other than a GSWindowView, yes? Or maybe the contentView is a subview of GSWindowView? Could someone please explain what GSWindowView's role is?





NSWindow's (NSRect) contentRectForFrameRect: (NSRect)aRect
styleMask: (unsigned int)aStyle

Asks the backend what the sizes of the window decorations (styleoffsets)are to calculate the contentRect. However, if NSWindow is gonna be handling this I think it would have to change to first ASK the backend if it handles window decorations. If not, NSwindow figures out the styleoffsets itself

Same thing applies for:
+ (NSRect) frameRectForContentRect: (NSRect)aRect
styleMask: (unsigned int)aStyle
and

+ (NSRect) minFrameWidthWithTitle: (NSString*)aTitle
styleMask: (unsigned int)aStyle


Also, NSWindow's -setTitle* methods would need to change to. Once again they have to ask the backend if it handles the decorations


Please tell me if I'm on the right track here, or if I totally misunderstood something (like GSWindowView)

thanks!

Chad







On Jan 9, 2004, at 7:21 PM, Michael Hanni wrote:

Hi Chad,

Nice to hear that you are giving directfb a go. :)

--- Chad Hardin <address@hidden> wrote:
I suppose I should look at the NSMenu* stuff to, since it is already
doing it's own window decoration and handling.

Just as a heads up, Serg Stoyan wrote an NSTitleView class that did window
decoration. Serg you still have this code? If I can get my old powerbook to
turn on I'll fish it out for you...

This will be first contribution to the actual gnustep sources, so I may
ask some silly questions.

Ask the questions! Please God! :) To see people actually working on/with
GNUstep is great.

Cheers,

Michael

=====


reply via email to

[Prev in Thread] Current Thread [Next in Thread]