mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Massive folder rename, follow Apis convention, separate Imaging (WIC)
This commit is contained in:
8
src/Vortice.Win32.Graphics.DirectWrite/Apis.cs
Normal file
8
src/Vortice.Win32.Graphics.DirectWrite/Apis.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
public static partial class Apis
|
||||
{
|
||||
}
|
||||
3307
src/Vortice.Win32.Graphics.DirectWrite/DirectWrite.xml
Normal file
3307
src/Vortice.Win32.Graphics.DirectWrite/DirectWrite.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
public static unsafe partial class Apis
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWriteCreateFactory"]/*' />
|
||||
[DllImport("DWrite.dll", ExactSpelling = true)]
|
||||
public static extern HResult DWriteCreateFactory(FactoryType factoryType, Guid* iid, IUnknown** factory);
|
||||
}
|
||||
28
src/Vortice.Win32.Graphics.DirectWrite/Generated/Apis.cs
Normal file
28
src/Vortice.Win32.Graphics.DirectWrite/Generated/Apis.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
public static partial class Apis
|
||||
{
|
||||
public const uint DWRITE_ALPHA_MAX = 255;
|
||||
|
||||
public const uint FACILITY_DWRITE = 2200;
|
||||
|
||||
public const uint DWRITE_ERR_BASE = 20480;
|
||||
|
||||
public static readonly HResult DWRITE_E_REMOTEFONT = -2003283955;
|
||||
|
||||
public static readonly HResult DWRITE_E_DOWNLOADCANCELLED = -2003283954;
|
||||
|
||||
public static readonly HResult DWRITE_E_DOWNLOADFAILED = -2003283953;
|
||||
|
||||
public static readonly HResult DWRITE_E_TOOMANYDOWNLOADS = -2003283952;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_AUTOMATIC_FONT_AXES"]/*' />
|
||||
/// <unmanaged>DWRITE_AUTOMATIC_FONT_AXES</unmanaged>
|
||||
[Flags]
|
||||
public enum AutomaticFontAxes : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_AUTOMATIC_FONT_AXES::DWRITE_AUTOMATIC_FONT_AXES_NONE"]/*' />
|
||||
/// <unmanaged>DWRITE_AUTOMATIC_FONT_AXES_NONE</unmanaged>
|
||||
None = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_AUTOMATIC_FONT_AXES::DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE"]/*' />
|
||||
/// <unmanaged>DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE</unmanaged>
|
||||
OpticalSize = 1,
|
||||
}
|
||||
43
src/Vortice.Win32.Graphics.DirectWrite/Generated/Baseline.cs
Normal file
43
src/Vortice.Win32.Graphics.DirectWrite/Generated/Baseline.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE</unmanaged>
|
||||
public enum Baseline : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_DEFAULT"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_DEFAULT</unmanaged>
|
||||
Default = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_ROMAN"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_ROMAN</unmanaged>
|
||||
Roman = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_CENTRAL"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_CENTRAL</unmanaged>
|
||||
Central = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_MATH"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_MATH</unmanaged>
|
||||
Math = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_HANGING"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_HANGING</unmanaged>
|
||||
Hanging = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_IDEOGRAPHIC_BOTTOM"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_IDEOGRAPHIC_BOTTOM</unmanaged>
|
||||
IdeographicBottom = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_IDEOGRAPHIC_TOP"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_IDEOGRAPHIC_TOP</unmanaged>
|
||||
IdeographicTop = 6,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_MINIMUM"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_MINIMUM</unmanaged>
|
||||
Minimum = 7,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BASELINE::DWRITE_BASELINE_MAXIMUM"]/*' />
|
||||
/// <unmanaged>DWRITE_BASELINE_MAXIMUM</unmanaged>
|
||||
Maximum = 8,
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BREAK_CONDITION"]/*' />
|
||||
/// <unmanaged>DWRITE_BREAK_CONDITION</unmanaged>
|
||||
public enum BreakCondition : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BREAK_CONDITION::DWRITE_BREAK_CONDITION_NEUTRAL"]/*' />
|
||||
/// <unmanaged>DWRITE_BREAK_CONDITION_NEUTRAL</unmanaged>
|
||||
Neutral = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BREAK_CONDITION::DWRITE_BREAK_CONDITION_CAN_BREAK"]/*' />
|
||||
/// <unmanaged>DWRITE_BREAK_CONDITION_CAN_BREAK</unmanaged>
|
||||
CanBreak = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BREAK_CONDITION::DWRITE_BREAK_CONDITION_MAY_NOT_BREAK"]/*' />
|
||||
/// <unmanaged>DWRITE_BREAK_CONDITION_MAY_NOT_BREAK</unmanaged>
|
||||
MayNotBreak = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_BREAK_CONDITION::DWRITE_BREAK_CONDITION_MUST_BREAK"]/*' />
|
||||
/// <unmanaged>DWRITE_BREAK_CONDITION_MUST_BREAK</unmanaged>
|
||||
MustBreak = 3,
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CARET_METRICS"]/*' />
|
||||
/// <unmanaged>DWRITE_CARET_METRICS</unmanaged>
|
||||
public partial struct CaretMetrics
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CARET_METRICS::slopeRise"]/*' />
|
||||
public short slopeRise;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CARET_METRICS::slopeRun"]/*' />
|
||||
public short slopeRun;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CARET_METRICS::offset"]/*' />
|
||||
public short offset;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CLUSTER_METRICS"]/*' />
|
||||
/// <unmanaged>DWRITE_CLUSTER_METRICS</unmanaged>
|
||||
public partial struct ClusterMetrics
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CLUSTER_METRICS::width"]/*' />
|
||||
public float width;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CLUSTER_METRICS::length"]/*' />
|
||||
public ushort length;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CLUSTER_METRICS::_bitfield"]/*' />
|
||||
public ushort _bitfield;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN"]/*' />
|
||||
/// <unmanaged>DWRITE_COLOR_GLYPH_RUN</unmanaged>
|
||||
public partial struct ColorGlyphRun
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::glyphRun"]/*' />
|
||||
public GlyphRun glyphRun;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::glyphRunDescription"]/*' />
|
||||
public unsafe GlyphRunDescription* glyphRunDescription;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::baselineOriginX"]/*' />
|
||||
public float baselineOriginX;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::baselineOriginY"]/*' />
|
||||
public float baselineOriginY;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::runColor"]/*' />
|
||||
public Color4 runColor;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN::paletteIndex"]/*' />
|
||||
public ushort paletteIndex;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN1"]/*' />
|
||||
/// <unmanaged>DWRITE_COLOR_GLYPH_RUN1</unmanaged>
|
||||
public partial struct ColorGlyphRun1
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN1::Base"]/*' />
|
||||
public ColorGlyphRun Base;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN1::glyphImageFormat"]/*' />
|
||||
public GlyphImageFormats glyphImageFormat;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_COLOR_GLYPH_RUN1::measuringMode"]/*' />
|
||||
public MeasuringMode measuringMode;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CONTAINER_TYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_CONTAINER_TYPE</unmanaged>
|
||||
public enum ContainerType : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CONTAINER_TYPE::DWRITE_CONTAINER_TYPE_UNKNOWN"]/*' />
|
||||
/// <unmanaged>DWRITE_CONTAINER_TYPE_UNKNOWN</unmanaged>
|
||||
Unknown = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CONTAINER_TYPE::DWRITE_CONTAINER_TYPE_WOFF"]/*' />
|
||||
/// <unmanaged>DWRITE_CONTAINER_TYPE_WOFF</unmanaged>
|
||||
Woff = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_CONTAINER_TYPE::DWRITE_CONTAINER_TYPE_WOFF2"]/*' />
|
||||
/// <unmanaged>DWRITE_CONTAINER_TYPE_WOFF2</unmanaged>
|
||||
Woff2 = 2,
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FACTORY_TYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FACTORY_TYPE</unmanaged>
|
||||
public enum FactoryType : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FACTORY_TYPE::DWRITE_FACTORY_TYPE_SHARED"]/*' />
|
||||
/// <unmanaged>DWRITE_FACTORY_TYPE_SHARED</unmanaged>
|
||||
Shared = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FACTORY_TYPE::DWRITE_FACTORY_TYPE_ISOLATED"]/*' />
|
||||
/// <unmanaged>DWRITE_FACTORY_TYPE_ISOLATED</unmanaged>
|
||||
Isolated = 1,
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FILE_FRAGMENT"]/*' />
|
||||
/// <unmanaged>DWRITE_FILE_FRAGMENT</unmanaged>
|
||||
public partial struct FileFragment
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FILE_FRAGMENT::fileOffset"]/*' />
|
||||
public ulong fileOffset;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FILE_FRAGMENT::fragmentSize"]/*' />
|
||||
public ulong fragmentSize;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FLOW_DIRECTION"]/*' />
|
||||
/// <unmanaged>DWRITE_FLOW_DIRECTION</unmanaged>
|
||||
public enum FlowDirection : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FLOW_DIRECTION::DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM"]/*' />
|
||||
/// <unmanaged>DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM</unmanaged>
|
||||
TopToBottom = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FLOW_DIRECTION::DWRITE_FLOW_DIRECTION_BOTTOM_TO_TOP"]/*' />
|
||||
/// <unmanaged>DWRITE_FLOW_DIRECTION_BOTTOM_TO_TOP</unmanaged>
|
||||
BottomToTop = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FLOW_DIRECTION::DWRITE_FLOW_DIRECTION_LEFT_TO_RIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FLOW_DIRECTION_LEFT_TO_RIGHT</unmanaged>
|
||||
LeftToRight = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FLOW_DIRECTION::DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT"]/*' />
|
||||
/// <unmanaged>DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT</unmanaged>
|
||||
RightToLeft = 3,
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_ATTRIBUTES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_ATTRIBUTES</unmanaged>
|
||||
[Flags]
|
||||
public enum FontAxisAttributes : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_ATTRIBUTES::DWRITE_FONT_AXIS_ATTRIBUTES_NONE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_ATTRIBUTES_NONE</unmanaged>
|
||||
None = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_ATTRIBUTES::DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE</unmanaged>
|
||||
Variable = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_ATTRIBUTES::DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN</unmanaged>
|
||||
Hidden = 2,
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_RANGE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_RANGE</unmanaged>
|
||||
public partial struct FontAxisRange
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_RANGE::axisTag"]/*' />
|
||||
public FontAxisTag axisTag;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_RANGE::minValue"]/*' />
|
||||
public float minValue;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_RANGE::maxValue"]/*' />
|
||||
public float maxValue;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG</unmanaged>
|
||||
public enum FontAxisTag : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG::DWRITE_FONT_AXIS_TAG_WEIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG_WEIGHT</unmanaged>
|
||||
Weight = 1952999287,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG::DWRITE_FONT_AXIS_TAG_WIDTH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG_WIDTH</unmanaged>
|
||||
Width = 1752458359,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG::DWRITE_FONT_AXIS_TAG_SLANT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG_SLANT</unmanaged>
|
||||
Slant = 1953393779,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG::DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE</unmanaged>
|
||||
OpticalSize = 2054385775,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_TAG::DWRITE_FONT_AXIS_TAG_ITALIC"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_TAG_ITALIC</unmanaged>
|
||||
Italic = 1818326121,
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_VALUE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_AXIS_VALUE</unmanaged>
|
||||
public partial struct FontAxisValue
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_VALUE::axisTag"]/*' />
|
||||
public FontAxisTag axisTag;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_AXIS_VALUE::value"]/*' />
|
||||
public float value;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE</unmanaged>
|
||||
public enum FontFaceType : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_CFF"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_CFF</unmanaged>
|
||||
Cff = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_TRUETYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_TRUETYPE</unmanaged>
|
||||
Truetype = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION</unmanaged>
|
||||
OpentypeCollection = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_TYPE1"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_TYPE1</unmanaged>
|
||||
Type1 = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_VECTOR"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_VECTOR</unmanaged>
|
||||
Vector = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_BITMAP"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_BITMAP</unmanaged>
|
||||
Bitmap = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_UNKNOWN"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_UNKNOWN</unmanaged>
|
||||
Unknown = 6,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_RAW_CFF"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_RAW_CFF</unmanaged>
|
||||
RawCff = 7,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FACE_TYPE::DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION</unmanaged>
|
||||
TruetypeCollection = 2,
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FAMILY_MODEL"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FAMILY_MODEL</unmanaged>
|
||||
public enum FontFamilyModel : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FAMILY_MODEL::DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC</unmanaged>
|
||||
Typographic = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FAMILY_MODEL::DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE</unmanaged>
|
||||
WeightStretchStyle = 1,
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE</unmanaged>
|
||||
public partial struct FontFeature
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE::nameTag"]/*' />
|
||||
public FontFeatureTag nameTag;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE::parameter"]/*' />
|
||||
public uint parameter;
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG</unmanaged>
|
||||
public enum FontFeatureTag : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS</unmanaged>
|
||||
AlternativeFractions = 1668441697,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS</unmanaged>
|
||||
PetiteCapitalsFromCapitals = 1668297315,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS</unmanaged>
|
||||
SmallCapitalsFromCapitals = 1668493923,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES</unmanaged>
|
||||
ContextualAlternates = 1953259875,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS</unmanaged>
|
||||
CaseSensitiveForms = 1702060387,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION</unmanaged>
|
||||
GlyphCompositionDecomposition = 1886217059,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES</unmanaged>
|
||||
ContextualLigatures = 1734962275,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING</unmanaged>
|
||||
CapitalSpacing = 1886613603,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH</unmanaged>
|
||||
ContextualSwash = 1752658787,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING</unmanaged>
|
||||
CursivePositioning = 1936880995,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_DEFAULT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_DEFAULT</unmanaged>
|
||||
Default = 1953261156,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES</unmanaged>
|
||||
DiscretionaryLigatures = 1734962276,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS</unmanaged>
|
||||
ExpertForms = 1953527909,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_FRACTIONS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_FRACTIONS</unmanaged>
|
||||
Fractions = 1667330662,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_FULL_WIDTH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_FULL_WIDTH</unmanaged>
|
||||
FullWidth = 1684633446,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HALF_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HALF_FORMS</unmanaged>
|
||||
HalfForms = 1718378856,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HALANT_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HALANT_FORMS</unmanaged>
|
||||
HalantForms = 1852596584,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH</unmanaged>
|
||||
AlternateHalfWidth = 1953259880,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS</unmanaged>
|
||||
HistoricalForms = 1953720680,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES</unmanaged>
|
||||
HorizontalKanaAlternates = 1634626408,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES</unmanaged>
|
||||
HistoricalLigatures = 1734962280,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HALF_WIDTH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HALF_WIDTH</unmanaged>
|
||||
HalfWidth = 1684633448,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS</unmanaged>
|
||||
HojoKanjiForms = 1869246312,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_JIS04_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_JIS04_FORMS</unmanaged>
|
||||
Jis04Forms = 875589738,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_JIS78_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_JIS78_FORMS</unmanaged>
|
||||
Jis78Forms = 943157354,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_JIS83_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_JIS83_FORMS</unmanaged>
|
||||
Jis83Forms = 859336810,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_JIS90_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_JIS90_FORMS</unmanaged>
|
||||
Jis90Forms = 809070698,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_KERNING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_KERNING</unmanaged>
|
||||
Kerning = 1852990827,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES</unmanaged>
|
||||
StandardLigatures = 1634167148,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_LINING_FIGURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_LINING_FIGURES</unmanaged>
|
||||
LiningFigures = 1836412524,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS</unmanaged>
|
||||
LocalizedForms = 1818455916,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING</unmanaged>
|
||||
MarkPositioning = 1802658157,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK</unmanaged>
|
||||
MathematicalGreek = 1802659693,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING</unmanaged>
|
||||
MarkToMarkPositioning = 1802333037,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS</unmanaged>
|
||||
AlternateAnnotationForms = 1953259886,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS</unmanaged>
|
||||
NlcKanjiForms = 1801677934,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES</unmanaged>
|
||||
OldStyleFigures = 1836412527,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_ORDINALS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_ORDINALS</unmanaged>
|
||||
Ordinals = 1852076655,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH</unmanaged>
|
||||
ProportionalAlternateWidth = 1953259888,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS</unmanaged>
|
||||
PetiteCapitals = 1885430640,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES</unmanaged>
|
||||
ProportionalFigures = 1836412528,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS</unmanaged>
|
||||
ProportionalWidths = 1684633456,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS</unmanaged>
|
||||
QuarterWidths = 1684633457,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES</unmanaged>
|
||||
RequiredLigatures = 1734962290,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS</unmanaged>
|
||||
RubyNotationForms = 2036495730,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES</unmanaged>
|
||||
StylisticAlternates = 1953259891,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS</unmanaged>
|
||||
ScientificInferiors = 1718511987,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS</unmanaged>
|
||||
SmallCapitals = 1885564275,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS</unmanaged>
|
||||
SimplifiedForms = 1819307379,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1</unmanaged>
|
||||
StylisticSet1 = 825258867,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2</unmanaged>
|
||||
StylisticSet2 = 842036083,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3</unmanaged>
|
||||
StylisticSet3 = 858813299,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4</unmanaged>
|
||||
StylisticSet4 = 875590515,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5</unmanaged>
|
||||
StylisticSet5 = 892367731,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6</unmanaged>
|
||||
StylisticSet6 = 909144947,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7</unmanaged>
|
||||
StylisticSet7 = 925922163,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8</unmanaged>
|
||||
StylisticSet8 = 942699379,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9</unmanaged>
|
||||
StylisticSet9 = 959476595,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10</unmanaged>
|
||||
StylisticSet10 = 808547187,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11</unmanaged>
|
||||
StylisticSet11 = 825324403,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12</unmanaged>
|
||||
StylisticSet12 = 842101619,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13</unmanaged>
|
||||
StylisticSet13 = 858878835,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14</unmanaged>
|
||||
StylisticSet14 = 875656051,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15</unmanaged>
|
||||
StylisticSet15 = 892433267,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16</unmanaged>
|
||||
StylisticSet16 = 909210483,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17</unmanaged>
|
||||
StylisticSet17 = 925987699,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18</unmanaged>
|
||||
StylisticSet18 = 942764915,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19</unmanaged>
|
||||
StylisticSet19 = 959542131,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20</unmanaged>
|
||||
StylisticSet20 = 808612723,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SUBSCRIPT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SUBSCRIPT</unmanaged>
|
||||
Subscript = 1935832435,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT</unmanaged>
|
||||
Superscript = 1936749939,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SWASH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SWASH</unmanaged>
|
||||
Swash = 1752397683,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_TITLING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_TITLING</unmanaged>
|
||||
Titling = 1819568500,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS</unmanaged>
|
||||
TraditionalNameForms = 1835101812,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES</unmanaged>
|
||||
TabularFigures = 1836412532,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS</unmanaged>
|
||||
TraditionalForms = 1684107892,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS</unmanaged>
|
||||
ThirdWidths = 1684633460,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_UNICASE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_UNICASE</unmanaged>
|
||||
Unicase = 1667853941,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_VERTICAL_WRITING"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_VERTICAL_WRITING</unmanaged>
|
||||
VerticalWriting = 1953654134,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_VERTICAL_ALTERNATES_AND_ROTATION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_VERTICAL_ALTERNATES_AND_ROTATION</unmanaged>
|
||||
VerticalAlternatesAndRotation = 846492278,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FEATURE_TAG::DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO</unmanaged>
|
||||
SlashedZero = 1869768058,
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE</unmanaged>
|
||||
public enum FontFileType : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_UNKNOWN"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_UNKNOWN</unmanaged>
|
||||
Unknown = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_CFF"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_CFF</unmanaged>
|
||||
Cff = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_TRUETYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_TRUETYPE</unmanaged>
|
||||
Truetype = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION</unmanaged>
|
||||
OpentypeCollection = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_TYPE1_PFM"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_TYPE1_PFM</unmanaged>
|
||||
Type1Pfm = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_TYPE1_PFB"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_TYPE1_PFB</unmanaged>
|
||||
Type1Pfb = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_VECTOR"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_VECTOR</unmanaged>
|
||||
Vector = 6,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_BITMAP"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_BITMAP</unmanaged>
|
||||
Bitmap = 7,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_FILE_TYPE::DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION</unmanaged>
|
||||
TruetypeCollection = 3,
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_LINE_GAP_USAGE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_LINE_GAP_USAGE</unmanaged>
|
||||
public enum FontLineGapUsage : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_LINE_GAP_USAGE::DWRITE_FONT_LINE_GAP_USAGE_DEFAULT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_LINE_GAP_USAGE_DEFAULT</unmanaged>
|
||||
Default = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_LINE_GAP_USAGE::DWRITE_FONT_LINE_GAP_USAGE_DISABLED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_LINE_GAP_USAGE_DISABLED</unmanaged>
|
||||
Disabled = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_LINE_GAP_USAGE::DWRITE_FONT_LINE_GAP_USAGE_ENABLED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_LINE_GAP_USAGE_ENABLED</unmanaged>
|
||||
Enabled = 2,
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_METRICS</unmanaged>
|
||||
public partial struct FontMetrics
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::designUnitsPerEm"]/*' />
|
||||
public ushort designUnitsPerEm;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::ascent"]/*' />
|
||||
public ushort ascent;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::descent"]/*' />
|
||||
public ushort descent;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::lineGap"]/*' />
|
||||
public short lineGap;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::capHeight"]/*' />
|
||||
public ushort capHeight;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::xHeight"]/*' />
|
||||
public ushort xHeight;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::underlinePosition"]/*' />
|
||||
public short underlinePosition;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::underlineThickness"]/*' />
|
||||
public ushort underlineThickness;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::strikethroughPosition"]/*' />
|
||||
public short strikethroughPosition;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS::strikethroughThickness"]/*' />
|
||||
public ushort strikethroughThickness;
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_METRICS1</unmanaged>
|
||||
public partial struct FontMetrics1
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::Base"]/*' />
|
||||
public FontMetrics Base;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::glyphBoxLeft"]/*' />
|
||||
public short glyphBoxLeft;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::glyphBoxTop"]/*' />
|
||||
public short glyphBoxTop;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::glyphBoxRight"]/*' />
|
||||
public short glyphBoxRight;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::glyphBoxBottom"]/*' />
|
||||
public short glyphBoxBottom;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::subscriptPositionX"]/*' />
|
||||
public short subscriptPositionX;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::subscriptPositionY"]/*' />
|
||||
public short subscriptPositionY;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::subscriptSizeX"]/*' />
|
||||
public short subscriptSizeX;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::subscriptSizeY"]/*' />
|
||||
public short subscriptSizeY;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::superscriptPositionX"]/*' />
|
||||
public short superscriptPositionX;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::superscriptPositionY"]/*' />
|
||||
public short superscriptPositionY;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::superscriptSizeX"]/*' />
|
||||
public short superscriptSizeX;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::superscriptSizeY"]/*' />
|
||||
public short superscriptSizeY;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_METRICS1::hasTypographicMetrics"]/*' />
|
||||
public Bool32 hasTypographicMetrics;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY</unmanaged>
|
||||
public partial struct FontProperty
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY::propertyId"]/*' />
|
||||
public FontPropertyId propertyId;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY::propertyValue"]/*' />
|
||||
public unsafe ushort* propertyValue;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY::localeName"]/*' />
|
||||
public unsafe ushort* localeName;
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID</unmanaged>
|
||||
public enum FontPropertyId : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_NONE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_NONE</unmanaged>
|
||||
None = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME</unmanaged>
|
||||
WeightStretchStyleFamilyName = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME</unmanaged>
|
||||
TypographicFamilyName = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME</unmanaged>
|
||||
WeightStretchStyleFaceName = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_FULL_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_FULL_NAME</unmanaged>
|
||||
FullName = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME</unmanaged>
|
||||
Win32FamilyName = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME</unmanaged>
|
||||
PostscriptName = 6,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG</unmanaged>
|
||||
DesignScriptLanguageTag = 7,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG</unmanaged>
|
||||
SupportedScriptLanguageTag = 8,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG</unmanaged>
|
||||
SemanticTag = 9,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_WEIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_WEIGHT</unmanaged>
|
||||
Weight = 10,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_STRETCH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_STRETCH</unmanaged>
|
||||
Stretch = 11,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_STYLE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_STYLE</unmanaged>
|
||||
Style = 12,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME</unmanaged>
|
||||
TypographicFaceName = 13,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_TOTAL"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_TOTAL</unmanaged>
|
||||
Total = 13,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_TOTAL_RS3"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_TOTAL_RS3</unmanaged>
|
||||
TotalRs3 = 14,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME</unmanaged>
|
||||
PreferredFamilyName = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_FAMILY_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_FAMILY_NAME</unmanaged>
|
||||
FamilyName = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_PROPERTY_ID::DWRITE_FONT_PROPERTY_ID_FACE_NAME"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_PROPERTY_ID_FACE_NAME</unmanaged>
|
||||
FaceName = 3,
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SIMULATIONS"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SIMULATIONS</unmanaged>
|
||||
[Flags]
|
||||
public enum FontSimulations : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SIMULATIONS::DWRITE_FONT_SIMULATIONS_NONE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SIMULATIONS_NONE</unmanaged>
|
||||
None = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SIMULATIONS::DWRITE_FONT_SIMULATIONS_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SIMULATIONS_BOLD</unmanaged>
|
||||
Bold = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SIMULATIONS::DWRITE_FONT_SIMULATIONS_OBLIQUE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SIMULATIONS_OBLIQUE</unmanaged>
|
||||
Oblique = 2,
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE</unmanaged>
|
||||
public enum FontSourceType : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE::DWRITE_FONT_SOURCE_TYPE_UNKNOWN"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE_UNKNOWN</unmanaged>
|
||||
Unknown = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE::DWRITE_FONT_SOURCE_TYPE_PER_MACHINE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE_PER_MACHINE</unmanaged>
|
||||
PerMachine = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE::DWRITE_FONT_SOURCE_TYPE_PER_USER"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE_PER_USER</unmanaged>
|
||||
PerUser = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE::DWRITE_FONT_SOURCE_TYPE_APPX_PACKAGE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE_APPX_PACKAGE</unmanaged>
|
||||
AppxPackage = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_SOURCE_TYPE::DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER</unmanaged>
|
||||
RemoteFontProvider = 4,
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH</unmanaged>
|
||||
public enum FontStretch : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_UNDEFINED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_UNDEFINED</unmanaged>
|
||||
Undefined = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_ULTRA_CONDENSED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_ULTRA_CONDENSED</unmanaged>
|
||||
UltraCondensed = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_EXTRA_CONDENSED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_EXTRA_CONDENSED</unmanaged>
|
||||
ExtraCondensed = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_CONDENSED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_CONDENSED</unmanaged>
|
||||
Condensed = 3,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_SEMI_CONDENSED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_SEMI_CONDENSED</unmanaged>
|
||||
SemiCondensed = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_NORMAL"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_NORMAL</unmanaged>
|
||||
Normal = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_MEDIUM"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_MEDIUM</unmanaged>
|
||||
Medium = 5,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_SEMI_EXPANDED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_SEMI_EXPANDED</unmanaged>
|
||||
SemiExpanded = 6,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_EXPANDED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_EXPANDED</unmanaged>
|
||||
Expanded = 7,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_EXTRA_EXPANDED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_EXTRA_EXPANDED</unmanaged>
|
||||
ExtraExpanded = 8,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STRETCH::DWRITE_FONT_STRETCH_ULTRA_EXPANDED"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STRETCH_ULTRA_EXPANDED</unmanaged>
|
||||
UltraExpanded = 9,
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STYLE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STYLE</unmanaged>
|
||||
public enum FontStyle : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STYLE::DWRITE_FONT_STYLE_NORMAL"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STYLE_NORMAL</unmanaged>
|
||||
Normal = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STYLE::DWRITE_FONT_STYLE_OBLIQUE"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STYLE_OBLIQUE</unmanaged>
|
||||
Oblique = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_STYLE::DWRITE_FONT_STYLE_ITALIC"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_STYLE_ITALIC</unmanaged>
|
||||
Italic = 2,
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT</unmanaged>
|
||||
public enum FontWeight : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_THIN"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_THIN</unmanaged>
|
||||
Thin = 100,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_EXTRA_LIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_EXTRA_LIGHT</unmanaged>
|
||||
ExtraLight = 200,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_ULTRA_LIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_ULTRA_LIGHT</unmanaged>
|
||||
UltraLight = 200,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_LIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_LIGHT</unmanaged>
|
||||
Light = 300,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_SEMI_LIGHT"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_SEMI_LIGHT</unmanaged>
|
||||
SemiLight = 350,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_NORMAL"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_NORMAL</unmanaged>
|
||||
Normal = 400,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_REGULAR"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_REGULAR</unmanaged>
|
||||
Regular = 400,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_MEDIUM"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_MEDIUM</unmanaged>
|
||||
Medium = 500,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_DEMI_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_DEMI_BOLD</unmanaged>
|
||||
DemiBold = 600,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_SEMI_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_SEMI_BOLD</unmanaged>
|
||||
SemiBold = 600,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_BOLD</unmanaged>
|
||||
Bold = 700,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_EXTRA_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_EXTRA_BOLD</unmanaged>
|
||||
ExtraBold = 800,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_ULTRA_BOLD"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_ULTRA_BOLD</unmanaged>
|
||||
UltraBold = 800,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_BLACK"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_BLACK</unmanaged>
|
||||
Black = 900,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_HEAVY"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_HEAVY</unmanaged>
|
||||
Heavy = 900,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_EXTRA_BLACK"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_EXTRA_BLACK</unmanaged>
|
||||
ExtraBlack = 950,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_FONT_WEIGHT::DWRITE_FONT_WEIGHT_ULTRA_BLACK"]/*' />
|
||||
/// <unmanaged>DWRITE_FONT_WEIGHT_ULTRA_BLACK</unmanaged>
|
||||
UltraBlack = 950,
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_DATA</unmanaged>
|
||||
public partial struct GlyphImageData
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::imageData"]/*' />
|
||||
public unsafe void* imageData;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::imageDataSize"]/*' />
|
||||
public uint imageDataSize;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::uniqueDataId"]/*' />
|
||||
public uint uniqueDataId;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::pixelsPerEm"]/*' />
|
||||
public uint pixelsPerEm;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::pixelSize"]/*' />
|
||||
public System.Drawing.Size pixelSize;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::horizontalLeftOrigin"]/*' />
|
||||
public System.Drawing.Point horizontalLeftOrigin;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::horizontalRightOrigin"]/*' />
|
||||
public System.Drawing.Point horizontalRightOrigin;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::verticalTopOrigin"]/*' />
|
||||
public System.Drawing.Point verticalTopOrigin;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_DATA::verticalBottomOrigin"]/*' />
|
||||
public System.Drawing.Point verticalBottomOrigin;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS</unmanaged>
|
||||
[Flags]
|
||||
public enum GlyphImageFormats : uint
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_NONE"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_NONE</unmanaged>
|
||||
None = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE</unmanaged>
|
||||
Truetype = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_CFF"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_CFF</unmanaged>
|
||||
Cff = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_COLR"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_COLR</unmanaged>
|
||||
Colr = 4,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_SVG"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_SVG</unmanaged>
|
||||
Svg = 8,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_PNG"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_PNG</unmanaged>
|
||||
Png = 16,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_JPEG"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_JPEG</unmanaged>
|
||||
Jpeg = 32,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_TIFF"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_TIFF</unmanaged>
|
||||
Tiff = 64,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_IMAGE_FORMATS::DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8</unmanaged>
|
||||
PremultipliedB8g8r8a8 = 128,
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_METRICS</unmanaged>
|
||||
public partial struct GlyphMetrics
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::leftSideBearing"]/*' />
|
||||
public int leftSideBearing;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::advanceWidth"]/*' />
|
||||
public uint advanceWidth;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::rightSideBearing"]/*' />
|
||||
public int rightSideBearing;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::topSideBearing"]/*' />
|
||||
public int topSideBearing;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::advanceHeight"]/*' />
|
||||
public uint advanceHeight;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::bottomSideBearing"]/*' />
|
||||
public int bottomSideBearing;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_METRICS::verticalOriginY"]/*' />
|
||||
public int verticalOriginY;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_OFFSET"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_OFFSET</unmanaged>
|
||||
public partial struct GlyphOffset
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_OFFSET::advanceOffset"]/*' />
|
||||
public float advanceOffset;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_OFFSET::ascenderOffset"]/*' />
|
||||
public float ascenderOffset;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_ORIENTATION_ANGLE"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_ORIENTATION_ANGLE</unmanaged>
|
||||
public enum GlyphOrientationAngle : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_ORIENTATION_ANGLE::DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES</unmanaged>
|
||||
_0Degrees = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_ORIENTATION_ANGLE::DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES</unmanaged>
|
||||
_90Degrees = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_ORIENTATION_ANGLE::DWRITE_GLYPH_ORIENTATION_ANGLE_180_DEGREES"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_ORIENTATION_ANGLE_180_DEGREES</unmanaged>
|
||||
_180Degrees = 2,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_ORIENTATION_ANGLE::DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES</unmanaged>
|
||||
_270Degrees = 3,
|
||||
}
|
||||
39
src/Vortice.Win32.Graphics.DirectWrite/Generated/GlyphRun.cs
Normal file
39
src/Vortice.Win32.Graphics.DirectWrite/Generated/GlyphRun.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_RUN</unmanaged>
|
||||
public partial struct GlyphRun
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::fontFace"]/*' />
|
||||
public unsafe IDWriteFontFace* fontFace;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::fontEmSize"]/*' />
|
||||
public float fontEmSize;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::glyphCount"]/*' />
|
||||
public uint glyphCount;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::glyphIndices"]/*' />
|
||||
public unsafe ushort* glyphIndices;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::glyphAdvances"]/*' />
|
||||
public unsafe float* glyphAdvances;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::glyphOffsets"]/*' />
|
||||
public unsafe GlyphOffset* glyphOffsets;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::isSideways"]/*' />
|
||||
public Bool32 isSideways;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN::bidiLevel"]/*' />
|
||||
public uint bidiLevel;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION"]/*' />
|
||||
/// <unmanaged>DWRITE_GLYPH_RUN_DESCRIPTION</unmanaged>
|
||||
public partial struct GlyphRunDescription
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION::localeName"]/*' />
|
||||
public unsafe ushort* localeName;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION::string"]/*' />
|
||||
public unsafe ushort* @string;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION::stringLength"]/*' />
|
||||
public uint stringLength;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION::clusterMap"]/*' />
|
||||
public unsafe ushort* clusterMap;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GLYPH_RUN_DESCRIPTION::textPosition"]/*' />
|
||||
public uint textPosition;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GRID_FIT_MODE"]/*' />
|
||||
/// <unmanaged>DWRITE_GRID_FIT_MODE</unmanaged>
|
||||
public enum GridFitMode : int
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GRID_FIT_MODE::DWRITE_GRID_FIT_MODE_DEFAULT"]/*' />
|
||||
/// <unmanaged>DWRITE_GRID_FIT_MODE_DEFAULT</unmanaged>
|
||||
Default = 0,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GRID_FIT_MODE::DWRITE_GRID_FIT_MODE_DISABLED"]/*' />
|
||||
/// <unmanaged>DWRITE_GRID_FIT_MODE_DISABLED</unmanaged>
|
||||
Disabled = 1,
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_GRID_FIT_MODE::DWRITE_GRID_FIT_MODE_ENABLED"]/*' />
|
||||
/// <unmanaged>DWRITE_GRID_FIT_MODE_ENABLED</unmanaged>
|
||||
Enabled = 2,
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS"]/*' />
|
||||
/// <unmanaged>DWRITE_HIT_TEST_METRICS</unmanaged>
|
||||
public partial struct HitTestMetrics
|
||||
{
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::textPosition"]/*' />
|
||||
public uint textPosition;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::length"]/*' />
|
||||
public uint length;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::left"]/*' />
|
||||
public float left;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::top"]/*' />
|
||||
public float top;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::width"]/*' />
|
||||
public float width;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::height"]/*' />
|
||||
public float height;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::bidiLevel"]/*' />
|
||||
public uint bidiLevel;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::isText"]/*' />
|
||||
public Bool32 isText;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="DWRITE_HIT_TEST_METRICS::isTrimmed"]/*' />
|
||||
public Bool32 isTrimmed;
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteAsyncResult"]/*' />
|
||||
/// <unmanaged>IDWriteAsyncResult</unmanaged>
|
||||
[Guid("ce25f8fd-863b-4d13-9651-c1f88dc73fe2")]
|
||||
[NativeTypeName("struct IDWriteAsyncResult : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteAsyncResult : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteAsyncResult
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xFD, 0xF8, 0x25, 0xCE,
|
||||
0x3B, 0x86,
|
||||
0x13, 0x4D,
|
||||
0x96,
|
||||
0x51,
|
||||
0xC1,
|
||||
0xF8,
|
||||
0x8D,
|
||||
0xC7,
|
||||
0x3F,
|
||||
0xE2
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteAsyncResult));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteAsyncResult));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteAsyncResult::GetWaitHandle"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public Handle GetWaitHandle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteAsyncResult*, Handle>)(lpVtbl[3]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteAsyncResult::GetResult"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetResult()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteAsyncResult*, int>)(lpVtbl[4]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget"]/*' />
|
||||
/// <unmanaged>IDWriteBitmapRenderTarget</unmanaged>
|
||||
[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")]
|
||||
[NativeTypeName("struct IDWriteBitmapRenderTarget : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteBitmapRenderTarget
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xA3, 0x32, 0x5A, 0x5E,
|
||||
0xFF, 0x8D,
|
||||
0x73, 0x47,
|
||||
0x9F,
|
||||
0xF6,
|
||||
0x06,
|
||||
0x96,
|
||||
0xEA,
|
||||
0xB7,
|
||||
0x72,
|
||||
0x67
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::DrawGlyphRun"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, float, float, MeasuringMode, GlyphRun*, IDWriteRenderingParams*, uint, RawRect*, int>)(lpVtbl[3]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::GetMemoryDC"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public IntPtr GetMemoryDC()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, IntPtr>)(lpVtbl[4]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::GetPixelsPerDip"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public float GetPixelsPerDip()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, float>)(lpVtbl[5]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::SetPixelsPerDip"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetPixelsPerDip(float pixelsPerDip)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, float, int>)(lpVtbl[6]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), pixelsPerDip);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::GetCurrentTransform"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetCurrentTransform(Matrix3x2* transform)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, Matrix3x2*, int>)(lpVtbl[7]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::SetCurrentTransform"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult SetCurrentTransform(Matrix3x2* transform)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, Matrix3x2*, int>)(lpVtbl[8]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::GetSize"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetSize(System.Drawing.Size* size)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, System.Drawing.Size*, int>)(lpVtbl[9]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), size);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget::Resize"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult Resize(uint width, uint height)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, uint, uint, int>)(lpVtbl[10]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), width, height);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget1"]/*' />
|
||||
/// <unmanaged>IDWriteBitmapRenderTarget1</unmanaged>
|
||||
[Guid("791e8298-3ef3-4230-9880-c9bdecc42064")]
|
||||
[NativeTypeName("struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget")]
|
||||
[NativeInheritance("IDWriteBitmapRenderTarget")]
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteBitmapRenderTarget1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x98, 0x82, 0x1E, 0x79,
|
||||
0xF3, 0x3E,
|
||||
0x30, 0x42,
|
||||
0x98,
|
||||
0x80,
|
||||
0xC9,
|
||||
0xBD,
|
||||
0xEC,
|
||||
0xC4,
|
||||
0x20,
|
||||
0x64
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.DrawGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, float, float, MeasuringMode, GlyphRun*, IDWriteRenderingParams*, uint, RawRect*, int>)(lpVtbl[3]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.GetMemoryDC" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public IntPtr GetMemoryDC()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, IntPtr>)(lpVtbl[4]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.GetPixelsPerDip" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public float GetPixelsPerDip()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, float>)(lpVtbl[5]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.SetPixelsPerDip" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult SetPixelsPerDip(float pixelsPerDip)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, float, int>)(lpVtbl[6]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), pixelsPerDip);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.GetCurrentTransform" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetCurrentTransform(Matrix3x2* transform)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, Matrix3x2*, int>)(lpVtbl[7]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.SetCurrentTransform" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult SetCurrentTransform(Matrix3x2* transform)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, Matrix3x2*, int>)(lpVtbl[8]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.GetSize" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetSize(System.Drawing.Size* size)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, System.Drawing.Size*, int>)(lpVtbl[9]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), size);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteBitmapRenderTarget.Resize" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult Resize(uint width, uint height)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, uint, uint, int>)(lpVtbl[10]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), width, height);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget1::GetTextAntialiasMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public TextAntialiasMode GetTextAntialiasMode()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, TextAntialiasMode>)(lpVtbl[11]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteBitmapRenderTarget1::SetTextAntialiasMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, TextAntialiasMode, int>)(lpVtbl[12]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), antialiasMode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteColorGlyphRunEnumerator"]/*' />
|
||||
/// <unmanaged>IDWriteColorGlyphRunEnumerator</unmanaged>
|
||||
[Guid("d31fbe17-f157-41a2-8d24-cb779e0560e8")]
|
||||
[NativeTypeName("struct IDWriteColorGlyphRunEnumerator : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x17, 0xBE, 0x1F, 0xD3,
|
||||
0x57, 0xF1,
|
||||
0xA2, 0x41,
|
||||
0x8D,
|
||||
0x24,
|
||||
0xCB,
|
||||
0x77,
|
||||
0x9E,
|
||||
0x05,
|
||||
0x60,
|
||||
0xE8
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteColorGlyphRunEnumerator::MoveNext"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult MoveNext(Bool32* hasRun)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator*, Bool32*, int>)(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), hasRun);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteColorGlyphRunEnumerator::GetCurrentRun"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator*, ColorGlyphRun**, int>)(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), colorGlyphRun);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteColorGlyphRunEnumerator1"]/*' />
|
||||
/// <unmanaged>IDWriteColorGlyphRunEnumerator1</unmanaged>
|
||||
[Guid("7c5f86da-c7a1-4f05-b8e1-55a179fe5a35")]
|
||||
[NativeTypeName("struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator")]
|
||||
[NativeInheritance("IDWriteColorGlyphRunEnumerator")]
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xDA, 0x86, 0x5F, 0x7C,
|
||||
0xA1, 0xC7,
|
||||
0x05, 0x4F,
|
||||
0xB8,
|
||||
0xE1,
|
||||
0x55,
|
||||
0xA1,
|
||||
0x79,
|
||||
0xFE,
|
||||
0x5A,
|
||||
0x35
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteColorGlyphRunEnumerator.MoveNext" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult MoveNext(Bool32* hasRun)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator1*, Bool32*, int>)(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), hasRun);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteColorGlyphRunEnumerator.GetCurrentRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator1*, ColorGlyphRun**, int>)(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteColorGlyphRunEnumerator1::GetCurrentRun"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetCurrentRun(ColorGlyphRun1** colorGlyphRun)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator1*, ColorGlyphRun1**, int>)(lpVtbl[5]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory"]/*' />
|
||||
/// <unmanaged>IDWriteFactory</unmanaged>
|
||||
[Guid("b859ee5a-d838-4b5b-a2e8-1adc7d93db48")]
|
||||
[NativeTypeName("struct IDWriteFactory : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFactory : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x5A, 0xEE, 0x59, 0xB8,
|
||||
0x38, 0xD8,
|
||||
0x5B, 0x4B,
|
||||
0xA2,
|
||||
0xE8,
|
||||
0x1A,
|
||||
0xDC,
|
||||
0x7D,
|
||||
0x93,
|
||||
0xDB,
|
||||
0x48
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::GetSystemFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateCustomFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::RegisterFontCollectionLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::UnregisterFontCollectionLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateFontFileReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateCustomFontFileReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateMonitorRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateCustomRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::RegisterFontFileLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::UnregisterFontFileLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateTextFormat"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateTypography"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::GetGdiInterop"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateTextLayout"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateGdiCompatibleTextLayout"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateEllipsisTrimmingSign"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateTextAnalyzer"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateNumberSubstitution"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory::CreateGlyphRunAnalysis"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory1"]/*' />
|
||||
/// <unmanaged>IDWriteFactory1</unmanaged>
|
||||
[Guid("30572f99-dac6-41db-a16e-0486307e606a")]
|
||||
[NativeTypeName("struct IDWriteFactory1 : IDWriteFactory")]
|
||||
[NativeInheritance("IDWriteFactory")]
|
||||
public unsafe partial struct IDWriteFactory1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x99, 0x2F, 0x57, 0x30,
|
||||
0xC6, 0xDA,
|
||||
0xDB, 0x41,
|
||||
0xA1,
|
||||
0x6E,
|
||||
0x04,
|
||||
0x86,
|
||||
0x30,
|
||||
0x7E,
|
||||
0x60,
|
||||
0x6A
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory1::GetEudcFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory1::CreateCustomRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,301 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2"]/*' />
|
||||
/// <unmanaged>IDWriteFactory2</unmanaged>
|
||||
[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")]
|
||||
[NativeTypeName("struct IDWriteFactory2 : IDWriteFactory1")]
|
||||
[NativeInheritance("IDWriteFactory1")]
|
||||
public unsafe partial struct IDWriteFactory2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x60, 0xFC, 0x39, 0x04,
|
||||
0x44, 0xCA,
|
||||
0x94, 0x49,
|
||||
0x8D,
|
||||
0xEE,
|
||||
0x3A,
|
||||
0x9A,
|
||||
0xF7,
|
||||
0xB7,
|
||||
0x32,
|
||||
0xEC
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2::GetSystemFontFallback"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2::CreateFontFallbackBuilder"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2::TranslateColorGlyphRun"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2::CreateCustomRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory2::CreateGlyphRunAnalysis"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,373 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3"]/*' />
|
||||
/// <unmanaged>IDWriteFactory3</unmanaged>
|
||||
[Guid("9a1b41c3-d3bb-466a-87fc-fe67556a3b65")]
|
||||
[NativeTypeName("struct IDWriteFactory3 : IDWriteFactory2")]
|
||||
[NativeInheritance("IDWriteFactory2")]
|
||||
public unsafe partial struct IDWriteFactory3 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory3
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xC3, 0x41, 0x1B, 0x9A,
|
||||
0xBB, 0xD3,
|
||||
0x6A, 0x46,
|
||||
0x87,
|
||||
0xFC,
|
||||
0xFE,
|
||||
0x67,
|
||||
0x55,
|
||||
0x6A,
|
||||
0x3B,
|
||||
0x65
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory3));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory3));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.GetSystemFontFallback" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateFontFallbackBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateGlyphRunAnalysis"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, GlyphRun*, Matrix3x2*, RenderingMode1, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[31]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateCustomRenderingParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, float, float, float, float, PixelGeometry, RenderingMode1, GridFitMode, IDWriteRenderingParams3**, int>)(lpVtbl[32]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontFile*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[33]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, ushort*, ulong*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[34]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::GetSystemFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetSystemFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontSet**, int>)(lpVtbl[35]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateFontSetBuilder"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontSetBuilder**, int>)(lpVtbl[36]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::CreateFontCollectionFromFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontSet*, IDWriteFontCollection1**, int>)(lpVtbl[37]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet, fontCollection);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::GetSystemFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, Bool32, IDWriteFontCollection1**, Bool32, int>)(lpVtbl[38]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory3::GetFontDownloadQueue"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,397 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory4"]/*' />
|
||||
/// <unmanaged>IDWriteFactory4</unmanaged>
|
||||
[Guid("4b0b5bd3-0797-4549-8ac5-fe915cc53856")]
|
||||
[NativeTypeName("struct IDWriteFactory4 : IDWriteFactory3")]
|
||||
[NativeInheritance("IDWriteFactory3")]
|
||||
public unsafe partial struct IDWriteFactory4 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory4
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xD3, 0x5B, 0x0B, 0x4B,
|
||||
0x97, 0x07,
|
||||
0x49, 0x45,
|
||||
0x8A,
|
||||
0xC5,
|
||||
0xFE,
|
||||
0x91,
|
||||
0x5C,
|
||||
0xC5,
|
||||
0x38,
|
||||
0x56
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory4));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory4));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.GetSystemFontFallback" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateFontFallbackBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, Matrix3x2*, RenderingMode1, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[31]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, float, float, float, float, PixelGeometry, RenderingMode1, GridFitMode, IDWriteRenderingParams3**, int>)(lpVtbl[32]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontFile*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[33]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, ushort*, ulong*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[34]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetSystemFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontSet**, int>)(lpVtbl[35]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontSetBuilder**, int>)(lpVtbl[36]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontCollectionFromFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontSet*, IDWriteFontCollection1**, int>)(lpVtbl[37]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, Bool32, IDWriteFontCollection1**, Bool32, int>)(lpVtbl[38]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetFontDownloadQueue" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory4::TranslateColorGlyphRun"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult TranslateColorGlyphRun(System.Drawing.PointF baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, System.Drawing.PointF, GlyphRun*, GlyphRunDescription*, GlyphImageFormats, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator1**, int>)(lpVtbl[40]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory4::ComputeGlyphOrigins"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF baselineOrigin, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, System.Drawing.PointF, System.Drawing.PointF*, int>)(lpVtbl[41]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory4::ComputeGlyphOrigins"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF baselineOrigin, Matrix3x2* worldAndDpiTransform, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, MeasuringMode, System.Drawing.PointF, Matrix3x2*, System.Drawing.PointF*, int>)(lpVtbl[42]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,437 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5"]/*' />
|
||||
/// <unmanaged>IDWriteFactory5</unmanaged>
|
||||
[Guid("958db99a-be2a-4f09-af7d-65189803d1d3")]
|
||||
[NativeTypeName("struct IDWriteFactory5 : IDWriteFactory4")]
|
||||
[NativeInheritance("IDWriteFactory4")]
|
||||
public unsafe partial struct IDWriteFactory5 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory5
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x9A, 0xB9, 0x8D, 0x95,
|
||||
0x2A, 0xBE,
|
||||
0x09, 0x4F,
|
||||
0xAF,
|
||||
0x7D,
|
||||
0x65,
|
||||
0x18,
|
||||
0x98,
|
||||
0x03,
|
||||
0xD1,
|
||||
0xD3
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory5));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory5));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.GetSystemFontFallback" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateFontFallbackBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, GlyphRun*, Matrix3x2*, RenderingMode1, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[31]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, float, float, float, float, PixelGeometry, RenderingMode1, GridFitMode, IDWriteRenderingParams3**, int>)(lpVtbl[32]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontFile*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[33]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, ulong*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[34]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetSystemFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontSet**, int>)(lpVtbl[35]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontSetBuilder**, int>)(lpVtbl[36]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontCollectionFromFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontSet*, IDWriteFontCollection1**, int>)(lpVtbl[37]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, Bool32, IDWriteFontCollection1**, Bool32, int>)(lpVtbl[38]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetFontDownloadQueue" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult TranslateColorGlyphRun(System.Drawing.PointF baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, System.Drawing.PointF, GlyphRun*, GlyphRunDescription*, GlyphImageFormats, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator1**, int>)(lpVtbl[40]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF baselineOrigin, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, GlyphRun*, System.Drawing.PointF, System.Drawing.PointF*, int>)(lpVtbl[41]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF baselineOrigin, Matrix3x2* worldAndDpiTransform, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, GlyphRun*, MeasuringMode, System.Drawing.PointF, Matrix3x2*, System.Drawing.PointF*, int>)(lpVtbl[42]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5::CreateFontSetBuilder"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteFontSetBuilder1**, int>)(lpVtbl[43]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5::CreateInMemoryFontFileLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, IDWriteInMemoryFontFileLoader**, int>)(lpVtbl[44]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), newLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5::CreateHttpFontFileLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ushort*, ushort*, IDWriteRemoteFontFileLoader**, int>)(lpVtbl[45]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5::AnalyzeContainerType"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, void*, uint, ContainerType>)(lpVtbl[46]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fileData, fileDataSize);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory5::UnpackFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ContainerType, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[47]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,493 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6"]/*' />
|
||||
/// <unmanaged>IDWriteFactory6</unmanaged>
|
||||
[Guid("f3744d80-21f7-42eb-b35d-995bc72fc223")]
|
||||
[NativeTypeName("struct IDWriteFactory6 : IDWriteFactory5")]
|
||||
[NativeInheritance("IDWriteFactory5")]
|
||||
public unsafe partial struct IDWriteFactory6 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory6
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x80, 0x4D, 0x74, 0xF3,
|
||||
0xF7, 0x21,
|
||||
0xEB, 0x42,
|
||||
0xB3,
|
||||
0x5D,
|
||||
0x99,
|
||||
0x5B,
|
||||
0xC7,
|
||||
0x2F,
|
||||
0xC2,
|
||||
0x23
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory6));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory6));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.GetSystemFontFallback" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateFontFallbackBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, GlyphRun*, Matrix3x2*, RenderingMode1, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[31]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, float, float, float, float, PixelGeometry, RenderingMode1, GridFitMode, IDWriteRenderingParams3**, int>)(lpVtbl[32]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFile*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[33]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, ulong*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[34]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetSystemFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSet**, int>)(lpVtbl[35]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSetBuilder**, int>)(lpVtbl[36]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontCollectionFromFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSet*, IDWriteFontCollection1**, int>)(lpVtbl[37]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, Bool32, IDWriteFontCollection1**, Bool32, int>)(lpVtbl[38]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetFontDownloadQueue" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult TranslateColorGlyphRun(System.Drawing.PointF baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, System.Drawing.PointF, GlyphRun*, GlyphRunDescription*, GlyphImageFormats, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator1**, int>)(lpVtbl[40]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF baselineOrigin, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, GlyphRun*, System.Drawing.PointF, System.Drawing.PointF*, int>)(lpVtbl[41]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF baselineOrigin, Matrix3x2* worldAndDpiTransform, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, GlyphRun*, MeasuringMode, System.Drawing.PointF, Matrix3x2*, System.Drawing.PointF*, int>)(lpVtbl[42]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSetBuilder1**, int>)(lpVtbl[43]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateInMemoryFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteInMemoryFontFileLoader**, int>)(lpVtbl[44]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), newLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateHttpFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, ushort*, IDWriteRemoteFontFileLoader**, int>)(lpVtbl[45]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.AnalyzeContainerType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, void*, uint, ContainerType>)(lpVtbl[46]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fileData, fileDataSize);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.UnpackFontFile" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ContainerType, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[47]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::CreateFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFile*, uint, FontSimulations, FontAxisValue*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[48]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::CreateFontResource"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontFile*, uint, IDWriteFontResource**, int>)(lpVtbl[49]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::GetSystemFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(50)]
|
||||
public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, Bool32, IDWriteFontSet1**, int>)(lpVtbl[50]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::GetSystemFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(51)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, Bool32, FontFamilyModel, IDWriteFontCollection2**, int>)(lpVtbl[51]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::CreateFontCollectionFromFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(52)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSet*, FontFamilyModel, IDWriteFontCollection2**, int>)(lpVtbl[52]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::CreateFontSetBuilder"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(53)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, IDWriteFontSetBuilder2**, int>)(lpVtbl[53]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory6::CreateTextFormat"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(54)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, IDWriteFontCollection*, FontAxisValue*, uint, float, ushort*, IDWriteTextFormat3**, int>)(lpVtbl[54]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,509 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory7"]/*' />
|
||||
/// <unmanaged>IDWriteFactory7</unmanaged>
|
||||
[Guid("35d0e0b3-9076-4d2e-a016-a91b568a06b4")]
|
||||
[NativeTypeName("struct IDWriteFactory7 : IDWriteFactory6")]
|
||||
[NativeInheritance("IDWriteFactory6")]
|
||||
public unsafe partial struct IDWriteFactory7 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory7
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xB3, 0xE0, 0xD0, 0x35,
|
||||
0x76, 0x90,
|
||||
0x2E, 0x4D,
|
||||
0xA0,
|
||||
0x16,
|
||||
0xA9,
|
||||
0x1B,
|
||||
0x56,
|
||||
0x8A,
|
||||
0x06,
|
||||
0xB4
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory7));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory7));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[3]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontCollectionLoader*, void*, uint, IDWriteFontCollection**, int>)(lpVtbl[4]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontCollectionLoader*, int>)(lpVtbl[5]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontCollectionLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontCollectionLoader*, int>)(lpVtbl[6]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, ulong*, IDWriteFontFile**, int>)(lpVtbl[7]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomFontFileReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, void*, uint, IDWriteFontFileLoader*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, FontFaceType, uint, IDWriteFontFile**, uint, FontSimulations, IDWriteFontFace**, int>)(lpVtbl[9]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteRenderingParams**, int>)(lpVtbl[10]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateMonitorRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IntPtr, IDWriteRenderingParams**, int>)(lpVtbl[11]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), monitor, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams**, int>)(lpVtbl[12]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.RegisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFileLoader*, int>)(lpVtbl[13]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.UnregisterFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFileLoader*, int>)(lpVtbl[14]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, IDWriteFontCollection*, FontWeight, FontStyle, FontStretch, float, ushort*, IDWriteTextFormat**, int>)(lpVtbl[15]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTypography" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult CreateTypography(IDWriteTypography** typography)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteTypography**, int>)(lpVtbl[16]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), typography);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.GetGdiInterop" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteGdiInterop**, int>)(lpVtbl[17]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gdiInterop);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, uint, IDWriteTextFormat*, float, float, IDWriteTextLayout**, int>)(lpVtbl[18]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGdiCompatibleTextLayout" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, uint, IDWriteTextFormat*, float, float, float, Matrix3x2*, Bool32, IDWriteTextLayout**, int>)(lpVtbl[19]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateEllipsisTrimmingSign" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteTextFormat*, IDWriteInlineObject**, int>)(lpVtbl[20]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textFormat, trimmingSign);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateTextAnalyzer" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteTextAnalyzer**, int>)(lpVtbl[21]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textAnalyzer);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateNumberSubstitution" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, NumberSubstitutionMethod, ushort*, Bool32, IDWriteNumberSubstitution**, int>)(lpVtbl[22]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.GetEudcFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontCollection**, Bool32, int>)(lpVtbl[24]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory1.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.GetSystemFontFallback" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFallback**, int>)(lpVtbl[26]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateFontFallbackBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFallbackBuilder**, int>)(lpVtbl[27]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallbackBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, float, float, GlyphRun*, GlyphRunDescription*, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator**, int>)(lpVtbl[28]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, float, float, float, float, PixelGeometry, RenderingMode, GridFitMode, IDWriteRenderingParams2**, int>)(lpVtbl[29]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory2.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateGlyphRunAnalysis" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, GlyphRun*, Matrix3x2*, RenderingMode1, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[31]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateCustomRenderingParams" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, float, float, float, float, PixelGeometry, RenderingMode1, GridFitMode, IDWriteRenderingParams3**, int>)(lpVtbl[32]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFile*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[33]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, ulong*, uint, FontSimulations, IDWriteFontFaceReference**, int>)(lpVtbl[34]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetSystemFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSet**, int>)(lpVtbl[35]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSetBuilder**, int>)(lpVtbl[36]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.CreateFontCollectionFromFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSet*, IDWriteFontCollection1**, int>)(lpVtbl[37]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, IDWriteFontCollection1**, Bool32, int>)(lpVtbl[38]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory3.GetFontDownloadQueue" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.TranslateColorGlyphRun" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult TranslateColorGlyphRun(System.Drawing.PointF baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, System.Drawing.PointF, GlyphRun*, GlyphRunDescription*, GlyphImageFormats, MeasuringMode, Matrix3x2*, uint, IDWriteColorGlyphRunEnumerator1**, int>)(lpVtbl[40]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF baselineOrigin, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, GlyphRun*, System.Drawing.PointF, System.Drawing.PointF*, int>)(lpVtbl[41]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory4.ComputeGlyphOrigins" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF baselineOrigin, Matrix3x2* worldAndDpiTransform, System.Drawing.PointF* glyphOrigins)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, GlyphRun*, MeasuringMode, System.Drawing.PointF, Matrix3x2*, System.Drawing.PointF*, int>)(lpVtbl[42]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSetBuilder1**, int>)(lpVtbl[43]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateInMemoryFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteInMemoryFontFileLoader**, int>)(lpVtbl[44]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), newLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.CreateHttpFontFileLoader" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, ushort*, IDWriteRemoteFontFileLoader**, int>)(lpVtbl[45]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.AnalyzeContainerType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, void*, uint, ContainerType>)(lpVtbl[46]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fileData, fileDataSize);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory5.UnpackFontFile" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ContainerType, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[47]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.CreateFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFile*, uint, FontSimulations, FontAxisValue*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[48]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.CreateFontResource" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontFile*, uint, IDWriteFontResource**, int>)(lpVtbl[49]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.GetSystemFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(50)]
|
||||
public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, IDWriteFontSet1**, int>)(lpVtbl[50]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.GetSystemFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(51)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, FontFamilyModel, IDWriteFontCollection2**, int>)(lpVtbl[51]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.CreateFontCollectionFromFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(52)]
|
||||
public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSet*, FontFamilyModel, IDWriteFontCollection2**, int>)(lpVtbl[52]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.CreateFontSetBuilder" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(53)]
|
||||
public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, IDWriteFontSetBuilder2**, int>)(lpVtbl[53]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFactory6.CreateTextFormat" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(54)]
|
||||
public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, ushort*, IDWriteFontCollection*, FontAxisValue*, uint, float, ushort*, IDWriteTextFormat3**, int>)(lpVtbl[54]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory7::GetSystemFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(55)]
|
||||
public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet2** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, IDWriteFontSet2**, int>)(lpVtbl[55]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFactory7::GetSystemFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(56)]
|
||||
public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection3** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, FontFamilyModel, IDWriteFontCollection3**, int>)(lpVtbl[56]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection);
|
||||
}
|
||||
}
|
||||
|
||||
165
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont.cs
Normal file
165
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont"]/*' />
|
||||
/// <unmanaged>IDWriteFont</unmanaged>
|
||||
[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")]
|
||||
[NativeTypeName("struct IDWriteFont : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFont : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x96, 0x66, 0xD1, 0xAC,
|
||||
0x14, 0x8C,
|
||||
0x5D, 0x4F,
|
||||
0x87,
|
||||
0x7E,
|
||||
0xFE,
|
||||
0x3F,
|
||||
0xC1,
|
||||
0xD3,
|
||||
0x27,
|
||||
0x37
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetFontFamily"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontFamily(IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, IDWriteFontFamily**, int>)(lpVtbl[3]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFamily);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetWeight"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, FontWeight>)(lpVtbl[4]))((IDWriteFont*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetStretch"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, FontStretch>)(lpVtbl[5]))((IDWriteFont*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetStyle"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, FontStyle>)(lpVtbl[6]))((IDWriteFont*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::IsSymbolFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, Bool32>)(lpVtbl[7]))((IDWriteFont*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetFaceNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, IDWriteLocalizedStrings**, int>)(lpVtbl[8]))((IDWriteFont*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetInformationalStrings"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[9]))((IDWriteFont*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetSimulations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, FontSimulations>)(lpVtbl[10]))((IDWriteFont*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::GetMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public void GetMetrics(FontMetrics* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont*, FontMetrics*, void>)(lpVtbl[11]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::HasCharacter"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult HasCharacter(uint unicodeValue, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, uint, Bool32*, int>)(lpVtbl[12]))((IDWriteFont*)Unsafe.AsPointer(ref this), unicodeValue, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult CreateFontFace(IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, IDWriteFontFace**, int>)(lpVtbl[13]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
}
|
||||
|
||||
197
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont1.cs
Normal file
197
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont1.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont1"]/*' />
|
||||
/// <unmanaged>IDWriteFont1</unmanaged>
|
||||
[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32738")]
|
||||
[NativeTypeName("struct IDWriteFont1 : IDWriteFont")]
|
||||
[NativeInheritance("IDWriteFont")]
|
||||
public unsafe partial struct IDWriteFont1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x96, 0x66, 0xD1, 0xAC,
|
||||
0x14, 0x8C,
|
||||
0x5D, 0x4F,
|
||||
0x87,
|
||||
0x7E,
|
||||
0xFE,
|
||||
0x3F,
|
||||
0xC1,
|
||||
0xD3,
|
||||
0x27,
|
||||
0x38
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontFamily(IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, IDWriteFontFamily**, int>)(lpVtbl[3]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontWeight>)(lpVtbl[4]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontStretch>)(lpVtbl[5]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontStyle>)(lpVtbl[6]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, Bool32>)(lpVtbl[7]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, IDWriteLocalizedStrings**, int>)(lpVtbl[8]))((IDWriteFont1*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[9]))((IDWriteFont1*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontSimulations>)(lpVtbl[10]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public void GetMetrics(FontMetrics* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontMetrics*, void>)(lpVtbl[11]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult HasCharacter(uint unicodeValue, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, uint, Bool32*, int>)(lpVtbl[12]))((IDWriteFont1*)Unsafe.AsPointer(ref this), unicodeValue, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult CreateFontFace(IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, IDWriteFontFace**, int>)(lpVtbl[13]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont1::GetMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont1*, FontMetrics1*, void>)(lpVtbl[14]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont1::GetPanose"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont1*, Panose*, void>)(lpVtbl[15]))((IDWriteFont1*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont1::GetUnicodeRanges"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, uint, UnicodeRange*, uint*, int>)(lpVtbl[16]))((IDWriteFont1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont1::IsMonospacedFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, Bool32>)(lpVtbl[17]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
205
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont2.cs
Normal file
205
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont2.cs
Normal file
@@ -0,0 +1,205 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont2"]/*' />
|
||||
/// <unmanaged>IDWriteFont2</unmanaged>
|
||||
[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")]
|
||||
[NativeTypeName("struct IDWriteFont2 : IDWriteFont1")]
|
||||
[NativeInheritance("IDWriteFont1")]
|
||||
public unsafe partial struct IDWriteFont2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xD6, 0x8E, 0x74, 0x29,
|
||||
0x9C, 0x8C,
|
||||
0x6A, 0x4A,
|
||||
0xBE,
|
||||
0x0B,
|
||||
0xD9,
|
||||
0x12,
|
||||
0xE8,
|
||||
0x53,
|
||||
0x89,
|
||||
0x44
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontFamily(IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, IDWriteFontFamily**, int>)(lpVtbl[3]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontWeight>)(lpVtbl[4]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontStretch>)(lpVtbl[5]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontStyle>)(lpVtbl[6]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, Bool32>)(lpVtbl[7]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, IDWriteLocalizedStrings**, int>)(lpVtbl[8]))((IDWriteFont2*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[9]))((IDWriteFont2*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontSimulations>)(lpVtbl[10]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public void GetMetrics(FontMetrics* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontMetrics*, void>)(lpVtbl[11]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult HasCharacter(uint unicodeValue, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, uint, Bool32*, int>)(lpVtbl[12]))((IDWriteFont2*)Unsafe.AsPointer(ref this), unicodeValue, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult CreateFontFace(IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, IDWriteFontFace**, int>)(lpVtbl[13]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont2*, FontMetrics1*, void>)(lpVtbl[14]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetPanose" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont2*, Panose*, void>)(lpVtbl[15]))((IDWriteFont2*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, uint, UnicodeRange*, uint*, int>)(lpVtbl[16]))((IDWriteFont2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, Bool32>)(lpVtbl[17]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont2::IsColorFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, Bool32>)(lpVtbl[18]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
245
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont3.cs
Normal file
245
src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFont3.cs
Normal file
@@ -0,0 +1,245 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3"]/*' />
|
||||
/// <unmanaged>IDWriteFont3</unmanaged>
|
||||
[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")]
|
||||
[NativeTypeName("struct IDWriteFont3 : IDWriteFont2")]
|
||||
[NativeInheritance("IDWriteFont2")]
|
||||
public unsafe partial struct IDWriteFont3 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont3
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xD6, 0x8E, 0x74, 0x29,
|
||||
0x9C, 0x8C,
|
||||
0x6A, 0x4A,
|
||||
0xBE,
|
||||
0x0B,
|
||||
0xD9,
|
||||
0x12,
|
||||
0xE8,
|
||||
0x53,
|
||||
0x89,
|
||||
0x44
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont3));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont3));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontFamily(IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteFontFamily**, int>)(lpVtbl[3]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontWeight>)(lpVtbl[4]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontStretch>)(lpVtbl[5]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontStyle>)(lpVtbl[6]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, Bool32>)(lpVtbl[7]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteLocalizedStrings**, int>)(lpVtbl[8]))((IDWriteFont3*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[9]))((IDWriteFont3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontSimulations>)(lpVtbl[10]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public void GetMetrics(FontMetrics* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontMetrics*, void>)(lpVtbl[11]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult HasCharacter(uint unicodeValue, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, uint, Bool32*, int>)(lpVtbl[12]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult CreateFontFace(IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteFontFace**, int>)(lpVtbl[13]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont3*, FontMetrics1*, void>)(lpVtbl[14]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetPanose" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFont3*, Panose*, void>)(lpVtbl[15]))((IDWriteFont3*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, uint, UnicodeRange*, uint*, int>)(lpVtbl[16]))((IDWriteFont3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, Bool32>)(lpVtbl[17]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFont2.IsColorFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, Bool32>)(lpVtbl[18]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult CreateFontFace(IDWriteFontFace3** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteFontFace3**, int>)(lpVtbl[19]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3::Equals"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public Bool32 Equals(IDWriteFont* font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteFont*, Bool32>)(lpVtbl[20]))((IDWriteFont3*)Unsafe.AsPointer(ref this), font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, IDWriteFontFaceReference**, int>)(lpVtbl[21]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3::HasCharacter"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 HasCharacter(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, uint, Bool32>)(lpVtbl[22]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFont3::GetLocality"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public Locality GetLocality()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, Locality>)(lpVtbl[23]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection"]/*' />
|
||||
/// <unmanaged>IDWriteFontCollection</unmanaged>
|
||||
[Guid("a84cee02-3eea-4eee-a827-87c1a02a0fcc")]
|
||||
[NativeTypeName("struct IDWriteFontCollection : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontCollection : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x02, 0xEE, 0x4C, 0xA8,
|
||||
0xEA, 0x3E,
|
||||
0xEE, 0x4E,
|
||||
0xA8,
|
||||
0x27,
|
||||
0x87,
|
||||
0xC1,
|
||||
0xA0,
|
||||
0x2A,
|
||||
0x0F,
|
||||
0xCC
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection::GetFontFamilyCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontFamilyCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection*, uint>)(lpVtbl[3]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection::GetFontFamily"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection*, uint, IDWriteFontFamily**, int>)(lpVtbl[4]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection::FindFamilyName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection*, ushort*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), familyName, index, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection::GetFontFromFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection*, IDWriteFontFace*, IDWriteFont**, int>)(lpVtbl[6]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), fontFace, font);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection1"]/*' />
|
||||
/// <unmanaged>IDWriteFontCollection1</unmanaged>
|
||||
[Guid("53585141-d9f8-4095-8321-d73cf6bd116c")]
|
||||
[NativeTypeName("struct IDWriteFontCollection1 : IDWriteFontCollection")]
|
||||
[NativeInheritance("IDWriteFontCollection")]
|
||||
public unsafe partial struct IDWriteFontCollection1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x41, 0x51, 0x58, 0x53,
|
||||
0xF8, 0xD9,
|
||||
0x95, 0x40,
|
||||
0x83,
|
||||
0x21,
|
||||
0xD7,
|
||||
0x3C,
|
||||
0xF6,
|
||||
0xBD,
|
||||
0x11,
|
||||
0x6C
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamilyCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontFamilyCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, uint>)(lpVtbl[3]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, uint, IDWriteFontFamily**, int>)(lpVtbl[4]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.FindFamilyName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, ushort*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), familyName, index, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFromFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, IDWriteFontFace*, IDWriteFont**, int>)(lpVtbl[6]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontFace, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection1::GetFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, IDWriteFontSet**, int>)(lpVtbl[7]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection1::GetFontFamily"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, uint, IDWriteFontFamily1**, int>)(lpVtbl[8]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection2"]/*' />
|
||||
/// <unmanaged>IDWriteFontCollection2</unmanaged>
|
||||
[Guid("514039c6-4617-4064-bf8b-92ea83e506e0")]
|
||||
[NativeTypeName("struct IDWriteFontCollection2 : IDWriteFontCollection1")]
|
||||
[NativeInheritance("IDWriteFontCollection1")]
|
||||
public unsafe partial struct IDWriteFontCollection2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xC6, 0x39, 0x40, 0x51,
|
||||
0x17, 0x46,
|
||||
0x64, 0x40,
|
||||
0xBF,
|
||||
0x8B,
|
||||
0x92,
|
||||
0xEA,
|
||||
0x83,
|
||||
0xE5,
|
||||
0x06,
|
||||
0xE0
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamilyCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontFamilyCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, uint>)(lpVtbl[3]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, uint, IDWriteFontFamily**, int>)(lpVtbl[4]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.FindFamilyName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, ushort*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, index, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFromFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, IDWriteFontFace*, IDWriteFont**, int>)(lpVtbl[6]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontFace, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection1.GetFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, IDWriteFontSet**, int>)(lpVtbl[7]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection1.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, uint, IDWriteFontFamily1**, int>)(lpVtbl[8]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection2::GetFontFamily"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, uint, IDWriteFontFamily2**, int>)(lpVtbl[9]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection2::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, ushort*, FontAxisValue*, uint, IDWriteFontList2**, int>)(lpVtbl[10]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection2::GetFontFamilyModel"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public FontFamilyModel GetFontFamilyModel()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, FontFamilyModel>)(lpVtbl[11]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection2::GetFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetFontSet(IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, IDWriteFontSet1**, int>)(lpVtbl[12]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection3"]/*' />
|
||||
/// <unmanaged>IDWriteFontCollection3</unmanaged>
|
||||
[Guid("a4d055a6-f9e3-4e25-93b7-9e309f3af8e9")]
|
||||
[NativeTypeName("struct IDWriteFontCollection3 : IDWriteFontCollection2")]
|
||||
[NativeInheritance("IDWriteFontCollection2")]
|
||||
public unsafe partial struct IDWriteFontCollection3 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection3
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xA6, 0x55, 0xD0, 0xA4,
|
||||
0xE3, 0xF9,
|
||||
0x25, 0x4E,
|
||||
0x93,
|
||||
0xB7,
|
||||
0x9E,
|
||||
0x30,
|
||||
0x9F,
|
||||
0x3A,
|
||||
0xF8,
|
||||
0xE9
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection3));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection3));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamilyCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontFamilyCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, uint>)(lpVtbl[3]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, uint, IDWriteFontFamily**, int>)(lpVtbl[4]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.FindFamilyName" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, ushort*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, index, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection.GetFontFromFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, IDWriteFontFace*, IDWriteFont**, int>)(lpVtbl[6]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontFace, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection1.GetFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, IDWriteFontSet**, int>)(lpVtbl[7]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection1.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, uint, IDWriteFontFamily1**, int>)(lpVtbl[8]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection2.GetFontFamily" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, uint, IDWriteFontFamily2**, int>)(lpVtbl[9]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection2.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, ushort*, FontAxisValue*, uint, IDWriteFontList2**, int>)(lpVtbl[10]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection2.GetFontFamilyModel" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public FontFamilyModel GetFontFamilyModel()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, FontFamilyModel>)(lpVtbl[11]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontCollection2.GetFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetFontSet(IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, IDWriteFontSet1**, int>)(lpVtbl[12]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollection3::GetExpirationEvent"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public Handle GetExpirationEvent()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, Handle>)(lpVtbl[13]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollectionLoader"]/*' />
|
||||
/// <unmanaged>IDWriteFontCollectionLoader</unmanaged>
|
||||
[Guid("cca920e4-52f0-492b-bfa8-29c72ee0a468")]
|
||||
[NativeTypeName("struct IDWriteFontCollectionLoader : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontCollectionLoader : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollectionLoader
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xE4, 0x20, 0xA9, 0xCC,
|
||||
0xF0, 0x52,
|
||||
0x2B, 0x49,
|
||||
0xBF,
|
||||
0xA8,
|
||||
0x29,
|
||||
0xC7,
|
||||
0x2E,
|
||||
0xE0,
|
||||
0xA4,
|
||||
0x68
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollectionLoader));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollectionLoader));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontCollectionLoader::CreateEnumeratorFromKey"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateEnumeratorFromKey(IDWriteFactory* factory, void* collectionKey, uint collectionKeySize, IDWriteFontFileEnumerator** fontFileEnumerator)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollectionLoader*, IDWriteFactory*, void*, uint, IDWriteFontFileEnumerator**, int>)(lpVtbl[3]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), factory, collectionKey, collectionKeySize, fontFileEnumerator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadListener"]/*' />
|
||||
/// <unmanaged>IDWriteFontDownloadListener</unmanaged>
|
||||
[Guid("b06fe5b9-43ec-4393-881b-dbe4dc72fda7")]
|
||||
[NativeTypeName("struct IDWriteFontDownloadListener : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontDownloadListener : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontDownloadListener
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xB9, 0xE5, 0x6F, 0xB0,
|
||||
0xEC, 0x43,
|
||||
0x93, 0x43,
|
||||
0x88,
|
||||
0x1B,
|
||||
0xDB,
|
||||
0xE4,
|
||||
0xDC,
|
||||
0x72,
|
||||
0xFD,
|
||||
0xA7
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadListener));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadListener));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadListener::DownloadCompleted"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public void DownloadCompleted(IDWriteFontDownloadQueue* downloadQueue, IUnknown* context, HResult downloadResult)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontDownloadListener*, IDWriteFontDownloadQueue*, IUnknown*, HResult, void>)(lpVtbl[3]))((IDWriteFontDownloadListener*)Unsafe.AsPointer(ref this), downloadQueue, context, downloadResult);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue"]/*' />
|
||||
/// <unmanaged>IDWriteFontDownloadQueue</unmanaged>
|
||||
[Guid("b71e6052-5aea-4fa3-832e-f60d431f7e91")]
|
||||
[NativeTypeName("struct IDWriteFontDownloadQueue : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontDownloadQueue : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontDownloadQueue
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x52, 0x60, 0x1E, 0xB7,
|
||||
0xEA, 0x5A,
|
||||
0xA3, 0x4F,
|
||||
0x83,
|
||||
0x2E,
|
||||
0xF6,
|
||||
0x0D,
|
||||
0x43,
|
||||
0x1F,
|
||||
0x7E,
|
||||
0x91
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadQueue));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadQueue));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::AddListener"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult AddListener(IDWriteFontDownloadListener* listener, uint* token)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, IDWriteFontDownloadListener*, uint*, int>)(lpVtbl[3]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), listener, token);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::RemoveListener"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult RemoveListener(uint token)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, uint, int>)(lpVtbl[4]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), token);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::IsEmpty"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public Bool32 IsEmpty()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, Bool32>)(lpVtbl[5]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::BeginDownload"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult BeginDownload(IUnknown* context)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, IUnknown*, int>)(lpVtbl[6]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), context);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::CancelDownload"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CancelDownload()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, int>)(lpVtbl[7]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontDownloadQueue::GetGenerationCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public ulong GetGenerationCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, ulong>)(lpVtbl[8]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace</unmanaged>
|
||||
[Guid("5f49804d-7024-4d43-bfa9-d25984f53849")]
|
||||
[NativeTypeName("struct IDWriteFontFace : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFace : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x4D, 0x80, 0x49, 0x5F,
|
||||
0x24, 0x70,
|
||||
0x43, 0x4D,
|
||||
0xBF,
|
||||
0xA9,
|
||||
0xD2,
|
||||
0x59,
|
||||
0x84,
|
||||
0xF5,
|
||||
0x38,
|
||||
0x49
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetType"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetFiles"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetIndex"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, uint>)(lpVtbl[5]))((IDWriteFontFace*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetSimulations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::IsSymbolFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, Bool32>)(lpVtbl[7]))((IDWriteFontFace*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetGlyphCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, ushort>)(lpVtbl[9]))((IDWriteFontFace*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetDesignGlyphMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetGlyphIndices"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::TryGetFontTable"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::ReleaseFontTable"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace*, void*, void>)(lpVtbl[13]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetGlyphRunOutline"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetRecommendedRenderingMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetGdiCompatibleMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace::GetGdiCompatibleGlyphMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace1</unmanaged>
|
||||
[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")]
|
||||
[NativeTypeName("struct IDWriteFontFace1 : IDWriteFontFace")]
|
||||
[NativeInheritance("IDWriteFontFace")]
|
||||
public unsafe partial struct IDWriteFontFace1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xB4, 0xFD, 0x1E, 0xA7,
|
||||
0xDB, 0x9F,
|
||||
0x38, 0x48,
|
||||
0xAD,
|
||||
0x90,
|
||||
0xCF,
|
||||
0xC3,
|
||||
0xBE,
|
||||
0x8C,
|
||||
0x3D,
|
||||
0xAF
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint>)(lpVtbl[5]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, Bool32>)(lpVtbl[7]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, ushort>)(lpVtbl[9]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, void*, void>)(lpVtbl[13]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetGdiCompatibleMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetCaretMetrics"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetUnicodeRanges"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::IsMonospacedFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, Bool32>)(lpVtbl[22]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetDesignGlyphAdvances"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetGdiCompatibleGlyphAdvances"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetKerningPairAdjustments"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::HasKerningPairs"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, Bool32>)(lpVtbl[26]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetRecommendedRenderingMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::GetVerticalGlyphVariants"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace1::HasVerticalGlyphVariants"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, Bool32>)(lpVtbl[29]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,333 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace2</unmanaged>
|
||||
[Guid("d8b768ff-64bc-4e66-982b-ec8e87f693f7")]
|
||||
[NativeTypeName("struct IDWriteFontFace2 : IDWriteFontFace1")]
|
||||
[NativeInheritance("IDWriteFontFace1")]
|
||||
public unsafe partial struct IDWriteFontFace2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xFF, 0x68, 0xB7, 0xD8,
|
||||
0xBC, 0x64,
|
||||
0x66, 0x4E,
|
||||
0x98,
|
||||
0x2B,
|
||||
0xEC,
|
||||
0x8E,
|
||||
0x87,
|
||||
0xF6,
|
||||
0x93,
|
||||
0xF7
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint>)(lpVtbl[5]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, Bool32>)(lpVtbl[7]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, ushort>)(lpVtbl[9]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, void*, void>)(lpVtbl[13]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetCaretMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, Bool32>)(lpVtbl[22]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetDesignGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetKerningPairAdjustments" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasKerningPairs" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, Bool32>)(lpVtbl[26]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, Bool32>)(lpVtbl[29]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2::IsColorFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, Bool32>)(lpVtbl[30]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2::GetColorPaletteCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public uint GetColorPaletteCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint>)(lpVtbl[31]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2::GetPaletteEntryCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public uint GetPaletteEntryCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint>)(lpVtbl[32]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2::GetPaletteEntries"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, uint, uint, uint, Color4**, int>)(lpVtbl[33]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace2::GetRecommendedRenderingMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,445 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace3</unmanaged>
|
||||
[Guid("d37d7598-09be-4222-a236-2081341cc1f2")]
|
||||
[NativeTypeName("struct IDWriteFontFace3 : IDWriteFontFace2")]
|
||||
[NativeInheritance("IDWriteFontFace2")]
|
||||
public unsafe partial struct IDWriteFontFace3 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace3
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x98, 0x75, 0x7D, 0xD3,
|
||||
0xBE, 0x09,
|
||||
0x22, 0x42,
|
||||
0xA2,
|
||||
0x36,
|
||||
0x20,
|
||||
0x81,
|
||||
0x34,
|
||||
0x1C,
|
||||
0xC1,
|
||||
0xF2
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace3));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace3));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint>)(lpVtbl[5]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Bool32>)(lpVtbl[7]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort>)(lpVtbl[9]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, void*, void>)(lpVtbl[13]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetCaretMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Bool32>)(lpVtbl[22]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetDesignGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetKerningPairAdjustments" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasKerningPairs" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Bool32>)(lpVtbl[26]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Bool32>)(lpVtbl[29]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.IsColorFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Bool32>)(lpVtbl[30]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetColorPaletteCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public uint GetColorPaletteCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint>)(lpVtbl[31]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntryCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public uint GetPaletteEntryCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint>)(lpVtbl[32]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntries" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, uint, uint, Color4**, int>)(lpVtbl[33]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, IDWriteFontFaceReference**, int>)(lpVtbl[35]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetPanose"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, Panose*, void>)(lpVtbl[36]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetWeight"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontWeight>)(lpVtbl[37]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetStretch"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontStretch>)(lpVtbl[38]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetStyle"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, FontStyle>)(lpVtbl[39]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetFamilyNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, IDWriteLocalizedStrings**, int>)(lpVtbl[40]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetFaceNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, IDWriteLocalizedStrings**, int>)(lpVtbl[41]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetInformationalStrings"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[42]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::HasCharacter"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public Bool32 HasCharacter(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, Bool32>)(lpVtbl[43]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::GetRecommendedRenderingMode"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode1*, GridFitMode*, int>)(lpVtbl[44]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::IsCharacterLocal"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public Bool32 IsCharacterLocal(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, uint, Bool32>)(lpVtbl[45]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::IsGlyphLocal"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public Bool32 IsGlyphLocal(ushort glyphId)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort, Bool32>)(lpVtbl[46]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphId);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::AreCharactersLocal"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[47]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace3::AreGlyphsLocal"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[48]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,477 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace4"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace4</unmanaged>
|
||||
[Guid("27f2a904-4eb8-441d-9678-0563f53e3e2f")]
|
||||
[NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")]
|
||||
[NativeInheritance("IDWriteFontFace3")]
|
||||
public unsafe partial struct IDWriteFontFace4 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace4
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x04, 0xA9, 0xF2, 0x27,
|
||||
0xB8, 0x4E,
|
||||
0x1D, 0x44,
|
||||
0x96,
|
||||
0x78,
|
||||
0x05,
|
||||
0x63,
|
||||
0xF5,
|
||||
0x3E,
|
||||
0x3E,
|
||||
0x2F
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint>)(lpVtbl[5]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Bool32>)(lpVtbl[7]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort>)(lpVtbl[9]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, void*, void>)(lpVtbl[13]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetCaretMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Bool32>)(lpVtbl[22]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetDesignGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetKerningPairAdjustments" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasKerningPairs" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Bool32>)(lpVtbl[26]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Bool32>)(lpVtbl[29]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.IsColorFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Bool32>)(lpVtbl[30]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetColorPaletteCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public uint GetColorPaletteCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint>)(lpVtbl[31]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntryCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public uint GetPaletteEntryCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint>)(lpVtbl[32]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntries" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, uint, uint, Color4**, int>)(lpVtbl[33]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, IDWriteFontFaceReference**, int>)(lpVtbl[35]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetPanose" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, Panose*, void>)(lpVtbl[36]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontWeight>)(lpVtbl[37]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontStretch>)(lpVtbl[38]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, FontStyle>)(lpVtbl[39]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFamilyNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, IDWriteLocalizedStrings**, int>)(lpVtbl[40]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, IDWriteLocalizedStrings**, int>)(lpVtbl[41]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[42]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public Bool32 HasCharacter(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, Bool32>)(lpVtbl[43]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode1*, GridFitMode*, int>)(lpVtbl[44]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsCharacterLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public Bool32 IsCharacterLocal(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, uint, Bool32>)(lpVtbl[45]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsGlyphLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public Bool32 IsGlyphLocal(ushort glyphId)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort, Bool32>)(lpVtbl[46]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreCharactersLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreGlyphsLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[48]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace4::GetGlyphImageFormats"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort, uint, uint, GlyphImageFormats*, int>)(lpVtbl[49]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace4::GetGlyphImageFormats"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(50)]
|
||||
public GlyphImageFormats GetGlyphImageFormats()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, GlyphImageFormats>)(lpVtbl[50]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace4::GetGlyphImageData"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(51)]
|
||||
public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, ushort, uint, GlyphImageFormats, GlyphImageData*, void**, int>)(lpVtbl[51]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace4::ReleaseGlyphImageData"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(52)]
|
||||
public void ReleaseGlyphImageData(void* glyphDataContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, void*, void>)(lpVtbl[52]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphDataContext);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,517 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace5</unmanaged>
|
||||
[Guid("98eff3a5-b667-479a-b145-e2fa5b9fdc29")]
|
||||
[NativeTypeName("struct IDWriteFontFace5 : IDWriteFontFace4")]
|
||||
[NativeInheritance("IDWriteFontFace4")]
|
||||
public unsafe partial struct IDWriteFontFace5 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace5
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xA5, 0xF3, 0xEF, 0x98,
|
||||
0x67, 0xB6,
|
||||
0x9A, 0x47,
|
||||
0xB1,
|
||||
0x45,
|
||||
0xE2,
|
||||
0xFA,
|
||||
0x5B,
|
||||
0x9F,
|
||||
0xDC,
|
||||
0x29
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace5));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace5));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint>)(lpVtbl[5]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[7]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort>)(lpVtbl[9]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, void*, void>)(lpVtbl[13]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetCaretMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[22]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetDesignGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetKerningPairAdjustments" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasKerningPairs" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[26]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[29]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.IsColorFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[30]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetColorPaletteCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public uint GetColorPaletteCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint>)(lpVtbl[31]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntryCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public uint GetPaletteEntryCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint>)(lpVtbl[32]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntries" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, uint, uint, Color4**, int>)(lpVtbl[33]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteFontFaceReference**, int>)(lpVtbl[35]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetPanose" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Panose*, void>)(lpVtbl[36]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontWeight>)(lpVtbl[37]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontStretch>)(lpVtbl[38]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontStyle>)(lpVtbl[39]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFamilyNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteLocalizedStrings**, int>)(lpVtbl[40]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteLocalizedStrings**, int>)(lpVtbl[41]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[42]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public Bool32 HasCharacter(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, Bool32>)(lpVtbl[43]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode1*, GridFitMode*, int>)(lpVtbl[44]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsCharacterLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public Bool32 IsCharacterLocal(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint, Bool32>)(lpVtbl[45]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsGlyphLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public Bool32 IsGlyphLocal(ushort glyphId)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort, Bool32>)(lpVtbl[46]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreCharactersLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[47]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreGlyphsLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[48]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageFormats" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort, uint, uint, GlyphImageFormats*, int>)(lpVtbl[49]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageFormats" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(50)]
|
||||
public GlyphImageFormats GetGlyphImageFormats()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, GlyphImageFormats>)(lpVtbl[50]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageData" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(51)]
|
||||
public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, ushort, uint, GlyphImageFormats, GlyphImageData*, void**, int>)(lpVtbl[51]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.ReleaseGlyphImageData" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(52)]
|
||||
public void ReleaseGlyphImageData(void* glyphDataContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, void*, void>)(lpVtbl[52]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphDataContext);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5::GetFontAxisValueCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(53)]
|
||||
public uint GetFontAxisValueCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, uint>)(lpVtbl[53]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5::GetFontAxisValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(54)]
|
||||
public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, FontAxisValue*, uint, int>)(lpVtbl[54]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5::HasVariations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(55)]
|
||||
public Bool32 HasVariations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, Bool32>)(lpVtbl[55]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5::GetFontResource"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(56)]
|
||||
public HResult GetFontResource(IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteFontResource**, int>)(lpVtbl[56]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontResource);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace5::Equals"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(57)]
|
||||
public Bool32 Equals(IDWriteFontFace* fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteFontFace*, Bool32>)(lpVtbl[57]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,533 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace6"]/*' />
|
||||
/// <unmanaged>IDWriteFontFace6</unmanaged>
|
||||
[Guid("c4b1fe1b-6e84-47d5-b54c-a597981b06ad")]
|
||||
[NativeTypeName("struct IDWriteFontFace6 : IDWriteFontFace5")]
|
||||
[NativeInheritance("IDWriteFontFace5")]
|
||||
public unsafe partial struct IDWriteFontFace6 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace6
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x1B, 0xFE, 0xB1, 0xC4,
|
||||
0x84, 0x6E,
|
||||
0xD5, 0x47,
|
||||
0xB5,
|
||||
0x4C,
|
||||
0xA5,
|
||||
0x97,
|
||||
0x98,
|
||||
0x1B,
|
||||
0x06,
|
||||
0xAD
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace6));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace6));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetType" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public new FontFaceType GetType()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontFaceType>)(lpVtbl[3]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetFiles" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint>)(lpVtbl[5]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontSimulations>)(lpVtbl[6]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.IsSymbolFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public Bool32 IsSymbolFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[7]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public void GetMetrics(FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontMetrics*, void>)(lpVtbl[8]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ushort GetGlyphCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort>)(lpVtbl[9]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetDesignGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[10]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint*, uint, ushort*, int>)(lpVtbl[11]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.TryGetFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, void**, uint*, void**, Bool32*, int>)(lpVtbl[12]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.ReleaseFontTable" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public void ReleaseFontTable(void* tableContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, void*, void>)(lpVtbl[13]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), tableContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGlyphRunOutline" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, ushort*, float*, GlyphOffset*, uint, Bool32, Bool32, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink*, int>)(lpVtbl[14]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, int>)(lpVtbl[15]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, Matrix3x2*, FontMetrics*, int>)(lpVtbl[16]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace.GetGdiCompatibleGlyphMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public void GetMetrics(FontMetrics1* fontMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontMetrics1*, void>)(lpVtbl[18]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, Matrix3x2*, FontMetrics1*, int>)(lpVtbl[19]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetCaretMetrics" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public void GetCaretMetrics(CaretMetrics* caretMetrics)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, CaretMetrics*, void>)(lpVtbl[20]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), caretMetrics);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetUnicodeRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, UnicodeRange*, uint*, int>)(lpVtbl[21]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.IsMonospacedFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public Bool32 IsMonospacedFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[22]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetDesignGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, ushort*, int*, Bool32, int>)(lpVtbl[23]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetGdiCompatibleGlyphAdvances" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, Matrix3x2*, Bool32, Bool32, uint, ushort*, int*, int>)(lpVtbl[24]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetKerningPairAdjustments" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, ushort*, int*, int>)(lpVtbl[25]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasKerningPairs" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Bool32 HasKerningPairs()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[26]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, RenderingMode*, int>)(lpVtbl[27]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.GetVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, ushort*, ushort*, int>)(lpVtbl[28]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace1.HasVerticalGlyphVariants" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public Bool32 HasVerticalGlyphVariants()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[29]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.IsColorFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(30)]
|
||||
public Bool32 IsColorFont()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[30]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetColorPaletteCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(31)]
|
||||
public uint GetColorPaletteCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint>)(lpVtbl[31]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntryCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(32)]
|
||||
public uint GetPaletteEntryCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint>)(lpVtbl[32]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetPaletteEntries" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(33)]
|
||||
public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, uint, uint, Color4**, int>)(lpVtbl[33]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace2.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(34)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(35)]
|
||||
public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, IDWriteFontFaceReference**, int>)(lpVtbl[35]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetPanose" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(36)]
|
||||
public void GetPanose(Panose* panose)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Panose*, void>)(lpVtbl[36]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), panose);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetWeight" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(37)]
|
||||
public FontWeight GetWeight()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontWeight>)(lpVtbl[37]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStretch" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(38)]
|
||||
public FontStretch GetStretch()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontStretch>)(lpVtbl[38]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetStyle" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(39)]
|
||||
public FontStyle GetStyle()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontStyle>)(lpVtbl[39]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFamilyNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(40)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, IDWriteLocalizedStrings**, int>)(lpVtbl[40]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetFaceNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(41)]
|
||||
public HResult GetFaceNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, IDWriteLocalizedStrings**, int>)(lpVtbl[41]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetInformationalStrings" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(42)]
|
||||
public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, InformationalStringId, IDWriteLocalizedStrings**, Bool32*, int>)(lpVtbl[42]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.HasCharacter" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(43)]
|
||||
public Bool32 HasCharacter(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, Bool32>)(lpVtbl[43]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.GetRecommendedRenderingMode" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(44)]
|
||||
public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode1*, GridFitMode*, int>)(lpVtbl[44]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsCharacterLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(45)]
|
||||
public Bool32 IsCharacterLocal(uint unicodeValue)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint, Bool32>)(lpVtbl[45]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.IsGlyphLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(46)]
|
||||
public Bool32 IsGlyphLocal(ushort glyphId)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort, Bool32>)(lpVtbl[46]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreCharactersLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(47)]
|
||||
public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[47]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace3.AreGlyphsLocal" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(48)]
|
||||
public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[48]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageFormats" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(49)]
|
||||
public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort, uint, uint, GlyphImageFormats*, int>)(lpVtbl[49]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageFormats" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(50)]
|
||||
public GlyphImageFormats GetGlyphImageFormats()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, GlyphImageFormats>)(lpVtbl[50]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.GetGlyphImageData" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(51)]
|
||||
public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, ushort, uint, GlyphImageFormats, GlyphImageData*, void**, int>)(lpVtbl[51]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace4.ReleaseGlyphImageData" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(52)]
|
||||
public void ReleaseGlyphImageData(void* glyphDataContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, void*, void>)(lpVtbl[52]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphDataContext);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace5.GetFontAxisValueCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(53)]
|
||||
public uint GetFontAxisValueCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, uint>)(lpVtbl[53]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace5.GetFontAxisValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(54)]
|
||||
public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontAxisValue*, uint, int>)(lpVtbl[54]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace5.HasVariations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(55)]
|
||||
public Bool32 HasVariations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, Bool32>)(lpVtbl[55]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace5.GetFontResource" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(56)]
|
||||
public HResult GetFontResource(IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, IDWriteFontResource**, int>)(lpVtbl[56]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFace5.Equals" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(57)]
|
||||
public Bool32 Equals(IDWriteFontFace* fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, IDWriteFontFace*, Bool32>)(lpVtbl[57]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace6::GetFamilyNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(58)]
|
||||
public HResult GetFamilyNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontFamilyModel, IDWriteLocalizedStrings**, int>)(lpVtbl[58]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFace6::GetFaceNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(59)]
|
||||
public HResult GetFaceNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontFamilyModel, IDWriteLocalizedStrings**, int>)(lpVtbl[59]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference"]/*' />
|
||||
/// <unmanaged>IDWriteFontFaceReference</unmanaged>
|
||||
[Guid("5e7fa7ca-dde3-424c-89f0-9fcd6fed58cd")]
|
||||
[NativeTypeName("struct IDWriteFontFaceReference : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFaceReference : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFaceReference
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xCA, 0xA7, 0x7F, 0x5E,
|
||||
0xE3, 0xDD,
|
||||
0x4C, 0x42,
|
||||
0x89,
|
||||
0xF0,
|
||||
0x9F,
|
||||
0xCD,
|
||||
0x6F,
|
||||
0xED,
|
||||
0x58,
|
||||
0xCD
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateFontFace(IDWriteFontFace3** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, IDWriteFontFace3**, int>)(lpVtbl[3]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::CreateFontFaceWithSimulations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, FontSimulations, IDWriteFontFace3**, int>)(lpVtbl[4]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::Equals"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, IDWriteFontFaceReference*, Bool32>)(lpVtbl[5]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetFontFaceIndex"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public uint GetFontFaceIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, uint>)(lpVtbl[6]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetSimulations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, FontSimulations>)(lpVtbl[7]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFile(IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetLocalFileSize"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ulong GetLocalFileSize()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ulong>)(lpVtbl[9]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetFileSize"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public ulong GetFileSize()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ulong>)(lpVtbl[10]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetFileTime"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetFileTime(ulong* lastWriteTime)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ulong*, int>)(lpVtbl[11]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), lastWriteTime);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::GetLocality"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public Locality GetLocality()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, Locality>)(lpVtbl[12]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::EnqueueFontDownloadRequest"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult EnqueueFontDownloadRequest()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, int>)(lpVtbl[13]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::EnqueueCharacterDownloadRequest"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ushort*, uint, int>)(lpVtbl[14]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), characters, characterCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::EnqueueGlyphDownloadRequest"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ushort*, uint, int>)(lpVtbl[15]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference::EnqueueFileFragmentDownloadRequest"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ulong, ulong, int>)(lpVtbl[16]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,213 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference1"]/*' />
|
||||
/// <unmanaged>IDWriteFontFaceReference1</unmanaged>
|
||||
[Guid("c081fe77-2fd1-41ac-a5a3-34983c4ba61a")]
|
||||
[NativeTypeName("struct IDWriteFontFaceReference1 : IDWriteFontFaceReference")]
|
||||
[NativeInheritance("IDWriteFontFaceReference")]
|
||||
public unsafe partial struct IDWriteFontFaceReference1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFaceReference1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x77, 0xFE, 0x81, 0xC0,
|
||||
0xD1, 0x2F,
|
||||
0xAC, 0x41,
|
||||
0xA5,
|
||||
0xA3,
|
||||
0x34,
|
||||
0x98,
|
||||
0x3C,
|
||||
0x4B,
|
||||
0xA6,
|
||||
0x1A
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateFontFace(IDWriteFontFace3** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, IDWriteFontFace3**, int>)(lpVtbl[3]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.CreateFontFaceWithSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, FontSimulations, IDWriteFontFace3**, int>)(lpVtbl[4]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.Equals" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, IDWriteFontFaceReference*, Bool32>)(lpVtbl[5]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetFontFaceIndex" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public uint GetFontFaceIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, uint>)(lpVtbl[6]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetSimulations" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public FontSimulations GetSimulations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, FontSimulations>)(lpVtbl[7]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetFontFile" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFile(IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, IDWriteFontFile**, int>)(lpVtbl[8]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetLocalFileSize" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public ulong GetLocalFileSize()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ulong>)(lpVtbl[9]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetFileSize" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public ulong GetFileSize()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ulong>)(lpVtbl[10]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetFileTime" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetFileTime(ulong* lastWriteTime)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ulong*, int>)(lpVtbl[11]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), lastWriteTime);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.GetLocality" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public Locality GetLocality()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, Locality>)(lpVtbl[12]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.EnqueueFontDownloadRequest" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult EnqueueFontDownloadRequest()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, int>)(lpVtbl[13]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.EnqueueCharacterDownloadRequest" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ushort*, uint, int>)(lpVtbl[14]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), characters, characterCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.EnqueueGlyphDownloadRequest" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ushort*, uint, int>)(lpVtbl[15]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFaceReference.EnqueueFileFragmentDownloadRequest" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, ulong, ulong, int>)(lpVtbl[16]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference1::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult CreateFontFace(IDWriteFontFace5** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, IDWriteFontFace5**, int>)(lpVtbl[17]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference1::GetFontAxisValueCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public uint GetFontAxisValueCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, uint>)(lpVtbl[18]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFaceReference1::GetFontAxisValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, FontAxisValue*, uint, int>)(lpVtbl[19]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallback"]/*' />
|
||||
/// <unmanaged>IDWriteFontFallback</unmanaged>
|
||||
[Guid("efa008f9-f7a1-48bf-b05c-f224713cc0ff")]
|
||||
[NativeTypeName("struct IDWriteFontFallback : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFallback : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallback
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xF9, 0x08, 0xA0, 0xEF,
|
||||
0xA1, 0xF7,
|
||||
0xBF, 0x48,
|
||||
0xB0,
|
||||
0x5C,
|
||||
0xF2,
|
||||
0x24,
|
||||
0x71,
|
||||
0x3C,
|
||||
0xC0,
|
||||
0xFF
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallback::MapCharacters"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallback*, IDWriteTextAnalysisSource*, uint, uint, IDWriteFontCollection*, ushort*, FontWeight, FontStyle, FontStretch, uint*, IDWriteFont**, float*, int>)(lpVtbl[3]))((IDWriteFontFallback*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallback1"]/*' />
|
||||
/// <unmanaged>IDWriteFontFallback1</unmanaged>
|
||||
[Guid("2397599d-dd0d-4681-bd6a-f4f31eaade77")]
|
||||
[NativeTypeName("struct IDWriteFontFallback1 : IDWriteFontFallback")]
|
||||
[NativeInheritance("IDWriteFontFallback")]
|
||||
public unsafe partial struct IDWriteFontFallback1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallback1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x9D, 0x59, 0x97, 0x23,
|
||||
0x0D, 0xDD,
|
||||
0x81, 0x46,
|
||||
0xBD,
|
||||
0x6A,
|
||||
0xF4,
|
||||
0xF3,
|
||||
0x1E,
|
||||
0xAA,
|
||||
0xDE,
|
||||
0x77
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFallback.MapCharacters" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallback1*, IDWriteTextAnalysisSource*, uint, uint, IDWriteFontCollection*, ushort*, FontWeight, FontStyle, FontStretch, uint*, IDWriteFont**, float*, int>)(lpVtbl[3]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallback1::MapCharacters"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, uint* mappedLength, float* scale, IDWriteFontFace5** mappedFontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallback1*, IDWriteTextAnalysisSource*, uint, uint, IDWriteFontCollection*, ushort*, FontAxisValue*, uint, uint*, float*, IDWriteFontFace5**, int>)(lpVtbl[4]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, fontAxisValues, fontAxisValueCount, mappedLength, scale, mappedFontFace);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallbackBuilder"]/*' />
|
||||
/// <unmanaged>IDWriteFontFallbackBuilder</unmanaged>
|
||||
[Guid("fd882d06-8aba-4fb8-b849-8be8b73e14de")]
|
||||
[NativeTypeName("struct IDWriteFontFallbackBuilder : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFallbackBuilder : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallbackBuilder
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x06, 0x2D, 0x88, 0xFD,
|
||||
0xBA, 0x8A,
|
||||
0xB8, 0x4F,
|
||||
0xB8,
|
||||
0x49,
|
||||
0x8B,
|
||||
0xE8,
|
||||
0xB7,
|
||||
0x3E,
|
||||
0x14,
|
||||
0xDE
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallbackBuilder));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallbackBuilder));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallbackBuilder::AddMapping"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult AddMapping(UnicodeRange* ranges, uint rangesCount, ushort** targetFamilyNames, uint targetFamilyNamesCount, IDWriteFontCollection* fontCollection, ushort* localeName, ushort* baseFamilyName, float scale)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallbackBuilder*, UnicodeRange*, uint, ushort**, uint, IDWriteFontCollection*, ushort*, ushort*, float, int>)(lpVtbl[3]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), ranges, rangesCount, targetFamilyNames, targetFamilyNamesCount, fontCollection, localeName, baseFamilyName, scale);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallbackBuilder::AddMappings"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult AddMappings(IDWriteFontFallback* fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallbackBuilder*, IDWriteFontFallback*, int>)(lpVtbl[4]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFallbackBuilder::CreateFontFallback"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult CreateFontFallback(IDWriteFontFallback** fontFallback)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallbackBuilder*, IDWriteFontFallback**, int>)(lpVtbl[5]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily"]/*' />
|
||||
/// <unmanaged>IDWriteFontFamily</unmanaged>
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7add")]
|
||||
[NativeTypeName("struct IDWriteFontFamily : IDWriteFontList")]
|
||||
[NativeInheritance("IDWriteFontList")]
|
||||
public unsafe partial struct IDWriteFontFamily : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xEF, 0xD8, 0x20, 0xDA,
|
||||
0x2A, 0x81,
|
||||
0x43, 0x4C,
|
||||
0x98,
|
||||
0x02,
|
||||
0x62,
|
||||
0xEC,
|
||||
0x4A,
|
||||
0xBD,
|
||||
0x7A,
|
||||
0xDD
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, uint>)(lpVtbl[4]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily::GetFamilyNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, IDWriteLocalizedStrings**, int>)(lpVtbl[6]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily::GetFirstMatchingFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, FontWeight, FontStretch, FontStyle, IDWriteFont**, int>)(lpVtbl[7]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, FontWeight, FontStretch, FontStyle, IDWriteFontList**, int>)(lpVtbl[8]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily1"]/*' />
|
||||
/// <unmanaged>IDWriteFontFamily1</unmanaged>
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7adf")]
|
||||
[NativeTypeName("struct IDWriteFontFamily1 : IDWriteFontFamily")]
|
||||
[NativeInheritance("IDWriteFontFamily")]
|
||||
public unsafe partial struct IDWriteFontFamily1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xEF, 0xD8, 0x20, 0xDA,
|
||||
0x2A, 0x81,
|
||||
0x43, 0x4C,
|
||||
0x98,
|
||||
0x02,
|
||||
0x62,
|
||||
0xEC,
|
||||
0x4A,
|
||||
0xBD,
|
||||
0x7A,
|
||||
0xDF
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint>)(lpVtbl[4]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetFamilyNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, IDWriteLocalizedStrings**, int>)(lpVtbl[6]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetFirstMatchingFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, FontWeight, FontStretch, FontStyle, IDWriteFont**, int>)(lpVtbl[7]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, FontWeight, FontStretch, FontStyle, IDWriteFontList**, int>)(lpVtbl[8]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily1::GetFontLocality"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint, Locality>)(lpVtbl[9]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily1::GetFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetFont(uint listIndex, IDWriteFont3** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint, IDWriteFont3**, int>)(lpVtbl[10]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily1::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[11]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily2"]/*' />
|
||||
/// <unmanaged>IDWriteFontFamily2</unmanaged>
|
||||
[Guid("3ed49e77-a398-4261-b9cf-c126c2131ef3")]
|
||||
[NativeTypeName("struct IDWriteFontFamily2 : IDWriteFontFamily1")]
|
||||
[NativeInheritance("IDWriteFontFamily1")]
|
||||
public unsafe partial struct IDWriteFontFamily2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x77, 0x9E, 0xD4, 0x3E,
|
||||
0x98, 0xA3,
|
||||
0x61, 0x42,
|
||||
0xB9,
|
||||
0xCF,
|
||||
0xC1,
|
||||
0x26,
|
||||
0xC2,
|
||||
0x13,
|
||||
0x1E,
|
||||
0xF3
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, uint>)(lpVtbl[4]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetFamilyNames" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetFamilyNames(IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, IDWriteLocalizedStrings**, int>)(lpVtbl[6]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), names);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetFirstMatchingFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, FontWeight, FontStretch, FontStyle, IDWriteFont**, int>)(lpVtbl[7]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, FontWeight, FontStretch, FontStyle, IDWriteFontList**, int>)(lpVtbl[8]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily1.GetFontLocality" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, uint, Locality>)(lpVtbl[9]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily1.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetFont(uint listIndex, IDWriteFont3** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, uint, IDWriteFont3**, int>)(lpVtbl[10]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontFamily1.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[11]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily2::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetMatchingFonts(FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, FontAxisValue*, uint, IDWriteFontList2**, int>)(lpVtbl[12]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount, matchingFonts);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFamily2::GetFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult GetFontSet(IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, IDWriteFontSet1**, int>)(lpVtbl[13]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFile"]/*' />
|
||||
/// <unmanaged>IDWriteFontFile</unmanaged>
|
||||
[Guid("739d886a-cef5-47dc-8769-1a8b41bebbb0")]
|
||||
[NativeTypeName("struct IDWriteFontFile : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFile : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFile
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x6A, 0x88, 0x9D, 0x73,
|
||||
0xF5, 0xCE,
|
||||
0xDC, 0x47,
|
||||
0x87,
|
||||
0x69,
|
||||
0x1A,
|
||||
0x8B,
|
||||
0x41,
|
||||
0xBE,
|
||||
0xBB,
|
||||
0xB0
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFile));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFile));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFile::GetReferenceKey"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetReferenceKey(void** fontFileReferenceKey, uint* fontFileReferenceKeySize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFile*, void**, uint*, int>)(lpVtbl[3]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFile::GetLoader"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetLoader(IDWriteFontFileLoader** fontFileLoader)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFile*, IDWriteFontFileLoader**, int>)(lpVtbl[4]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileLoader);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFile::Analyze"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult Analyze(Bool32* isSupportedFontType, FontFileType* fontFileType, FontFaceType* fontFaceType, uint* numberOfFaces)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFile*, Bool32*, FontFileType*, FontFaceType*, uint*, int>)(lpVtbl[5]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), isSupportedFontType, fontFileType, fontFaceType, numberOfFaces);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileEnumerator"]/*' />
|
||||
/// <unmanaged>IDWriteFontFileEnumerator</unmanaged>
|
||||
[Guid("72755049-5ff7-435d-8348-4be97cfa6c7c")]
|
||||
[NativeTypeName("struct IDWriteFontFileEnumerator : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileEnumerator : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileEnumerator
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x49, 0x50, 0x75, 0x72,
|
||||
0xF7, 0x5F,
|
||||
0x5D, 0x43,
|
||||
0x83,
|
||||
0x48,
|
||||
0x4B,
|
||||
0xE9,
|
||||
0x7C,
|
||||
0xFA,
|
||||
0x6C,
|
||||
0x7C
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileEnumerator));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileEnumerator));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileEnumerator::MoveNext"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult MoveNext(Bool32* hasCurrentFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileEnumerator*, Bool32*, int>)(lpVtbl[3]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), hasCurrentFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileEnumerator::GetCurrentFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetCurrentFontFile(IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileEnumerator*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileLoader"]/*' />
|
||||
/// <unmanaged>IDWriteFontFileLoader</unmanaged>
|
||||
[Guid("727cad4e-d6af-4c9e-8a08-d695b11caa49")]
|
||||
[NativeTypeName("struct IDWriteFontFileLoader : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileLoader : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileLoader
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x4E, 0xAD, 0x7C, 0x72,
|
||||
0xAF, 0xD6,
|
||||
0x9E, 0x4C,
|
||||
0x8A,
|
||||
0x08,
|
||||
0xD6,
|
||||
0x95,
|
||||
0xB1,
|
||||
0x1C,
|
||||
0xAA,
|
||||
0x49
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileLoader));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileLoader));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileLoader::CreateStreamFromKey"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileLoader*, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[3]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileStream"]/*' />
|
||||
/// <unmanaged>IDWriteFontFileStream</unmanaged>
|
||||
[Guid("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0")]
|
||||
[NativeTypeName("struct IDWriteFontFileStream : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileStream : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileStream
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xFE, 0x65, 0x48, 0x6D,
|
||||
0xB8, 0x0A,
|
||||
0x91, 0x4D,
|
||||
0x8F,
|
||||
0x62,
|
||||
0x5D,
|
||||
0xD6,
|
||||
0xBE,
|
||||
0x34,
|
||||
0xA3,
|
||||
0xE0
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileStream));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileStream));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileStream::ReadFileFragment"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileStream*, void**, ulong, ulong, void**, int>)(lpVtbl[3]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentStart, fileOffset, fragmentSize, fragmentContext);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileStream::ReleaseFileFragment"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public void ReleaseFileFragment(void* fragmentContext)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFileStream*, void*, void>)(lpVtbl[4]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentContext);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileStream::GetFileSize"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFileSize(ulong* fileSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileStream*, ulong*, int>)(lpVtbl[5]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fileSize);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontFileStream::GetLastWriteTime"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetLastWriteTime(ulong* lastWriteTime)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileStream*, ulong*, int>)(lpVtbl[6]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList"]/*' />
|
||||
/// <unmanaged>IDWriteFontList</unmanaged>
|
||||
[Guid("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb")]
|
||||
[NativeTypeName("struct IDWriteFontList : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontList : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x38, 0x84, 0x0D, 0x1A,
|
||||
0x97, 0x1D,
|
||||
0xC1, 0x4E,
|
||||
0xAE,
|
||||
0xF9,
|
||||
0xA2,
|
||||
0xFB,
|
||||
0x86,
|
||||
0xED,
|
||||
0x6A,
|
||||
0xCB
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList::GetFontCollection"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontList*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList::GetFontCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList*, uint>)(lpVtbl[4]))((IDWriteFontList*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList::GetFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontList*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList1"]/*' />
|
||||
/// <unmanaged>IDWriteFontList1</unmanaged>
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7ade")]
|
||||
[NativeTypeName("struct IDWriteFontList1 : IDWriteFontList")]
|
||||
[NativeInheritance("IDWriteFontList")]
|
||||
public unsafe partial struct IDWriteFontList1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xEF, 0xD8, 0x20, 0xDA,
|
||||
0x2A, 0x81,
|
||||
0x43, 0x4C,
|
||||
0x98,
|
||||
0x02,
|
||||
0x62,
|
||||
0xEC,
|
||||
0x4A,
|
||||
0xBD,
|
||||
0x7A,
|
||||
0xDE
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint>)(lpVtbl[4]))((IDWriteFontList1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList1::GetFontLocality"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint, Locality>)(lpVtbl[6]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList1::GetFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFont(uint listIndex, IDWriteFont3** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint, IDWriteFont3**, int>)(lpVtbl[7]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList1::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[8]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList2"]/*' />
|
||||
/// <unmanaged>IDWriteFontList2</unmanaged>
|
||||
[Guid("c0763a34-77af-445a-b735-08c37b0a5bf5")]
|
||||
[NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")]
|
||||
[NativeInheritance("IDWriteFontList1")]
|
||||
public unsafe partial struct IDWriteFontList2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x34, 0x3A, 0x76, 0xC0,
|
||||
0xAF, 0x77,
|
||||
0x5A, 0x44,
|
||||
0xB7,
|
||||
0x35,
|
||||
0x08,
|
||||
0xC3,
|
||||
0x7B,
|
||||
0x0A,
|
||||
0x5B,
|
||||
0xF5
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCollection" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontCollection(IDWriteFontCollection** fontCollection)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, IDWriteFontCollection**, int>)(lpVtbl[3]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontCollection);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, uint>)(lpVtbl[4]))((IDWriteFontList2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetFont(uint index, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList1.GetFontLocality" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, uint, Locality>)(lpVtbl[6]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList1.GetFont" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFont(uint listIndex, IDWriteFont3** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, uint, IDWriteFont3**, int>)(lpVtbl[7]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontList1.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[8]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontList2::GetFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetFontSet(IDWriteFontSet1** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, IDWriteFontSet1**, int>)(lpVtbl[9]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource"]/*' />
|
||||
/// <unmanaged>IDWriteFontResource</unmanaged>
|
||||
[Guid("1f803a76-6871-48e8-987f-b975551c50f2")]
|
||||
[NativeTypeName("struct IDWriteFontResource : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontResource : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontResource
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x76, 0x3A, 0x80, 0x1F,
|
||||
0x71, 0x68,
|
||||
0xE8, 0x48,
|
||||
0x98,
|
||||
0x7F,
|
||||
0xB9,
|
||||
0x75,
|
||||
0x55,
|
||||
0x1C,
|
||||
0x50,
|
||||
0xF2
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontResource));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontResource));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetFontFile(IDWriteFontFile** fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, IDWriteFontFile**, int>)(lpVtbl[3]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetFontFaceIndex"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public uint GetFontFaceIndex()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint>)(lpVtbl[4]))((IDWriteFontResource*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetFontAxisCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public uint GetFontAxisCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint>)(lpVtbl[5]))((IDWriteFontResource*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetDefaultFontAxisValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult GetDefaultFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, FontAxisValue*, uint, int>)(lpVtbl[6]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetFontAxisRanges"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, FontAxisRange*, uint, int>)(lpVtbl[7]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetFontAxisAttributes"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public FontAxisAttributes GetFontAxisAttributes(uint axisIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint, FontAxisAttributes>)(lpVtbl[8]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetAxisNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetAxisNames(uint axisIndex, IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint, IDWriteLocalizedStrings**, int>)(lpVtbl[9]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetAxisValueNameCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public uint GetAxisValueNameCount(uint axisIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint, uint>)(lpVtbl[10]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::GetAxisValueNames"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetAxisValueNames(uint axisIndex, uint axisValueIndex, FontAxisRange* fontAxisRange, IDWriteLocalizedStrings** names)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, uint, uint, FontAxisRange*, IDWriteLocalizedStrings**, int>)(lpVtbl[11]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, axisValueIndex, fontAxisRange, names);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::HasVariations"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public Bool32 HasVariations()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, Bool32>)(lpVtbl[12]))((IDWriteFontResource*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult CreateFontFace(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFace5** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, FontSimulations, FontAxisValue*, uint, IDWriteFontFace5**, int>)(lpVtbl[13]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontResource::CreateFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult CreateFontFaceReference(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, FontSimulations, FontAxisValue*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[14]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet"]/*' />
|
||||
/// <unmanaged>IDWriteFontSet</unmanaged>
|
||||
[Guid("53585141-d9f8-4095-8321-d73cf6bd116b")]
|
||||
[NativeTypeName("struct IDWriteFontSet : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontSet : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x41, 0x51, 0x58, 0x53,
|
||||
0xF8, 0xD9,
|
||||
0x95, 0x40,
|
||||
0x83,
|
||||
0x21,
|
||||
0xD7,
|
||||
0x3C,
|
||||
0xF6,
|
||||
0xBD,
|
||||
0x11,
|
||||
0x6B
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetFontCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, uint>)(lpVtbl[3]))((IDWriteFontSet*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[4]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::FindFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, IDWriteFontFaceReference*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::FindFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, IDWriteFontFace*, uint*, Bool32*, int>)(lpVtbl[6]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetPropertyValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, FontPropertyId, IDWriteStringList**, int>)(lpVtbl[7]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, values);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetPropertyValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, FontPropertyId, ushort*, IDWriteStringList**, int>)(lpVtbl[8]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetPropertyValues"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, uint, FontPropertyId, Bool32*, IDWriteLocalizedStrings**, int>)(lpVtbl[9]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetPropertyOccurrenceCount"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, FontProperty*, uint*, int>)(lpVtbl[10]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, ushort*, FontWeight, FontStretch, FontStyle, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, FontProperty*, uint, IDWriteFontSet**, int>)(lpVtbl[12]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1"]/*' />
|
||||
/// <unmanaged>IDWriteFontSet1</unmanaged>
|
||||
[Guid("7e9fda85-6c92-4053-bc47-7ae3530db4d3")]
|
||||
[NativeTypeName("struct IDWriteFontSet1 : IDWriteFontSet")]
|
||||
[NativeInheritance("IDWriteFontSet")]
|
||||
public unsafe partial struct IDWriteFontSet1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x85, 0xDA, 0x9F, 0x7E,
|
||||
0x92, 0x6C,
|
||||
0x53, 0x40,
|
||||
0xBC,
|
||||
0x47,
|
||||
0x7A,
|
||||
0xE3,
|
||||
0x53,
|
||||
0x0D,
|
||||
0xB4,
|
||||
0xD3
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint>)(lpVtbl[3]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[4]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, IDWriteFontFaceReference*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, IDWriteFontFace*, uint*, Bool32*, int>)(lpVtbl[6]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontPropertyId, IDWriteStringList**, int>)(lpVtbl[7]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontPropertyId, ushort*, IDWriteStringList**, int>)(lpVtbl[8]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, FontPropertyId, Bool32*, IDWriteLocalizedStrings**, int>)(lpVtbl[9]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyOccurrenceCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontProperty*, uint*, int>)(lpVtbl[10]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, ushort*, FontWeight, FontStretch, FontStyle, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontProperty*, uint, IDWriteFontSet**, int>)(lpVtbl[12]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetMatchingFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontProperty*, FontAxisValue*, uint, IDWriteFontSet1**, int>)(lpVtbl[13]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFirstFontResources"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, IDWriteFontSet1**, int>)(lpVtbl[14]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), filteredFontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFilteredFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint*, uint, IDWriteFontSet1**, int>)(lpVtbl[15]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFilteredFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontAxisRange*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[16]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFilteredFonts"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontProperty*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[17]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFilteredFontIndices"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontAxisRange*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[18]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFilteredFontIndices"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontProperty*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[19]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFontAxisRanges"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, FontAxisRange*, uint, uint*, int>)(lpVtbl[20]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFontAxisRanges"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, FontAxisRange*, uint, uint*, int>)(lpVtbl[21]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[22]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::CreateFontResource"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, IDWriteFontResource**, int>)(lpVtbl[23]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontResource);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::CreateFontFace"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, IDWriteFontFace5**, int>)(lpVtbl[24]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet1::GetFontLocality"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, Locality>)(lpVtbl[25]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,269 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet2"]/*' />
|
||||
/// <unmanaged>IDWriteFontSet2</unmanaged>
|
||||
[Guid("dc7ead19-e54c-43af-b2da-4e2b79ba3f7f")]
|
||||
[NativeTypeName("struct IDWriteFontSet2 : IDWriteFontSet1")]
|
||||
[NativeInheritance("IDWriteFontSet1")]
|
||||
public unsafe partial struct IDWriteFontSet2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x19, 0xAD, 0x7E, 0xDC,
|
||||
0x4C, 0xE5,
|
||||
0xAF, 0x43,
|
||||
0xB2,
|
||||
0xDA,
|
||||
0x4E,
|
||||
0x2B,
|
||||
0x79,
|
||||
0xBA,
|
||||
0x3F,
|
||||
0x7F
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint>)(lpVtbl[3]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[4]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, IDWriteFontFaceReference*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, IDWriteFontFace*, uint*, Bool32*, int>)(lpVtbl[6]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontPropertyId, IDWriteStringList**, int>)(lpVtbl[7]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontPropertyId, ushort*, IDWriteStringList**, int>)(lpVtbl[8]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, FontPropertyId, Bool32*, IDWriteLocalizedStrings**, int>)(lpVtbl[9]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyOccurrenceCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontProperty*, uint*, int>)(lpVtbl[10]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, ushort*, FontWeight, FontStretch, FontStyle, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontProperty*, uint, IDWriteFontSet**, int>)(lpVtbl[12]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontProperty*, FontAxisValue*, uint, IDWriteFontSet1**, int>)(lpVtbl[13]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFirstFontResources" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, IDWriteFontSet1**, int>)(lpVtbl[14]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint*, uint, IDWriteFontSet1**, int>)(lpVtbl[15]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontAxisRange*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[16]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontProperty*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[17]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFontIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontAxisRange*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[18]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFontIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontProperty*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[19]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontAxisRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, FontAxisRange*, uint, uint*, int>)(lpVtbl[20]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontAxisRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, FontAxisRange*, uint, uint*, int>)(lpVtbl[21]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[22]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.CreateFontResource" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, IDWriteFontResource**, int>)(lpVtbl[23]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, IDWriteFontFace5**, int>)(lpVtbl[24]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontLocality" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, uint, Locality>)(lpVtbl[25]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet2::GetExpirationEvent"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Handle GetExpirationEvent()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, Handle>)(lpVtbl[26]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet3"]/*' />
|
||||
/// <unmanaged>IDWriteFontSet3</unmanaged>
|
||||
[Guid("7c073ef2-a7f4-4045-8c32-8ab8ae640f90")]
|
||||
[NativeTypeName("struct IDWriteFontSet3 : IDWriteFontSet2")]
|
||||
[NativeInheritance("IDWriteFontSet2")]
|
||||
public unsafe partial struct IDWriteFontSet3 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet3
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xF2, 0x3E, 0x07, 0x7C,
|
||||
0xF4, 0xA7,
|
||||
0x45, 0x40,
|
||||
0x8C,
|
||||
0x32,
|
||||
0x8A,
|
||||
0xB8,
|
||||
0xAE,
|
||||
0x64,
|
||||
0x0F,
|
||||
0x90
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet3));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet3));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public uint GetFontCount()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint>)(lpVtbl[3]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[4]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, IDWriteFontFaceReference*, uint*, Bool32*, int>)(lpVtbl[5]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.FindFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, IDWriteFontFace*, uint*, Bool32*, int>)(lpVtbl[6]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontPropertyId, IDWriteStringList**, int>)(lpVtbl[7]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontPropertyId, ushort*, IDWriteStringList**, int>)(lpVtbl[8]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyValues" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, FontPropertyId, Bool32*, IDWriteLocalizedStrings**, int>)(lpVtbl[9]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetPropertyOccurrenceCount" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontProperty*, uint*, int>)(lpVtbl[10]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, ushort*, FontWeight, FontStretch, FontStyle, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(12)]
|
||||
public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontProperty*, uint, IDWriteFontSet**, int>)(lpVtbl[12]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetMatchingFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(13)]
|
||||
public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontProperty*, FontAxisValue*, uint, IDWriteFontSet1**, int>)(lpVtbl[13]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFirstFontResources" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(14)]
|
||||
public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, IDWriteFontSet1**, int>)(lpVtbl[14]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(15)]
|
||||
public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint*, uint, IDWriteFontSet1**, int>)(lpVtbl[15]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(16)]
|
||||
public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontAxisRange*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[16]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFonts" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(17)]
|
||||
public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontProperty*, uint, Bool32, IDWriteFontSet1**, int>)(lpVtbl[17]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFontIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(18)]
|
||||
public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontAxisRange*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[18]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFilteredFontIndices" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(19)]
|
||||
public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontProperty*, uint, Bool32, uint*, uint, uint*, int>)(lpVtbl[19]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontAxisRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(20)]
|
||||
public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, FontAxisRange*, uint, uint*, int>)(lpVtbl[20]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontAxisRanges" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(21)]
|
||||
public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, FontAxisRange*, uint, uint*, int>)(lpVtbl[21]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(22)]
|
||||
public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[22]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.CreateFontResource" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, IDWriteFontResource**, int>)(lpVtbl[23]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontResource);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.CreateFontFace" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(24)]
|
||||
public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, IDWriteFontFace5**, int>)(lpVtbl[24]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet1.GetFontLocality" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(25)]
|
||||
public Locality GetFontLocality(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, Locality>)(lpVtbl[25]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSet2.GetExpirationEvent" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(26)]
|
||||
public Handle GetExpirationEvent()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, Handle>)(lpVtbl[26]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet3::GetFontSourceType"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(27)]
|
||||
public FontSourceType GetFontSourceType(uint fontIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, FontSourceType>)(lpVtbl[27]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet3::GetFontSourceNameLength"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(28)]
|
||||
public uint GetFontSourceNameLength(uint listIndex)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, uint>)(lpVtbl[28]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSet3::GetFontSourceName"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(29)]
|
||||
public HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, ushort*, uint, int>)(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder"]/*' />
|
||||
/// <unmanaged>IDWriteFontSetBuilder</unmanaged>
|
||||
[Guid("2f642afe-9c68-4f40-b8be-457401afcb3d")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xFE, 0x2A, 0x64, 0x2F,
|
||||
0x68, 0x9C,
|
||||
0x40, 0x4F,
|
||||
0xB8,
|
||||
0xBE,
|
||||
0x45,
|
||||
0x74,
|
||||
0x01,
|
||||
0xAF,
|
||||
0xCB,
|
||||
0x3D
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder::AddFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder*, IDWriteFontFaceReference*, FontProperty*, uint, int>)(lpVtbl[3]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder::AddFontFaceReference"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder*, IDWriteFontFaceReference*, int>)(lpVtbl[4]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder::AddFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult AddFontSet(IDWriteFontSet* fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder*, IDWriteFontSet*, int>)(lpVtbl[5]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder::CreateFontSet"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CreateFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder*, IDWriteFontSet**, int>)(lpVtbl[6]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder1"]/*' />
|
||||
/// <unmanaged>IDWriteFontSetBuilder1</unmanaged>
|
||||
[Guid("3ff7715f-3cdc-4dc6-9b72-ec5621dccafd")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder")]
|
||||
[NativeInheritance("IDWriteFontSetBuilder")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x5F, 0x71, 0xF7, 0x3F,
|
||||
0xDC, 0x3C,
|
||||
0xC6, 0x4D,
|
||||
0x9B,
|
||||
0x72,
|
||||
0xEC,
|
||||
0x56,
|
||||
0x21,
|
||||
0xDC,
|
||||
0xCA,
|
||||
0xFD
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontFaceReference*, FontProperty*, uint, int>)(lpVtbl[3]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontFaceReference*, int>)(lpVtbl[4]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult AddFontSet(IDWriteFontSet* fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontSet*, int>)(lpVtbl[5]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.CreateFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CreateFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontSet**, int>)(lpVtbl[6]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder1::AddFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult AddFontFile(IDWriteFontFile* fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontFile*, int>)(lpVtbl[7]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder2"]/*' />
|
||||
/// <unmanaged>IDWriteFontSetBuilder2</unmanaged>
|
||||
[Guid("ee5ba612-b131-463c-8f4f-3189b9401e45")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder1")]
|
||||
[NativeInheritance("IDWriteFontSetBuilder1")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder2 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x12, 0xA6, 0x5B, 0xEE,
|
||||
0x31, 0xB1,
|
||||
0x3C, 0x46,
|
||||
0x8F,
|
||||
0x4F,
|
||||
0x31,
|
||||
0x89,
|
||||
0xB9,
|
||||
0x40,
|
||||
0x1E,
|
||||
0x45
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder2));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder2));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontFaceReference*, FontProperty*, uint, int>)(lpVtbl[3]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontFaceReference" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontFaceReference*, int>)(lpVtbl[4]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.AddFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult AddFontSet(IDWriteFontSet* fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontSet*, int>)(lpVtbl[5]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder.CreateFontSet" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CreateFontSet(IDWriteFontSet** fontSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontSet**, int>)(lpVtbl[6]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteFontSetBuilder1.AddFontFile" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult AddFontFile(IDWriteFontFile* fontFile)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontFile*, int>)(lpVtbl[7]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder2::AddFont"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult AddFont(IDWriteFontFile* fontFile, uint fontFaceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, FontProperty* properties, uint propertyCount)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, IDWriteFontFile*, uint, FontSimulations, FontAxisValue*, uint, FontAxisRange*, uint, FontProperty*, uint, int>)(lpVtbl[8]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile, fontFaceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontAxisRanges, fontAxisRangeCount, properties, propertyCount);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteFontSetBuilder2::AddFontFile"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult AddFontFile(ushort* filePath)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, ushort*, int>)(lpVtbl[9]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), filePath);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop"]/*' />
|
||||
/// <unmanaged>IDWriteGdiInterop</unmanaged>
|
||||
[Guid("1edd9491-9853-4299-898f-6432983b6f3a")]
|
||||
[NativeTypeName("struct IDWriteGdiInterop : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteGdiInterop : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGdiInterop
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x91, 0x94, 0xDD, 0x1E,
|
||||
0x53, 0x98,
|
||||
0x99, 0x42,
|
||||
0x89,
|
||||
0x8F,
|
||||
0x64,
|
||||
0x32,
|
||||
0x98,
|
||||
0x3B,
|
||||
0x6F,
|
||||
0x3A
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop::CreateFontFromLOGFONT"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, Win32.Graphics.Gdi.LogFontW*, IDWriteFont**, int>)(lpVtbl[3]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), logFont, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop::ConvertFontToLOGFONT"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, IDWriteFont*, Win32.Graphics.Gdi.LogFontW**, Bool32*, int>)(lpVtbl[4]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop::ConvertFontFaceToLOGFONT"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, IDWriteFontFace*, Win32.Graphics.Gdi.LogFontW**, int>)(lpVtbl[5]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop::CreateFontFaceFromHdc"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, IntPtr, IDWriteFontFace**, int>)(lpVtbl[6]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, fontFace);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop::CreateBitmapRenderTarget"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, IntPtr, uint, uint, IDWriteBitmapRenderTarget**, int>)(lpVtbl[7]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop1"]/*' />
|
||||
/// <unmanaged>IDWriteGdiInterop1</unmanaged>
|
||||
[Guid("4556be70-3abd-4f70-90be-421780a6f515")]
|
||||
[NativeTypeName("struct IDWriteGdiInterop1 : IDWriteGdiInterop")]
|
||||
[NativeInheritance("IDWriteGdiInterop")]
|
||||
public unsafe partial struct IDWriteGdiInterop1 : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGdiInterop1
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x70, 0xBE, 0x56, 0x45,
|
||||
0xBD, 0x3A,
|
||||
0x70, 0x4F,
|
||||
0x90,
|
||||
0xBE,
|
||||
0x42,
|
||||
0x17,
|
||||
0x80,
|
||||
0xA6,
|
||||
0xF5,
|
||||
0x15
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop1));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop1));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteGdiInterop.CreateFontFromLOGFONT" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, Win32.Graphics.Gdi.LogFontW*, IDWriteFont**, int>)(lpVtbl[3]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, font);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteGdiInterop.ConvertFontToLOGFONT" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IDWriteFont*, Win32.Graphics.Gdi.LogFontW**, Bool32*, int>)(lpVtbl[4]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteGdiInterop.ConvertFontFaceToLOGFONT" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IDWriteFontFace*, Win32.Graphics.Gdi.LogFontW**, int>)(lpVtbl[5]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteGdiInterop.CreateFontFaceFromHdc" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(6)]
|
||||
public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IntPtr, IDWriteFontFace**, int>)(lpVtbl[6]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, fontFace);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDWriteGdiInterop.CreateBitmapRenderTarget" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(7)]
|
||||
public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IntPtr, uint, uint, IDWriteBitmapRenderTarget**, int>)(lpVtbl[7]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop1::CreateFontFromLOGFONT"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFontCollection* fontCollection, IDWriteFont** font)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, Win32.Graphics.Gdi.LogFontW*, IDWriteFontCollection*, IDWriteFont**, int>)(lpVtbl[8]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontCollection, font);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop1::GetFontSignature"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetFontSignature(IDWriteFontFace* fontFace, Win32.Graphics.Gdi.FontSignature** fontSignature)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IDWriteFontFace*, Win32.Graphics.Gdi.FontSignature**, int>)(lpVtbl[9]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), fontFace, fontSignature);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop1::GetFontSignature"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(10)]
|
||||
public HResult GetFontSignature(IDWriteFont* font, Win32.Graphics.Gdi.FontSignature** fontSignature)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, IDWriteFont*, Win32.Graphics.Gdi.FontSignature**, int>)(lpVtbl[10]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, fontSignature);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGdiInterop1::GetMatchingFontsByLOGFONT"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult GetMatchingFontsByLOGFONT(Win32.Graphics.Gdi.LogFontA* logFont, IDWriteFontSet* fontSet, IDWriteFontSet** filteredSet)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, Win32.Graphics.Gdi.LogFontA*, IDWriteFontSet*, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontSet, filteredSet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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>
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGlyphRunAnalysis"]/*' />
|
||||
/// <unmanaged>IDWriteGlyphRunAnalysis</unmanaged>
|
||||
[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")]
|
||||
[NativeTypeName("struct IDWriteGlyphRunAnalysis : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteGlyphRunAnalysis : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGlyphRunAnalysis
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0xF7, 0xDB, 0x97, 0x7D,
|
||||
0x85, 0xE0,
|
||||
0xD4, 0x42,
|
||||
0x81,
|
||||
0xE3,
|
||||
0x6A,
|
||||
0x88,
|
||||
0x3B,
|
||||
0xDE,
|
||||
0xD1,
|
||||
0x18
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGlyphRunAnalysis));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGlyphRunAnalysis));
|
||||
#endif
|
||||
|
||||
public void** lpVtbl;
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGlyphRunAnalysis::GetAlphaTextureBounds"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public HResult GetAlphaTextureBounds(TextureType textureType, RawRect* textureBounds)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGlyphRunAnalysis*, TextureType, RawRect*, int>)(lpVtbl[3]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGlyphRunAnalysis::CreateAlphaTexture"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(4)]
|
||||
public HResult CreateAlphaTexture(TextureType textureType, RawRect* textureBounds, byte* alphaValues, uint bufferSize)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGlyphRunAnalysis*, TextureType, RawRect*, byte*, uint, int>)(lpVtbl[4]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds, alphaValues, bufferSize);
|
||||
}
|
||||
|
||||
/// <include file='../DirectWrite.xml' path='doc/member[@name="IDWriteGlyphRunAnalysis::GetAlphaBlendParams"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(5)]
|
||||
public HResult GetAlphaBlendParams(IDWriteRenderingParams* renderingParams, float* blendGamma, float* blendEnhancedContrast, float* blendClearTypeLevel)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGlyphRunAnalysis*, IDWriteRenderingParams*, float*, float*, float*, int>)(lpVtbl[5]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), renderingParams, blendGamma, blendEnhancedContrast, blendClearTypeLevel);
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user