1.10
Public Member Functions | List of all members
UiLoader Class Reference

Parses and loads a UI XML file. More...

#include <uiloader.h>

Public Member Functions

virtual std::shared_ptr< Widgetload (const std::string &uri)
 Parses and loads UI XML and returns the parent Widget.
 

Detailed Description

Parses and loads a UI XML file.

Example

egt::experimental::UiLoader loader;
auto window = loader.load("ui.xml");
window->show();

Member Function Documentation

◆ load()

virtual std::shared_ptr< Widget > load ( const std::string &  uri)
virtual

Parses and loads UI XML and returns the parent Widget.

Parameters
uriURI to the XML to load.