Commit Graph

2992 Commits

Author SHA1 Message Date
Andrew Hyatt
afd667f0bc
Merge pull request #4 from TheBrokenRail/patch-3
Fix darlinghq/darling#611
2020-01-07 22:16:52 -05:00
TheBrokenRail
bd8c696aaa
Fix darlinghq/darling#611 2020-01-05 15:14:40 -05:00
Andrew Hyatt
2e09764d1f
AppKit and CoreGraphics improvements for Sketch
darlinghq/darling#494
2019-08-13 21:55:33 -04:00
CuriousTommy
b583fd29ca Implement stubs for iTerm2 (#2)
* Implements the following variables for NSDraggingItem

NSDraggingImageComponentIconKey
NSDraggingImageComponentKey

* Implement NSMenuDidEndTrackingNotification for NSMenu

* Implements the following variables for NSWorkspace.m

NSWorkspaceDidDeactivateApplicationNotification
NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification

* Fix NSSharingService

* Use APPKIT_EXPORT instead of extern
2019-07-30 18:03:33 -04:00
Andrew Hyatt
35e442b89e
More stubs 2019-07-24 21:24:22 -04:00
Andrew Hyatt
4d2f121071
Implement CoreGraphics stubs for sketchtool
darlinghq/darling#494
2019-07-21 15:45:41 -04:00
Andrew Hyatt
bb54ead2a3
Merge pull request #1 from kamillys/master
Some stubs for NSApplication, NSWorkspace
2019-06-10 23:31:26 -04:00
Andrew Hyatt
4fa8477fdd
Use new reexport style 2019-06-10 23:23:21 -04:00
kamillys
926e483e38 Some stubs for NSApplication, NSWorkspace 2019-06-11 03:53:32 +02:00
Andrew Hyatt
83d0fec4c4
General AppKit fixes
* More ImageIO symbols away from CoreGraphics
* Have AppKit reexport some frameworks
* More CoreGraphics stubs
2019-06-09 20:10:27 -04:00
Andrew Hyatt
6116cd1df6
Move stubs from ApplicationServices to CG 2019-06-09 15:43:12 -04:00
Sergey Bugaev
06c93de0ec Implement X11Pasteboard 2019-05-09 17:17:18 +03:00
Sergey Bugaev
d5d9ded91c NSPasteboard improvements 2019-05-09 17:16:45 +03:00
Sergey Bugaev
491e48a8cc Implement -[O2Font_freetype copyGlyphNameForGlyph:]
This fixes printing O2Font_freetype to O2PDFContext.
2019-05-09 17:15:19 +03:00
Sergey Bugaev
56ba4b6a39 Add the X11 socket to kCFRunLoopCommonModes
And only do it once, not ecah time nextEventMatchingMask:untilDate:inMode:dequeue:
is called.
2019-05-09 17:13:29 +03:00
Sergey Bugaev
d1055a598c Misc fixes 2019-05-09 17:12:52 +03:00
Sergey Bugaev
3f78e7d09c Fix NSSpellChecker crashing when there are no spell engines 2019-05-09 17:12:16 +03:00
Sergey Bugaev
76ce4a7dd1 Start fixing printing views
This doesn't completely work yet.
2019-05-09 17:11:13 +03:00
Sergey Bugaev
e04c5af6a8 Implement NSShowAllViews 2019-05-09 17:09:59 +03:00
Sergey Bugaev
afde656ba5 Format pointers using %p instead of 0x%lx 2019-05-09 16:55:14 +03:00
Sergey Bugaev
50a587936a Fix -[NSAttributedString doubleClickAtIndex:] crashing on empty strings 2019-05-09 16:53:14 +03:00
Sergey Bugaev
912403837a Fix some warnings 2019-04-27 00:15:24 +03:00
Sergey Bugaev
1e29c3f77d Move the *_FT classes out of AppKit
This effectively removes the last bits of Linux.subproj

This means we can create an O2Context_builtin_FT as a default bitmap
context type. This way, font rendering works when Onyx2D is used directly.
2019-04-27 00:15:16 +03:00
Sergey Bugaev
69f1ddab15 Fix longjmp()ing from Linux to Darwin and free()ing memory allocated on the Linux side 2019-04-27 00:11:31 +03:00
Sergey Bugaev
00993e849b Enable linking to libpng, libjpeg, and libz
Fixes https://github.com/darlinghq/darling/issues/486
2019-04-27 00:08:08 +03:00
Sergey Bugaev
81388169c4 Move all Onyx2D headers into include/Onyx2D
It would be nice to have a proper public/private headers split, but
Onyx2D is just not designed for it (as are other Cocotron frameworks).

This way, it is at least possible to use Onyx2D without adding the full
Cocotron source tree into the include path.
2019-04-27 00:04:37 +03:00
Andrew Hyatt
cc89db5830 Add symbols for sketchtool
darlinghq/darling#494
2019-04-01 09:15:47 -04:00
Andrew Hyatt
a13d0363b1 Make QuartzCore reexports dependencies
darlinghq/darling#496
2019-03-26 17:48:08 -04:00
Andrew Hyatt
6cfcb21476 Give NSWindow allowsAutomaticTabbing 2019-03-17 13:54:08 -04:00
Andrew Hyatt
94403265ab Reexport some libraries in QuartzCore
It reexports CoreImage, CoreVideo, and objc.
2019-03-17 12:39:58 -04:00
Andrew Hyatt
cdc0879572 AppKit constants
darlinghq/darling#445
2019-03-16 22:55:56 -04:00
Andrew Hyatt
89ca94c60f CAAnimation/CALayer constants
darlinghq/darling#445
2019-01-16 16:36:49 -05:00
Andrew Hyatt
d75da03ddf CAReplicatorLayer and CAScrollLayer classes
darlinghq/darling#445
2019-01-16 16:23:16 -05:00
Andrew Hyatt
38cfae7a6b QuartzCore additions
darlinghq/darling#445
2019-01-16 15:05:59 -05:00
Andrew Hyatt
e8e5426fc4 Accessibility related symbols
darlinghq/darling#445
2019-01-16 15:05:45 -05:00
Sergey Bugaev
7beb0626be Tweak scrollbar theming 2019-01-09 20:04:40 +03:00
Sergey Bugaev
28c4832407 Set the _NET_WM_ICON to the app icon(s)
This requires converting the icons from the ICNS format to the one
expected by X11. Thankfully, Onyx2D can most of the conversion for us.
2019-01-09 20:04:08 +03:00
Sergey Bugaev
63221ace67 Call XSetClassHint() for X11Window's
This lets the desktop environment display the name of the app in its UI.
2019-01-09 19:59:32 +03:00
Sergey Bugaev
af3b319399 Unify O2Font_freetype and O2Font_FT 2019-01-09 19:41:48 +03:00
Sergey Bugaev
53400f1021 Fix O2PDFxref only keeping a weak reference to its contents 2019-01-09 19:37:09 +03:00
Sergey Bugaev
d6dd5d543c ass bytesPerRow through to the PDF image handling code 2019-01-09 19:35:58 +03:00
Sergey Bugaev
828fc8c122 Implement +[O2Context createWithBytes:width:height:bitsPerComponent:bytesPerRow:colorSpace:bitmapInfo:releaseCallback:releaseInfo:] 2019-01-09 19:33:15 +03:00
Sergey Bugaev
610497cf13 Fix O2PDFPageGetDrawingTransform() to support preserving the aspect ration 2019-01-09 19:32:23 +03:00
Sergey Bugaev
21260bfed6 Fix a deadlock when font rendering fails 2019-01-09 19:29:57 +03:00
Sergey Bugaev
3f27e843a3 Use a correct private class name
In our Foundation, like in Apple's one and unlike in Cocotron's one, the
proxy class is called NSMutableStringProxyForMutableAttributedString.
2019-01-09 19:28:26 +03:00
Sergey Bugaev
47d7c19174 Fix NSFormCell using incorrect frames when editing 2019-01-09 19:25:41 +03:00
Sergey Bugaev
2f6736d10c Fix -[NSDocument close] recursing 2019-01-09 19:24:02 +03:00
Sergey Bugaev
312c18fdbb Support NSOpen without an app delegate 2019-01-09 19:21:14 +03:00
Andrew Hyatt
f6a226e5b3 Missing NSAttributedString constants
darlinghq/darling#445
2019-01-10 00:11:10 -05:00
Andrew Hyatt
ab0e1ff51f Missing classes and constants
darlinghq/darling#445
2019-01-09 20:53:55 -05:00