SugarGestures.TouchController¶
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/c  | 
Maximum Number of touches  | 
||
r/w/c  | 
Minimum Number of touches  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class SugarGestures.TouchController(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
- get_center()¶
 - Returns:
 Trueif a gesture is in progress- center_x:
 Return location for the X axis of the bounding box center
- center_y:
 Return location for the Y axis of the bounding box center
- Return type:
 
If a gesture is ongoing, this function returns the center of the bounding box containing all ongoing touches.
- get_coords(sequence)¶
 - Parameters:
 sequence (
Gdk.EventSequence) – aGdk.EventSequence- Returns:
 Trueif sequence operates on self- x:
 Return location for the X coordinate of the touch
- y:
 Return location for the X coordinate of the touch
- Return type:
 
If sequence is operating on self, this function returns
Trueand fills in x and y with the latest coordinates for that sequence.
- get_num_touches()¶
 - Returns:
 The number of touches
- Return type:
 
Returns the number of touches currently operating on self
- get_sequences()¶
 - Returns:
 The list of sequences
- Return type:
 
Returns the touch sequences currently operating on self
Property Details¶
- SugarGestures.TouchController.props.max_touches¶
 - 
Maximum Number of touches