DataSlotConnectionPin.h 1.1 KB

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 <Components/Slots/SlotConnectionPin.h>
  10. namespace GraphCanvas
  11. {
  12. class DataSlotConnectionPin
  13. : public SlotConnectionPin
  14. {
  15. public:
  16. AZ_RTTI(DataSlotConnectionPin, "{704E0929-B231-4E24-BD6F-C61950F62691}", SlotConnectionPin);
  17. AZ_CLASS_ALLOCATOR(DataSlotConnectionPin, AZ::SystemAllocator);
  18. DataSlotConnectionPin(const AZ::EntityId& slotId);
  19. ~DataSlotConnectionPin();
  20. void OnRefreshStyle() override;
  21. void DrawConnectionPin(QPainter* painter, QRectF drawRect, bool isConnected) override;
  22. private:
  23. void Setup(QPainter* painter, QPen& pen, QBrush& brush, QRectF drawRect, bool isConnected);
  24. const Styling::StyleHelper* m_colorPalette;
  25. AZStd::vector<const Styling::StyleHelper*> m_containerColorPalettes;
  26. };
  27. }