Class Factory1
[Guid("bb12d362-daee-4b9a-aa1d-14ba401cfa1f")]
public class Factory1 : Factory
- Inheritance
-
Factory1
- Derived
- Inherited Members
Constructors
Factory1()
Default Constructor for a Factory1.
public Factory1()
Factory1(FactoryType)
Default Constructor for a Factory1.
public Factory1(FactoryType factoryType)
Parameters
factoryType
FactoryType
Factory1(FactoryType, DebugLevel)
Default Constructor for a Factory1.
public Factory1(FactoryType factoryType, DebugLevel debugLevel)
Parameters
factoryType
FactoryTypedebugLevel
DebugLevel
Factory1(nint)
public Factory1(nint nativePtr)
Parameters
nativePtr
nint
Properties
RegisteredEffects
Get the effects registered
public Guid[] RegisteredEffects { get; }
Property Value
- Guid[]
Methods
GetEffectProperties(Guid)
Retrieves the properties of an effect.
public Properties GetEffectProperties(Guid effectId)
Parameters
effectId
GuidThe ID of the effect to retrieve properties from.
Returns
- Properties
When this method returns, contains the address of a reference to the property interface that can be used to query the metadata of the effect.
Remarks
The returned effect properties will have all the mutable properties for the effect set to a default of null
, or an empty value.
- Value types will be zero-filled.
- Blob and string types will be zero-length.
- Array types will have length 1 and the element of the array will conform to the previous rules.
This method cannot be used to return the properties for any effect not visible to ID2D1DeviceContext::CreateEffect.
RegisterEffect<T>()
Register a CustomEffect.
public void RegisterEffect<T>() where T : CustomEffect, new()
Type Parameters
T
Type of
RegisterEffect<T>(Func<T>)
Register a CustomEffect factory.
public void RegisterEffect<T>(Func<T> effectFactory) where T : CustomEffect
Parameters
effectFactory
Func<T>
Type Parameters
T
RegisterEffect<T>(Func<T>, Guid)
Register a CustomEffect factory.
public void RegisterEffect<T>(Func<T> effectFactory, Guid effectId) where T : CustomEffect
Parameters
Type Parameters
T
RegisterEffect<T>(Guid)
Register a CustomEffect.
public void RegisterEffect<T>(Guid effectId) where T : CustomEffect, new()
Parameters
effectId
Guid
Type Parameters
T
Type of
UnRegisterEffect<T>()
Unregister a CustomEffect.
public void UnRegisterEffect<T>() where T : CustomEffect
Type Parameters
T
Operators
explicit operator Factory1(nint)
public static explicit operator Factory1(nint nativePtr)
Parameters
nativePtr
nint