wraster library support and alpha/compositing improvements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6272 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-03-12 04:35:43 +00:00
parent 12941a20dc
commit 2c92f9cdaa
5 changed files with 22 additions and 44 deletions

View file

@ -64,17 +64,6 @@
#include <AppKit/NSGraphics.h>
#include <AppKit/GSWraps.h>
static float GSTitleBarHeight = 24.0;
static float GSResizeBarHeight = 11.0;
/*
PJB: This should be the same as in GSMenuBarHeight in NSMenuView
and the actual title bar height currently drawn by WindowMaker.
(We should do this ourselves).
I don't know how it's been computed for NSMenu, but I find the
title bar heigh to be 24 pixels.
*/
BOOL GSViewAcceptsDrag(NSView *v, id<NSDraggingInfo> dragInfo);
/*
@ -613,7 +602,7 @@ static NSMapTable* windowmaps = NULL;
backing_type = bufferingType;
style_mask = aStyle;
frame = [NSWindow frameRectForContentRect: contentRect styleMask: aStyle];
minimum_size = NSMakeSize(frame.size.width - contentRect.size.width + 1,
frame.size.height - contentRect.size.height + 1);
@ -1186,18 +1175,9 @@ static NSMapTable* windowmaps = NULL;
{
NSSize screenSize = [[NSScreen mainScreen] frame].size;
NSPoint origin = frame.origin;
float offset=0.0;
// center the window within it's screen,
// taking into account the title bar and the resize bar heights <PJB>.
if((style_mask&NSTitledWindowMask)!=0){
offset+=GSTitleBarHeight;
}
if((style_mask&NSResizableWindowMask)!=0){
offset+=GSResizeBarHeight;
}
origin.x = (screenSize.width - frame.size.width) / 2;
origin.y = (screenSize.height - offset - frame.size.height) / 2;
origin.y = (screenSize.height - frame.size.height) / 2;
[self setFrameOrigin: origin];
}