Sha256: d09650111bb9b1efa19a0ade87f07d71667c1fa8652ba4b91520b9802a486cbf
Contents?: true
Size: 539 Bytes
Versions: 28
Compression:
Stored size: 539 Bytes
Contents
#include <Gosu/Gosu.hpp> #import <AppKit/AppKit.h> namespace Gosu { NSUInteger styleMaskFromSDL2 = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask; NSRect availableFrame = [[[NSScreen screens] objectAtIndex:0] visibleFrame]; NSRect availableContentFrame = [NSWindow contentRectForFrameRect:availableFrame styleMask:styleMaskFromSDL2]; } unsigned Gosu::availableWidth() { return availableContentFrame.size.width; } unsigned Gosu::availableHeight() { return availableContentFrame.size.height; }
Version data entries
28 entries across 28 versions & 1 rubygems