Foundry.ActionMuxer

g Foundry.ActionMuxer Foundry.ActionMuxer GObject.GInterface GObject.GInterface Gio.ActionGroup Gio.ActionGroup GObject.GInterface->Gio.ActionGroup GObject.Object GObject.Object GObject.Object->Foundry.ActionMuxer Gio.ActionGroup->Foundry.ActionMuxer

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.ActionGroup (14)

Structs:

GObject.ObjectClass (5)

class

new ()

connect_actions (instance, actions)

get_action_group (prefix)

get_enabled (action)

insert_action_group (prefix, action_group)

list_groups ()

remove_action_group (prefix)

remove_all ()

set_enabled (action, enabled)

Virtual Methods

Inherited:

GObject.Object (7), Gio.ActionGroup (14)

Properties

None

Signals

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Fields

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Class Details

class Foundry.ActionMuxer(**kwargs)
Bases:

GObject.Object, Gio.ActionGroup

Abstract:

No

Structure:

Foundry.ActionMuxerClass

Custom Gio.ActionGroup integration.

Foundry.ActionMuxer coordinates 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:

Foundry.ActionMuxer

connect_actions(instance, actions)
Parameters:
get_action_group(prefix)
Parameters:

prefix (str) – the name of the inserted action group

Returns:

a Gio.ActionGroup matching prefix if found, otherwise None.

Return type:

Gio.ActionGroup or None

Locates the Gio.ActionGroup inserted as prefix.

If no group was found matching group, None is returned.

get_enabled(action)
Parameters:

action (Foundry.Action) –

Return type:

bool

insert_action_group(prefix, action_group)
Parameters:
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_action_group(prefix)
Parameters:

prefix (str) –

remove_all()
set_enabled(action, enabled)
Parameters: