electron/atom/browser/api/atom_api_screen_mac.mm

19 lines
358 B
Text
Raw Normal View History

// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
2017-05-24 02:24:56 +00:00
#import "atom/browser/api/atom_api_screen.h"
#import <Cocoa/Cocoa.h>
namespace atom {
namespace api {
2017-06-05 17:33:46 +00:00
int Screen::getMenuBarHeight() {
2017-05-24 02:24:56 +00:00
return [[NSApp mainMenu] menuBarHeight];
}
2017-05-24 02:24:56 +00:00
}// namespace api
}// namespace atom