Class DxgiObject
An IDXGIObject interface is a base interface for all DXGI objects. IDXGIObject supports associating caller-defined (private data) with an object and retrieval of an interface to the parent object.
Inheritance
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiObject : DXComObject, IDisposable
Constructors
| Edit this page View SourceDxgiObject(nint)
Initializes a new instance of the DxgiObject class.
Declaration
public DxgiObject(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiObjectGuid
The interface GUID.
Declaration
public static readonly Guid DxgiObjectGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceGetParent(in Guid)
Gets the parent of the object.
Declaration
public nint GetParent(in Guid riid)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | riid | The ID of the requested interface. |
Returns
| Type | Description |
|---|---|
| nint | The address of a pointer to the parent object. |
GetPrivateDataText(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public string GetPrivateDataText(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| string | The object's text. |
GetPrivateDataTextCharCount(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextCharCount(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| int | The count. |
GetPrivateDataTextChars(in Guid, Span<char>)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextChars(in Guid name, Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
SetPrivateDataText(in Guid, ReadOnlySpan<char>)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, ReadOnlySpan<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| ReadOnlySpan<char> | text | The object's text. |
SetPrivateDataText(in Guid, string?)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, string? text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| string | text | The object's text. |