Пример #1
0
 static void log(bool isCaught, Buttons buttons, int dx, int dy) {
   IOLOG_DEBUG_POINTING("RelativePointerEventCallBack [%7s]: buttons: 0x%08x, dx: %3d, dy: %3d\n",
                        isCaught ? "caught" : "sending",
                        buttons.get(), dx, dy);
 }
Пример #2
0
 Buttons operator|(Buttons other) const { return value_ | other.get(); }
Пример #3
0
 bool isOn(Buttons buttons) const {
   return (value_ & buttons.get()) == buttons.get();
 }
Пример #4
0
 bool operator==(Buttons other) const { return value_ == other.get(); }