Changeset d4ea1f6 in mainline for uspace/lib/ui/src/pbutton.c
- Timestamp:
- 2022-03-21T17:38:57Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8965860c
- Parents:
- 26c90dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/pbutton.c
r26c90dd rd4ea1f6 429 429 pbutton->held = true; 430 430 (void) ui_pbutton_paint(pbutton); 431 ui_pbutton_down(pbutton); 431 432 } 432 433 … … 446 447 ui_pbutton_clicked(pbutton); 447 448 } 449 450 ui_pbutton_up(pbutton); 448 451 } 449 452 … … 476 479 } 477 480 478 /** Button was clicked.481 /** Send button clicked event. 479 482 * 480 483 * @param pbutton Push button … … 484 487 if (pbutton->cb != NULL && pbutton->cb->clicked != NULL) 485 488 pbutton->cb->clicked(pbutton, pbutton->arg); 489 } 490 491 /** Send button down event. 492 * 493 * @param pbutton Push button 494 */ 495 void ui_pbutton_down(ui_pbutton_t *pbutton) 496 { 497 if (pbutton->cb != NULL && pbutton->cb->down != NULL) 498 pbutton->cb->down(pbutton, pbutton->arg); 499 } 500 501 /** Send button up event. 502 * 503 * @param pbutton Push button 504 */ 505 void ui_pbutton_up(ui_pbutton_t *pbutton) 506 { 507 if (pbutton->cb != NULL && pbutton->cb->up != NULL) 508 pbutton->cb->up(pbutton, pbutton->arg); 486 509 } 487 510
Note:
See TracChangeset
for help on using the changeset viewer.