TGUI  0.7.8
tgui::WidgetConverter Class Reference

Implicit converter for widgets returned by the load function of the theme. More...

#include <TGUI/Loading/WidgetConverter.hpp>

Public Member Functions

 WidgetConverter (Widget::Ptr widget)
 Construct the converter from the widget.
 
 operator Widget::Ptr ()
 Retrieve the widget without casting when required.
 
template<class T >
 operator std::shared_ptr< T > ()
 Cast the widget to the required type.
 

Detailed Description

Implicit converter for widgets returned by the load function of the theme.


The documentation for this class was generated from the following file: