Printers.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include "Printers.h"
  9. #include <AzFramework/Input/Channels/InputChannelId.h>
  10. #include <AzFramework/Viewport/ScreenGeometry.h>
  11. #include <ostream>
  12. #include <string>
  13. namespace AzFramework
  14. {
  15. void PrintTo(const ScreenPoint& screenPoint, std::ostream* os)
  16. {
  17. *os << "(x: " << screenPoint.m_x << ", y: " << screenPoint.m_y << ")";
  18. }
  19. void PrintTo(const ScreenVector& screenVector, std::ostream* os)
  20. {
  21. *os << "(x: " << screenVector.m_x << ", y: " << screenVector.m_y << ")";
  22. }
  23. void PrintTo(const ScreenSize& screenSize, std::ostream* os)
  24. {
  25. *os << "(width: " << screenSize.m_width << ", height: " << screenSize.m_height << ")";
  26. }
  27. void PrintTo(const InputChannelId& inputChannelId, std::ostream* os)
  28. {
  29. *os << "(input channel id name: " << inputChannelId.GetName() << ")";
  30. }
  31. } // namespace AzFramework