Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemX11.cpp
| Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | |||||
| * Never explicitly delete the window, use #disposeWindow() instead. | * Never explicitly delete the window, use #disposeWindow() instead. | ||||
| * \param title: The name of the window | * \param title: The name of the window | ||||
| * (displayed in the title bar of the window if the OS supports it). | * (displayed in the title bar of the window if the OS supports it). | ||||
| * \param left: The coordinate of the left edge of the window. | * \param left: The coordinate of the left edge of the window. | ||||
| * \param top: The coordinate of the top edge of the window. | * \param top: The coordinate of the top edge of the window. | ||||
| * \param width: The width the window. | * \param width: The width the window. | ||||
| * \param height: The height the window. | * \param height: The height the window. | ||||
| * \param state: The state of the window when opened. | * \param state: The state of the window when opened. | ||||
| * \param type: The type of drawing context installed in this window. | |||||
| * \param glSettings: Misc OpenGL settings. | * \param glSettings: Misc OpenGL settings. | ||||
| * \param exclusive: Use to show the window on top and ignore others (used full-screen). | * \param exclusive: Use to show the window on top and ignore others (used full-screen). | ||||
| * \param parentWindow: Parent window. | * \param parentWindow: Parent window. | ||||
| * \return The new window (or 0 if creation failed). | * \return The new window (or 0 if creation failed). | ||||
| */ | */ | ||||
| GHOST_IWindow *GHOST_SystemX11::createWindow(const char *title, | GHOST_IWindow *GHOST_SystemX11::createWindow(const char *title, | ||||
| int32_t left, | int32_t left, | ||||
| int32_t top, | int32_t top, | ||||
| uint32_t width, | uint32_t width, | ||||
| uint32_t height, | uint32_t height, | ||||
| GHOST_TWindowState state, | GHOST_TWindowState state, | ||||
| GHOST_TDrawingContextType type, | |||||
| GHOST_GLSettings glSettings, | GHOST_GLSettings glSettings, | ||||
| const bool exclusive, | const bool exclusive, | ||||
| const bool is_dialog, | const bool is_dialog, | ||||
| const GHOST_IWindow *parentWindow) | const GHOST_IWindow *parentWindow) | ||||
| { | { | ||||
| GHOST_WindowX11 *window = nullptr; | GHOST_WindowX11 *window = nullptr; | ||||
| if (!m_display) { | if (!m_display) { | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| window = new GHOST_WindowX11(this, | window = new GHOST_WindowX11(this, | ||||
| m_display, | m_display, | ||||
| title, | title, | ||||
| left, | left, | ||||
| top, | top, | ||||
| width, | width, | ||||
| height, | height, | ||||
| state, | state, | ||||
| (GHOST_WindowX11 *)parentWindow, | (GHOST_WindowX11 *)parentWindow, | ||||
| type, | glSettings.context_type, | ||||
| is_dialog, | is_dialog, | ||||
| ((glSettings.flags & GHOST_glStereoVisual) != 0), | ((glSettings.flags & GHOST_glStereoVisual) != 0), | ||||
| exclusive, | exclusive, | ||||
| (glSettings.flags & GHOST_glDebugContext) != 0); | (glSettings.flags & GHOST_glDebugContext) != 0); | ||||
| if (window) { | if (window) { | ||||
| /* Both are now handle in GHOST_WindowX11.cpp | /* Both are now handle in GHOST_WindowX11.cpp | ||||
| * Focus and Delete atoms. */ | * Focus and Delete atoms. */ | ||||
| ▲ Show 20 Lines • Show All 2,376 Lines • Show Last 20 Lines | |||||