diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-21 11:41:40 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-21 11:41:51 +0100 |
| commit | a9412b41bb7f1012402400e56d8dd71f93709f6f (patch) | |
| tree | 20b7ef6e91a0e6fddad59a17b0f59d2349799e54 /src/Fl_Window.cxx | |
| parent | 7e76929aff68ccde48c63eb8f08c144de43cc59f (diff) | |
Issue #359 RFE: access the MacOS windowid .
Diffstat (limited to 'src/Fl_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 50f39f04e..e6f14141b 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -876,3 +876,10 @@ const Fl_Image* Fl_Window::shape() {return pWindowDriver->shape();} /** Returns true when a window is being rescaled */ bool Fl_Window::is_a_rescale() {return Fl_Window_Driver::is_a_rescale_;} + +/** Returns a platform-specific identification of a shown window, or 0 if not shown. + \li X11 platform: the window's XID. + \li macOS platform: The window number of the window’s window device. + \li other platforms: 0. + */ +fl_uintptr_t Fl_Window::os_id() { return pWindowDriver->os_id();} |
