src/swipl-devel/packages/xpce/man/refmanual/md/handler_group.md

class handler_group {#class-handler_group}

A handler_group object is a collection of recogniser objects (hence, a better name would be recogniser_group; this might change). It provides a means to combine a set of recognisers, each dealing with some detailed UI behaviour into one object dealing with many UI behaviours. Handler groups may be nested. This process may be repeated to get more complex event-recognisers.

It is common practice to combine recognisers. Suppose the user interface contains a (large) number of icons that should be movable and double-click should open the icon.. In this case a recogniser would be declared as:

:- pce_global(@icon_recogniser, new(handler_group(
        new(move_gesture),
        new(click_gesture(left, '', double,
                          message(@receiver, open)))))).

Bugs: Should be called recogniser_group

@see object->recogniser

Send methods {#class-handler_group-send}

Get methods {#class-handler_group-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.