Commit Graph

3213 Commits

Author SHA1 Message Date
Lubos Dolezel
4c8d930356 Some screen mode bugfixes, look for Xext 2020-02-15 16:23:44 +01:00
Lubos Dolezel
2cfef9208b define windowFrameColor, use softer gray color for menu 2020-02-14 19:37:56 +01:00
Lubos Dolezel
51b54ea0d7 Don't throw when nil is passed to [NSImage imageNamed] 2020-02-14 14:19:20 +01:00
Lubos Dolezel
c796e5c8d6 Fix a regression, implement (de)miniaturize 2020-02-14 10:31:01 +01:00
Lubos Dolezel
2dd0310c31 Implement cursor hide / unhide 2020-02-13 22:41:34 +01:00
Lubos Dolezel
1d6ab04c70 X11Cursor implementation 2020-02-13 22:25:44 +01:00
Lubos Dolezel
7b5cfcf0b5 Changes and improvements with relation to keyboard input 2020-02-13 19:01:29 +01:00
Lubos Dolezel
27e492a773 Fix an X11 error when getting the display mode of an offline display 2020-02-13 10:56:47 +01:00
Lubos Dolezel
b764b02d43 Fixes 2020-02-13 10:45:35 +01:00
Lubos Dolezel
500c15e7c6 Small changes, mainly for CoreVideo 2020-02-13 10:28:51 +01:00
Lubos Dolezel
a7522bbd6b Mainly CGDisplay fixes 2020-02-12 22:36:45 +01:00
Lubos Dolezel
fccdb6a87c More work on CGDirectDisplay 2020-02-10 21:59:34 +01:00
Lubos Dolezel
2f1912988f Build fix 2020-02-09 21:52:13 +01:00
Lubos Dolezel
8683954c21 A lot of CGDirectDisplay-related APIs, so far not tested 2020-02-09 21:31:32 +01:00
Lubos Dolezel
67c95bbab1 Add NSApplication setAppleMenu stub 2020-02-09 12:13:40 +01:00
Lubos Dolezel
af0f0c6a1b Implement NSWindowDidExposeNotification (required by SDL) 2020-02-09 12:04:50 +01:00
Lubos Dolezel
dbf2007ef0 Add various stubs, call CFRunLoopAddCommonMode() from the right place 2020-02-08 21:24:27 +01:00
Lubos Dolezel
a445289f3b Add NSModalPanelRunLoopMode and NSEventTrackingRunLoopMode as runloop common modes 2020-02-08 19:44:43 +01:00
Andrew Hyatt
255b78624f
Fix build issue caused by reorganization 2020-01-08 23:41:11 -05:00
Andrew Hyatt
02a36f5f83
Merge pull request #3 from TheBrokenRail/patch-1
Implement setIsVisible
2020-01-07 22:34:13 -05:00
Andrew Hyatt
afd667f0bc
Merge pull request #4 from TheBrokenRail/patch-3
Fix darlinghq/darling#611
2020-01-07 22:16:52 -05:00
TheBrokenRail
a8cc09eba4 Implement -[NSWindow setIsVisible:] 2020-01-05 16:59:26 -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