ClickAction
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_click_action_get_type ()" ) ]
[
Version ( since =
"1.4" ) ]
public class ClickAction :
Action
The ClickAction structure contains only private data and should be accessed using the provided API
Content:
Properties:
- public bool held { get; }
Whether the clickable actor has the pointer grabbed
- public int long_press_duration { get; set; }
The minimum duration of a press for it to be recognized as a long
press gesture, in milliseconds.
- public int long_press_threshold { get; set; }
The maximum allowed distance that can be covered (on both axes) before
a long press gesture is cancelled, in pixels.
- public bool pressed { get; }
Whether the clickable actor should be in "pressed" state
Creation methods:
Methods:
- public uint get_button ()
Retrieves the button that was pressed.
- public void get_coords (out float press_x, out float press_y)
Retrieves the screen coordinates of the button press.
- public ModifierType get_state ()
Retrieves the modifier state of the click action.
- public void release ()
Emulates a release of the pointer button, which ungrabs the pointer
and unsets the pressed state.
Signals:
Inherited Members:
All known members inherited from class Clutter.ActorMeta
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref