Table of Contents

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

constructArguments ConstructArgument[]

PropertyAction(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PropertyAction(CreationData data)

Parameters

data CreationData

PropertyAction(PropertyActionHandle)

protected PropertyAction(PropertyActionHandle handle)

Parameters

handle PropertyActionHandle

Fields

EnabledPropertyDefinition

public static readonly Property<bool, PropertyAction> EnabledPropertyDefinition

Field Value

Property<bool, PropertyAction>

InvertBooleanPropertyDefinition

public static readonly Property<bool, PropertyAction> InvertBooleanPropertyDefinition

Field Value

Property<bool, PropertyAction>

NamePropertyDefinition

public static readonly Property<string?, PropertyAction> NamePropertyDefinition

Field Value

Property<string, PropertyAction>

ParameterTypePropertyDefinition

public static readonly Property<VariantType, PropertyAction> ParameterTypePropertyDefinition

Field Value

Property<VariantType, PropertyAction>

StateTypePropertyDefinition

public static readonly Property<VariantType, PropertyAction> StateTypePropertyDefinition

Field Value

Property<VariantType, PropertyAction>

Properties

Enabled

public bool Enabled { get; }

Property Value

bool

InvertBoolean

public bool InvertBoolean { get; }

Property Value

bool

Name

public string? Name { get; }

Property Value

string

ParameterType

public VariantType ParameterType { get; }

Property Value

VariantType

StateType

public VariantType StateType { get; }

Property Value

VariantType

Methods

Activate(Variant?)

[Version("2.28")]
public void Activate(Variant? parameter)

Parameters

parameter Variant

ChangeState(Variant)

[Version("2.30")]
public void ChangeState(Variant value)

Parameters

value Variant

GetEnabled()

[Version("2.28")]
public bool GetEnabled()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetName()

[Version("2.28")]
public string GetName()

Returns

string

GetParameterType()

[Version("2.28")]
public VariantType? GetParameterType()

Returns

VariantType

GetState()

[Version("2.28")]
public Variant? GetState()

Returns

Variant

GetStateHint()

[Version("2.28")]
public Variant? GetStateHint()

Returns

Variant

GetStateType()

[Version("2.28")]
public VariantType? GetStateType()

Returns

VariantType

New(string, Object, string)

[Version("2.38")]
public static PropertyAction New(string name, Object @object, string propertyName)

Parameters

name string
object Object
propertyName string

Returns

PropertyAction

NewFromPointer(nint, bool)

Creates a new managed PropertyAction instance for a given pointer.

public static PropertyAction NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

PropertyAction

NewWithProperties(ConstructArgument[])

Creates a new PropertyAction and sets the properties specified by the construct arguments.

public static PropertyAction NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

PropertyAction