Foundry.ActionMuxer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.ActionMuxer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Custom
Gio.ActionGroupintegration.Foundry.ActionMuxercoordinates multiple action groups and provides a unified interface for action handling. It supports action prefixing, disabling, and provides efficient action lookup and management for the development environment’s action system.- classmethod new()¶
- Return type:
- connect_actions(instance, actions)¶
- Parameters:
actions (
Foundry.Action) –
- get_action_group(prefix)¶
- Parameters:
prefix (
str) – the name of the inserted action group- Returns:
a
Gio.ActionGroupmatching prefix if found, otherwiseNone.- Return type:
Locates the
Gio.ActionGroupinserted as prefix.If no group was found matching group,
Noneis returned.
- get_enabled(action)¶
- Parameters:
action (
Foundry.Action) –- Return type:
- insert_action_group(prefix, action_group)¶
- Parameters:
prefix (
str) –action_group (
Gio.ActionGroup) –
- list_groups()¶
- Returns:
an array containing the names of groups within the muxer
- Return type:
[
str]
Gets a list of group names in the muxer.
- remove_all()¶
- set_enabled(action, enabled)¶
- Parameters:
action (
Foundry.Action) –enabled (
bool) –