1#ifndef LXGUI_GUI_ALIVE_CHECKER_HPP
2#define LXGUI_GUI_ALIVE_CHECKER_HPP
4#include "lxgui/lxgui.hpp"
5#include "lxgui/utils.hpp"
6#include "lxgui/utils_observer.hpp"
49 return !object_.expired();
53 utils::observer_ptr<region> object_;
Utility class for safe checking of region validity.
alive_checker & operator=(const alive_checker &)=delete
bool is_alive() const
Check if the wrapped region is still alive.
alive_checker(const alive_checker &)=delete
alive_checker(alive_checker &&)=delete
alive_checker(region &object)
Contructor.
alive_checker & operator=(alive_checker &&)=delete
The base class of all elements in the GUI.