/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_tooltip.py | 43 button = Button(top, text='ToolTip test button') 44 button.pack() 45 testobj.addCleanup(button.destroy) 47 return top, button 52 self.top, self.button = _make_top_and_button(self) 59 button = Button(top, text='ToolTip test button') 60 button.pack() 61 self.addCleanup(button [all...] |
/third_party/libinput/test/ |
H A D | test-touchpad-tap.c | 68 unsigned int button = 0, in START_TEST() local 81 button = BTN_LEFT; in START_TEST() 84 button = BTN_RIGHT; in START_TEST() 87 button = BTN_MIDDLE; in START_TEST() 109 different number of fingers -> two button event pairs */ in START_TEST() 165 button, in START_TEST() 172 button, in START_TEST() 210 unsigned int button = 0; in START_TEST() local 221 button = BTN_LEFT; in START_TEST() 224 button in START_TEST() 300 unsigned int button = 0; START_TEST() local 409 unsigned int button = 0; START_TEST() local 526 unsigned int button = 0; START_TEST() local 627 unsigned int button = 0; START_TEST() local 717 unsigned int button = 0; START_TEST() local 828 unsigned int button = 0; START_TEST() local 924 unsigned int button = 0; START_TEST() local 1039 unsigned int button = 0; START_TEST() local 1161 unsigned int button = 0; START_TEST() local 1243 unsigned int button = 0; START_TEST() local 1325 unsigned int button = 0; START_TEST() local 1431 unsigned int button = 0; START_TEST() local 1516 unsigned int button = 0; START_TEST() local 1595 unsigned int button = 0; START_TEST() local 1673 unsigned int button = 0; START_TEST() local 1753 unsigned int button = 0; START_TEST() local 1838 unsigned int button = 0; START_TEST() local 1937 unsigned int button = 0; START_TEST() local 2023 unsigned int button = 0; START_TEST() local 2114 unsigned int button = 0; START_TEST() local 2210 unsigned int button = 0; START_TEST() local 2265 unsigned int button = 0; START_TEST() local 2639 unsigned int button = 0; START_TEST() local 2715 unsigned int button = 0; START_TEST() local 2797 unsigned int button = 0; START_TEST() local 3070 unsigned int button = 0; START_TEST() local 3121 unsigned int button = 0; START_TEST() local 3172 unsigned int button = 0; START_TEST() local 3884 unsigned int button = 0; START_TEST() local 3959 unsigned int button = 0; START_TEST() local 4039 unsigned int button = 0; START_TEST() local 4317 unsigned int button = 0; START_TEST() local 4399 unsigned int button = 0; START_TEST() local 4482 unsigned int button = 0, START_TEST() local 4612 unsigned int button = 0; START_TEST() local 4697 unsigned int button = 0; START_TEST() local 5012 unsigned int button = 0; START_TEST() local 5093 unsigned int button = 0; START_TEST() local 5179 unsigned int button = 0; START_TEST() local 5264 unsigned int button = 0; START_TEST() local 5380 unsigned int button = 0; START_TEST() local [all...] |
H A D | test-pointer.c | 367 test_button_event(struct litest_device *dev, unsigned int button, int state) in test_button_event() argument 371 litest_button_click_debounced(dev, li, button, state); in test_button_event() 374 litest_assert_button_event(li, button, in test_button_event() 400 /* Skip middle button test on trackpoints (used for scrolling) */ in START_TEST() 430 int button; in START_TEST() local 435 button = buttons[i / 2].code; in START_TEST() 437 events[i++] = button; in START_TEST() 475 button = libinput_event_pointer_get_button(pevent); in START_TEST() 479 if (buttons[i].code == button) { in START_TEST() 1292 /* Change while button i in START_TEST() 1437 uint32_t methods, button; START_TEST() local 1578 litest_enable_scroll_button_lock(struct litest_device *dev, unsigned int button) litest_enable_scroll_button_lock() argument 2096 uint32_t button; START_TEST() local 2126 uint32_t button; START_TEST() local 2592 unsigned int button; START_TEST() local 2675 unsigned int button; START_TEST() local 2740 unsigned int button; START_TEST() local 3149 unsigned int button = _i; /* ranged test */ START_TEST() local 3196 unsigned int button = _i; /* ranged test */ START_TEST() local 3329 unsigned int button = _i; /* ranged test */ START_TEST() local [all...] |
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-buttons.c | 43 * The state machine only affects the soft button area code. 133 libinput_timer_set(&t->button.timer, in tp_button_set_enter_timer() 142 libinput_timer_set(&t->button.timer, in tp_button_set_leave_timer() 157 libinput_timer_cancel(&t->button.timer); in tp_button_set_state() 159 t->button.state = new_state; in tp_button_set_state() 161 switch (t->button.state) { in tp_button_set_state() 163 t->button.current = 0; in tp_button_set_state() 166 t->button.current = BUTTON_EVENT_IN_AREA; in tp_button_set_state() 169 t->button.current = event; in tp_button_set_state() 174 t->button in tp_button_set_state() 1026 uint32_t current, old, button; tp_post_physical_buttons() local 1116 uint32_t button; tp_clickfinger_set_button() local 1165 tp_notify_clickpadbutton(struct tp_dispatch *tp, uint64_t time, uint32_t button, uint32_t is_topbutton, enum libinput_button_state state) tp_notify_clickpadbutton() argument 1220 uint32_t current, old, button, is_top; tp_post_clickpadbutton_buttons() local [all...] |
H A D | evdev-tablet-pad-leds.c | 59 struct pad_mode_toggle_button *button; in pad_mode_toggle_button_new() local 61 button = zalloc(sizeof *button); in pad_mode_toggle_button_new() 62 button->button_index = button_index; in pad_mode_toggle_button_new() 64 return button; in pad_mode_toggle_button_new() 69 pad_mode_toggle_button_destroy(struct pad_mode_toggle_button* button) in pad_mode_toggle_button_destroy() argument 71 list_remove(&button->link); in pad_mode_toggle_button_destroy() 72 free(button); in pad_mode_toggle_button_destroy() 158 struct pad_mode_toggle_button *button; in pad_led_group_destroy() local 161 list_for_each_safe(button, in pad_led_group_destroy() [all...] |
H A D | evdev-tablet-pad.c | 66 uint32_t button) in pad_button_is_down() 68 return bit_is_set(pad->button_state.bits, button); in pad_button_is_down() 86 uint32_t button, in pad_button_set_down() 92 set_bit(state->bits, button); in pad_button_set_down() 95 clear_bit(state->bits, button); in pad_button_set_down() 135 button, the wheel release won't trigger the ABS_MISC 0 in pad_process_absolute() 333 uint32_t button = e->code; in pad_process_key() local 340 pad_button_set_down(pad, button, is_press); in pad_process_key() 345 unsigned int button) in pad_button_get_mode_group() 350 if (libinput_tablet_pad_mode_group_has_button(group, button)) in pad_button_get_mode_group() 65 pad_button_is_down(const struct pad_dispatch *pad, uint32_t button) pad_button_is_down() argument 85 pad_button_set_down(struct pad_dispatch *pad, uint32_t button, bool is_down) pad_button_set_down() argument 344 pad_button_get_mode_group(struct pad_dispatch *pad, unsigned int button) pad_button_get_mode_group() argument 391 int32_t button = map_value(map); pad_notify_button_mask() local [all...] |
/third_party/eudev/src/udev/ |
H A D | udev-builtin-input_id.c | 149 int button, axis; in test_pointers() local 185 for (button = BTN_MOUSE; button < BTN_JOYSTICK && !has_mouse_button; button++) in test_pointers() 186 has_mouse_button = test_bit(button, bitmask_key); in test_pointers() 205 for (button = BTN_JOYSTICK; button < BTN_DIGI && !has_joystick_axes_or_buttons; button++) in test_pointers() 206 has_joystick_axes_or_buttons = test_bit(button, bitmask_key); in test_pointers() 207 for (button in test_pointers() [all...] |
/third_party/toybox/kconfig/lxdialog/ |
H A D | yesno.c | 44 int i, x, y, key = 0, button = 0; in dialog_yesno() local 93 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno() 95 print_buttons(dialog, height, width, button); in dialog_yesno() 101 return button; in dialog_yesno()
|
H A D | inputbox.c | 48 int input_x = 0, scroll = 0, key = 0, button = -1; in dialog_inputbox() local 118 if (button == -1) { /* Input box selected */ in dialog_inputbox() 181 switch (button) { in dialog_inputbox() 183 button = 1; /* Indicates "Cancel" button is selected */ in dialog_inputbox() 187 button = -1; /* Indicates input box is selected */ in dialog_inputbox() 193 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox() 201 switch (button) { in dialog_inputbox() 203 button in dialog_inputbox() [all...] |
H A D | checklist.c | 115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local 283 button = 1; in dialog_checklist() 295 return button; in dialog_checklist() 299 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist() 300 ? 1 : (button > 1 ? 0 : button); in dialog_checklist() 302 print_buttons(dialog, height, width, button); in dialog_checklist()
|
/third_party/jerryscript/targets/mbedos5/js/ |
H A D | flash_leds.js | 58 var button; variable 62 button = InterruptIn(BUTTON2); 64 button = InterruptIn(SW2); 66 button = InterruptIn(USER_BUTTON); 68 button = InterruptIn(BTN0); 70 print("no button specified"); 72 button.fall(function() {
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/ |
H A D | RbnfDemo.java | 262 Button button = new Button("+100"); in createDemoFrame() 263 button.addActionListener( new ActionListener() { in createDemoFrame() 269 panel2.add(button); in createDemoFrame() 270 button = new Button("+10"); in createDemoFrame() 271 button.addActionListener( new ActionListener() { in createDemoFrame() 277 panel2.add(button); in createDemoFrame() 278 button = new Button("+1"); in createDemoFrame() 279 button.addActionListener( new ActionListener() { in createDemoFrame() 285 panel2.add(button); in createDemoFrame() 286 button in createDemoFrame() [all...] |
/third_party/skia/third_party/externals/angle2/util/x11/ |
H A D | X11Window.cpp | 505 MouseButton button = MOUSEBUTTON_UNKNOWN; in processEvent() local 508 // The mouse wheel updates are sent via button events. in processEvent() 509 switch (xEvent.xbutton.button) in processEvent() 523 button = MOUSEBUTTON_LEFT; in processEvent() 526 button = MOUSEBUTTON_MIDDLE; in processEvent() 529 button = MOUSEBUTTON_RIGHT; in processEvent() 532 button = MOUSEBUTTON_BUTTON4; in processEvent() 535 button = MOUSEBUTTON_BUTTON5; in processEvent() 549 if (button != MOUSEBUTTON_UNKNOWN) in processEvent() 552 event.MouseButton.Button = button; in processEvent() 563 MouseButton button = MOUSEBUTTON_UNKNOWN; processEvent() local [all...] |
/third_party/skia/third_party/externals/imgui/backends/ |
H A D | imgui_impl_glut.cpp | 184 int button = -1; in ImGui_ImplGLUT_MouseFunc() local 185 if (glut_button == GLUT_LEFT_BUTTON) button = 0; in ImGui_ImplGLUT_MouseFunc() 186 if (glut_button == GLUT_RIGHT_BUTTON) button = 1; in ImGui_ImplGLUT_MouseFunc() 187 if (glut_button == GLUT_MIDDLE_BUTTON) button = 2; in ImGui_ImplGLUT_MouseFunc() 188 if (button != -1 && state == GLUT_DOWN) in ImGui_ImplGLUT_MouseFunc() 189 io.MouseDown[button] = true; in ImGui_ImplGLUT_MouseFunc() 190 if (button != -1 && state == GLUT_UP) in ImGui_ImplGLUT_MouseFunc() 191 io.MouseDown[button] = false; in ImGui_ImplGLUT_MouseFunc() 195 void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y) in ImGui_ImplGLUT_MouseWheelFunc() argument 203 (void)button; // Unuse in ImGui_ImplGLUT_MouseWheelFunc() [all...] |
H A D | imgui_impl_win32.cpp | 389 int button = 0; in ImGui_ImplWin32_WndProcHandler() local 390 if (msg == WM_LBUTTONDOWN || msg == WM_LBUTTONDBLCLK) { button = 0; } in ImGui_ImplWin32_WndProcHandler() 391 if (msg == WM_RBUTTONDOWN || msg == WM_RBUTTONDBLCLK) { button = 1; } in ImGui_ImplWin32_WndProcHandler() 392 if (msg == WM_MBUTTONDOWN || msg == WM_MBUTTONDBLCLK) { button = 2; } in ImGui_ImplWin32_WndProcHandler() 393 if (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONDBLCLK) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } in ImGui_ImplWin32_WndProcHandler() 396 io.MouseDown[button] = true; in ImGui_ImplWin32_WndProcHandler() 404 int button = 0; in ImGui_ImplWin32_WndProcHandler() local 405 if (msg == WM_LBUTTONUP) { button = 0; } in ImGui_ImplWin32_WndProcHandler() 406 if (msg == WM_RBUTTONUP) { button = 1; } in ImGui_ImplWin32_WndProcHandler() 407 if (msg == WM_MBUTTONUP) { button in ImGui_ImplWin32_WndProcHandler() [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | tsxExternalModuleEmit1.js | 11 // Should see var button_1 = require('./button') here 12 import { Button } from './button'; 22 //// [button.tsx]
28 return <button>Some button</button>; 33 //// [button.jsx]
59 return <button>Some button</button>;
[all...] |
H A D | checkJsxChildrenProperty12.js | 30 return (<button>Hello</button>); 78 return (<button>Hello</button>);
|
H A D | checkJsxChildrenProperty13.js | 25 return (<button>Hello</button>); 68 return (<button>Hello</button>);
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/ |
H A D | DemoApplet.java | 21 * A simple Applet that shows a button. When pressed, the button 44 Button button = new Button("Transliteration Demo"); in init() 45 button.addActionListener(new ActionListener() { in init() 60 add(button); in init() 62 Dimension size = button.getPreferredSize(); in init()
|
H A D | InfoDialog.java | 27 protected Button button; field in InfoDialog 51 button = new Button("Hide"); in InfoDialog() 52 button.addActionListener(new ActionListener() { in InfoDialog() 59 bottom.add(button); in InfoDialog()
|
/third_party/backends/backend/ |
H A D | hp4200_lm9830.c | 129 * This function prints what button was pressed (the time before this 136 unsigned char button; 138 pv8630_read_buttons (fd, &button); 140 if (button & 0x08) 142 if (button & 0x10) 144 if (button & 0x20) 146 if ((button & 0x38) == 0)
|
/third_party/python/Lib/test/ |
H A D | test_ttk_guionly.py | 24 button = ttk.Button(root) 25 button.destroy() 26 del button
|
/third_party/libwebsockets/minimal-examples/gtk/minimal-gtk/ |
H A D | main.c | 16 GtkWidget *button, *bbox; in activate() local 25 button = gtk_button_new_with_label("Hello World"); in activate() 26 g_signal_connect(button, "clicked", G_CALLBACK(print_hello), NULL); in activate() 27 g_signal_connect_swapped(button, "clicked", in activate() 29 gtk_container_add(GTK_CONTAINER(bbox), button); in activate() local
|
/third_party/node/test/fixtures/wpt/resources/ |
H A D | testdriver.js | 105 var button = contextDocument.createElement("button"); 106 button.innerHTML = "This test requires user interaction.<br />" + 108 button.id = "wpt-test-driver-bless-" + (idCounter += 1); 110 elem.appendChild(button); 112 let wait_click = new Promise(resolve => button.addEventListener("click", resolve)); 114 return test_driver.click(button) 117 button.remove();
|
/third_party/node/doc/api_assets/ |
H A D | api.js | 140 const buttons = document.querySelectorAll('.copy-button'); 141 buttons.forEach((button) => { 142 button.addEventListener('click', (el) => { 159 button.textContent = 'Copied'; 163 button.textContent = 'Copy';
|