#pragma once #include "VBWidgetType.h" #include #include #include class GWidget; class VBProperty; class VBWidget; class VBWidgetRegistry { public: template static void for_each_widget_type(Callback callback) { for (unsigned i = 1; i < (unsigned)VBWidgetType::__Count; ++i) callback((VBWidgetType)i); } static GWidget* build_gwidget(VBWidget&, VBWidgetType, GWidget* parent, Vector>&); };