Struct D2D1HwndRenderTargetProperties
Contains the HWND, pixel size, and presentation options for an D2D1HwndRenderTarget.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1HwndRenderTargetProperties : IEquatable<D2D1HwndRenderTargetProperties>
Constructors
| Edit this page View SourceD2D1HwndRenderTargetProperties(nint)
Initializes a new instance of the D2D1HwndRenderTargetProperties struct.
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. |
D2D1HwndRenderTargetProperties(nint, D2D1SizeU, D2D1PresentOptions)
Initializes a new instance of the D2D1HwndRenderTargetProperties struct.
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 SourceHwnd
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
Type | Description |
---|---|
nint |
PixelSize
Gets or sets the size of the render target, in pixels.
Declaration
public D2D1SizeU PixelSize { get; set; }
Property Value
Type | Description |
---|---|
D2D1SizeU |
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
Type | Description |
---|---|
D2D1PresentOptions |
Methods
| Edit this page View SourceEquals(D2D1HwndRenderTargetProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1HwndRenderTargetProperties other)
Parameters
Type | Name | Description |
---|---|---|
D2D1HwndRenderTargetProperties | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1HwndRenderTargetProperties, D2D1HwndRenderTargetProperties)
Compares two D2D1HwndRenderTargetProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1HwndRenderTargetProperties left, D2D1HwndRenderTargetProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1HwndRenderTargetProperties | left | The left D2D1HwndRenderTargetProperties to compare. |
D2D1HwndRenderTargetProperties | right | The right D2D1HwndRenderTargetProperties to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1HwndRenderTargetProperties, D2D1HwndRenderTargetProperties)
Compares two D2D1HwndRenderTargetProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1HwndRenderTargetProperties left, D2D1HwndRenderTargetProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1HwndRenderTargetProperties | left | The left D2D1HwndRenderTargetProperties to compare. |
D2D1HwndRenderTargetProperties | right | The right D2D1HwndRenderTargetProperties to compare. |
Returns
Type | Description |
---|---|
bool |