Changeset f03d1308 in mainline for uspace/lib/ui/src/window.c
- Timestamp:
- 2020-10-28T12:42:11Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8009dc27
- Parents:
- d284ce9
- git-author:
- Jiri Svoboda <jiri@…> (2020-10-28 12:41:11)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-10-28 12:42:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
rd284ce9 rf03d1308 37 37 #include <errno.h> 38 38 #include <gfx/context.h> 39 #include <io/kbd_event.h> 39 40 #include <io/pos_event.h> 40 41 #include <mem.h> … … 221 222 ui_wdecor_paint(window->wdecor); 222 223 } 224 225 ui_window_focus(window); 223 226 } 224 227 … … 229 232 230 233 (void) window; 231 (void) kbd_event;234 ui_window_kbd(window, kbd_event); 232 235 } 233 236 … … 254 257 ui_wdecor_paint(window->wdecor); 255 258 } 259 260 ui_window_unfocus(window); 256 261 } 257 262 … … 291 296 } 292 297 298 /** Send window focus event. 299 * 300 * @param window Window 301 */ 302 void ui_window_focus(ui_window_t *window) 303 { 304 if (window->cb != NULL && window->cb->focus != NULL) 305 window->cb->focus(window, window->arg); 306 } 307 308 /** Send window keyboard event. 309 * 310 * @param window Window 311 */ 312 void ui_window_kbd(ui_window_t *window, kbd_event_t *kbd) 313 { 314 if (window->cb != NULL && window->cb->kbd != NULL) 315 window->cb->kbd(window, window->arg, kbd); 316 } 317 293 318 /** Send window position event. 294 319 * … … 301 326 } 302 327 328 /** Send window unfocus event. 329 * 330 * @param window Window 331 */ 332 void ui_window_unfocus(ui_window_t *window) 333 { 334 if (window->cb != NULL && window->cb->unfocus != NULL) 335 window->cb->unfocus(window, window->arg); 336 } 337 303 338 /** @} 304 339 */
Note:
See TracChangeset
for help on using the changeset viewer.