Class GorgonVideoAdapterOutputList
A list of outputs on a video adapter.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonVideoAdapterOutputList : IGorgonNamedObjectReadOnlyDictionary<IGorgonVideoOutputInfo>, IReadOnlyCollection<IGorgonVideoOutputInfo>, IEnumerable<IGorgonVideoOutputInfo>, IEnumerable
Properties
| Edit this page View SourceCount
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of elements in the collection. |
this[string]
Property to return an item in the dictionary by its name.
Declaration
public IGorgonVideoOutputInfo this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | name |
Property Value
Type | Description |
---|---|
IGorgonVideoOutputInfo |
KeysAreCaseSensitive
Property to return whether the keys are case sensitive.
Declaration
public bool KeysAreCaseSensitive { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceContains(string)
Function to return whether an item with the specified name exists in this collection.
Declaration
public bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the item to find. |
Returns
Type | Description |
---|---|
bool | trueif found, false if not. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IGorgonVideoOutputInfo> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IGorgonVideoOutputInfo> | An enumerator that can be used to iterate through the collection. |
GetOutputFromWindowHandle(nint)
Function to return the correct output where the majority of a window resides.
Declaration
public IGorgonVideoOutputInfo GetOutputFromWindowHandle(nint windowHandle)
Parameters
Type | Name | Description |
---|---|---|
nint | windowHandle | The handle to the window to locate. |
Returns
Type | Description |
---|---|
IGorgonVideoOutputInfo | A IGorgonVideoOutputInfo that contains the majority of the window, or null if no output could be determined. |
TryGetValue(string, out IGorgonVideoOutputInfo)
Function to return an item from the collection.
Declaration
public bool TryGetValue(string name, out IGorgonVideoOutputInfo value)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the item to look up. |
IGorgonVideoOutputInfo | value | The item, if found, or the default value for the type if not. |
Returns
Type | Description |
---|---|
bool | true if the item was found, false if not. |