2015-02-11 13:41:06 +03:00
|
|
|
// Copyright (c) 2015 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "atom/common/api/atom_api_native_image.h"
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
2015-04-08 11:20:03 +03:00
|
|
|
void NativeImage::SetTemplateImage(bool setAsTemplate) {
|
|
|
|
[image_.AsNSImage() setTemplate:setAsTemplate];
|
|
|
|
}
|
|
|
|
|
2015-07-27 07:58:48 +03:00
|
|
|
bool NativeImage::IsTemplateImage() {
|
|
|
|
return [image_.AsNSImage() isTemplate];
|
|
|
|
}
|
|
|
|
|
2015-02-11 13:41:06 +03:00
|
|
|
} // namespace api
|
|
|
|
|
|
|
|
} // namespace atom
|