/third_party/libinput/src/ |
D | evdev-mt-touchpad-buttons.c | 84 return t->point.y >= tp->buttons.bottom_area.top_edge; in is_inside_bottom_button_area() 92 t->point.x > tp->buttons.bottom_area.rightbutton_left_edge; in is_inside_bottom_right_area() 101 t->point.x > tp->buttons.bottom_area.middlebutton_left_edge; in is_inside_bottom_middle_area() 117 return t->point.y <= tp->buttons.top_area.bottom_edge; in is_inside_top_button_area() 125 t->point.x > tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_right_area() 133 t->point.x < tp->buttons.top_area.leftbutton_right_edge; in is_inside_top_left_area() 141 t->point.x >= tp->buttons.top_area.leftbutton_right_edge && in is_inside_top_middle_area() 142 t->point.x <= tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_middle_area() 598 if (tp->buttons.is_clickpad && e->code != BTN_LEFT) { in tp_process_button() 606 tp->buttons.state |= mask; in tp_process_button() [all …]
|
D | evdev-tablet-pad.c | 41 struct button_state *buttons) in pad_get_buttons_pressed() argument 47 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_pressed() 48 buttons->bits[i] = state->bits[i] & ~(prev_state->bits[i]); in pad_get_buttons_pressed() 53 struct button_state *buttons) in pad_get_buttons_released() argument 59 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_released() 60 buttons->bits[i] = prev_state->bits[i] & ~(state->bits[i]); in pad_get_buttons_released() 362 const struct button_state *buttons, in pad_notify_button_mask() argument 370 for (i = 0; i < sizeof(buttons->bits); i++) { in pad_notify_button_mask() 371 unsigned char buttons_slice = buttons->bits[i]; in pad_notify_button_mask() 419 struct button_state buttons; in pad_notify_buttons() local [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/src/ |
D | mixer.c | 20 } buttons[NUM_DRUMS]; variable 73 buttons[i].rect = buttonRect; in initializeButtons() 74 buttons[i].isPressed = 0; in initializeButtons() 75 buttons[i].upColor = upColor; in initializeButtons() 76 buttons[i].downColor = downColor; in initializeButtons() 133 if (x >= buttons[i].rect.x in handleMouseButtonDown() 134 && x < buttons[i].rect.x + buttons[i].rect.w in handleMouseButtonDown() 135 && y >= buttons[i].rect.y in handleMouseButtonDown() 136 && y < buttons[i].rect.y + buttons[i].rect.h) { in handleMouseButtonDown() 143 buttons[drumIndex].touchIndex = mouseIndex; in handleMouseButtonDown() [all …]
|
/third_party/flutter/flutter/packages/flutter_test/test/ |
D | controller_test.dart | 269 'WidgetTester.tap must respect buttons', 277 onPointerDown: (PointerDownEvent event) => logs.add('down ${event.buttons}'), 278 onPointerMove: (PointerMoveEvent event) => logs.add('move ${event.buttons}'), 279 onPointerUp: (PointerUpEvent event) => logs.add('up ${event.buttons}'), 285 await tester.tap(find.text('test'), buttons: kSecondaryMouseButton); 300 'WidgetTester.press must respect buttons', 308 onPointerDown: (PointerDownEvent event) => logs.add('down ${event.buttons}'), 309 onPointerMove: (PointerMoveEvent event) => logs.add('move ${event.buttons}'), 310 onPointerUp: (PointerUpEvent event) => logs.add('up ${event.buttons}'), 316 await tester.press(find.text('test'), buttons: kSecondaryMouseButton); [all …]
|
/third_party/libinput/doc/user/ |
D | t440-support.rst | 7 The Lenovo \*40 series emulates trackstick buttons on the top part of the 17 laptops had a separate set of physical buttons for the 19 series removed these buttons, relying on a software emulation of the top 24 .. figure:: top-software-buttons.svg 29 This page only covers the top software buttons, the bottom button behavior 30 is covered in :ref:`Clickpad software buttons <clickpad_softbuttons>`. 39 Size of the buttons 42 The size of the buttons matches the visual markings on this touchpad. 43 The width of the left and right buttons is approximately 42% of the 47 The line of the buttons is 5mm from the top edge of the touchpad, [all …]
|
D | touchpads.rst | 11 combination of number of physical buttons, multitouch support abilities and 17 Number of buttons 23 Physically separate buttons 26 Touchpads with physical buttons usually provide two buttons, left and right. 27 A few touchpads with three buttons exist, and Apple used to have touchpads 28 with a single physical buttons until ca 2008. Touchpads with only two 29 buttons require the software stack to emulate a middle button. libinput does 30 this when both buttons are pressed simultaneously. 33 This pointing stick has a set of physical buttons just above the touchpad. 34 While many users use those as substitute touchpad buttons, they logically [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/ |
D | converter.dart | 43 // Add `kPrimaryButton` to [buttons] when a pointer of certain devices is down. 48 int _synthesiseDownButtons(int buttons, PointerDeviceKind kind) { 51 return buttons; 55 return buttons | kPrimaryButton; 58 // buttons to be 0 when the pointer is down. 59 return buttons == 0 ? kPrimaryButton : buttons; 157 buttons: datum.buttons, 205 buttons: datum.buttons, 230 buttons: _synthesiseDownButtons(datum.buttons, kind), 259 buttons: _synthesiseDownButtons(datum.buttons, kind), [all …]
|
D | events.dart | 12 /// The bit of [PointerEvent.buttons] that corresponds to a cross-device 27 /// The bit of [PointerEvent.buttons] that corresponds to a cross-device 41 /// The bit of [PointerEvent.buttons] that corresponds to the primary mouse button. 52 /// The bit of [PointerEvent.buttons] that corresponds to the secondary mouse button. 63 /// The bit of [PointerEvent.buttons] that corresponds to when a stylus 72 /// The bit of [PointerEvent.buttons] that corresponds to the primary stylus button. 83 /// The bit of [PointerEvent.buttons] that corresponds to the middle mouse button. 85 /// The middle mouse button is typically between the left and right buttons on 90 /// The bit of [PointerEvent.buttons] that corresponds to the secondary stylus button. 96 /// The bit of [PointerEvent.buttons] that corresponds to the back mouse button. [all …]
|
/third_party/openh264/autotest/performanceTest/ios/ |
D | uiascript.js | 7 var buttons = alert.buttons(); 8 var buttonCount = buttons.length; 11 var acceptButton = buttons[buttonCount - 1];
|
/third_party/flutter/flutter/packages/flutter_test/lib/src/ |
D | test_pointer.dart | 29 int buttons = kPrimaryButton, 33 assert(buttons != null), 34 _buttons = buttons { 64 /// The kind of buttons to simulate on Down and Move events. Defaults to 66 int get buttons => _buttons; 88 int buttons, 91 if (buttons != null) 92 _buttons = buttons; 114 /// By default, the set of buttons in the last down or move event is used. 115 /// You can give a specific set of buttons by passing the `buttons` argument. [all …]
|
D | controller.dart | 255 Future<void> tap(Finder finder, {int pointer, int buttons = kPrimaryButton}) { 256 return tapAt(getCenter(finder), pointer: pointer, buttons: buttons); 260 Future<void> tapAt(Offset location, {int pointer, int buttons = kPrimaryButton}) { 262 final TestGesture gesture = await startGesture(location, pointer: pointer, buttons: buttons); 272 Future<TestGesture> press(Finder finder, {int pointer, int buttons = kPrimaryButton}) { 274 return startGesture(getCenter(finder), pointer: pointer, buttons: buttons); 284 Future<void> longPress(Finder finder, {int pointer, int buttons = kPrimaryButton}) { 285 return longPressAt(getCenter(finder), pointer: pointer, buttons: buttons); 290 Future<void> longPressAt(Offset location, {int pointer, int buttons = kPrimaryButton}) { 292 final TestGesture gesture = await startGesture(location, pointer: pointer, buttons: buttons); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/gestures/ |
D | gesture_binding_test.dart | 272 expect(events[0].buttons, equals(0)); 274 expect(events[1].buttons, equals(0)); 276 expect(events[2].buttons, equals(kPrimaryButton)); 278 expect(events[3].buttons, equals(kPrimaryButton)); 280 expect(events[4].buttons, equals(0)); 297 …ui.PointerData(change: ui.PointerChange.move, buttons: kSecondaryStylusButton, kind: kind, physica… 307 expect(events[0].buttons, equals(0)); 309 expect(events[1].buttons, equals(0)); 311 expect(events[2].buttons, equals(kPrimaryButton)); 313 expect(events[3].buttons, equals(kPrimaryButton | kSecondaryStylusButton)); [all …]
|
D | events_test.dart | 45 buttons: 7, 69 expect(event.buttons, hover.buttons); 96 expect(event.buttons, hover.buttons); 121 expect(event.buttons, kPrimaryButton); 126 expect(event.buttons, kPrimaryButton); 209 buttons: 4, 235 buttons: 4, 261 buttons: 4, 289 buttons: 4, 317 buttons: 4, [all …]
|
/third_party/flutter/flutter/dev/docs/assets/ |
D | snippets.css | 46 .snippet-buttons button { 55 .snippet-buttons:after { 61 .snippet-buttons button:focus { outline: none; } 63 .snippet-buttons button:hover { 67 .snippet-buttons :not([selected]) { 71 .snippet-buttons [selected] {
|
/third_party/glib/gio/ |
D | gnotification.c | 77 GPtrArray *buttons; member 124 g_ptr_array_free (notification->buttons, TRUE); in g_notification_finalize() 141 notification->buttons = g_ptr_array_new_full (2, button_free); in g_notification_init() 464 g_ptr_array_add (notification->buttons, button); in g_notification_add_button_with_target_value() 476 return notification->buttons->len; in g_notification_get_n_buttons() 503 button = g_ptr_array_index (notification->buttons, index); in g_notification_get_button() 529 for (i = 0; i < notification->buttons->len; i++) in g_notification_get_button_with_action() 533 button = g_ptr_array_index (notification->buttons, i); in g_notification_get_button_with_action() 771 if (notification->buttons->len > 0) in g_notification_serialize() 778 for (i = 0; i < notification->buttons->len; i++) in g_notification_serialize() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/uikit/ |
D | SDL_uikitmessagebox.m | 61 const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons; 78 if (buttons[i].flags & SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT) { 82 action = [UIAlertAction actionWithTitle:@(buttons[i].text) 112 *buttonid = messageboxdata->buttons[clickedindex].buttonid; 146 const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons; 155 [alert addButtonWithTitle:@(buttons[i].text)]; 166 *buttonid = messageboxdata->buttons[clickedindex].buttonid;
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/ |
D | SDL_haikujoystick.cc | 185 uint32 buttons; in SDL_SYS_JoystickUpdate() local 196 buttons = stick->ButtonValues(); in SDL_SYS_JoystickUpdate() 215 if ((buttons & 0x01) != joystick->buttons[i]) { in SDL_SYS_JoystickUpdate() 216 SDL_PrivateJoystickButton(joystick, i, (buttons & 0x01)); in SDL_SYS_JoystickUpdate() 218 buttons >>= 1; in SDL_SYS_JoystickUpdate()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/winrt/ |
D | SDL_winrtmessagebox.cpp | 78 …UICommand ^ button = ref new UICommand(WINRT_UTF8ToPlatformString(messageboxdata->buttons[i].text)… in WINRT_ShowMessageBox() 81 if (messageboxdata->buttons[i].flags & SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT) { in WINRT_ShowMessageBox() 84 if (messageboxdata->buttons[i].flags & SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT) { in WINRT_ShowMessageBox() 103 *buttonid = messageboxdata->buttons[clicked_index].buttonid; in WINRT_ShowMessageBox()
|
/third_party/gettext/gettext-tools/examples/hello-java-swing/ |
D | Hello.java | 38 JPanel buttons = new JPanel(); in main() local 39 buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); in main() 40 buttons.add(button); in main() 43 frame.getContentPane().add(buttons, BorderLayout.SOUTH); in main()
|
/third_party/gettext/gettext-tools/examples/hello-java-awt/ |
D | Hello.java | 41 Container buttons = new Container(); in main() local 42 buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); in main() 43 buttons.add(button); in main() 46 frame.add(buttons, BorderLayout.SOUTH); in main()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/haiku/ |
D | SDL_BWin.h | 302 int32 buttons; /* Used for mouse button events */ in DispatchMessage() local 317 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage() 318 _MouseButtonEvent(buttons); in DispatchMessage() 326 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage() 327 _MouseButtonEvent(buttons); in DispatchMessage() 489 void _MouseButtonEvent(int32 buttons) { in _MouseButtonEvent() argument 490 int32 buttonStateChange = buttons ^ _last_buttons; in _MouseButtonEvent() 499 _SendMouseButton(SDL_BUTTON_LEFT, buttons & in _MouseButtonEvent() 503 _SendMouseButton(SDL_BUTTON_RIGHT, buttons & in _MouseButtonEvent() 507 _SendMouseButton(SDL_BUTTON_MIDDLE, buttons & in _MouseButtonEvent() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/cocoa/ |
D | SDL_cocoamessagebox.m | 99 const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons; 102 … NSButton *button = [alert addButtonWithTitle:[NSString stringWithUTF8String:buttons[i].text]]; 103 if (buttons[i].flags & SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT) { 105 } else if (buttons[i].flags & SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT) { 122 *buttonid = buttons[clicked].buttonid;
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/psp/ |
D | SDL_sysjoystick.c | 194 enum PspCtrlButtons buttons; in SDL_SYS_JoystickUpdate() local 201 buttons = pad.Buttons; in SDL_SYS_JoystickUpdate() 217 changed = old_buttons ^ buttons; in SDL_SYS_JoystickUpdate() 218 old_buttons = buttons; in SDL_SYS_JoystickUpdate() 224 (buttons & button_map[i]) ? in SDL_SYS_JoystickUpdate()
|
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/ |
D | dialog.dart | 81 // buttons. 117 /// To display action buttons that look like standard iOS dialog buttons, 467 // If all content and buttons fit on screen: 471 // If all content and buttons do not fit on screen, and iOS is NOT in accessibility mode: 483 // If all content and buttons do not fit on screen, and iOS IS in accessibility mode: 642 // When in accessibility mode, an alert dialog will allow buttons to take 647 // for buttons to just over 1 button's height to make room for the content 1022 // ParentData applied to individual action buttons that report whether or not 1058 /// Default buttons have bold text. Similar to 1111 // buttons. This ratio information is used to automatically scale down action [all …]
|
/third_party/weston/shared/ |
D | frame.c | 106 struct wl_list buttons; member 127 wl_list_insert(frame->buttons.prev, &button->link); in frame_button_create_from_surface() 313 wl_list_for_each_safe(button, next, &frame->buttons, link) in frame_destroy() 327 frame_create(struct theme *t, int32_t width, int32_t height, uint32_t buttons, in frame_create() argument 344 wl_list_init(&frame->buttons); in frame_create() 376 if (buttons & FRAME_BUTTON_CLOSE) { in frame_create() 392 if (buttons & FRAME_BUTTON_MAXIMIZE) { in frame_create() 408 if (buttons & FRAME_BUTTON_MINIMIZE) { in frame_create() 455 wl_list_for_each(button, &frame->buttons, link) { in frame_set_icon() 501 if (frame->title || !wl_list_empty(&frame->buttons)) in frame_resize_inside() [all …]
|