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