Ocular Engine
|
Modules | |
Graphics | |
Core | |
Namespaces | |
Ocular | |
Note: Once this library is made dynamic, this will no longer be needed. | |
Functions | |
std::shared_ptr< AWindow > | Ocular::Core::WindowManager::openWindow (WindowDescriptor const &descriptor) |
std::shared_ptr< AWindow > | Ocular::Core::WindowManager::connectWindow (WindowDescriptor const &descriptor, void *windowID) |
void | Ocular::Core::WindowManager::closeWindow (UUID const &uuid) |
void | Ocular::Core::WindowManager::closeAllWindows () |
std::list< std::shared_ptr< AWindow > > | Ocular::Core::WindowManager::listWindows () const |
uint32_t | Ocular::Core::WindowManager::getNumWindows () const |
std::shared_ptr< AWindow > | Ocular::Core::WindowManager::getWindow (UUID const &uuid) |
std::shared_ptr< AWindow > | Ocular::Core::WindowManager::getWindow (void *osPointer) |
std::shared_ptr< AWindow > | Ocular::Core::WindowManager::getMainWindow () |
void | Ocular::Core::WindowManager::setMainWindow (UUID const &uuid) |
void | Ocular::Core::WindowManager::updateWindows (int64_t time) |
Copyright 2014-2016 Steven T Sell (ssell) @ver texfr agme nt.co m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
void Ocular::Core::WindowManager::closeAllWindows | ( | ) |
Destroys all windows.
void Ocular::Core::WindowManager::closeWindow | ( | UUID const & | uuid | ) |
Destroys the Window with the specified UID.
uid |
std::shared_ptr< AWindow > Ocular::Core::WindowManager::connectWindow | ( | WindowDescriptor const & | descriptor, |
void * | windowID | ||
) |
Connects to a pre-existing window.
[in] | windowID | The system specific window identifier (HWND in Windows, etc.) |
std::shared_ptr< AWindow > Ocular::Core::WindowManager::getMainWindow | ( | ) |
Returns a pointer to the main/primary window.
uint32_t Ocular::Core::WindowManager::getNumWindows | ( | ) | const |
std::shared_ptr< AWindow > Ocular::Core::WindowManager::getWindow | ( | UUID const & | uuid | ) |
Returns a pointer to the Window with the specified UID.
The returned pointer should not be destroyed as object management is performed by the WindowManager to which the Window belongs.
uid |
std::shared_ptr< AWindow > Ocular::Core::WindowManager::getWindow | ( | void * | osPointer | ) |
Returns a pointer to the Winodw matching the specified OS window pointer.
The returned pointer should not be destroyed as object management is performed by the WindowManager to which the Window belongs.
osPointer |
std::list< std::shared_ptr< AWindow > > Ocular::Core::WindowManager::listWindows | ( | ) | const |
std::shared_ptr< AWindow > Ocular::Core::WindowManager::openWindow | ( | WindowDescriptor const & | descriptor | ) |
Creates and returns a reference to a new window.
The returned pointer should not be destroyed as object management is performed by the WindowManager to which the Window belongs.
descriptor |
void Ocular::Core::WindowManager::setMainWindow | ( | UUID const & | uuid | ) |
Sets the main window.
uid |
void Ocular::Core::WindowManager::updateWindows | ( | int64_t | time | ) |
Calls the update method for all tracked windows.
This ensures that all system messages get properly dispatched and handled.
[in] | time | The amount of time (in MS) to allow a window to digest and dispatch system messages. |