MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ destroy_window_by_title()

bool MayaFlux::Core::WindowManager::destroy_window_by_title ( const std::string &  title)

Destroys a window by title.

Parameters
titleTitle of window to destroy
Returns
True if window was found and destroyed

Definition at line 77 of file WindowManager.cpp.

78{
79 auto window = find_window(title);
80 if (window) {
81 destroy_window(window);
82 return true;
83 }
84 return false;
85}
std::shared_ptr< Window > find_window(const std::string &title) const
Finds window by title.
void destroy_window(const std::shared_ptr< Window > &window)
Destroys a window by pointer.

References destroy_window(), and find_window().

+ Here is the call graph for this function: