Add iOS platform (refactor Mac into shared Apple platform impl)
This commit is contained in:
@@ -520,6 +520,16 @@ void PlatformBase::CreateGuid(Guid& result)
|
||||
result = Guid(dateThingHigh, randomThing | (sequentialThing << 16), cyclesThing, dateThingLow);
|
||||
}
|
||||
|
||||
Rectangle PlatformBase::GetMonitorBounds(const Float2& screenPos)
|
||||
{
|
||||
return Rectangle(Float2::Zero, Platform::GetDesktopSize());
|
||||
}
|
||||
|
||||
Rectangle PlatformBase::GetVirtualDesktopBounds()
|
||||
{
|
||||
return Rectangle(Float2::Zero, Platform::GetDesktopSize());
|
||||
}
|
||||
|
||||
Float2 PlatformBase::GetVirtualDesktopSize()
|
||||
{
|
||||
return Platform::GetVirtualDesktopBounds().Size;
|
||||
@@ -616,6 +626,8 @@ const Char* ToString(PlatformType type)
|
||||
return TEXT("PlayStation 5");
|
||||
case PlatformType::Mac:
|
||||
return TEXT("Mac");
|
||||
case PlatformType::iOS:
|
||||
return TEXT("iOS");
|
||||
default:
|
||||
return TEXT("");
|
||||
}
|
||||
|
||||
@@ -665,7 +665,7 @@ public:
|
||||
/// </summary>
|
||||
/// <param name="screenPos">The screen position (in pixels).</param>
|
||||
/// <returns>The monitor bounds.</returns>
|
||||
API_FUNCTION() static Rectangle GetMonitorBounds(const Float2& screenPos) = delete;
|
||||
API_FUNCTION() static Rectangle GetMonitorBounds(const Float2& screenPos);
|
||||
|
||||
/// <summary>
|
||||
/// Gets size of the primary desktop.
|
||||
@@ -677,7 +677,7 @@ public:
|
||||
/// Gets virtual bounds of the desktop made of all the monitors outputs attached.
|
||||
/// </summary>
|
||||
/// <returns>Whole desktop size.</returns>
|
||||
API_PROPERTY() static Rectangle GetVirtualDesktopBounds() = delete;
|
||||
API_PROPERTY() static Rectangle GetVirtualDesktopBounds();
|
||||
|
||||
/// <summary>
|
||||
/// Gets virtual size of the desktop made of all the monitors outputs attached.
|
||||
|
||||
Reference in New Issue
Block a user