Cally.Actor

g Atk.Action Atk.Action Cally.Actor Cally.Actor Atk.Action->Cally.Actor Atk.Component Atk.Component Atk.Component->Cally.Actor Atk.GObjectAccessible Atk.GObjectAccessible Atk.GObjectAccessible->Cally.Actor Atk.Object Atk.Object Atk.Object->Atk.GObjectAccessible GObject.GInterface GObject.GInterface GObject.GInterface->Atk.Action GObject.GInterface->Atk.Component GObject.Object GObject.Object GObject.Object->Atk.Object

Subclasses:

Cally.Clone, Cally.Group, Cally.Rectangle, Cally.Text, Cally.Texture

Methods

Inherited:

Atk.GObjectAccessible (2), Atk.Object (25), GObject.Object (37), Atk.Action (7), Atk.Component (15)

Structs:

GObject.ObjectClass (5)

class

new (actor)

add_action (action_name, action_description, action_keybinding, callback, *user_data)

remove_action (action_id)

remove_action_by_name (action_name)

Virtual Methods

Inherited:

Atk.Object (24), GObject.Object (7), Atk.Action (7), Atk.Component (16)

Properties

Inherited:

Atk.Object (15)

Signals

Inherited:

Atk.Object (8), GObject.Object (1), Atk.Component (1)

Fields

Inherited:

Atk.Object (8), GObject.Object (1), Atk.Component (1)

Name

Type

Access

Description

parent

Atk.GObjectAccessible

r

Class Details

class Cally.Actor(**kwargs)
Bases:

Atk.GObjectAccessible, Atk.Action, Atk.Component

Abstract:

No

Structure:

Cally.ActorClass

The Cally.Actor structure contains only private data and should be accessed using the provided API

New in version 1.4.

classmethod new(actor)
Parameters:

actor (Clutter.Actor) – a Clutter.Actor

Returns:

the newly created Atk.Object

Return type:

Atk.Object

Creates a new Cally.Actor for the given actor

New in version 1.4.

add_action(action_name, action_description, action_keybinding, callback, *user_data)
Parameters:
  • action_name (str) – the action name

  • action_description (str) – the action description

  • action_keybinding (str) – the action keybinding

  • callback (Cally.ActionCallback) – the callback of the action

  • user_data (object or None) – data to be passed to callback

Returns:

added action id, or -1 if failure

Return type:

int

Adds a new action to be accessed with the Atk.Action interface.

New in version 1.6.

remove_action(action_id)
Parameters:

action_id (int) – the action id

Returns:

True if the operation was succesful, False otherwise

Return type:

bool

Removes a action, using the action_id returned by Cally.Actor.add_action()

New in version 1.4.

remove_action_by_name(action_name)
Parameters:

action_name (str) – the name of the action to remove

Returns:

True if the operation was succesful, False otherwise

Return type:

bool

Removes an action, using the action_name used when the action was added with Cally.Actor.add_action()

New in version 1.4.