Skip to content

Commit

Permalink
Update documentation for new Cocoa function
Browse files Browse the repository at this point in the history
  • Loading branch information
kosude committed Oct 14, 2023
1 parent 145d868 commit 679df3e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions docs/pages/api/core/wsi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,28 @@ Functions
---------


For X11 systems - via XCB
For Cocoa (macOS) systems
^^^^^^^^^^^^^^^^^^^^^^^^^

.. important::
Definitions for these functions is compiled **only if** the ``-DTHALLIUM_WSI_COCOA=ON`` CMake flag was present at build. This is the
**default behaviour** on **Apple** systems.

.. doxygenfunction:: TL_WindowSurfaceCreateCocoa


For Xorg systems (via xcb)
^^^^^^^^^^^^^^^^^^^^^^^^^^

.. important::
Definitions for these functions is compiled **only if** the ``-DTHALLIUM_WSI_XCB=ON`` CMake flag was present at build. This is the
**default behaviour** on **Unix** *(not Apple)* systems.

.. doxygenfunction:: TL_WindowSurfaceCreateXCB


For X11 systems - via Xlib
^^^^^^^^^^^^^^^^^^^^^^^^^^
For Xorg systems (via Xlib)
^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. important::
Definitions for these functions is compiled **only if** the ``-DTHALLIUM_WSI_XLIB=ON`` CMake flag was present at build. This is the
Expand Down
4 changes: 2 additions & 2 deletions include/thallium/core/wsi/cocoa_window_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
/**
* @brief Create a Thallium window surface from a Cocoa window handle.
*
* This function creates a window surface for Thallium functions, using a Cocoa window handle.
* This function creates a window surface for Thallium functions, using a Cocoa `NSWindow` window handle.
*
* @param window
* @param window The Cocoa `NSWindow` handle (as a void ptr)
* @param debugger NULL or a debugger for function debugging
* @return Resulting window surface for use in Thallium functions.
*/
Expand Down

0 comments on commit 679df3e

Please sign in to comment.