Clutter.ClickAction
Description: Reference for Clutter.ClickAction

### Class

# ClutterClickAction

#### Description

    class Clutter.ClickAction : Clutter.Action {
      parent_instance: ClutterAction
    }

No description available.

#### Ancestors

- ClutterAction
- ClutterActorMeta
- GInitiallyUnowned
- GObject

#### Constructors

###### clutter_click_action_new

Creates a new `ClutterClickAction` instance.

Available since: 1.4

#### Instance methods

###### clutter_click_action_get_button

Retrieves the button that was pressed.

Available since: 1.4

###### clutter_click_action_get_coords

Retrieves the screen coordinates of the button press.

Available since: 1.8

###### clutter_click_action_get_state

Retrieves the modifier state of the click action.

Available since: 1.6

###### clutter_click_action_release

Emulates a release of the pointer button, which ungrabs the pointer and unsets the `ClutterClickAction:pressed` state.

Available since: 1.4

##### Methods inherited from ClutterAction (1)

###### clutter_action_get_phase

No description available.

##### Methods inherited from ClutterActorMeta (5)

###### clutter_actor_meta_get_actor

Retrieves a pointer to the `ClutterActor` that owns `meta`.

Available since: 1.4

###### clutter_actor_meta_get_enabled

Retrieves whether `meta` is enabled.

Available since: 1.4

###### clutter_actor_meta_get_name

Retrieves the name set using `clutter_actor_meta_set_name()`

Available since: 1.4

###### clutter_actor_meta_set_enabled

Sets whether `meta` should be enabled or not.

Available since: 1.4

###### clutter_actor_meta_set_name

Sets the name of `meta`.

Available since: 1.4

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Clutter.ClickAction:held

Whether the clickable actor has the pointer grabbed.

Available since: 1.4

###### Clutter.ClickAction:long-press-duration

The minimum duration of a press for it to be recognized as a long press gesture, in milliseconds.

Available since: 1.8

###### Clutter.ClickAction:long-press-threshold

The maximum allowed distance that can be covered (on both axes) before a long press gesture is cancelled, in pixels.

Available since: 1.8

###### Clutter.ClickAction:pressed

Whether the clickable actor should be in “pressed” state.

Available since: 1.4

##### Properties inherited from ClutterActorMeta (3)

###### Clutter.ActorMeta:actor

The `ClutterActor` attached to the `ClutterActorMeta` instance.

Available since: 1.4

###### Clutter.ActorMeta:enabled

Whether or not the `ClutterActorMeta` is enabled.

Available since: 1.4

###### Clutter.ActorMeta:name

The unique name to access the `ClutterActorMeta`.

Available since: 1.4

#### Signals

###### Clutter.ClickAction::clicked

The ::clicked signal is emitted when the `ClutterActor` to which a `ClutterClickAction` has been applied should respond to a pointer button press and release events.

Available since: 1.4

###### Clutter.ClickAction::long-press

The ::long-press signal is emitted during the long press gesture handling.

Available since: 1.8

##### Signals inherited from GObject (1)

###### GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct ClutterClickActionClass {
      void (* clicked) (
        ClutterClickAction* action,
        ClutterActor* actor
      );
      gboolean (* long_press) (
        ClutterClickAction* action,
        ClutterActor* actor,
        ClutterLongPressState state
      );
      void (* _clutter_click_action1) (
    void
      );
      void (* _clutter_click_action2) (
    void
      );
      void (* _clutter_click_action3) (
    void
      );
      void (* _clutter_click_action4) (
    void
      );
      void (* _clutter_click_action5) (
    void
      );
      void (* _clutter_click_action6) (
    void
      );
      void (* _clutter_click_action7) (
    void
      );

    }

###### Class members

`clicked` |
    void (* clicked) (
        ClutterClickAction* action,
        ClutterActor* actor
      )
| No description available.
`long_press` |
    gboolean (* long_press) (
        ClutterClickAction* action,
        ClutterActor* actor,
        ClutterLongPressState state
      )
| No description available.
`_clutter_click_action1` |
    void (* _clutter_click_action1) (
    void
      )
| No description available.
`_clutter_click_action2` |
    void (* _clutter_click_action2) (
    void
      )
| No description available.
`_clutter_click_action3` |
    void (* _clutter_click_action3) (
    void
      )
| No description available.
`_clutter_click_action4` |
    void (* _clutter_click_action4) (
    void
      )
| No description available.
`_clutter_click_action5` |
    void (* _clutter_click_action5) (
    void
      )
| No description available.
`_clutter_click_action6` |
    void (* _clutter_click_action6) (
    void
      )
| No description available.
`_clutter_click_action7` |
    void (* _clutter_click_action7) (
    void
      )
| No description available.

#### Virtual methods

###### Clutter.ClickActionClass.clicked

No description available.

###### Clutter.ClickActionClass.long_press

No description available.