Foundry.ActionIntent¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.ActionIntent(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents an intent to perform an action with optional parameters.
Foundry.ActionIntentprovides functionality for representing actions that can be performed within the development environment. It stores an action name and optional target parameters as aGLib.Variant.New in version 1.1.
- classmethod new(action_name, action_target)¶
- Parameters:
action_name (
str) – the name of the action to performaction_target (
GLib.VariantorNone) – optional parameters for the action as aGLib.Variant
- Returns:
a new [class`Foundry`.ActionIntent]
- Return type:
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:
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
Noneif no target is set- Return type:
GLib.VariantorNone
Gets a copy of the action target parameters.
New in version 1.1.
Property Details¶
- Foundry.ActionIntent.props.action_name¶
- Name:
action-name- Type:
- Default Value:
- Flags:
- Foundry.ActionIntent.props.action_target¶
- Name:
action-target- Type:
- Default Value:
- Flags: