PolyUITreeContainer.h 714 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * PolyUITreeContainer.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/18/10.
  6. * Copyright 2010 Ivan Safrin. All rights reserved.
  7. *
  8. */
  9. // @package UI
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include "PolyUITree.h"
  13. #include "PolyUIBox.h"
  14. #include "PolyUIScrollContainer.h"
  15. namespace Polycode {
  16. class _PolyExport UITreeContainer : public ScreenEntity {
  17. public:
  18. UITreeContainer(String icon, String text, float treeWidth, float treeHeight);
  19. ~UITreeContainer();
  20. void handleEvent(Event *event);
  21. void Resize(int x, int y);
  22. UITree *getRootNode();
  23. ScreenEntity *scrollChild;
  24. private:
  25. UIScrollContainer *mainContainer;
  26. ScreenShape *maskShape;
  27. UITree *rootNode;
  28. UIBox *bgBox;
  29. };
  30. }