aseprite/src/app/load_widget.h
2018-08-08 17:27:26 -03:00

24 lines
539 B
C++

// Aseprite
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_LOAD_WIDGET_H_INCLUDED
#define APP_LOAD_WIDGET_H_INCLUDED
#pragma once
#include "app/widget_loader.h"
namespace app {
template<class T>
inline T* load_widget(const char* fileName, const char* widgetId, T* widget = NULL) {
WidgetLoader loader;
return loader.loadWidgetT<T>(fileName, widgetId, widget);
}
} // namespace app
#endif