UIVerticalStack.h 524 B

123456789101112131415161718192021
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <UI/UIElement.h>
  6. /// Layout class that will automatically layout child elements vertically, stacking them
  7. class UIVerticalStack : public UIElement
  8. {
  9. public:
  10. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, UIVerticalStack)
  11. /// Calculate auto layout
  12. virtual void AutoLayout() override;
  13. private:
  14. int mDeltaY = 0;
  15. bool mPlaceInvisibleChildren = false;
  16. };