PropertyHandlerLayoutPadding.h 880 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/base.h>
  10. #include <AzCore/Memory/SystemAllocator.h>
  11. #include <LyShine/UiBase.h>
  12. #include <LyShine/Bus/UiTransform2dBus.h>
  13. #include "UIVectorPropertyHandlerBase.h"
  14. class PropertyHandlerLayoutPadding
  15. : public UIVectorPropertyHandlerBase<UiLayoutInterface::Padding>
  16. {
  17. public:
  18. AZ_CLASS_ALLOCATOR(PropertyHandlerLayoutPadding, AZ::SystemAllocator);
  19. PropertyHandlerLayoutPadding()
  20. : UIVectorPropertyHandlerBase(4, 2)
  21. {
  22. }
  23. AZ::u32 GetHandlerName(void) const override { return AZ::Edit::UIHandlers::LayoutPadding; }
  24. QWidget* CreateGUI(QWidget* pParent) override;
  25. static void Register();
  26. };