Class PropertyAction
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class PropertyAction : Object, Action, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
PropertyAction
- Implements
- Inherited Members
Constructors
PropertyAction(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public PropertyAction(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
PropertyAction(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PropertyAction(CreationData data)
Parameters
dataCreationData
PropertyAction(PropertyActionHandle)
protected PropertyAction(PropertyActionHandle handle)
Parameters
handlePropertyActionHandle
Fields
EnabledPropertyDefinition
public static readonly Property<bool, PropertyAction> EnabledPropertyDefinition
Field Value
InvertBooleanPropertyDefinition
public static readonly Property<bool, PropertyAction> InvertBooleanPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, PropertyAction> NamePropertyDefinition
Field Value
ParameterTypePropertyDefinition
public static readonly Property<VariantType, PropertyAction> ParameterTypePropertyDefinition
Field Value
StateTypePropertyDefinition
public static readonly Property<VariantType, PropertyAction> StateTypePropertyDefinition
Field Value
Properties
Enabled
public bool Enabled { get; }
Property Value
InvertBoolean
public bool InvertBoolean { get; }
Property Value
Name
public string? Name { get; }
Property Value
ParameterType
public VariantType ParameterType { get; }
Property Value
StateType
public VariantType StateType { get; }
Property Value
Methods
Activate(Variant?)
[Version("2.28")]
public void Activate(Variant? parameter)
Parameters
parameterVariant
ChangeState(Variant)
[Version("2.30")]
public void ChangeState(Variant value)
Parameters
valueVariant
GetEnabled()
[Version("2.28")]
public bool GetEnabled()
Returns
GetGType()
public static Type GetGType()
Returns
GetName()
[Version("2.28")]
public string GetName()
Returns
GetParameterType()
[Version("2.28")]
public VariantType? GetParameterType()
Returns
GetState()
[Version("2.28")]
public Variant? GetState()
Returns
GetStateHint()
[Version("2.28")]
public Variant? GetStateHint()
Returns
GetStateType()
[Version("2.28")]
public VariantType? GetStateType()
Returns
New(string, Object, string)
[Version("2.38")]
public static PropertyAction New(string name, Object @object, string propertyName)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed PropertyAction instance for a given pointer.
public static PropertyAction NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new PropertyAction and sets the properties specified by the construct arguments.
public static PropertyAction NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.