File: Windows.Win32.FONTDESC.g.cs
Project: src\src\System.Windows.Forms.Primitives\src\System.Windows.Forms.Primitives.csproj (System.Windows.Forms.Primitives)
// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
	namespace System.Ole
	{
		/// <summary>Contains parameters used to create a font object through the OleCreateFontIndirect function.</summary>
		/// <remarks>
		/// <para><see href="https://learn.microsoft.com/windows/win32/api/olectl/ns-olectl-fontdesc">Learn more about this API from docs.microsoft.com</see>.</para>
		/// </remarks>
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
		internal partial struct FONTDESC
		{
			/// <summary>The size of the structure, in bytes.</summary>
			internal uint cbSizeofstruct;

			/// <summary>
			/// <para>Pointer to an <a href="https://docs.microsoft.com/windows/desktop/api/wtypesbase/nf-wtypesbase-olestr">OLESTR</a> that specifies the caller-owned string specifying the font name. cySize</para>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/olectl/ns-olectl-fontdesc#members">Read more on docs.microsoft.com</see>.</para>
			/// </summary>
			internal winmdroot.Foundation.PWSTR lpstrName;

			/// <summary>Initial point size of the font. Use the <b>int64</b> member of the <a href="https://docs.microsoft.com/windows/win32/api/wtypes/ns-wtypes-cy-r1">CY</a> structure and scale your font size (in points) by 10000.</summary>
			internal winmdroot.System.Com.CY cySize;

			/// <summary>Initial weight of the font. If the weight is below 550 (the average of FW_NORMAL, 400, and FW_BOLD, 700), then the <b>Bold</b> property is also initialized to <b>FALSE</b>. If the weight is above 550, the <b>Bold</b> property is set to <b>TRUE</b>.</summary>
			internal short sWeight;

			/// <summary>Initial character set of the font.</summary>
			internal short sCharset;

			/// <summary>Initial italic state of the font.</summary>
			internal winmdroot.Foundation.BOOL fItalic;

			/// <summary>Initial underline state of the font.</summary>
			internal winmdroot.Foundation.BOOL fUnderline;

			/// <summary>Initial strikethrough state of the font.</summary>
			internal winmdroot.Foundation.BOOL fStrikethrough;
		}
	}
}