Foundry.ActionIntent

g Foundry.ActionIntent Foundry.ActionIntent Foundry.Intent Foundry.Intent Foundry.Intent->Foundry.ActionIntent GObject.Object GObject.Object GObject.Object->Foundry.Intent

Subclasses:

None

Methods

Inherited:

Foundry.Intent (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (action_name, action_target)

dup_action_name ()

dup_action_target ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

action-name

str

r/w/co

action-target

GLib.Variant

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.ActionIntent(**kwargs)
Bases:

Foundry.Intent

Abstract:

No

Structure:

Foundry.ActionIntentClass

Represents an intent to perform an action with optional parameters.

Foundry.ActionIntent provides functionality for representing actions that can be performed within the development environment. It stores an action name and optional target parameters as a GLib.Variant.

New in version 1.1.

classmethod new(action_name, action_target)
Parameters:
Returns:

a new [class`Foundry`.ActionIntent]

Return type:

Foundry.Intent

Creates a new [class`Foundry`.ActionIntent] for performing an action with optional parameters.

If action_target is floating, its floating reference is sunk.

New in version 1.1.

dup_action_name()
Returns:

a newly allocated copy of the action name

Return type:

str

Gets a copy of the action name.

New in version 1.1.

dup_action_target()
Returns:

a [type`GLib`.Variant] with the action target, or None if no target is set

Return type:

GLib.Variant or None

Gets a copy of the action target parameters.

New in version 1.1.

Property Details

Foundry.ActionIntent.props.action_name
Name:

action-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.ActionIntent.props.action_target
Name:

action-target

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY