This class represents an OpenGL window using Cocoa on OS X. More...
#include <Luminous/CocoaWindow.hpp>
Public Member Functions | |
| CocoaWindow (const MultiHead::Window &window) | |
| Constructs a new window. More... | |
| virtual void | doneCurrent () |
| Clears the OpenGL context for the calling thread. | |
| virtual int | height () const |
| Returns the height of the window. More... | |
| virtual void | makeCurrent () |
| Sets the OpenGL context for the calling thread. | |
| virtual void | maximize () |
| Maximize the window. | |
| virtual void | minimize () |
| Minimize the window. | |
| virtual void | poll () |
| Update window system (mouse & keyboard) events. | |
| virtual Nimble::Vector2i | position () const |
| Get the window position. More... | |
| virtual void | restore () |
| Restore the window from minimized state. | |
| virtual void | setHeight (int h) |
| Set the height of the window. More... | |
| virtual bool | setIcon (const QString &) |
| virtual void | setPosition (Nimble::Vector2i pos) |
| Set the window position. More... | |
| virtual void | setWidth (int w) |
| Set the width of the window. More... | |
| virtual void | showCursor (bool visible) |
| Control mouse cursor visibility. More... | |
| virtual void | swapBuffers () |
| Swap OpenGL buffers. | |
| virtual int | width () const |
| Returns the width of the window. More... | |
Public Member Functions inherited from Luminous::Window | |
| virtual void | deinit () |
| Cleanup any window resources. Default implementation does nothing. | |
| WindowEventHook * | eventHook () const |
| Get the event handler for the window. More... | |
| virtual unsigned | gpuId () const |
| Gets the native GPU id for the OpenGL context of this window. | |
| virtual void | init () |
| This function can be used to perform any initialization that must be executed in the render-thread associated with the window. More... | |
| bool | isFinished () const |
| Queries if the window is closed. More... | |
| virtual bool | mainThreadInit () |
| This function can be used to perform any initialization that must be performed in the main-thread. More... | |
| virtual void | setEventHook (WindowEventHook *hook) |
| Set the event handler for window events. More... | |
| void | setFullscreen (bool fullscreen) |
| Sets the full-screen mode of the window. More... | |
| Window () | |
| Construct an empty window with zero size. | |
| virtual | ~Window () |
| Destructor. | |
Static Public Member Functions | |
| static void | setQuitCallback (std::function< void()> callback) |
This class represents an OpenGL window using Cocoa on OS X.
| Luminous::CocoaWindow::CocoaWindow | ( | const MultiHead::Window & | window | ) |
Constructs a new window.
| window | window configuration |
|
virtual |
Returns the height of the window.
Implements Luminous::Window.
|
virtual |
|
virtual |
|
inlinevirtual |
Implements Luminous::Window.
|
virtual |
|
virtual |
|
virtual |
Control mouse cursor visibility.
| visible | true to show cursor; false to hide it |
Implements Luminous::Window.
|
virtual |