5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 03:59:59 +08:00
wails/v2/internal/frontend/desktop/darwin
skamensky 04d35410de
Expose screen dimensions (#1519)
* get dimensions working for linux

* Cleaning up some GTK code

I was getting the following errors due to some bad casts.

Gdk-CRITICAL **: 18:58:51.943: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed
Gdk-CRITICAL **: 18:58:51.943: gdk_display_get_monitor_at_window: assertion 'GDK_IS_DISPLAY (display)' failed

This commit fixes these errors

* Adding Screen namespace along with linux implementation

* moving ScreenGetAll into a more appropriate place

* Fixing typescript definition mistake, documentation, ordering of functions, and formatting

* add ScreenGetAll to more templates

* moving screen into its own javascript file

* fixing bug where screen objects are not returned from the runtime function

* rebuilding frontend wrapper package

* adding windows implementation of ScreenGetAll

* adding screen get all implementation for darwin

* reverting a change that is unrelated to the work on expose-dimensions

* removing duplicate comparison

* changing GetNthScreen in screen API on macos

To use frame instead of visibleframe to keep into account the space the the dock takes up
We want to include that space in the calculation in order to keep the sizes of screens consistent across platforms

* Correcting screen jsdoc

It used to say it returned a single screen object. Now it says that it returns an array of screen objects

* Fixing typo in function name

* reverting pointless spacing change

* reverting pointless spacing change

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: shmuel.kamensky <shmuel.kamensky@shutterfly.com>
2022-07-16 12:33:37 +10:00
..
AppDelegate.h [mac] Fix fullscreen / start fullscreen 2021-11-23 20:06:56 +11:00
AppDelegate.m [mac] Fix fullscreen / start fullscreen 2021-11-23 20:06:56 +11:00
Application.h Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
Application.m Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
browser.go [mac] Fix build tags 2021-10-13 21:16:07 +11:00
callbacks.go [mac] menu support 2021-10-30 09:51:46 +11:00
calloc.go [mac] dialog support 2021-10-22 08:42:36 +11:00
dialog.go [v2] Remove AllowFiles & AllowDirectories 2021-12-09 08:16:45 +11:00
frontend.go Expose screen dimensions (#1519) 2022-07-16 12:33:37 +10:00
main.m Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
menu.go [mac] Support MenuUpdateApplicationMenu 2021-10-31 15:09:50 +11:00
menuitem.go [mac] menu support 2021-10-30 09:51:46 +11:00
message.h [v2] Add support for AssetsHandler (#1325) 2022-04-12 20:18:27 +10:00
Role.h [mac] menu support 2021-10-30 09:51:46 +11:00
screen.go Expose screen dimensions (#1519) 2022-07-16 12:33:37 +10:00
WailsAlert.h [mac] Improve string/memory handling, dialog icon -> []byte 2021-10-31 08:50:14 +11:00
WailsAlert.m [mac] Improve string/memory handling, dialog icon -> []byte 2021-10-31 08:50:14 +11:00
WailsContext.h Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
WailsContext.m Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
WailsMenu.h [mac] Improve string/memory handling, dialog icon -> []byte 2021-10-31 08:50:14 +11:00
WailsMenu.m [mac] Fix for submenu titles. Fixes #1026. 2021-12-24 08:00:37 +11:00
WailsMenuItem.h [mac] menu support 2021-10-30 09:51:46 +11:00
WailsMenuItem.m [mac] menu support 2021-10-30 09:51:46 +11:00
window.go Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506) 2022-06-29 22:31:49 +10:00
WindowDelegate.h [mac] Fix fullscreen / start fullscreen 2021-11-23 20:06:56 +11:00
WindowDelegate.m window delegate modify for onBeforeClose hook 2021-12-04 07:52:34 +09:00