bug-gnustep
[Top][All Lists]
Advanced

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

[bug #17377] Various frame related methods in NSWindow return wrong resu


From: Fred Kiefer
Subject: [bug #17377] Various frame related methods in NSWindow return wrong results
Date: Fri, 11 Aug 2006 12:37:23 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.1 (like Gecko)

Follow-up Comment #5, bug #17377 (project gnustep):

The code we have there in the different decorators is there on purpose. When
Alexander Malmberg implemented the window decoration handling inside of
GNUstep gui he wanted to end up with things right the way they are now.
I remember there was documentation for all of this, but I cannot find it at
the momenet. The main thing was that Alex came up with three rectangles where
OpenStep only has two, contentRect and frameRect. The third one being
screenRect, which is the actual space on the screen occupied by the window.
Including the window decoration, from what ever source it is coming. For the
different decorators two of these three rectangles are identical, but
different ones for the different decorators.
I would think that you should get the values you are aiming for by using the
screenRect methods instead of the frameRect methods. But this would make your
code incompatible to code for Cocoa or OpenStep. 
As far as I can tell this screenRect code does not get used anywhere. Perhaps
it would be better to reconsider the whole interface.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17377>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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