BsGUIElementContainer.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "BsGUIElementContainer.h"
  2. #include "BsGUISkin.h"
  3. namespace BansheeEngine
  4. {
  5. GUIElementContainer::GUIElementContainer(const GUIDimensions& dimensions, const String& style)
  6. :GUIElement(style, dimensions)
  7. { }
  8. GUIElementContainer::~GUIElementContainer()
  9. { }
  10. UINT32 GUIElementContainer::_getNumRenderElements() const
  11. {
  12. return 0;
  13. }
  14. const GUIMaterialInfo& GUIElementContainer::_getMaterial(UINT32 renderElementIdx) const
  15. {
  16. BS_EXCEPT(InvalidStateException, "Trying to retrieve a material from an element with no render elements.");
  17. }
  18. UINT32 GUIElementContainer::_getNumQuads(UINT32 renderElementIdx) const
  19. {
  20. return 0;
  21. }
  22. void GUIElementContainer::updateClippedBounds()
  23. {
  24. mClippedBounds = Rect2I(0, 0, 0, 0); // We don't want any mouse input for this element. This is just a container.
  25. }
  26. void GUIElementContainer::_fillBuffer(UINT8* vertices, UINT8* uv, UINT32* indices, UINT32 startingQuad, UINT32 maxNumQuads,
  27. UINT32 vertexStride, UINT32 indexStride, UINT32 renderElementIdx) const
  28. { }
  29. Vector2I GUIElementContainer::_getOptimalSize() const
  30. {
  31. return Vector2I();
  32. }
  33. }