Sha256: bcdd6e9a45306058312df52fdadfe1c34626ce61cb940114df301b2346e7dcb7

Contents?: true

Size: 648 Bytes

Versions: 17

Compression:

Stored size: 648 Bytes

Contents

#include <Gosu/Platform.hpp>
#if defined(GOSU_IS_MAC) && !defined(GOSU_IS_IPHONE)

#import <Gosu/Gosu.hpp>
#import <AppKit/AppKit.h>

static const NSUInteger STYLE_MASK_FROM_SDL2 =
    NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask;

static const NSRect available_frame = [[NSScreen screens][0] visibleFrame];

static const NSRect available_content_frame =
    [NSWindow contentRectForFrameRect:available_frame styleMask:STYLE_MASK_FROM_SDL2];

unsigned Gosu::available_width()
{
    return available_content_frame.size.width;
}

unsigned Gosu::available_height()
{
    return available_content_frame.size.height;
}

#endif

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gosu-0.14.0.pre2 src/ResolutionApple.cpp
gosu-0.13.3 src/ResolutionApple.cpp
gosu-0.13.2 src/ResolutionApple.cpp
gosu-0.13.1 src/ResolutionApple.cpp
gosu-0.13.0 src/ResolutionApple.cpp
gosu-0.12.1 src/ResolutionApple.cpp
gosu-0.12.0 src/ResolutionApple.cpp
gosu-0.11.4.pre3 src/ResolutionApple.cpp
gosu-0.11.4.pre2 src/ResolutionApple.cpp
gosu-0.11.4.pre1 src/ResolutionApple.cpp
gosu-0.11.3.1 src/ResolutionApple.cpp
gosu-0.11.3 src/ResolutionApple.cpp
gosu-0.11.3.pre1 src/ResolutionApple.cpp
gosu-0.11.2 src/ResolutionApple.cpp
gosu-0.11.1 src/ResolutionApple.cpp
gosu-0.11.1.pre1 src/ResolutionApple.cpp
gosu-0.11.0 src/ResolutionApple.cpp