Skip to content

Commit

Permalink
feat: Add missing Windows.Graphics structs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Aug 5, 2024
1 parent 9304df0 commit 8b52742
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial struct DisplayAdapterId
{
// Forced skipping of method Windows.Graphics.DisplayAdapterId.DisplayAdapterId()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public uint LowPart;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int HighPart;
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics/DisplayId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial struct DisplayId
{
// Forced skipping of method Windows.Graphics.DisplayId.DisplayId()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public ulong Value;
#endif
}
Expand Down
6 changes: 3 additions & 3 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics/PointInt32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial struct PointInt32
{
// Forced skipping of method Windows.Graphics.PointInt32.PointInt32()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int X;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Y;
#endif
}
Expand Down
10 changes: 5 additions & 5 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics/RectInt32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial struct RectInt32
{
// Forced skipping of method Windows.Graphics.RectInt32.RectInt32()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int X;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Y;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Width;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Height;
#endif
}
Expand Down
6 changes: 3 additions & 3 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics/SizeInt32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial struct SizeInt32
{
// Forced skipping of method Windows.Graphics.SizeInt32.SizeInt32()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Width;
#endif
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
public int Height;
#endif
}
Expand Down
17 changes: 17 additions & 0 deletions src/Uno.UWP/Graphics/DisplayAdapterId.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Windows.Graphics;

/// <summary>
/// Corresponds to the LUID (Locally Unique Identifier) associated with a graphics adapter.
/// </summary>
public partial struct DisplayAdapterId
{
/// <summary>
/// The low part of the LUID.
/// </summary>
public uint LowPart;

/// <summary>
/// The high part of the LUID.
/// </summary>
public int HighPart;
}
12 changes: 12 additions & 0 deletions src/Uno.UWP/Graphics/DisplayId.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Windows.Graphics;

/// <summary>
/// Represents the identifier of a logical display.
/// </summary>
public partial struct DisplayId
{
/// <summary>
/// The identifier of a logical display.
/// </summary>
public ulong Value;
}
17 changes: 17 additions & 0 deletions src/Uno.UWP/Graphics/PointInt32.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Windows.Graphics;

/// <summary>
/// Defines a point in a two-dimensional plane.
/// </summary>
public partial struct PointInt32
{
/// <summary>
/// The X coordinate value of a point.
/// </summary>
public int X;

/// <summary>
/// The Y coordinate value of a point.
/// </summary>
public int Y;
}
27 changes: 27 additions & 0 deletions src/Uno.UWP/Graphics/RectInt32.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace Windows.Graphics;

/// <summary>
/// Defines the size and location of a rectangular surface.
/// </summary>
public partial struct RectInt32
{
/// <summary>
/// The X coordinate of the top-left corner of the rectangle.
/// </summary>
public int X;

/// <summary>
/// The Y coordinate of the top-left corner of the rectangle.
/// </summary>
public int Y;

/// <summary>
/// The width of a rectangle.
/// </summary>
public int Width;

/// <summary>
/// The height of a rectangle.
/// </summary>
public int Height;
}
17 changes: 17 additions & 0 deletions src/Uno.UWP/Graphics/SizeInt32.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Windows.Graphics;

/// <summary>
/// Defines the height and wide of a surface in a two-dimensional plane.
/// </summary>
public partial struct SizeInt32
{
/// <summary>
/// The width of a surface.
/// </summary>
public int Width;

/// <summary>
/// The height of a surface.
/// </summary>
public int Height;
}

0 comments on commit 8b52742

Please sign in to comment.