1// Aseprite
2// Copyright (C) 2001-2018 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_LOAD_WIDGET_H_INCLUDED
8#define APP_LOAD_WIDGET_H_INCLUDED
9#pragma once
10
11#include "app/widget_loader.h"
12
13namespace app {
14
15 template<class T>
16 inline T* load_widget(const char* fileName, const char* widgetId, T* widget = NULL) {
17 WidgetLoader loader;
18 return loader.loadWidgetT<T>(fileName, widgetId, widget);
19 }
20
21} // namespace app
22
23#endif
24