forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add missing Windows.Graphics structs
- Loading branch information
1 parent
9304df0
commit 8b52742
Showing
10 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |