Rekative snap - add comments

This commit is contained in:
nick_m 2015-05-24 01:10:06 +10:00
parent 119c644dc0
commit 9a55bcb04f
2 changed files with 10 additions and 0 deletions

View File

@ -242,6 +242,9 @@ ArdourKeyboard::set_state (const XMLNode& node, int version)
return Keyboard::set_state (node, version);
}
/* Snap and snap delta modifiers may contain each other, so we use the
* following two methods to sort that out:
*/
bool
ArdourKeyboard::indicates_snap (guint state)
{

View File

@ -41,7 +41,14 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard
ARDOUR_UI& ui;
/** @param state The button state from a GdkEvent.
* @return true if the modifier state indicates snap modifier
*/
static bool indicates_snap (guint state);
/** @param state The button state from a GdkEvent.
* @return true if the modifier state indicates snap delta
*/
static bool indicates_snap_delta (guint state);
static void set_constraint_modifier (guint);