Struct DWriteClusterMetrics
The DWRITE_CLUSTER_METRICS structure contains information about a glyph cluster.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteClusterMetrics : IEquatable<DWriteClusterMetrics>
Properties
|
Edit this page
View Source
CanWrapLineAfter
Gets a value indicating whether the line can be broken right after the cluster.
Declaration
public bool CanWrapLineAfter { get; }
Property Value
|
Edit this page
View Source
IsNewline
Gets a value indicating whether the cluster corresponds to a newline character.
Declaration
public bool IsNewline { get; }
Property Value
|
Edit this page
View Source
IsRightToLeft
Gets a value indicating whether the cluster is read from right to left.
Declaration
public bool IsRightToLeft { get; }
Property Value
|
Edit this page
View Source
IsSoftHyphen
Gets a value indicating whether the cluster corresponds to soft hyphen character.
Declaration
public bool IsSoftHyphen { get; }
Property Value
|
Edit this page
View Source
IsWhitespace
Gets a value indicating whether the cluster corresponds to whitespace character.
Declaration
public bool IsWhitespace { get; }
Property Value
|
Edit this page
View Source
Length
Gets the number of text positions in the cluster.
Declaration
public ushort Length { get; }
Property Value
|
Edit this page
View Source
Width
Gets the total advance width of all glyphs in the cluster.
Declaration
public float Width { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteClusterMetrics)
Declaration
public readonly bool Equals(DWriteClusterMetrics other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DWriteClusterMetrics NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteClusterMetrics>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteClusterMetrics> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DWriteClusterMetrics)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteClusterMetrics obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteClusterMetrics>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteClusterMetrics> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteClusterMetrics, DWriteClusterMetrics)
Declaration
public static bool operator ==(DWriteClusterMetrics left, DWriteClusterMetrics right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteClusterMetrics, DWriteClusterMetrics)
Declaration
public static bool operator !=(DWriteClusterMetrics left, DWriteClusterMetrics right)
Parameters
Returns
Implements