mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 04:13:50 +00:00
24 lines
539 B
C++
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
|