event_triggers_context_menu


Description:

[ CCode ( cname = "gimp_event_triggers_context_menu" ) ]
[ Version ( since = "3.0" ) ]
public bool event_triggers_context_menu (Event event, bool on_release)

Alternative of triggers_context_menu with the additional feature of allowing a menu triggering to happen on a button release event.

All the other rules on whether event should trigger a contextual menu are exactly the same. Only the swapping to release state as additional feature is different.

Parameters:

event

The Event to verify.

on_release

Whether a menu is triggered on a button release event instead of a press event.

Returns:

true if the event should trigger a context menu.


Namespace: GimpUi
Package: gimp-ui-3.0