Changes in uspace/lib/ui/src/control.c [46a47c0:62223ec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/control.c
r46a47c0 r62223ec 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2020 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 35 35 36 36 #include <errno.h> 37 #include <io/kbd_event.h>38 37 #include <io/pos_event.h> 39 38 #include <stdlib.h> … … 92 91 } 93 92 94 /** Deliver keyboard event to UI control.95 *96 * @param control Control97 * @param kbd_event Keyboard event98 * @return @c ui_claimed iff the event is claimed99 */100 ui_evclaim_t ui_control_kbd_event(ui_control_t *control, kbd_event_t *event)101 {102 if (control->ops->kbd_event != NULL)103 return control->ops->kbd_event(control->ext, event);104 else105 return ui_unclaimed;106 }107 108 93 /** Paint UI control. 109 94 * … … 130 115 * 131 116 * @param control Control 132 * @param nfocus Number of remaining foci133 117 */ 134 void ui_control_unfocus(ui_control_t *control , unsigned nfocus)118 void ui_control_unfocus(ui_control_t *control) 135 119 { 136 120 if (control->ops->unfocus != NULL) 137 control->ops->unfocus(control->ext , nfocus);121 control->ops->unfocus(control->ext); 138 122 } 139 123
Note:
See TracChangeset
for help on using the changeset viewer.