/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/libinput/src/ |
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...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | ibm-panel.c | 49 u8 button; in ibm_panel_process_command() local 66 button = panel->command[2] & 0xf; in ibm_panel_process_command() 67 if (button < PANEL_KEYCODES_COUNT) { in ibm_panel_process_command() 68 input_report_key(panel->input, panel->keycodes[button], in ibm_panel_process_command() 72 dev_dbg(&panel->input->dev, "unknown button %u\n", in ibm_panel_process_command() 73 button); in ibm_panel_process_command()
|
/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();
|
H A D | testdriver-actions.js | 308 * @param {String} button - Button to press 313 pointerDown: function({button=this.ButtonType.LEFT, sourceName=null, 317 source.pointerDown(this, button, width, height, pressure, tangentialPressure, 325 * @param {String} button - Button to release 330 pointerUp: function({button=this.ButtonType.LEFT, sourceName=null}={}) { 332 source.pointerUp(this, button); 512 pointerDown: function(actions, button, width, height, pressure, tangentialPressure, 518 let actionProperties = setPointerProperties({type: "pointerDown", button}, width, height, 524 pointerUp: function(actions, button) { 529 this.actions.set(tick, {type: "pointerUp", button}); [all...] |
/third_party/skia/third_party/externals/imgui/backends/ |
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/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';
|
/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';
|
/kernel/linux/linux-5.10/drivers/input/tablet/ |
H A D | wacom_serial4.c | 37 * bit 3 1 if a button on the pointing device has been pressed 311 u8 in_proximity_p, stylus_p, button; in wacom_handle_packet() local 317 button = (wacom->data[3] & 0x78) >> 3; in wacom_handle_packet() 333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 350 input_report_key(wacom->dev, BTN_TOUCH, button & 1); in wacom_handle_packet() 351 input_report_key(wacom->dev, BTN_STYLUS, button & 2); in wacom_handle_packet() 352 input_report_key(wacom->dev, BTN_STYLUS2, button & 4); in wacom_handle_packet() 354 input_report_key(wacom->dev, BTN_LEFT, button & 1); in wacom_handle_packet() 355 input_report_key(wacom->dev, BTN_RIGHT, button & 2); in wacom_handle_packet() 356 input_report_key(wacom->dev, BTN_MIDDLE, button in wacom_handle_packet() [all...] |
/kernel/linux/linux-6.6/drivers/input/tablet/ |
H A D | wacom_serial4.c | 37 * bit 3 1 if a button on the pointing device has been pressed 311 u8 in_proximity_p, stylus_p, button; in wacom_handle_packet() local 317 button = (wacom->data[3] & 0x78) >> 3; in wacom_handle_packet() 333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 350 input_report_key(wacom->dev, BTN_TOUCH, button & 1); in wacom_handle_packet() 351 input_report_key(wacom->dev, BTN_STYLUS, button & 2); in wacom_handle_packet() 352 input_report_key(wacom->dev, BTN_STYLUS2, button & 4); in wacom_handle_packet() 354 input_report_key(wacom->dev, BTN_LEFT, button & 1); in wacom_handle_packet() 355 input_report_key(wacom->dev, BTN_RIGHT, button & 2); in wacom_handle_packet() 356 input_report_key(wacom->dev, BTN_MIDDLE, button in wacom_handle_packet() [all...] |
/third_party/toybox/kconfig/lxdialog/ |
H A D | menubox.c | 187 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local 374 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_menu() 375 ? 2 : (button > 2 ? 0 : button); in dialog_menu() 377 print_buttons(dialog, height, width, button); in dialog_menu() 409 button = 2; in dialog_menu() 416 return button; in dialog_menu()
|
/third_party/lame/frontend/ |
H A D | gtkanal.c | 1149 GtkWidget *hbox, *vbox, *button, *box; in text_window() local 1163 button = gtk_button_new_with_label("close"); in text_window() 1164 gtk_signal_connect_object(GTK_OBJECT(button), "clicked", in text_window() 1296 gtk_widget_show(button); in text_window() 1301 gtk_box_pack_end(GTK_BOX(vbox), button, FALSE, TRUE, 0); in text_window() local 1437 GtkWidget *button; in gtkcontrol() local 1550 button = gtk_button_new_with_label("-1"); in gtkcontrol() 1551 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(frameadv), (gpointer) "-1"); in gtkcontrol() 1552 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); in gtkcontrol() local 1553 gtk_widget_show(button); in gtkcontrol() 1557 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); gtkcontrol() local 1562 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); gtkcontrol() local 1567 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); gtkcontrol() local 1573 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); gtkcontrol() local 1578 gtk_box_pack_start(GTK_BOX(box1), button, TRUE, TRUE, 0); gtkcontrol() local [all...] |
/third_party/mesa3d/src/intel/tools/imgui/ |
H A D | imgui_impl_gtk3.cpp | 74 guint button = 0; in ImGui_ImplGtk3_HandleEvent() local 75 if (gdk_event_get_button(event, &button) && button > 0 && button <= 5) in ImGui_ImplGtk3_HandleEvent() 78 g_MousePressed[button - 1] = true; in ImGui_ImplGtk3_HandleEvent()
|
/third_party/glfw/src/ |
H A D | input.c | 345 // Notifies shared code of a mouse button click event 347 void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) in _glfwInputMouseClick() argument 350 assert(button >= 0); in _glfwInputMouseClick() 354 if (button < 0 || (!window->disableMouseButtonLimit && button > GLFW_MOUSE_BUTTON_LAST)) in _glfwInputMouseClick() 360 if (button <= GLFW_MOUSE_BUTTON_LAST) in _glfwInputMouseClick() 363 window->mouseButtons[button] = _GLFW_STICK; in _glfwInputMouseClick() 365 window->mouseButtons[button] = (char) action; in _glfwInputMouseClick() 369 window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods); in _glfwInputMouseClick() 443 // Notifies shared code of the new value of a joystick button 445 _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value) _glfwInputJoystickButton() argument 768 glfwGetMouseButton(GLFWwindow* handle, int button) glfwGetMouseButton() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A D | amijoy.c | 40 int i, data = 0, button = 0; in amijoy_interrupt() local 46 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; in amijoy_interrupt() 47 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; in amijoy_interrupt() 50 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
|
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A D | amijoy.c | 37 int i, data = 0, button = 0; in amijoy_interrupt() local 43 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; in amijoy_interrupt() 44 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; in amijoy_interrupt() 47 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
|
/third_party/skia/platform_tools/android/skp_gen/ |
H A D | android_skp_capture.py | 39 """Action describing a button press.""" 40 def __init__(self, button, press_type): 41 self.button = button 46 return device.press(self.button, self.press_type) 57 return PressAction(action_dict['button'], action_dict['press_type'])
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_textview.py | 205 button = Button(root, text='BUTTON', command=_command) 206 button.invoke() 207 self.addCleanup(button.destroy) 219 button = Button(root, text='BUTTON', command=_command) 220 button.invoke() 221 self.addCleanup(button.destroy)
|
/kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
H A D | board-da850-evm.c | 378 * event by tapping very lightly on the push button but most 380 * user to hold the button whereas shorter intervals require 444 struct gpio_keys_button *button; in da850_evm_ui_keys_init() local 447 button = &da850_evm_ui_keys[i]; in da850_evm_ui_keys_init() 448 button->code = KEY_F8 - i; in da850_evm_ui_keys_init() 449 button->desc = da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; in da850_evm_ui_keys_init() 450 button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; in da850_evm_ui_keys_init() 621 struct gpio_keys_button *button; in da850_evm_bb_keys_init() local 623 button = &da850_evm_bb_keys[0]; in da850_evm_bb_keys_init() 624 button in da850_evm_bb_keys_init() [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/ |
H A D | menubox.c | 176 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local 364 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_menu() 365 ? 4 : (button > 4 ? 0 : button); in dialog_menu() 367 print_buttons(dialog, height, width, button); in dialog_menu() 404 return button; in dialog_menu()
|
/kernel/linux/linux-6.6/scripts/kconfig/lxdialog/ |
H A D | menubox.c | 168 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local 356 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_menu() 357 ? 4 : (button > 4 ? 0 : button); in dialog_menu() 359 print_buttons(dialog, height, width, button); in dialog_menu() 396 return button; in dialog_menu()
|
/third_party/glfw/deps/ |
H A D | nuklear.h | 106 /// NK_BUTTON_TRIGGER_ON_RELEASE | Different platforms require button clicks occurring either on buttons being pressed (up to down) or released (down to up). By default this library will react on buttons being pressed, but if you define this it will only trigger if a button is released. 189 /// if (nk_button_label(&ctx, "button")) { 697 /// which resets internal state like delta mouse position and button transistions. 699 /// mouse motion, button and key pressed and released, text input and scrolling. 729 /// __nk_input_button__ | Mirrors mouse button state with either pressed or released 820 /// Mirrors the state of a specific mouse button to nuklear 1324 /// `NK_WINDOW_HIDDEN`, the user clicked the close button on windows with flag 1434 /// NK_WINDOW_SCALABLE | The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window 3210 /// can be achieved by dragging, adding/removing incremental steps on button clic 5112 struct nk_style_button button; global() member 5221 struct nk_style_button button; global() member 14277 struct nk_style_button *button; nk_style_from_table() local 15748 {struct nk_rect button; nk_panel_begin() local 18358 const struct nk_style_button *button; nk_tree_state_base() local 18539 const struct nk_style_button *button; nk_tree_element_image_push_hashed_base() local 20163 struct nk_style_button button; nk_button_color() local 21137 struct nk_rect button; nk_do_slider() local 21540 struct nk_rect button; nk_do_scrollbarv() local 21629 struct nk_rect button; nk_do_scrollbarh() local 24639 struct nk_rect button; nk_combo_begin_text() local 24723 struct nk_rect button; nk_combo_begin_color() local 24810 struct nk_rect button; nk_combo_begin_symbol() local 24898 struct nk_rect button; nk_combo_begin_symbol_text() local 24984 struct nk_rect button; nk_combo_begin_image() local 25067 struct nk_rect button; nk_combo_begin_image_text() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | jsxFragmentFactoryNoUnusedLocals.js | 13 <button onClick={() => setCnt((prev) => prev + 1)} type="button">Update</button> 28 (0, react_1.createElement)("button", { onClick: function () { return setCnt(function (prev) { return prev + 1; }); }, type: "button" }, "Update"));
|