code: def is_gesture(self):
  		
  
  		if self in {type(self).GESTURE_SWIPE_BEGIN, type(self).GESTURE_SWIPE_END,
  			type(self).GESTURE_SWIPE_UPDATE, type(self).GESTURE_PINCH_BEGIN,
  			type(self).GESTURE_PINCH_UPDATE, type(self).GESTURE_PINCH_END}:
  			return True
  		else:
  			return False
docs: Macro to check if this event is
  		a :class:`~libinput.event.GestureEvent`.