Foundry.Intent¶
- Subclasses:
Foundry.ActionIntent,Foundry.DocumentationIntent,Foundry.OpenFileIntent,Foundry.SymbolIntent,Foundry.TerminalIntent,Foundry.WebIntent
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.Intent(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for representing intents.
Foundry.Intentprovides the core interface for representing user intents and actions within the development environment. It supports attribute storage and provides a unified interface for intent handling across different parts of the development environment.- dup_attribute_object(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the [class`GObject`.Object], or
Noneif not found or not an object- Return type:
Gets the attribute value as a [class`GObject`.Object]. The returned object is owned by the intent and should not be unref’d.
New in version 1.1.
- dup_attribute_string(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the string value, or
Noneif not found or not a string- Return type:
Gets the attribute value as a string. The returned string is owned by the intent and should not be modified or freed.
New in version 1.1.
- dup_attribute_strv(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the string value, or
Noneif not found or not a string- Return type:
[
str]
Gets the attribute value as a string. The returned string is owned by the intent and should not be modified or freed.
New in version 1.1.
- get_attribute_boolean(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the boolean value, or
Falseif not found or not a boolean- Return type:
Gets the attribute value as a boolean.
New in version 1.1.
- get_attribute_type(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the
GObject.GTypeof the attribute, orGObject.TYPE_INVALIDif not found- Return type:
Gets the
GObject.GTypeof the attribute value.New in version 1.1.
- get_attribute_value(attribute)¶
- Parameters:
attribute (
str) – the attribute name- Returns:
the
GObject.Value, orNoneif not found- Return type:
Gets the attribute value. The returned value is owned by the intent and should not be modified or freed.
New in version 1.1.
- has_attribute(attribute)¶
- Parameters:
attribute (
str) – the attribute name to check- Returns:
- Return type:
Checks if the intent has an attribute with the given name.
New in version 1.1.
- set_attribute_value(attribute, value)¶
- Parameters:
attribute (
str) – the attribute namevalue (
GObject.Value) – theGObject.Valueto set
Sets an attribute value for the intent. The value is copied.
New in version 1.1.