Class

PhocGestureDrag

Description [src]

class Phoc.GestureDrag : Phoc.GestureSingle
{
  /* No available fields */
}

A drag gesture.

Constructors

phoc_gesture_drag_new
No description available.

Instance methods

Methods inherited from PhocGestureSingle (1)
phoc_gesture_single_get_current_sequence

Returns the event sequence currently interacting with self.

Methods inherited from PhocGesture (15)
phoc_gesture_get_last_event

Returns the last event that was processed for sequence.

phoc_gesture_get_last_update_time
No description available.

phoc_gesture_get_last_updated_sequence

Returns the PhocEventSequence that was last updated on self.

phoc_gesture_get_point

If sequence is currently being interpreted by self, returns TRUE and fills in x and y with the last coordinates stored for that event sequence.

phoc_gesture_get_sequence_state

Returns the sequence state, as seen by self.

phoc_gesture_get_sequences

Returns the list of PhocEventSequences currently being interpreted by PhocGesture.

phoc_gesture_group
No description available.

phoc_gesture_handle_event

Handle the given event.

phoc_gesture_handles_sequence

Returns TRUE if self is currently handling events corresponding to sequence.

unstable since: 3.14

phoc_gesture_is_active

Returns TRUE if the gesture is currently active. A gesture is active meanwhile there are touch sequences interacting with it.

unstable since: 3.14

phoc_gesture_is_recognized

Returns TRUE if the gesture is currently recognized. A gesture is recognized if there are as many interacting touch sequences as required by self, and PhocGesture::check returned TRUE for the sequences being currently interpreted.

phoc_gesture_reset

Resets the gesture to a clean state.

phoc_gesture_set_sequence_state

Sets the state of sequence in self. Sequences start in state #PHOC_EVENT_SEQUENCE_NONE, and whenever they change state, they can never go back to that state. Likewise, sequences in state #PHOC_EVENT_SEQUENCE_DENIED cannot turn back to a not denied state. With these rules, the lifetime of an event sequence is constrained to the next four:.

phoc_gesture_set_state
No description available.

phoc_gesture_ungroup

Separates self into an isolated group.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Properties inherited from PhocGestureSingle (1)
Phoc.GestureSingle:button

Mouse button number to listen to as input-event-code.

Properties inherited from PhocGesture (1)
Phoc.Gesture:n-points

The number of touch points that trigger recognition on this gesture.

Signals

Phoc.GestureDrag::drag-begin

This signal is emitted whenever dragging starts.

Phoc.GestureDrag::drag-end

This signal is emitted whenever the dragging is finished.

Phoc.GestureDrag::drag-update

This signal is emitted whenever the dragging point moves.

Signals inherited from PhocGesture (5)
PhocGesture::begin

Emitted when the gesture is recognized.

PhocGesture::cancel

Emitted whenever a sequence is cancelled.

PhocGesture::end

Emitted when gesture stopped recognizing the event sequences as something to be handled.

PhocGesture::sequence-state-changed

This signal is emitted whenever a sequence state changes. See phoc_gesture_set_sequence_state() to know more about the expectable sequence lifetimes.

PhocGesture::update

Emitted whenever an event is handled while the gesture is recognized.

Signals inherited from GObject (1)
GObject::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 PhocGestureDragClass {
  PhocGestureSingleClass parent_class;
  void (* drag_begin) (
    PhocGestureDrag* self,
    double x,
    double y
  );
  void (* drag_update) (
    PhocGestureDrag* self,
    double x,
    double y
  );
  void (* drag_end) (
    PhocGestureDrag* self,
    double x,
    double y
  );
  
}

No description available.

Class members
parent_class: PhocGestureSingleClass

The parent class.

drag_begin: void (* drag_begin) ( PhocGestureDrag* self, double x, double y )

No description available.

drag_update: void (* drag_update) ( PhocGestureDrag* self, double x, double y )

No description available.

drag_end: void (* drag_end) ( PhocGestureDrag* self, double x, double y )

No description available.

Virtual methods

Phoc.GestureDragClass.drag_begin
No description available.

Phoc.GestureDragClass.drag_end
No description available.

Phoc.GestureDragClass.drag_update
No description available.