Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GdiPlus Color struct is generating with statics as fields #1121

Closed
JeremyKuhne opened this issue Jan 17, 2024 · 0 comments · Fixed by #1122
Closed

GdiPlus Color struct is generating with statics as fields #1121

JeremyKuhne opened this issue Jan 17, 2024 · 0 comments · Fixed by #1122
Assignees
Labels
bug Something isn't working partner

Comments

@JeremyKuhne
Copy link
Member

Metadata defines as follows:

// Windows.Win32.Graphics.GdiPlus.Color
using Windows.Win32.Foundation.Metadata;

[Documentation("https://learn.microsoft.com/windows/win32/WMP/color-element")]
public struct Color
{
	public uint Argb;

	public const int AliceBlue = -984833;
	/// ...

CsWin32 is generating:

namespace Windows.Win32
{
	namespace Graphics.GdiPlus
	{
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.75-beta+6d384e22ca")]
		internal partial struct Color
		{
			internal uint Argb;

			internal int AliceBlue;
			// ...
@JeremyKuhne JeremyKuhne added the bug Something isn't working label Jan 17, 2024
@AArnott AArnott self-assigned this Jan 17, 2024
AArnott added a commit that referenced this issue Jan 17, 2024
Before this change, they were emitted as instance fields.

Fixes #1121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working partner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants