Home
last modified time | relevance | path

Searched refs:buttons (Results 1 - 25 of 120) sorted by relevance

12345

/third_party/libinput/src/
H A Devdev-mt-touchpad-buttons.c84 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()
108 return t->point.y <= tp->buttons.top_area.bottom_edge; in is_inside_top_button_area()
116 t->point.x > tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_right_area()
124 t->point.x >= tp->buttons.top_area.leftbutton_right_edge && in is_inside_top_middle_area()
125 t->point.x <= tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_middle_area()
597 /* Ignore other buttons on clickpads */ in tp_process_button()
598 if (tp->buttons.is_clickpad && e->code != BTN_LEFT) { in tp_process_button()
606 tp->buttons in tp_process_button()
[all...]
H A Devdev-tablet-pad.c42 struct button_state *buttons) in pad_get_buttons_pressed()
48 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_pressed()
49 buttons->bits[i] = state->bits[i] & ~(prev_state->bits[i]); in pad_get_buttons_pressed()
54 struct button_state *buttons) in pad_get_buttons_released()
60 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_released()
61 buttons->bits[i] = prev_state->bits[i] & ~(state->bits[i]); in pad_get_buttons_released()
363 const struct button_state *buttons, in pad_notify_button_mask()
371 for (i = 0; i < sizeof(buttons->bits); i++) { in pad_notify_button_mask()
372 unsigned char buttons_slice = buttons->bits[i]; in pad_notify_button_mask()
420 struct button_state buttons; in pad_notify_buttons() local
41 pad_get_buttons_pressed(struct pad_dispatch *pad, struct button_state *buttons) pad_get_buttons_pressed() argument
53 pad_get_buttons_released(struct pad_dispatch *pad, struct button_state *buttons) pad_get_buttons_released() argument
360 pad_notify_button_mask(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time, const struct button_state *buttons, enum libinput_button_state state) pad_notify_button_mask() argument
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/popup/interfaces/
H A Dpopup.js203 buttons: x29.buttons
215 buttons: x29.buttons
227 buttons: x29.buttons
247 this.__buttons = new SynchedPropertyObjectOneWayPU(m29.buttons, this, "buttons");
311 if (k29.buttons === undefined) {
361 this.__buttons.reset(j29.buttons);
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js92 this.buttons = undefined;
153 if (h34.buttons !== undefined) {
154 this.buttons = h34.buttons;
282 buttons: this.buttons,
296 buttons: this.buttons,
648 this.buttons = [];
650 this.buttons
[all...]
/third_party/backends/backend/
H A Dplustek-pp_procfs.c201 len += sprintf( buf+len, "Buttons : %u\n", ps->Device.buttons); in procfsInfoReadProc()
226 bc = ps->Device.buttons; in procfsButtonsReadProc()
229 /* Check the buttons... */ in procfsButtonsReadProc()
333 for( i = 0; i < ps->Device.buttons; i++ ) { in destroy_proc_tree()
335 if( ps->procDir.buttons[i] ) in destroy_proc_tree()
336 destroy_proc_entry(ps->procDir.entry, &ps->procDir.buttons[i]); in destroy_proc_tree()
420 for( i = 0; i < ps->Device.buttons; i++ ) { in ProcFsRegisterDevice()
424 ps->procDir.buttons[i] = new_entry( str, 0, ps->procDir.entry ); in ProcFsRegisterDevice()
425 if( NULL == ps->procDir.buttons[i] ) in ProcFsRegisterDevice()
428 ps->procDir.buttons[ in ProcFsRegisterDevice()
[all...]
H A Dplustek-pp_models.c246 ps->Device.buttons = 0; in ModelSet4800()
305 ps->Device.buttons = 1; in ModelSet4830()
361 ps->Device.buttons = 0; in ModelSet600()
398 ps->Device.buttons = 0; in ModelSet12000()
422 ps->Device.buttons = 1; in ModelSetA3I()
494 ps->Device.buttons = 1; in ModelSet9630()
561 ps->Device.buttons = 0; in ModelSet9636()
H A Dhp3900_debug.c66 static void dbg_buttons (struct st_buttons *buttons);
216 dbg_buttons (struct st_buttons *buttons) in dbg_buttons() argument
218 if (buttons != NULL) in dbg_buttons()
223 buttons->count, buttons->mask[0], buttons->mask[1], in dbg_buttons()
224 buttons->mask[2], buttons->mask[3], buttons->mask[4], in dbg_buttons()
225 buttons in dbg_buttons()
[all...]
/third_party/lzma/CPP/Windows/Control/
H A DToolBar.h20 // maybe it must be fixed for more than 1 buttons in GetMaxSize()
35 bool AddButton(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMsg(TB_ADDBUTTONS, numButtons, (LPARAM)buttons)); } in AddButton() argument
37 bool AddButtonW(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMsg(TB_ADDBUTTONSW, numButtons, (LPARAM)buttons)); } in AddButtonW() argument
/third_party/glfw/src/
H A Dinput.c109 if (!isValidElementForJoystick(mapping->buttons + i, js)) in findValidMapping()
136 { "a", mapping->buttons + GLFW_GAMEPAD_BUTTON_A }, in parseMapping()
137 { "b", mapping->buttons + GLFW_GAMEPAD_BUTTON_B }, in parseMapping()
138 { "x", mapping->buttons + GLFW_GAMEPAD_BUTTON_X }, in parseMapping()
139 { "y", mapping->buttons + GLFW_GAMEPAD_BUTTON_Y }, in parseMapping()
140 { "back", mapping->buttons + GLFW_GAMEPAD_BUTTON_BACK }, in parseMapping()
141 { "start", mapping->buttons + GLFW_GAMEPAD_BUTTON_START }, in parseMapping()
142 { "guide", mapping->buttons + GLFW_GAMEPAD_BUTTON_GUIDE }, in parseMapping()
143 { "leftshoulder", mapping->buttons + GLFW_GAMEPAD_BUTTON_LEFT_BUMPER }, in parseMapping()
144 { "rightshoulder", mapping->buttons in parseMapping()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_alert_dialog_ffi.cpp155 properties.buttons.emplace_back(buttonInfo); in ParseButtonObj()
193 CArrNativeAlertDialogButtonOptions buttons, in ParseButtonArray()
196 if (buttons.size <= 0) { in ParseButtonArray()
199 for (int32_t i = 0; i < buttons.size; i++) { in ParseButtonArray()
200 NativeAlertDialogButtonOptions buttonItem = buttons.head[i]; in ParseButtonArray()
207 CArrNativeAlertDialogButtonOptions buttons, in FfiOHOSShowAlertDialogParamWithOptions()
215 // Parse buttons array. in FfiOHOSShowAlertDialogParamWithOptions()
216 ParseButtonArray(properties, buttons, "buttons"); in FfiOHOSShowAlertDialogParamWithOptions()
218 // Parse buttons directio in FfiOHOSShowAlertDialogParamWithOptions()
191 ParseButtonArray( DialogProperties& properties, CArrNativeAlertDialogButtonOptions buttons, const std::string& property) ParseButtonArray() argument
205 FfiOHOSShowAlertDialogParamWithOptions( NativeAlertDialogParam alertDialog, CArrNativeAlertDialogButtonOptions buttons, int32_t buttonDirection) FfiOHOSShowAlertDialogParamWithOptions() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/prompt/
H A Dcj_prompt_ffi.cpp41 LOGE("Invalid buttons info"); in CheckFrontendLegality()
49 std::vector<ButtonInfo> buttons; in CreateButtonInfoVector() local
52 LOGE("Supports 1 - %{public}d buttons", numMax); in CreateButtonInfoVector()
57 buttons.emplace_back(button); in CreateButtonInfoVector()
59 return buttons; in CreateButtonInfoVector()
95 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_DIALOG_BUTTON_NUM_MAX); in FfiPromptShowDialog() local
102 frontend->ShowDialog(title, message, buttons, std::move(callback), callbacks); in FfiPromptShowDialog()
112 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_ACTION_MENU_BUTTON_NUM_MAX); in FfiPromptShowActionMenu() local
115 frontend->ShowActionMenu(title, buttons, std::move(callback)); in FfiPromptShowActionMenu()
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/
H A Dsegmentbutton.js229 get buttons() {
233 set buttons(val) {
261 this.buttons = new SegmentButtonItemOptionsArray(options.buttons);
264 this.buttons.forEach(button => {
284 buttons: options.buttons,
306 buttons: options.buttons,
1372 if (this.options === void 0 || this.options.buttons
[all...]
/third_party/glfw/tests/
H A Djoysticks.c229 nk_checkbox_label(nk, "Hat buttons", &hat_buttons); in main()
258 const unsigned char* buttons; in main() local
268 buttons = glfwGetJoystickButtons(joysticks[i], &button_count); in main()
283 nk_select_label(nk, name, NK_TEXT_CENTERED, buttons[j]); in main()
316 nk_select_label(nk, names[j], NK_TEXT_CENTERED, state.buttons[j]); in main()
318 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_UP]) in main()
320 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_RIGHT]) in main()
322 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_DOWN]) in main()
324 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_LEFT]) in main()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_pattern.cpp174 UpdatePropertyForElderly(dialogProperties_.buttons); in OnFontConfigurationUpdate()
176 auto buttonContainer = BuildButtons(dialogProperties_.buttons, dialogProperties_.buttonDirection); in OnFontConfigurationUpdate()
180 if (isSuitableForElderly_ && NeedsButtonDirectionChange(dialogProperties_.buttons)) { in OnFontConfigurationUpdate()
182 auto buttonContainerNew = BuildButtons(dialogProperties_.buttons, DialogButtonDirection::VERTICAL); in OnFontConfigurationUpdate()
283 if (btnIndex >= 0 && static_cast<size_t>(btnIndex) < dialogProperties_.buttons.size()) { in RecordEvent()
284 btnText = dialogProperties_.buttons.at(btnIndex).text; in RecordEvent()
412 UpdatePropertyForElderly(props.buttons); in BuildChild()
470 auto menu = BuildMenu(props.buttons, hasTitle); in BuildChild()
474 // build buttons in BuildChild()
475 if (!props.buttons in BuildChild()
835 BuildButtons( const std::vector<ButtonInfo>& buttons, const DialogButtonDirection& direction) BuildButtons() argument
878 AddButtonAndDivider( const std::vector<ButtonInfo>& buttons, const RefPtr<NG::FrameNode>& container, bool isVertical) AddButtonAndDivider() argument
1057 BuildMenu(const std::vector<ButtonInfo>& buttons, bool hasTitle) BuildMenu() argument
1329 UpdatePropertyForElderly(const std::vector<ButtonInfo>& buttons) UpdatePropertyForElderly() argument
1357 NeedsButtonDirectionChange(const std::vector<ButtonInfo>& buttons) NeedsButtonDirectionChange() argument
1753 std::unique_ptr<JsonValue> buttons = JsonUtil::Create(true); DumpObjectProperty() local
1914 std::unique_ptr<JsonValue> buttons = JsonUtil::Create(true); DumpSimplifyObjectProperty() local
[all...]
H A Ddialog_pattern.h351 RefPtr<FrameNode> BuildButtons(const std::vector<ButtonInfo>& buttons, const DialogButtonDirection& direction);
353 const std::vector<ButtonInfo>& buttons, const RefPtr<NG::FrameNode>& container, bool isVertical);
367 RefPtr<FrameNode> BuildMenu(const std::vector<ButtonInfo>& buttons, bool hasTitle);
382 void UpdatePropertyForElderly(const std::vector<ButtonInfo>& buttons);
383 bool NeedsButtonDirectionChange(const std::vector<ButtonInfo>& buttons);
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/
H A Ddialog_module.cpp32 const char * const DialogModule::BUTTON_KEY = "buttons";
66 JSIValue buttons = JSI::GetNamedProperty(args[0], BUTTON_KEY); in ShowDialog() local
73 bool result = jsDialog->ShowDialog(thisVal, buttons, successFunc, cancelFunc, completeFunc); in ShowDialog()
79 JSI::ReleaseValueList(buttons, successFunc, cancelFunc, completeFunc); in ShowDialog()
/third_party/backends/backend/genesys/
H A Dtables_model.cpp121 model.buttons = GENESYS_HAS_NO_BUTTONS; in genesys_init_usb_device_tables()
175 model.buttons = GENESYS_HAS_SCAN_SW | in genesys_init_usb_device_tables()
228 model.buttons = GENESYS_HAS_SCAN_SW; in genesys_init_usb_device_tables()
280 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables()
330 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_TRANSP_SW; in genesys_init_usb_device_tables()
382 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables()
450 model.buttons = GENESYS_HAS_TRANSP_SW | GENESYS_HAS_EMAIL_SW in genesys_init_usb_device_tables()
522 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_EMAIL_SW; in genesys_init_usb_device_tables()
588 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables()
641 model.buttons in genesys_init_usb_device_tables()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_pattern.cpp608 bool ContainerModalPattern::GetContainerModalButtonsRect(RectF& containerModal, RectF& buttons) in GetContainerModalButtonsRect() argument
615 TAG_LOGW(AceLogTag::ACE_APPBAR, "Get rect of buttons failed, the rect is measuring."); in GetContainerModalButtonsRect()
635 buttons = firstButtonRect.CombineRectT(lastButtonRect); in GetContainerModalButtonsRect()
636 if (buttons.Width() == 0) { in GetContainerModalButtonsRect()
637 TAG_LOGW(AceLogTag::ACE_APPBAR, "Get rect of buttons failed, buttons are hidden"); in GetContainerModalButtonsRect()
641 auto widthByPx = (TITLE_PADDING_START + TITLE_PADDING_END).ConvertToPx() + buttons.Width(); in GetContainerModalButtonsRect()
644 buttons.SetLeft(0); in GetContainerModalButtonsRect()
646 buttons.SetLeft(containerModal.Width() - widthByPx); in GetContainerModalButtonsRect()
648 buttons in GetContainerModalButtonsRect()
691 RectF buttons; CallButtonsRectChange() local
841 auto buttons = buttonsRow->GetChildren(); InitButtonsLayoutProperty() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dalertdialog_composed_element.cpp98 auto confirm = renderDialog->GetDialogProperties().buttons; in GetConfirm()
141 auto primary = renderDialog->GetDialogProperties().buttons; in GetPrimaryButton()
159 auto secondary = renderDialog->GetDialogProperties().buttons; in GetSecondaryButton()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_animation_controller.cpp212 auto buttons = ref->buttons_.Upgrade(); in CreateInOpacityAnimation()
213 if (buttons) { in CreateInOpacityAnimation()
214 buttons->UpdateOpacity(static_cast<uint8_t>(value)); in CreateInOpacityAnimation()
216 LOGW("buttons display is null in picker animation."); in CreateInOpacityAnimation()
295 auto buttons = ref->buttons_.Upgrade(); in CreateOutOpacityAnimation()
296 if (buttons) { in CreateOutOpacityAnimation()
297 buttons->UpdateOpacity(static_cast<uint8_t>(value)); in CreateOutOpacityAnimation()
/foundation/arkui/ace_engine/adapter/ohos/entrance/subwindow/
H A Dsubwindow_ohos.h106 void ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons,
109 void ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
179 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback,
182 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback,
184 void ShowDialogForAbility(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
186 void ShowDialogForService(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
/third_party/libinput/tools/
H A Dlibinput-debug-gui.c141 /* l/m/r mouse buttons */
146 } buttons; member
661 const char *name = w->buttons.other_name; in draw_other_button()
665 if (!w->buttons.other) in draw_other_button()
691 if (w->buttons.l || w->buttons.m || w->buttons.r) { in draw_buttons()
693 if (w->buttons.l) in draw_buttons()
695 if (w->buttons.m) in draw_buttons()
697 if (w->buttons in draw_buttons()
[all...]
/third_party/node/doc/api_assets/
H A Dapi.js140 const buttons = document.querySelectorAll('.copy-button');
141 buttons.forEach((button) => {
/third_party/node/doc/api/assets/
H A Dapi.js140 const buttons = document.querySelectorAll('.copy-button');
141 buttons.forEach((button) => {
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend_abstract.cpp241 const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
244 DialogProperties dialogProperties = { .title = title, .content = message, .buttons = buttons }; in ShowDialog()
290 .buttons = button, in ShowActionMenu()
299 dialogProperties.buttons.emplace_back(buttonInfo); in ShowActionMenuInner()
240 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument

Completed in 20 milliseconds

12345