Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowSDL.cpp
| Context not available. | |||||
| m_sdl_custom_cursor(NULL) | m_sdl_custom_cursor(NULL) | ||||
| { | { | ||||
| m_bounds_tracker.setCreateBounds(left, top, left + width, top + height); | |||||
| /* creating the window _must_ come after setting attributes */ | /* creating the window _must_ come after setting attributes */ | ||||
| m_sdl_win = SDL_CreateWindow( | m_sdl_win = SDL_CreateWindow( | ||||
| title, | title, | ||||
| Context not available. | |||||
| title = SDL_GetWindowTitle(m_sdl_win); | title = SDL_GetWindowTitle(m_sdl_win); | ||||
| } | } | ||||
| void | void | ||||
| GHOST_WindowSDL::getWindowBounds(GHOST_Rect& bounds) const | GHOST_WindowSDL::getWindowBounds(GHOST_Rect& bounds) const | ||||
| { | { | ||||
| getClientBounds(bounds); | getClientBounds(bounds); | ||||
| m_bounds_tracker.clientToWindowBounds(bounds); | |||||
| } | } | ||||
| void | |||||
| GHOST_WindowSDL::updateBoundsTracker(void) | |||||
| { | |||||
| if (getState() == GHOST_kWindowStateNormal) { | |||||
| GHOST_Rect bounds; | |||||
| getClientBounds(bounds); | |||||
| m_bounds_tracker.updateWmTransform(bounds); | |||||
| } | |||||
| } | |||||
| // this bounds does not include title bar | |||||
| void | void | ||||
| GHOST_WindowSDL::getClientBounds(GHOST_Rect& bounds) const | GHOST_WindowSDL::getClientBounds(GHOST_Rect& bounds) const | ||||
| { | { | ||||
| Context not available. | |||||