Struct D2D1HwndRenderTargetProperties
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1HwndRenderTargetProperties : IEquatable<D2D1HwndRenderTargetProperties>
Constructors
|
Edit this page
View Source
D2D1HwndRenderTargetProperties(nint)
Declaration
public D2D1HwndRenderTargetProperties(nint hwnd)
Parameters
| Type |
Name |
Description |
| nint |
hwnd |
The HWND to which the render target issues the output from its drawing commands.
|
|
Edit this page
View Source
D2D1HwndRenderTargetProperties(nint, D2D1SizeU, D2D1PresentOptions)
Declaration
public D2D1HwndRenderTargetProperties(nint hwnd, D2D1SizeU pixelSize, D2D1PresentOptions presentOptions)
Parameters
| Type |
Name |
Description |
| nint |
hwnd |
The HWND to which the render target issues the output from its drawing commands.
|
| D2D1SizeU |
pixelSize |
The size of the render target, in pixels.
|
| D2D1PresentOptions |
presentOptions |
A value that specifies whether the render target retains the frame after it is presented and whether the render target waits for the device to refresh before presenting.
|
Properties
|
Edit this page
View Source
Hwnd
Gets or sets the HWND to which the render target issues the output from its drawing commands.
Declaration
public nint Hwnd { get; set; }
Property Value
|
Edit this page
View Source
PixelSize
Gets or sets the size of the render target, in pixels.
Declaration
public D2D1SizeU PixelSize { get; set; }
Property Value
|
Edit this page
View Source
PresentOptions
Gets or sets a value that specifies whether the render target retains the frame after it is presented and whether the render target waits for the device to refresh before presenting.
Declaration
public D2D1PresentOptions PresentOptions { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1HwndRenderTargetProperties)
Declaration
public readonly bool Equals(D2D1HwndRenderTargetProperties 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 D2D1HwndRenderTargetProperties NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1HwndRenderTargetProperties>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1HwndRenderTargetProperties> 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 D2D1HwndRenderTargetProperties)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1HwndRenderTargetProperties obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1HwndRenderTargetProperties>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1HwndRenderTargetProperties> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1HwndRenderTargetProperties, D2D1HwndRenderTargetProperties)
Declaration
public static bool operator ==(D2D1HwndRenderTargetProperties left, D2D1HwndRenderTargetProperties right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1HwndRenderTargetProperties, D2D1HwndRenderTargetProperties)
Declaration
public static bool operator !=(D2D1HwndRenderTargetProperties left, D2D1HwndRenderTargetProperties right)
Parameters
Returns
Implements