Structured gesture recognizers