QtHelpers.h 555 B

1234567891011121314151617181920
  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 <AzToolsFramework/API/ToolsApplicationAPI.h>
  10. namespace QtHelpers
  11. {
  12. AZ::Vector2 QPointFToVector2(const QPointF& point);
  13. AZ::Vector2 MapGlobalPosToLocalVector2(const QWidget* widget, const QPoint& pos);
  14. bool IsGlobalPosInWidget(const QWidget* widget, const QPoint& pos);
  15. } // namespace QtHelpers