Skip to content

Commit 7bd80ea

Browse files
committed
Remove impossible to implement platform window management functions
1 parent 8a08ef3 commit 7bd80ea

File tree

2 files changed

+16
-26
lines changed

2 files changed

+16
-26
lines changed

Framework/C/Interfaces/CWindowInterface.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ void UImGui_Window_Platform_setWindowAlwaysOnBottom()
9898
UImGui::Window::Platform::setWindowAlwaysOnBottom();
9999
}
100100

101-
void UImGui_Window_Platform_disableWindowMovement()
102-
{
103-
UImGui::Window::Platform::disableWindowMovement();
104-
}
105-
106101
void UImGui_Window_Platform_setWindowShowingOnPager(const bool bShowInPager)
107102
{
108103
UImGui::Window::Platform::setWindowShowingOnPager(bShowInPager);

Framework/C/Interfaces/CWindowInterface.h

+16-21
Original file line numberDiff line numberDiff line change
@@ -66,48 +66,43 @@ extern "C"
6666
UIMGUI_PUBLIC_API void UImGui_Window_pushWindowCloseCallback(UImGui_Window_pushWindowCloseCallbackFun f);
6767

6868
// Event Safety - begin, style, post-begin
69-
// Available for platforms - X11
70-
// Platforms to be supported - Wayland, Win32
69+
// Available for platforms - X11, Win32 & macOS
70+
// Platforms to be supported - Wayland
7171
UIMGUI_PUBLIC_API void UImGui_Window_Platform_setWindowAlwaysOnTop();
7272

7373
// Event Safety - begin, style, post-begin
74-
// Available for platforms - X11
75-
// Platforms to be supported - Wayland, Win32
74+
// Available for platforms - X11, Win32 & macOS
75+
// Platforms to be supported - Wayland
7676
UIMGUI_PUBLIC_API void UImGui_Window_Platform_setWindowAlwaysOnBottom();
7777

7878
// Event Safety - begin, style, post-begin
79-
// Available for platforms - X11
80-
// Platforms to be supported - Wayland, Win32
81-
UIMGUI_PUBLIC_API void UImGui_Window_Platform_disableWindowMovement();
82-
83-
// Event Safety - begin, style, post-begin
84-
// Available for platforms - X11
85-
// Platforms to be supported - Wayland, Win32
79+
// Available for platforms - X11, Win32 & macOS
80+
// Platforms to be supported - Wayland
8681
UIMGUI_PUBLIC_API void UImGui_Window_Platform_setWindowShowingOnPager(bool bShowInPager);
8782
// Event Safety - begin, style, post-begin
88-
// Available for platforms - X11
89-
// Platforms to be supported - Wayland, Win32
83+
// Available for platforms - X11, Win32 & macOS
84+
// Platforms to be supported - Wayland
9085
UIMGUI_PUBLIC_API bool UImGui_Window_Platform_getWindowShowingOnPager();
9186

9287
// Event Safety - begin, style, post-begin
93-
// Available for platforms - X11
94-
// Platforms to be supported - Wayland, Win32
88+
// Available for platforms - X11, Win32 & macOS
89+
// Platforms to be supported - Wayland
9590
UIMGUI_PUBLIC_API void UImGui_Window_Platform_setWindowShowingOnTaskbar(bool bShowOnTaskbar);
9691
// Event Safety - begin, style, post-begin
97-
// Available for platforms - X11
98-
// Platforms to be supported - Wayland, Win32
92+
// Available for platforms - X11, Win32 & macOS
93+
// Platforms to be supported - Wayland
9994
UIMGUI_PUBLIC_API bool UImGui_Window_Platform_getWindowShowingOnTaskbar();
10095

10196
// Event Safety - begin, style, post-begin
102-
// Available for platforms - X11
97+
// Available for platforms - X11 & macOS
10398
// Platforms to be supported - Wayland, Win32
104-
// Sets the X11 window type
99+
// Sets the X11/Cocoa window type
105100
UIMGUI_PUBLIC_API void UImGui_Window_Platform_setWindowType(UImGui_String type);
106101

107102
// Event Safety - begin, style, post-begin
108-
// Available for platforms - X11, Win32
103+
// Available for platforms - X11, Win32 & macOS
109104
// Platforms to be supported - Wayland
110-
// Returns the window ID as a size_t
105+
// Returns the window ID as a size_t. On macOS it returns the memory address to the window as its integer representation
111106
UIMGUI_PUBLIC_API size_t UImGui_Window_Platform_getWindowID();
112107

113108
// Event safety - begin, style, post-begin

0 commit comments

Comments
 (0)