Class: Clutter::ClickAction
- Defined in:
- (unknown)
Overview
The Clutter::ClickActionClass structure contains only private data
Instance Method Summary collapse
-
#button ⇒ Integer
Retrieves the button that was pressed.
-
#get_coords(press_x, press_y) ⇒ nil
Retrieves the screen coordinates of the button press.
-
#held=(held) ⇒ Boolean
Whether the clickable actor has the pointer grabbed.
-
#held? ⇒ Boolean
Whether the clickable actor has the pointer grabbed.
-
#initialize ⇒ Clutter::Action
constructor
Creates a new Clutter::ClickAction instance.
-
#long_press_duration ⇒ Integer
The minimum duration of a press for it to be recognized as a long press gesture, in milliseconds.
-
#long_press_duration=(long_press_duration) ⇒ Integer
The minimum duration of a press for it to be recognized as a long press gesture, in milliseconds.
-
#long_press_threshold ⇒ Integer
The maximum allowed distance that can be covered (on both axes) before a long press gesture is cancelled, in pixels.
-
#long_press_threshold=(long_press_threshold) ⇒ Integer
The maximum allowed distance that can be covered (on both axes) before a long press gesture is cancelled, in pixels.
-
#pressed=(pressed) ⇒ Boolean
Whether the clickable actor should be in "pressed" state.
-
#pressed? ⇒ Boolean
Whether the clickable actor should be in "pressed" state.
-
#release ⇒ nil
Emulates a release of the pointer button, which ungrabs the pointer and unsets the Clutter::ClickAction:pressed state.
-
#state ⇒ Clutter::ModifierType
Retrieves the modifier state of the click action.
Methods inherited from ActorMeta
#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=
Constructor Details
#initialize ⇒ Clutter::Action
Creates a new Clutter::ClickAction instance
Instance Method Details
#button ⇒ Integer
Retrieves the button that was pressed.
#get_coords(press_x, press_y) ⇒ nil
Retrieves the screen coordinates of the button press.
#held=(held) ⇒ Boolean
Whether the clickable actor has the pointer grabbed
#held? ⇒ Boolean
Whether the clickable actor has the pointer grabbed
#long_press_duration ⇒ Integer
The minimum duration of a press for it to be recognized as a long press gesture, in milliseconds.
A value of -1 will make the Clutter::ClickAction use the value of the Clutter::Settings:long-press-duration property.
#long_press_duration=(long_press_duration) ⇒ Integer
The minimum duration of a press for it to be recognized as a long press gesture, in milliseconds.
A value of -1 will make the Clutter::ClickAction use the value of the Clutter::Settings:long-press-duration property.
#long_press_threshold ⇒ Integer
The maximum allowed distance that can be covered (on both axes) before a long press gesture is cancelled, in pixels.
A value of -1 will make the Clutter::ClickAction use the value of the Clutter::Settings:dnd-drag-threshold property.
#long_press_threshold=(long_press_threshold) ⇒ Integer
The maximum allowed distance that can be covered (on both axes) before a long press gesture is cancelled, in pixels.
A value of -1 will make the Clutter::ClickAction use the value of the Clutter::Settings:dnd-drag-threshold property.
#pressed=(pressed) ⇒ Boolean
Whether the clickable actor should be in "pressed" state
#pressed? ⇒ Boolean
Whether the clickable actor should be in "pressed" state
#release ⇒ nil
Emulates a release of the pointer button, which ungrabs the pointer and unsets the Clutter::ClickAction:pressed state.
This function will also cancel the long press gesture if one was initiated.
This function is useful to break a grab, for instance after a certain amount of time has passed.
#state ⇒ Clutter::ModifierType
Retrieves the modifier state of the click action.