Changes in uspace/lib/ui/src/control.c [46a47c0:b71c0fc] in mainline
- File:
-
- 1 edited
-
uspace/lib/ui/src/control.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/control.c
r46a47c0 rb71c0fc 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 * … … 127 112 } 128 113 129 /** Inform UI control that window has been unfocused.130 *131 * @param control Control132 * @param nfocus Number of remaining foci133 */134 void ui_control_unfocus(ui_control_t *control, unsigned nfocus)135 {136 if (control->ops->unfocus != NULL)137 control->ops->unfocus(control->ext, nfocus);138 }139 140 114 /** @} 141 115 */
Note:
See TracChangeset
for help on using the changeset viewer.
