Changeset a2f173b in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2020-10-21T21:49:13Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
58a67050
Parents:
172188a
Message:

Improve close button event routing

Button event processing routine is the best place to determine whether
the event goes to the button or not. It can also 'grab' button release
events simply by claiming them.

Location:
uspace/lib/ui/include
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/ui/pbutton.h

    r172188a ra2f173b  
    4040#include <gfx/coord.h>
    4141#include <io/pos_event.h>
     42#include <types/ui/event.h>
    4243#include <types/ui/pbutton.h>
    4344#include <types/ui/resource.h>
     
    5657extern void ui_pbutton_leave(ui_pbutton_t *);
    5758extern void ui_pbutton_clicked(ui_pbutton_t *);
    58 extern void ui_pbutton_pos_event(ui_pbutton_t *, pos_event_t *);
     59extern ui_evclaim_t ui_pbutton_pos_event(ui_pbutton_t *, pos_event_t *);
    5960
    6061#endif
Note: See TracChangeset for help on using the changeset viewer.