-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from a740g/clipboard-fixes
Fix #541 and update clip library
- Loading branch information
Showing
17 changed files
with
1,201 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
#define CLIP_COMMON_H_INCLUDED | ||
#pragma once | ||
|
||
#include "clip.h" | ||
|
||
namespace clip { | ||
namespace details { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Clip Library | ||
// Copyright (c) 2024 David Capello | ||
// | ||
// This file is released under the terms of the MIT license. | ||
// Read LICENSE.txt for more information. | ||
|
||
#ifndef CLIP_OSX_H_INCLUDED | ||
#define CLIP_OSX_H_INCLUDED | ||
#pragma once | ||
|
||
#ifdef __OBJC__ | ||
|
||
#include <Cocoa/Cocoa.h> | ||
|
||
namespace clip { | ||
|
||
class image; | ||
struct image_spec; | ||
|
||
namespace osx { | ||
|
||
#if CLIP_ENABLE_IMAGE | ||
|
||
bool get_image_from_clipboard(NSPasteboard* pasteboard, | ||
image* output_img, | ||
image_spec* output_spec); | ||
|
||
#endif // CLIP_ENABLE_IMAGE | ||
|
||
} // namespace osx | ||
} // namespace clip | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.