Searched defs:button (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-head/contrib/dialog/
H A Dmsgbox.c31 * Display a message box. Program will pause and display an "OK" button
49 int button; local
73 button = dlg_default_button();
116 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
148 button = dlg_next_button(buttons, button);
149 if (button < 0)
150 button = 0;
153 buttons, button,
157 button
[all...]
H A Dyesno.c49 int button = dlg_default_button(); local
103 buttons, button, FALSE, width);
123 button = dlg_next_button(buttons, button);
124 if (button < 0)
125 button = 0;
128 buttons, button,
132 button = dlg_prev_button(buttons, button);
133 if (button <
[all...]
H A Dpause.c42 * OK button (status OK)
43 * CANCEL button (status CANCEL)
69 int button = dlg_default_button(); local
181 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
215 button = dlg_next_button(buttons, button);
216 if (button < 0)
217 button = 0;
220 buttons, button,
224 button
[all...]
H A Dprogressbox.c286 int button; local
295 button = dlg_default_button();
309 if (button < 0)
310 button = 0;
313 buttons, button,
329 button = dlg_next_button(buttons, button);
333 button = dlg_prev_button(buttons, button);
337 result = dlg_ok_buttoncode(button);
[all...]
H A Drangebox.c213 int button; local
318 button = (state < 0) ? 0 : state;
319 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
337 result = dlg_ok_buttoncode(button);
H A Dtimebox.c180 int button; local
293 button = (state < 0) ? 0 : state;
294 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
319 result = dlg_ok_buttoncode(button);
H A Dchecklist.c196 int button = dialog_state.visit_items ? -1 : dlg_default_button(); local
305 * Limit the list to avoid overwriting the ok-button.
379 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
383 if (button < 0) /* --visit-items */
462 if (button < 0 || !dialog_state.visit_items) {
482 button = j;
561 result = dlg_enter_buttoncode(button);
564 button = dlg_prev_button(buttons, button);
565 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
[all...]
H A Dtreeview.c200 int button = dialog_state.visit_items ? -1 : dlg_default_button(); local
292 * Limit the list to avoid overwriting the ok-button.
357 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
361 if (button < 0) /* --visit-items */
423 if (button < 0 || !dialog_state.visit_items) {
443 button = j;
521 result = dlg_enter_buttoncode(button);
524 button = dlg_prev_button(buttons, button);
525 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
[all...]
H A Dbuttons.c123 * Determine the hot-keys for a set of button-labels. Normally these are
125 * button has the same first-uppercase, then we will (attempt to) look for
171 * Print a button
241 * Compute the size of the button array in columns. Return the total number of
242 * columns in *length, and the longest button's columns in *longest
276 * Compute the size of the button array.
453 * Given a list of button labels, and a character which may be the abbreviation
540 * Return a list of button labels.
571 * Map the given button index for dlg_exit_label() into our exit-code.
574 dlg_exit_buttoncode(int button) argument
629 dlg_ok_buttoncode(int button) argument
750 dlg_yes_buttoncode(int button) argument
771 dlg_next_button(const char **labels, int button) argument
788 dlg_prev_button(const char **labels, int button) argument
[all...]
H A Dmenubox.c342 int button = dialog_state.visit_items ? -1 : dlg_default_button(); local
421 * Limit the list to avoid overwriting the ok-button.
510 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
514 if (button < 0) /* --visit-items */
527 * Handling a button click is a little more complicated, since we
542 button = (key - M_EVENT);
552 if (button < 0 || !dialog_state.visit_items) {
572 button = j;
653 button = dlg_prev_button(buttons, button);
[all...]
H A Dtextbox.c709 int button = dlg_default_button(); local
769 dlg_draw_buttons(dialog, PAGE_LENGTH + 2, 0, obj.buttons, button, FALSE, width);
843 button = dlg_next_button(obj.buttons, button);
844 if (button < 0)
845 button = 0;
848 obj.buttons, button,
852 button = dlg_prev_button(obj.buttons, button);
853 if (button <
[all...]
H A Dbuildlist.c555 int button; local
589 button = (dialog_state.visit_items
651 * Limit the list to avoid overwriting the ok-button.
737 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
758 if (button < 0) { /* --visit-items */
870 if (button < 0 || !dialog_state.visit_items) {
890 button = j;
911 if ((button == sRIGHT) && dialog_state.visit_items) {
913 button = sLEFT;
915 button
[all...]
H A Dcalendar.c41 #define BTN_HIGH 1 /* height of button-row excluding margin */
721 int button; local
878 button = (state < 0) ? 0 : state;
879 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
908 result = dlg_enter_buttoncode(button);
H A Dfselect.c592 int button; local
737 button = (state < 0) ? 0 : state;
738 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
/freebsd-head/usr.sbin/bhyve/
H A Dconsole.c116 console_ptr_event(uint8_t button, int x, int y) argument
119 (*console.ptr_event_cb)(button, x, y, console.ptr_arg);
H A Dps2mouse.c374 ps2mouse_event(uint8_t button, int x, int y, void *arg) argument
383 if (button & (1 << 0))
385 if (button & (1 << 1))
387 if (button & (1 << 2))
H A Dusb_mouse.c261 umouse_event(uint8_t button, int x, int y, void *arg) argument
279 if (button & 0x01)
281 if (button & 0x02)
283 if (button & 0x04)
285 if (button & 0x8)
287 if (button & 0x10)
H A Drfb.c180 uint8_t button; member in struct:rfb_ptr_msg
674 console_ptr_event(ptr_msg.button, htons(ptr_msg.x), htons(ptr_msg.y));
/freebsd-head/sys/dev/syscons/
H A Dscmouse.c52 #define SC_MOUSE_PASTEBUTTON MOUSE_BUTTON3DOWN /* right button */
55 #define SC_MOUSE_PASTEBUTTON MOUSE_BUTTON2DOWN /* middle button */
56 #define SC_MOUSE_EXTENDBUTTON MOUSE_BUTTON3DOWN /* right button */
123 sc_mouse_input_button(scr_stat *scp, int button) argument
127 mouseb[3] = ' ' + button;
140 /* Mouse button pressed. */
148 /* Mouse button released. */
483 /* a mouse button is pressed, start cut operation */
828 /* process button presses */
858 /* if a button i
[all...]
/freebsd-head/contrib/ncurses/ncurses/base/
H A Dlib_mouse.c68 * mousemask. There's one bit per button (the RESERVED_EVENT bit) not being
224 write_event(SCREEN *sp, int down, int button, int x, int y) argument
230 buf[3] = ' ' + (button - 1) + (down ? 0 : 0x40);
275 * OS/2 numbers a 3-button mouse inconsistently from other
355 * We're only interested if the button is pressed or released.
898 if (button & 0x40) { \
914 handle_wheel(SCREEN *sp, MEVENT * eventp, int button, int wheel) argument
918 switch (button & 3) {
933 /* See comment above for button 4 */
935 /* Ignore this event as it is not a true press of the button */
[all...]
/freebsd-head/sys/dev/evdev/
H A Dinput.h172 uint16_t button; /* trigger button number */ member in struct:ff_trigger
/freebsd-head/sys/sys/
H A Dmouse.h56 int button; /* button status */ member in struct:mousestatus
57 int obutton; /* previous button status */
63 /* button */
242 #define MOUSE_MSS_BUTTON2DOWN 0x00 /* no middle button */
246 #define MOUSE_LMAN_BUTTON2DOWN 0x20 /* middle button, the 4th byte */
249 #define MOUSE_ALPS_BUTTON2DOWN 0x20 /* middle button, the 4th byte */
253 #define MOUSE_THINK_BUTTON2DOWN 0x20 /* lower-left button, the 4th byte */
254 #define MOUSE_THINK_BUTTON4DOWN 0x10 /* lower-right button, the 4th byte */
258 #define MOUSE_INTELLI_BUTTON2DOWN 0x10 /* middle button i
[all...]
/freebsd-head/sys/dev/usb/input/
H A Dwsp.c152 /* button data structure */
155 uint8_t button; /* left button */ member in struct:bt_data
163 TYPE2, /* button integrated in trackpad */
174 /* trackpad button data offsets */
251 uint8_t tp_button; /* offset to button data */
581 uint8_t ibtn; /* button status in tapping */
757 * limited information. They encode movement deltas and button
850 int ibt = 0; /* button status */
929 sc->sc_status.obutton = sc->sc_status.button;
[all...]
/freebsd-head/sys/dev/vt/
H A Dvt_core.c1836 vt_mouse_terminput_button(struct vt_device *vd, int button) argument
1853 mouseb[3] = ' ' + button;
1869 /* Mouse button pressed. */
1877 /* Mouse button released. */
/freebsd-head/usr.sbin/moused/
H A Dmoused.c85 /* Abort 3-button emulation delay after this many movement events. */
276 /* Logitech MouseMan (new 4 button model) */
395 int zmap[4]; /* MOUSE_{X|Y}AXIS or a button number */
396 int wmode; /* wheel mode button number */
403 long button2timeout; /* 3 button emulation timeout */
441 /* button status */
444 struct timespec ts; /* timestamp on the last button event */
446 static struct button_state bstate[MOUSE_MAXBUTTON]; /* button state */
447 static struct button_state *mstate[MOUSE_MAXBUTTON];/* mapped button st.*/
450 /* state machine for 3 button emulatio
2516 int button; local
2595 int button; local
[all...]

Completed in 186 milliseconds

12