Struct DWriteSize
Specifies the width and height of a rectangle.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteSize : IEquatable<DWriteSize>
Constructors
|
Edit this page
View Source
DWriteSize(int, int)
Initializes a new instance of the DWriteSize struct.
Declaration
public DWriteSize(int width, int height)
Parameters
| Type |
Name |
Description |
| int |
width |
The rectangle's width.
|
| int |
height |
The rectangle's height.
|
Properties
|
Edit this page
View Source
Height
Gets or sets the rectangle's height.
Declaration
public int Height { get; set; }
Property Value
|
Edit this page
View Source
Width
Gets or sets the rectangle's width.
Declaration
public int Width { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteSize)
Declaration
public readonly bool Equals(DWriteSize 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 DWriteSize NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteSize>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteSize> 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 DWriteSize)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteSize obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteSize>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteSize> objects)
Parameters
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(DWriteSize, DWriteSize)
Declaration
public static bool operator ==(DWriteSize left, DWriteSize right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteSize, DWriteSize)
Declaration
public static bool operator !=(DWriteSize left, DWriteSize right)
Parameters
Returns
Implements