#include #include #include #include #include "UIEvents.h" #include "UI.h" #include "UISection.h" using namespace tb; namespace Atomic { UISection::UISection(Context* context, bool createWidget) : UIWidget(context, false) { if (createWidget) { widget_ = new TBSection(); widget_->SetDelegate(this); GetSubsystem()->WrapWidget(this, widget_); } } UISection::~UISection() { } bool UISection::OnEvent(const tb::TBWidgetEvent &ev) { return UIWidget::OnEvent(ev); } }