UITabContainer.cpp 620 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <TurboBadger/tb_widgets.h>
  2. #include <TurboBadger/tb_widgets_common.h>
  3. #include <TurboBadger/tb_tab_container.h>
  4. #include "UI.h"
  5. #include "UIEvents.h"
  6. #include "UITabContainer.h"
  7. using namespace tb;
  8. namespace Atomic
  9. {
  10. UITabContainer::UITabContainer(Context* context, bool createWidget) : UIWidget(context, false)
  11. {
  12. if (createWidget)
  13. {
  14. widget_ = new TBTabContainer();
  15. widget_->SetDelegate(this);
  16. GetSubsystem<UI>()->WrapWidget(this, widget_);
  17. }
  18. }
  19. UITabContainer::~UITabContainer()
  20. {
  21. }
  22. bool UITabContainer::OnEvent(const tb::TBWidgetEvent &ev)
  23. {
  24. return false;
  25. }
  26. }