26#ifndef TGUI_WIDGET_CONVERTER_HPP
27#define TGUI_WIDGET_CONVERTER_HPP
30#include <TGUI/Widget.hpp>
63 operator std::shared_ptr<T>()
65 std::shared_ptr<T> result = std::dynamic_pointer_cast<T>(m_widget);
67 if (result ==
nullptr)
68 throw Exception{
"Value returned by Theme::load must match type of variable!"};
Definition: Exception.hpp:44
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34