#pragma once #include "VBWidgetType.h" #include #include #include #include #include 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 RefPtr build_gwidget(VBWidget&, VBWidgetType, GWidget* parent, NonnullOwnPtrVector&); }; String to_class_name(VBWidgetType); VBWidgetType widget_type_from_class_name(const StringView&);