Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fcd587a8
Commit
fcd587a8
authored
Nov 29, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac.drv: Remove DECLSPEC_HIDDEN usage.
parent
35b3ff8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
247 additions
and
259 deletions
+247
-259
cocoa_event.h
dlls/winemac.drv/cocoa_event.h
+2
-2
macdrv.h
dlls/winemac.drv/macdrv.h
+132
-132
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+109
-121
macdrv_dll.h
dlls/winemac.drv/macdrv_dll.h
+4
-4
No files found.
dlls/winemac.drv/cocoa_event.h
View file @
fcd587a8
...
@@ -64,5 +64,5 @@ enum {
...
@@ -64,5 +64,5 @@ enum {
void
OnMainThread
(
dispatch_block_t
block
);
void
OnMainThread
(
dispatch_block_t
block
);
macdrv_event
*
macdrv_create_event
(
int
type
,
WineWindow
*
window
)
DECLSPEC_HIDDEN
;
macdrv_event
*
macdrv_create_event
(
int
type
,
WineWindow
*
window
);
macdrv_event
*
macdrv_retain_event
(
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
macdrv_event
*
macdrv_retain_event
(
macdrv_event
*
event
);
dlls/winemac.drv/macdrv.h
View file @
fcd587a8
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
#include "unixlib.h"
#include "unixlib.h"
extern
BOOL
skip_single_buffer_flushes
DECLSPEC_HIDDEN
;
extern
BOOL
skip_single_buffer_flushes
;
extern
BOOL
allow_vsync
DECLSPEC_HIDDEN
;
extern
BOOL
allow_vsync
;
extern
BOOL
allow_set_gamma
DECLSPEC_HIDDEN
;
extern
BOOL
allow_set_gamma
;
extern
BOOL
allow_software_rendering
DECLSPEC_HIDDEN
;
extern
BOOL
allow_software_rendering
;
extern
BOOL
disable_window_decorations
DECLSPEC_HIDDEN
;
extern
BOOL
disable_window_decorations
;
extern
const
char
*
debugstr_cf
(
CFTypeRef
t
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_cf
(
CFTypeRef
t
);
static
inline
CGRect
cgrect_from_rect
(
RECT
rect
)
static
inline
CGRect
cgrect_from_rect
(
RECT
rect
)
{
{
...
@@ -74,17 +74,17 @@ static inline const char *wine_dbgstr_cgrect(CGRect cgrect)
...
@@ -74,17 +74,17 @@ static inline const char *wine_dbgstr_cgrect(CGRect cgrect)
CGRectGetMaxX
(
cgrect
),
CGRectGetMaxY
(
cgrect
));
CGRectGetMaxX
(
cgrect
),
CGRectGetMaxY
(
cgrect
));
}
}
extern
const
char
*
debugstr_cf
(
CFTypeRef
t
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_cf
(
CFTypeRef
t
);
/**************************************************************************
/**************************************************************************
* Mac GDI driver
* Mac GDI driver
*/
*/
extern
CGRect
macdrv_get_desktop_rect
(
void
)
DECLSPEC_HIDDEN
;
extern
CGRect
macdrv_get_desktop_rect
(
void
);
extern
void
macdrv_reset_device_metrics
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_reset_device_metrics
(
void
);
extern
BOOL
macdrv_GetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
);
extern
BOOL
macdrv_SetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_SetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
);
/**************************************************************************
/**************************************************************************
...
@@ -115,7 +115,7 @@ struct macdrv_thread_data
...
@@ -115,7 +115,7 @@ struct macdrv_thread_data
WORD
keyc2scan
[
128
];
WORD
keyc2scan
[
128
];
};
};
extern
struct
macdrv_thread_data
*
macdrv_init_thread_data
(
void
)
DECLSPEC_HIDDEN
;
extern
struct
macdrv_thread_data
*
macdrv_init_thread_data
(
void
);
static
inline
struct
macdrv_thread_data
*
macdrv_thread_data
(
void
)
static
inline
struct
macdrv_thread_data
*
macdrv_thread_data
(
void
)
{
{
...
@@ -123,59 +123,59 @@ static inline struct macdrv_thread_data *macdrv_thread_data(void)
...
@@ -123,59 +123,59 @@ static inline struct macdrv_thread_data *macdrv_thread_data(void)
}
}
extern
BOOL
macdrv_ActivateKeyboardLayout
(
HKL
hkl
,
UINT
flags
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_ActivateKeyboardLayout
(
HKL
hkl
,
UINT
flags
);
extern
void
macdrv_Beep
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_Beep
(
void
);
extern
LONG
macdrv_ChangeDisplaySettings
(
LPDEVMODEW
displays
,
LPCWSTR
primary_name
,
HWND
hwnd
,
DWORD
flags
,
LPVOID
lpvoid
)
DECLSPEC_HIDDEN
;
extern
LONG
macdrv_ChangeDisplaySettings
(
LPDEVMODEW
displays
,
LPCWSTR
primary_name
,
HWND
hwnd
,
DWORD
flags
,
LPVOID
lpvoid
);
extern
BOOL
macdrv_GetCurrentDisplaySettings
(
LPCWSTR
name
,
BOOL
is_primary
,
LPDEVMODEW
devmode
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetCurrentDisplaySettings
(
LPCWSTR
name
,
BOOL
is_primary
,
LPDEVMODEW
devmode
);
extern
INT
macdrv_GetDisplayDepth
(
LPCWSTR
name
,
BOOL
is_primary
)
DECLSPEC_HIDDEN
;
extern
INT
macdrv_GetDisplayDepth
(
LPCWSTR
name
,
BOOL
is_primary
);
extern
LRESULT
macdrv_ClipboardWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
extern
LRESULT
macdrv_ClipboardWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
);
extern
BOOL
macdrv_UpdateDisplayDevices
(
const
struct
gdi_device_manager
*
device_manager
,
extern
BOOL
macdrv_UpdateDisplayDevices
(
const
struct
gdi_device_manager
*
device_manager
,
BOOL
force
,
void
*
param
)
DECLSPEC_HIDDEN
;
BOOL
force
,
void
*
param
);
extern
BOOL
macdrv_GetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
);
extern
BOOL
macdrv_SetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_SetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
);
extern
BOOL
macdrv_ClipCursor
(
const
RECT
*
clip
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_ClipCursor
(
const
RECT
*
clip
,
BOOL
reset
);
extern
LRESULT
macdrv_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
extern
LRESULT
macdrv_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
extern
void
macdrv_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_DestroyWindow
(
HWND
hwnd
);
extern
void
macdrv_SetDesktopWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetDesktopWindow
(
HWND
hwnd
);
extern
void
macdrv_SetFocus
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetFocus
(
HWND
hwnd
);
extern
void
macdrv_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
extern
void
macdrv_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
DWORD
flags
);
extern
void
macdrv_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
);
extern
void
macdrv_SetWindowRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetWindowRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
);
extern
void
macdrv_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
);
extern
void
macdrv_SetWindowText
(
HWND
hwnd
,
LPCWSTR
text
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetWindowText
(
HWND
hwnd
,
LPCWSTR
text
);
extern
UINT
macdrv_ShowWindow
(
HWND
hwnd
,
INT
cmd
,
RECT
*
rect
,
UINT
swp
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_ShowWindow
(
HWND
hwnd
,
INT
cmd
,
RECT
*
rect
,
UINT
swp
);
extern
LRESULT
macdrv_SysCommand
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
extern
LRESULT
macdrv_SysCommand
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
);
extern
BOOL
macdrv_UpdateLayeredWindow
(
HWND
hwnd
,
const
UPDATELAYEREDWINDOWINFO
*
info
,
extern
BOOL
macdrv_UpdateLayeredWindow
(
HWND
hwnd
,
const
UPDATELAYEREDWINDOWINFO
*
info
,
const
RECT
*
window_rect
)
DECLSPEC_HIDDEN
;
const
RECT
*
window_rect
);
extern
LRESULT
macdrv_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
extern
LRESULT
macdrv_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
);
extern
BOOL
macdrv_WindowPosChanging
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
extern
BOOL
macdrv_WindowPosChanging
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
RECT
*
visible_rect
,
struct
window_surface
**
surface
)
DECLSPEC_HIDDEN
;
RECT
*
visible_rect
,
struct
window_surface
**
surface
);
extern
void
macdrv_WindowPosChanged
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
extern
void
macdrv_WindowPosChanged
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
,
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
,
struct
window_surface
*
surface
)
DECLSPEC_HIDDEN
;
struct
window_surface
*
surface
);
extern
void
macdrv_DestroyCursorIcon
(
HCURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_DestroyCursorIcon
(
HCURSOR
cursor
);
extern
BOOL
macdrv_GetCursorPos
(
LPPOINT
pos
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetCursorPos
(
LPPOINT
pos
);
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
);
extern
void
macdrv_SetCursor
(
HWND
hwnd
,
HCURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCursor
(
HWND
hwnd
,
HCURSOR
cursor
);
extern
BOOL
macdrv_SetCursorPos
(
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_SetCursorPos
(
INT
x
,
INT
y
);
extern
BOOL
macdrv_RegisterHotKey
(
HWND
hwnd
,
UINT
mod_flags
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_RegisterHotKey
(
HWND
hwnd
,
UINT
mod_flags
,
UINT
vkey
);
extern
void
macdrv_UnregisterHotKey
(
HWND
hwnd
,
UINT
modifiers
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_UnregisterHotKey
(
HWND
hwnd
,
UINT
modifiers
,
UINT
vkey
);
extern
SHORT
macdrv_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
macdrv_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
);
extern
UINT
macdrv_ImeProcessKey
(
HIMC
himc
,
UINT
wparam
,
UINT
lparam
,
const
BYTE
*
state
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_ImeProcessKey
(
HIMC
himc
,
UINT
wparam
,
UINT
lparam
,
const
BYTE
*
state
);
extern
UINT
macdrv_ImeToAsciiEx
(
UINT
vkey
,
UINT
vsc
,
const
BYTE
*
state
,
COMPOSITIONSTRING
*
compstr
,
HIMC
himc
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_ImeToAsciiEx
(
UINT
vkey
,
UINT
vsc
,
const
BYTE
*
state
,
COMPOSITIONSTRING
*
compstr
,
HIMC
himc
);
extern
UINT
macdrv_MapVirtualKeyEx
(
UINT
wCode
,
UINT
wMapType
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_MapVirtualKeyEx
(
UINT
wCode
,
UINT
wMapType
,
HKL
hkl
);
extern
INT
macdrv_ToUnicodeEx
(
UINT
virtKey
,
UINT
scanCode
,
const
BYTE
*
lpKeyState
,
extern
INT
macdrv_ToUnicodeEx
(
UINT
virtKey
,
UINT
scanCode
,
const
BYTE
*
lpKeyState
,
LPWSTR
bufW
,
int
bufW_size
,
UINT
flags
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
LPWSTR
bufW
,
int
bufW_size
,
UINT
flags
,
HKL
hkl
);
extern
UINT
macdrv_GetKeyboardLayoutList
(
INT
size
,
HKL
*
list
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_GetKeyboardLayoutList
(
INT
size
,
HKL
*
list
);
extern
INT
macdrv_GetKeyNameText
(
LONG
lparam
,
LPWSTR
buffer
,
INT
size
)
DECLSPEC_HIDDEN
;
extern
INT
macdrv_GetKeyNameText
(
LONG
lparam
,
LPWSTR
buffer
,
INT
size
);
extern
void
macdrv_NotifyIMEStatus
(
HWND
hwnd
,
UINT
status
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_NotifyIMEStatus
(
HWND
hwnd
,
UINT
status
);
extern
BOOL
macdrv_SystemParametersInfo
(
UINT
action
,
UINT
int_param
,
void
*
ptr_param
,
extern
BOOL
macdrv_SystemParametersInfo
(
UINT
action
,
UINT
int_param
,
void
*
ptr_param
,
UINT
flags
)
DECLSPEC_HIDDEN
;
UINT
flags
);
extern
BOOL
macdrv_ProcessEvents
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_ProcessEvents
(
DWORD
mask
);
extern
void
macdrv_ThreadDetach
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_ThreadDetach
(
void
);
/* macdrv private window data */
/* macdrv private window data */
...
@@ -202,89 +202,89 @@ struct macdrv_win_data
...
@@ -202,89 +202,89 @@ struct macdrv_win_data
struct
window_surface
*
unminimized_surface
;
struct
window_surface
*
unminimized_surface
;
};
};
extern
struct
macdrv_win_data
*
get_win_data
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
struct
macdrv_win_data
*
get_win_data
(
HWND
hwnd
);
extern
void
release_win_data
(
struct
macdrv_win_data
*
data
)
DECLSPEC_HIDDEN
;
extern
void
release_win_data
(
struct
macdrv_win_data
*
data
);
extern
void
init_win_context
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_win_context
(
void
);
extern
macdrv_window
macdrv_get_cocoa_window
(
HWND
hwnd
,
BOOL
require_on_screen
)
DECLSPEC_HIDDEN
;
extern
macdrv_window
macdrv_get_cocoa_window
(
HWND
hwnd
,
BOOL
require_on_screen
);
extern
RGNDATA
*
get_region_data
(
HRGN
hrgn
,
HDC
hdc_lptodp
)
DECLSPEC_HIDDEN
;
extern
RGNDATA
*
get_region_data
(
HRGN
hrgn
,
HDC
hdc_lptodp
);
extern
void
activate_on_following_focus
(
void
)
DECLSPEC_HIDDEN
;
extern
void
activate_on_following_focus
(
void
);
extern
struct
window_surface
*
create_surface
(
macdrv_window
window
,
const
RECT
*
rect
,
extern
struct
window_surface
*
create_surface
(
macdrv_window
window
,
const
RECT
*
rect
,
struct
window_surface
*
old_surface
,
BOOL
use_alpha
)
DECLSPEC_HIDDEN
;
struct
window_surface
*
old_surface
,
BOOL
use_alpha
);
extern
void
set_window_surface
(
macdrv_window
window
,
struct
window_surface
*
window_surface
)
DECLSPEC_HIDDEN
;
extern
void
set_window_surface
(
macdrv_window
window
,
struct
window_surface
*
window_surface
);
extern
void
set_surface_use_alpha
(
struct
window_surface
*
window_surface
,
BOOL
use_alpha
)
DECLSPEC_HIDDEN
;
extern
void
set_surface_use_alpha
(
struct
window_surface
*
window_surface
,
BOOL
use_alpha
);
extern
void
surface_clip_to_visible_rect
(
struct
window_surface
*
window_surface
,
const
RECT
*
visible_rect
)
DECLSPEC_HIDDEN
;
extern
void
surface_clip_to_visible_rect
(
struct
window_surface
*
window_surface
,
const
RECT
*
visible_rect
);
extern
void
macdrv_handle_event
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_handle_event
(
const
macdrv_event
*
event
);
extern
void
macdrv_window_close_requested
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_close_requested
(
HWND
hwnd
);
extern
void
macdrv_window_frame_changed
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_frame_changed
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_window_got_focus
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_got_focus
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_window_lost_focus
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_lost_focus
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_app_activated
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_app_activated
(
void
);
extern
void
macdrv_app_deactivated
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_app_deactivated
(
void
);
extern
void
macdrv_app_quit_requested
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_app_quit_requested
(
const
macdrv_event
*
event
);
extern
void
macdrv_window_maximize_requested
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_maximize_requested
(
HWND
hwnd
);
extern
void
macdrv_window_minimize_requested
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_minimize_requested
(
HWND
hwnd
);
extern
void
macdrv_window_did_minimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_minimize
(
HWND
hwnd
);
extern
void
macdrv_window_did_unminimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_unminimize
(
HWND
hwnd
);
extern
void
macdrv_window_brought_forward
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_brought_forward
(
HWND
hwnd
);
extern
void
macdrv_window_resize_ended
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_resize_ended
(
HWND
hwnd
);
extern
void
macdrv_window_restore_requested
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_restore_requested
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_window_drag_begin
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_drag_begin
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_window_drag_end
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_drag_end
(
HWND
hwnd
);
extern
void
macdrv_reassert_window_position
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_reassert_window_position
(
HWND
hwnd
);
extern
BOOL
query_resize_size
(
HWND
hwnd
,
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_resize_size
(
HWND
hwnd
,
macdrv_query
*
query
);
extern
BOOL
query_resize_start
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_resize_start
(
HWND
hwnd
);
extern
BOOL
query_min_max_info
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_min_max_info
(
HWND
hwnd
);
extern
void
macdrv_mouse_button
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_mouse_button
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_mouse_moved
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_mouse_moved
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_mouse_scroll
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_mouse_scroll
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_release_capture
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_release_capture
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
);
extern
void
macdrv_compute_keyboard_layout
(
struct
macdrv_thread_data
*
thread_data
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_compute_keyboard_layout
(
struct
macdrv_thread_data
*
thread_data
);
extern
void
macdrv_keyboard_changed
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_keyboard_changed
(
const
macdrv_event
*
event
);
extern
void
macdrv_key_event
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_key_event
(
HWND
hwnd
,
const
macdrv_event
*
event
);
extern
void
macdrv_hotkey_press
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_hotkey_press
(
const
macdrv_event
*
event
);
extern
HKL
macdrv_get_hkl_from_source
(
TISInputSourceRef
input_source
)
DECLSPEC_HIDDEN
;
extern
HKL
macdrv_get_hkl_from_source
(
TISInputSourceRef
input_source
);
extern
void
macdrv_displays_changed
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_displays_changed
(
const
macdrv_event
*
event
);
extern
void
macdrv_UpdateClipboard
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_UpdateClipboard
(
void
);
extern
BOOL
query_pasteboard_data
(
HWND
hwnd
,
CFStringRef
type
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_pasteboard_data
(
HWND
hwnd
,
CFStringRef
type
);
extern
void
macdrv_lost_pasteboard_ownership
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_lost_pasteboard_ownership
(
HWND
hwnd
);
extern
struct
opengl_funcs
*
macdrv_wine_get_wgl_driver
(
UINT
version
)
DECLSPEC_HIDDEN
;
extern
struct
opengl_funcs
*
macdrv_wine_get_wgl_driver
(
UINT
version
);
extern
const
struct
vulkan_funcs
*
macdrv_wine_get_vulkan_driver
(
UINT
version
)
DECLSPEC_HIDDEN
;
extern
const
struct
vulkan_funcs
*
macdrv_wine_get_vulkan_driver
(
UINT
version
);
extern
void
sync_gl_view
(
struct
macdrv_win_data
*
data
,
const
RECT
*
old_whole_rect
,
const
RECT
*
old_client_rect
)
DECLSPEC_HIDDEN
;
extern
void
sync_gl_view
(
struct
macdrv_win_data
*
data
,
const
RECT
*
old_whole_rect
,
const
RECT
*
old_client_rect
);
extern
CGImageRef
create_cgimage_from_icon_bitmaps
(
HDC
hdc
,
HANDLE
icon
,
HBITMAP
hbmColor
,
extern
CGImageRef
create_cgimage_from_icon_bitmaps
(
HDC
hdc
,
HANDLE
icon
,
HBITMAP
hbmColor
,
unsigned
char
*
color_bits
,
int
color_size
,
HBITMAP
hbmMask
,
unsigned
char
*
color_bits
,
int
color_size
,
HBITMAP
hbmMask
,
unsigned
char
*
mask_bits
,
int
mask_size
,
int
width
,
unsigned
char
*
mask_bits
,
int
mask_size
,
int
width
,
int
height
,
int
istep
)
DECLSPEC_HIDDEN
;
int
height
,
int
istep
);
extern
CGImageRef
create_cgimage_from_icon
(
HANDLE
icon
,
int
width
,
int
height
)
DECLSPEC_HIDDEN
;
extern
CGImageRef
create_cgimage_from_icon
(
HANDLE
icon
,
int
width
,
int
height
);
extern
CFArrayRef
create_app_icon_images
(
void
)
DECLSPEC_HIDDEN
;
extern
CFArrayRef
create_app_icon_images
(
void
);
extern
void
macdrv_status_item_mouse_button
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_status_item_mouse_button
(
const
macdrv_event
*
event
);
extern
void
macdrv_status_item_mouse_move
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_status_item_mouse_move
(
const
macdrv_event
*
event
);
extern
void
check_retina_status
(
void
)
DECLSPEC_HIDDEN
;
extern
void
check_retina_status
(
void
);
extern
void
macdrv_init_display_devices
(
BOOL
force
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_init_display_devices
(
BOOL
force
);
extern
void
macdrv_resize_desktop
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_resize_desktop
(
void
);
extern
void
init_user_driver
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_user_driver
(
void
);
/* unixlib interface */
/* unixlib interface */
extern
NTSTATUS
macdrv_dnd_get_data
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_get_data
(
void
*
arg
);
extern
NTSTATUS
macdrv_dnd_get_formats
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_get_formats
(
void
*
arg
);
extern
NTSTATUS
macdrv_dnd_have_format
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_have_format
(
void
*
arg
);
extern
NTSTATUS
macdrv_dnd_release
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_release
(
void
*
arg
);
extern
NTSTATUS
macdrv_dnd_retain
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_retain
(
void
*
arg
);
extern
NTSTATUS
macdrv_notify_icon
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_notify_icon
(
void
*
arg
);
extern
NTSTATUS
macdrv_client_func
(
enum
macdrv_client_funcs
func
,
const
void
*
params
,
extern
NTSTATUS
macdrv_client_func
(
enum
macdrv_client_funcs
func
,
const
void
*
params
,
ULONG
size
)
DECLSPEC_HIDDEN
;
ULONG
size
);
/* user helpers */
/* user helpers */
...
@@ -335,15 +335,15 @@ static inline BOOL intersect_rect( RECT *dst, const RECT *src1, const RECT *src2
...
@@ -335,15 +335,15 @@ static inline BOOL intersect_rect( RECT *dst, const RECT *src1, const RECT *src2
/* registry helpers */
/* registry helpers */
extern
HKEY
open_hkcu_key
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
extern
HKEY
open_hkcu_key
(
const
char
*
name
);
extern
ULONG
query_reg_value
(
HKEY
hkey
,
const
WCHAR
*
name
,
KEY_VALUE_PARTIAL_INFORMATION
*
info
,
extern
ULONG
query_reg_value
(
HKEY
hkey
,
const
WCHAR
*
name
,
KEY_VALUE_PARTIAL_INFORMATION
*
info
,
ULONG
size
)
DECLSPEC_HIDDEN
;
ULONG
size
);
extern
HKEY
reg_create_ascii_key
(
HKEY
root
,
const
char
*
name
,
DWORD
options
,
extern
HKEY
reg_create_ascii_key
(
HKEY
root
,
const
char
*
name
,
DWORD
options
,
DWORD
*
disposition
)
DECLSPEC_HIDDEN
;
DWORD
*
disposition
);
extern
HKEY
reg_create_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
,
extern
HKEY
reg_create_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
,
DWORD
options
,
DWORD
*
disposition
)
DECLSPEC_HIDDEN
;
DWORD
options
,
DWORD
*
disposition
);
extern
BOOL
reg_delete_tree
(
HKEY
parent
,
const
WCHAR
*
name
,
ULONG
name_len
)
DECLSPEC_HIDDEN
;
extern
BOOL
reg_delete_tree
(
HKEY
parent
,
const
WCHAR
*
name
,
ULONG
name_len
);
extern
HKEY
reg_open_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
)
DECLSPEC_HIDDEN
;
extern
HKEY
reg_open_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
);
/* string helpers */
/* string helpers */
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
fcd587a8
...
@@ -86,18 +86,6 @@
...
@@ -86,18 +86,6 @@
#include <pthread.h>
#include <pthread.h>
#ifndef DECLSPEC_HIDDEN
# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__)
# define DECLSPEC_HIDDEN
# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
# else
# define DECLSPEC_HIDDEN
# endif
#endif
#include "macdrv_res.h"
#include "macdrv_res.h"
...
@@ -153,21 +141,21 @@ struct macdrv_display {
...
@@ -153,21 +141,21 @@ struct macdrv_display {
/* main */
/* main */
extern
int
macdrv_err_on
;
extern
int
macdrv_err_on
;
extern
int
topmost_float_inactive
DECLSPEC_HIDDEN
;
extern
int
topmost_float_inactive
;
extern
int
capture_displays_for_fullscreen
DECLSPEC_HIDDEN
;
extern
int
capture_displays_for_fullscreen
;
extern
int
left_option_is_alt
DECLSPEC_HIDDEN
;
extern
int
left_option_is_alt
;
extern
int
right_option_is_alt
DECLSPEC_HIDDEN
;
extern
int
right_option_is_alt
;
extern
int
left_command_is_ctrl
DECLSPEC_HIDDEN
;
extern
int
left_command_is_ctrl
;
extern
int
right_command_is_ctrl
DECLSPEC_HIDDEN
;
extern
int
right_command_is_ctrl
;
extern
int
allow_immovable_windows
DECLSPEC_HIDDEN
;
extern
int
allow_immovable_windows
;
extern
int
use_confinement_cursor_clipping
DECLSPEC_HIDDEN
;
extern
int
use_confinement_cursor_clipping
;
extern
int
cursor_clipping_locks_windows
DECLSPEC_HIDDEN
;
extern
int
cursor_clipping_locks_windows
;
extern
int
use_precise_scrolling
DECLSPEC_HIDDEN
;
extern
int
use_precise_scrolling
;
extern
int
gl_surface_mode
DECLSPEC_HIDDEN
;
extern
int
gl_surface_mode
;
extern
CFDictionaryRef
localized_strings
DECLSPEC_HIDDEN
;
extern
CFDictionaryRef
localized_strings
;
extern
int
retina_enabled
DECLSPEC_HIDDEN
;
/* Whether Retina mode is enabled via registry setting. */
extern
int
retina_enabled
;
/* Whether Retina mode is enabled via registry setting. */
extern
int
retina_on
DECLSPEC_HIDDEN
;
/* Whether Retina mode is currently active (enabled and display is in default mode). */
extern
int
retina_on
;
/* Whether Retina mode is currently active (enabled and display is in default mode). */
extern
int
enable_app_nap
DECLSPEC_HIDDEN
;
extern
int
enable_app_nap
;
static
inline
CGRect
cgrect_mac_from_win
(
CGRect
rect
)
static
inline
CGRect
cgrect_mac_from_win
(
CGRect
rect
)
{
{
...
@@ -239,21 +227,21 @@ static inline CGPoint cgpoint_win_from_mac(CGPoint point)
...
@@ -239,21 +227,21 @@ static inline CGPoint cgpoint_win_from_mac(CGPoint point)
return
point
;
return
point
;
}
}
extern
int
macdrv_start_cocoa_app
(
unsigned
long
long
tickcount
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_start_cocoa_app
(
unsigned
long
long
tickcount
);
extern
void
macdrv_window_rejected_focus
(
const
struct
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_rejected_focus
(
const
struct
macdrv_event
*
event
);
extern
void
macdrv_beep
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_beep
(
void
);
extern
void
macdrv_set_application_icon
(
CFArrayRef
images
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_application_icon
(
CFArrayRef
images
);
extern
void
macdrv_quit_reply
(
int
reply
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_quit_reply
(
int
reply
);
extern
int
macdrv_using_input_method
(
void
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_using_input_method
(
void
);
extern
void
macdrv_set_mouse_capture_window
(
macdrv_window
window
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_mouse_capture_window
(
macdrv_window
window
);
extern
void
macdrv_set_cocoa_retina_mode
(
int
new_mode
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_cocoa_retina_mode
(
int
new_mode
);
/* cursor */
/* cursor */
extern
void
macdrv_set_cursor
(
CFStringRef
name
,
CFArrayRef
frames
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_cursor
(
CFStringRef
name
,
CFArrayRef
frames
);
extern
int
macdrv_get_cursor_position
(
CGPoint
*
pos
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_cursor_position
(
CGPoint
*
pos
);
extern
int
macdrv_set_cursor_position
(
CGPoint
pos
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_set_cursor_position
(
CGPoint
pos
);
extern
int
macdrv_clip_cursor
(
CGRect
rect
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_clip_cursor
(
CGRect
rect
);
/* display */
/* display */
...
@@ -299,16 +287,16 @@ struct macdrv_monitor
...
@@ -299,16 +287,16 @@ struct macdrv_monitor
uint32_t
state_flags
;
uint32_t
state_flags
;
};
};
extern
int
macdrv_get_displays
(
struct
macdrv_display
**
displays
,
int
*
count
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_displays
(
struct
macdrv_display
**
displays
,
int
*
count
);
extern
void
macdrv_free_displays
(
struct
macdrv_display
*
displays
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_free_displays
(
struct
macdrv_display
*
displays
);
extern
int
macdrv_set_display_mode
(
const
struct
macdrv_display
*
display
,
extern
int
macdrv_set_display_mode
(
const
struct
macdrv_display
*
display
,
CGDisplayModeRef
display_mode
)
DECLSPEC_HIDDEN
;
CGDisplayModeRef
display_mode
);
extern
int
macdrv_get_gpus
(
struct
macdrv_gpu
**
gpus
,
int
*
count
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_gpus
(
struct
macdrv_gpu
**
gpus
,
int
*
count
);
extern
void
macdrv_free_gpus
(
struct
macdrv_gpu
*
gpus
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_free_gpus
(
struct
macdrv_gpu
*
gpus
);
extern
int
macdrv_get_adapters
(
uint64_t
gpu_id
,
struct
macdrv_adapter
**
adapters
,
int
*
count
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_adapters
(
uint64_t
gpu_id
,
struct
macdrv_adapter
**
adapters
,
int
*
count
);
extern
void
macdrv_free_adapters
(
struct
macdrv_adapter
*
adapters
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_free_adapters
(
struct
macdrv_adapter
*
adapters
);
extern
int
macdrv_get_monitors
(
uint32_t
adapter_id
,
struct
macdrv_monitor
**
monitors
,
int
*
count
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_monitors
(
uint32_t
adapter_id
,
struct
macdrv_monitor
**
monitors
,
int
*
count
);
extern
void
macdrv_free_monitors
(
struct
macdrv_monitor
*
monitors
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_free_monitors
(
struct
macdrv_monitor
*
monitors
);
/* event */
/* event */
...
@@ -509,21 +497,21 @@ static inline macdrv_event_mask event_mask_for_type(int type)
...
@@ -509,21 +497,21 @@ static inline macdrv_event_mask event_mask_for_type(int type)
typedef
void
(
*
macdrv_event_handler
)(
const
macdrv_event
*
event
);
typedef
void
(
*
macdrv_event_handler
)(
const
macdrv_event
*
event
);
extern
macdrv_event_queue
macdrv_create_event_queue
(
macdrv_event_handler
handler
)
DECLSPEC_HIDDEN
;
extern
macdrv_event_queue
macdrv_create_event_queue
(
macdrv_event_handler
handler
);
extern
void
macdrv_destroy_event_queue
(
macdrv_event_queue
queue
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_destroy_event_queue
(
macdrv_event_queue
queue
);
extern
int
macdrv_get_event_queue_fd
(
macdrv_event_queue
queue
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_event_queue_fd
(
macdrv_event_queue
queue
);
extern
int
macdrv_copy_event_from_queue
(
macdrv_event_queue
queue
,
extern
int
macdrv_copy_event_from_queue
(
macdrv_event_queue
queue
,
macdrv_event_mask
mask
,
macdrv_event
**
event
)
DECLSPEC_HIDDEN
;
macdrv_event_mask
mask
,
macdrv_event
**
event
);
extern
void
macdrv_release_event
(
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_release_event
(
macdrv_event
*
event
);
extern
macdrv_query
*
macdrv_create_query
(
void
)
DECLSPEC_HIDDEN
;
extern
macdrv_query
*
macdrv_create_query
(
void
);
extern
macdrv_query
*
macdrv_retain_query
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
macdrv_query
*
macdrv_retain_query
(
macdrv_query
*
query
);
extern
void
macdrv_release_query
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_release_query
(
macdrv_query
*
query
);
extern
void
macdrv_set_query_done
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_query_done
(
macdrv_query
*
query
);
extern
int
macdrv_register_hot_key
(
macdrv_event_queue
q
,
unsigned
int
vkey
,
unsigned
int
mod_flags
,
extern
int
macdrv_register_hot_key
(
macdrv_event_queue
q
,
unsigned
int
vkey
,
unsigned
int
mod_flags
,
unsigned
int
keycode
,
unsigned
int
modifiers
)
DECLSPEC_HIDDEN
;
unsigned
int
keycode
,
unsigned
int
modifiers
);
extern
void
macdrv_unregister_hot_key
(
macdrv_event_queue
q
,
unsigned
int
vkey
,
unsigned
int
mod_flags
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_unregister_hot_key
(
macdrv_event_queue
q
,
unsigned
int
vkey
,
unsigned
int
mod_flags
);
/* window */
/* window */
...
@@ -550,88 +538,88 @@ struct macdrv_window_state {
...
@@ -550,88 +538,88 @@ struct macdrv_window_state {
};
};
extern
macdrv_window
macdrv_create_cocoa_window
(
const
struct
macdrv_window_features
*
wf
,
extern
macdrv_window
macdrv_create_cocoa_window
(
const
struct
macdrv_window_features
*
wf
,
CGRect
frame
,
void
*
hwnd
,
macdrv_event_queue
queue
)
DECLSPEC_HIDDEN
;
CGRect
frame
,
void
*
hwnd
,
macdrv_event_queue
queue
);
extern
void
macdrv_destroy_cocoa_window
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_destroy_cocoa_window
(
macdrv_window
w
);
extern
void
*
macdrv_get_window_hwnd
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
void
*
macdrv_get_window_hwnd
(
macdrv_window
w
);
extern
void
macdrv_set_cocoa_window_features
(
macdrv_window
w
,
extern
void
macdrv_set_cocoa_window_features
(
macdrv_window
w
,
const
struct
macdrv_window_features
*
wf
)
DECLSPEC_HIDDEN
;
const
struct
macdrv_window_features
*
wf
);
extern
void
macdrv_set_cocoa_window_state
(
macdrv_window
w
,
extern
void
macdrv_set_cocoa_window_state
(
macdrv_window
w
,
const
struct
macdrv_window_state
*
state
)
DECLSPEC_HIDDEN
;
const
struct
macdrv_window_state
*
state
);
extern
void
macdrv_set_cocoa_window_title
(
macdrv_window
w
,
const
UniChar
*
title
,
extern
void
macdrv_set_cocoa_window_title
(
macdrv_window
w
,
const
UniChar
*
title
,
size_t
length
)
DECLSPEC_HIDDEN
;
size_t
length
);
extern
void
macdrv_order_cocoa_window
(
macdrv_window
w
,
macdrv_window
prev
,
extern
void
macdrv_order_cocoa_window
(
macdrv_window
w
,
macdrv_window
prev
,
macdrv_window
next
,
int
activate
)
DECLSPEC_HIDDEN
;
macdrv_window
next
,
int
activate
);
extern
void
macdrv_hide_cocoa_window
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_hide_cocoa_window
(
macdrv_window
w
);
extern
void
macdrv_set_cocoa_window_frame
(
macdrv_window
w
,
const
CGRect
*
new_frame
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_cocoa_window_frame
(
macdrv_window
w
,
const
CGRect
*
new_frame
);
extern
void
macdrv_get_cocoa_window_frame
(
macdrv_window
w
,
CGRect
*
out_frame
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_get_cocoa_window_frame
(
macdrv_window
w
,
CGRect
*
out_frame
);
extern
void
macdrv_set_cocoa_parent_window
(
macdrv_window
w
,
macdrv_window
parent
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_cocoa_parent_window
(
macdrv_window
w
,
macdrv_window
parent
);
extern
void
macdrv_set_window_surface
(
macdrv_window
w
,
void
*
surface
,
pthread_mutex_t
*
mutex
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_window_surface
(
macdrv_window
w
,
void
*
surface
,
pthread_mutex_t
*
mutex
);
extern
CGImageRef
create_surface_image
(
void
*
window_surface
,
CGRect
*
rect
,
int
copy_data
,
int
color_keyed
,
extern
CGImageRef
create_surface_image
(
void
*
window_surface
,
CGRect
*
rect
,
int
copy_data
,
int
color_keyed
,
CGFloat
key_red
,
CGFloat
key_green
,
CGFloat
key_blue
)
DECLSPEC_HIDDEN
;
CGFloat
key_red
,
CGFloat
key_green
,
CGFloat
key_blue
);
extern
int
get_surface_blit_rects
(
void
*
window_surface
,
const
CGRect
**
rects
,
int
*
count
)
DECLSPEC_HIDDEN
;
extern
int
get_surface_blit_rects
(
void
*
window_surface
,
const
CGRect
**
rects
,
int
*
count
);
extern
void
macdrv_window_needs_display
(
macdrv_window
w
,
CGRect
rect
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_needs_display
(
macdrv_window
w
,
CGRect
rect
);
extern
void
macdrv_set_window_shape
(
macdrv_window
w
,
const
CGRect
*
rects
,
int
count
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_window_shape
(
macdrv_window
w
,
const
CGRect
*
rects
,
int
count
);
extern
void
macdrv_set_window_alpha
(
macdrv_window
w
,
CGFloat
alpha
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_window_alpha
(
macdrv_window
w
,
CGFloat
alpha
);
extern
void
macdrv_set_window_color_key
(
macdrv_window
w
,
CGFloat
keyRed
,
CGFloat
keyGreen
,
extern
void
macdrv_set_window_color_key
(
macdrv_window
w
,
CGFloat
keyRed
,
CGFloat
keyGreen
,
CGFloat
keyBlue
)
DECLSPEC_HIDDEN
;
CGFloat
keyBlue
);
extern
void
macdrv_clear_window_color_key
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_clear_window_color_key
(
macdrv_window
w
);
extern
void
macdrv_window_use_per_pixel_alpha
(
macdrv_window
w
,
int
use_per_pixel_alpha
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_use_per_pixel_alpha
(
macdrv_window
w
,
int
use_per_pixel_alpha
);
extern
void
macdrv_give_cocoa_window_focus
(
macdrv_window
w
,
int
activate
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_give_cocoa_window_focus
(
macdrv_window
w
,
int
activate
);
extern
void
macdrv_set_window_min_max_sizes
(
macdrv_window
w
,
CGSize
min_size
,
CGSize
max_size
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_window_min_max_sizes
(
macdrv_window
w
,
CGSize
min_size
,
CGSize
max_size
);
extern
macdrv_view
macdrv_create_view
(
CGRect
rect
)
DECLSPEC_HIDDEN
;
extern
macdrv_view
macdrv_create_view
(
CGRect
rect
);
extern
void
macdrv_dispose_view
(
macdrv_view
v
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_dispose_view
(
macdrv_view
v
);
extern
void
macdrv_set_view_frame
(
macdrv_view
v
,
CGRect
rect
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_view_frame
(
macdrv_view
v
,
CGRect
rect
);
extern
void
macdrv_set_view_superview
(
macdrv_view
v
,
macdrv_view
s
,
macdrv_window
w
,
macdrv_view
p
,
macdrv_view
n
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_view_superview
(
macdrv_view
v
,
macdrv_view
s
,
macdrv_window
w
,
macdrv_view
p
,
macdrv_view
n
);
extern
void
macdrv_set_view_hidden
(
macdrv_view
v
,
int
hidden
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_view_hidden
(
macdrv_view
v
,
int
hidden
);
extern
void
macdrv_add_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_add_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
);
extern
void
macdrv_remove_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_remove_view_opengl_context
(
macdrv_view
v
,
macdrv_opengl_context
c
);
extern
macdrv_metal_device
macdrv_create_metal_device
(
void
)
DECLSPEC_HIDDEN
;
extern
macdrv_metal_device
macdrv_create_metal_device
(
void
);
extern
void
macdrv_release_metal_device
(
macdrv_metal_device
d
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_release_metal_device
(
macdrv_metal_device
d
);
extern
macdrv_metal_view
macdrv_view_create_metal_view
(
macdrv_view
v
,
macdrv_metal_device
d
)
DECLSPEC_HIDDEN
;
extern
macdrv_metal_view
macdrv_view_create_metal_view
(
macdrv_view
v
,
macdrv_metal_device
d
);
extern
macdrv_metal_layer
macdrv_view_get_metal_layer
(
macdrv_metal_view
v
)
DECLSPEC_HIDDEN
;
extern
macdrv_metal_layer
macdrv_view_get_metal_layer
(
macdrv_metal_view
v
);
extern
void
macdrv_view_release_metal_view
(
macdrv_metal_view
v
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_view_release_metal_view
(
macdrv_metal_view
v
);
extern
int
macdrv_get_view_backing_size
(
macdrv_view
v
,
int
backing_size
[
2
])
DECLSPEC_HIDDEN
;
extern
int
macdrv_get_view_backing_size
(
macdrv_view
v
,
int
backing_size
[
2
]);
extern
void
macdrv_set_view_backing_size
(
macdrv_view
v
,
const
int
backing_size
[
2
])
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_view_backing_size
(
macdrv_view
v
,
const
int
backing_size
[
2
]);
extern
uint32_t
macdrv_window_background_color
(
void
)
DECLSPEC_HIDDEN
;
extern
uint32_t
macdrv_window_background_color
(
void
);
extern
void
macdrv_send_text_input_event
(
int
pressed
,
unsigned
int
flags
,
int
repeat
,
int
keyc
,
extern
void
macdrv_send_text_input_event
(
int
pressed
,
unsigned
int
flags
,
int
repeat
,
int
keyc
,
void
*
data
,
int
*
done
)
DECLSPEC_HIDDEN
;
void
*
data
,
int
*
done
);
extern
int
macdrv_is_any_wine_window_visible
(
void
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_is_any_wine_window_visible
(
void
);
/* keyboard */
/* keyboard */
extern
void
macdrv_get_input_source_info
(
CFDataRef
*
uchr
,
CGEventSourceKeyboardType
*
keyboard_type
,
int
*
is_iso
,
extern
void
macdrv_get_input_source_info
(
CFDataRef
*
uchr
,
CGEventSourceKeyboardType
*
keyboard_type
,
int
*
is_iso
,
TISInputSourceRef
*
input_source
)
DECLSPEC_HIDDEN
;
TISInputSourceRef
*
input_source
);
extern
CFArrayRef
macdrv_create_input_source_list
(
void
)
DECLSPEC_HIDDEN
;
extern
CFArrayRef
macdrv_create_input_source_list
(
void
);
extern
int
macdrv_select_input_source
(
TISInputSourceRef
input_source
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_select_input_source
(
TISInputSourceRef
input_source
);
extern
const
CFStringRef
macdrv_input_source_input_key
DECLSPEC_HIDDEN
;
extern
const
CFStringRef
macdrv_input_source_input_key
;
extern
const
CFStringRef
macdrv_input_source_type_key
DECLSPEC_HIDDEN
;
extern
const
CFStringRef
macdrv_input_source_type_key
;
extern
const
CFStringRef
macdrv_input_source_lang_key
DECLSPEC_HIDDEN
;
extern
const
CFStringRef
macdrv_input_source_lang_key
;
extern
int
macdrv_layout_list_needs_update
DECLSPEC_HIDDEN
;
extern
int
macdrv_layout_list_needs_update
;
/* clipboard */
/* clipboard */
extern
CFArrayRef
macdrv_copy_pasteboard_types
(
CFTypeRef
pasteboard
)
DECLSPEC_HIDDEN
;
extern
CFArrayRef
macdrv_copy_pasteboard_types
(
CFTypeRef
pasteboard
);
extern
CFDataRef
macdrv_copy_pasteboard_data
(
CFTypeRef
pasteboard
,
CFStringRef
type
)
DECLSPEC_HIDDEN
;
extern
CFDataRef
macdrv_copy_pasteboard_data
(
CFTypeRef
pasteboard
,
CFStringRef
type
);
extern
int
macdrv_is_pasteboard_owner
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_is_pasteboard_owner
(
macdrv_window
w
);
extern
int
macdrv_has_pasteboard_changed
(
void
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_has_pasteboard_changed
(
void
);
extern
void
macdrv_clear_pasteboard
(
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_clear_pasteboard
(
macdrv_window
w
);
extern
int
macdrv_set_pasteboard_data
(
CFStringRef
type
,
CFDataRef
data
,
macdrv_window
w
)
DECLSPEC_HIDDEN
;
extern
int
macdrv_set_pasteboard_data
(
CFStringRef
type
,
CFDataRef
data
,
macdrv_window
w
);
/* opengl */
/* opengl */
extern
macdrv_opengl_context
macdrv_create_opengl_context
(
void
*
cglctx
)
DECLSPEC_HIDDEN
;
extern
macdrv_opengl_context
macdrv_create_opengl_context
(
void
*
cglctx
);
extern
void
macdrv_dispose_opengl_context
(
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_dispose_opengl_context
(
macdrv_opengl_context
c
);
extern
void
macdrv_make_context_current
(
macdrv_opengl_context
c
,
macdrv_view
v
,
CGRect
r
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_make_context_current
(
macdrv_opengl_context
c
,
macdrv_view
v
,
CGRect
r
);
extern
void
macdrv_update_opengl_context
(
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_update_opengl_context
(
macdrv_opengl_context
c
);
extern
void
macdrv_flush_opengl_context
(
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_flush_opengl_context
(
macdrv_opengl_context
c
);
/* systray / status item */
/* systray / status item */
extern
macdrv_status_item
macdrv_create_status_item
(
macdrv_event_queue
q
)
DECLSPEC_HIDDEN
;
extern
macdrv_status_item
macdrv_create_status_item
(
macdrv_event_queue
q
);
extern
void
macdrv_destroy_status_item
(
macdrv_status_item
s
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_destroy_status_item
(
macdrv_status_item
s
);
extern
void
macdrv_set_status_item_image
(
macdrv_status_item
s
,
CGImageRef
cgimage
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_status_item_image
(
macdrv_status_item
s
,
CGImageRef
cgimage
);
extern
void
macdrv_set_status_item_tooltip
(
macdrv_status_item
s
,
CFStringRef
cftip
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_set_status_item_tooltip
(
macdrv_status_item
s
,
CFStringRef
cftip
);
extern
void
macdrv_clear_ime_text
(
void
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_clear_ime_text
(
void
);
#endif
/* __WINE_MACDRV_COCOA_H */
#endif
/* __WINE_MACDRV_COCOA_H */
dlls/winemac.drv/macdrv_dll.h
View file @
fcd587a8
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
#include "ntgdi.h"
#include "ntgdi.h"
#include "unixlib.h"
#include "unixlib.h"
extern
NTSTATUS
WINAPI
macdrv_dnd_query_drag
(
void
*
arg
,
ULONG
size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
macdrv_dnd_query_drag
(
void
*
arg
,
ULONG
size
);
extern
NTSTATUS
WINAPI
macdrv_dnd_query_drop
(
void
*
arg
,
ULONG
size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
macdrv_dnd_query_drop
(
void
*
arg
,
ULONG
size
);
extern
NTSTATUS
WINAPI
macdrv_dnd_query_exited
(
void
*
arg
,
ULONG
size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
macdrv_dnd_query_exited
(
void
*
arg
,
ULONG
size
);
extern
HMODULE
macdrv_module
DECLSPEC_HIDDEN
;
extern
HMODULE
macdrv_module
;
#endif
/* __WINE_MACDRV_DLL_H */
#endif
/* __WINE_MACDRV_DLL_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment