| 
| static void  | setConstructFunction (const std::string &type, const std::function< Widget::Ptr()> &constructor) | 
|   | Sets the construct function that will be used to create a widget when loading it.  More...
  | 
|   | 
| static const std::function< Widget::Ptr()> &  | getConstructFunction (const std::string &type) | 
|   | Retrieves the construct function that is used to create a widget when loading it.  More...
  | 
|   | 
◆ getConstructFunction()
  
  
      
        
          | static const std::function< Widget::Ptr()> & tgui::WidgetFactory::getConstructFunction  | 
          ( | 
          const std::string &  | 
          type | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Retrieves the construct function that is used to create a widget when loading it. 
- Parameters
 - 
  
  
 
- Returns
 - Function used to construct the widget (all TGUI widgets use std::make_shared<WidgetType>) 
 
 
 
◆ setConstructFunction()
  
  
      
        
          | static void tgui::WidgetFactory::setConstructFunction  | 
          ( | 
          const std::string &  | 
          type,  | 
         
        
           | 
           | 
          const std::function< Widget::Ptr()> &  | 
          constructor  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Sets the construct function that will be used to create a widget when loading it. 
- Parameters
 - 
  
    | type | Type of the widget  | 
    | constructor | Function used to construct the widget (all TGUI widgets use std::make_shared<WidgetType>)  | 
  
   
 
 
The documentation for this class was generated from the following file: