Changeset 7c3fb9b in mainline for uspace/lib/gui/widget.h
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/widget.h
rfac0ac7 r7c3fb9b 72 72 * Virtual destructor. Apart from deallocating the resources specific for 73 73 * the particular widget, each widget shall remove itself from parents 74 * children and deallocate itself. */ 74 * children and deallocate itself. 75 */ 75 76 void (*destroy)(widget_t *); 76 77 … … 82 83 * to be changed. If not, widget shall calculate new layout for its children 83 84 * and call rearrange() on each of them. Otherwise, widget shall change its 84 * own properties and call reconfigure() on its parent. */ 85 * own properties and call reconfigure() on its parent. 86 */ 85 87 void (*reconfigure)(widget_t *); 86 88 … … 90 92 * position and size according to provided arguments, paint itself, 91 93 * calculate new layout for its children and call rearrange() on each 92 * of them. */ 94 * of them. 95 */ 93 96 void (*rearrange)(widget_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t); 94 97 … … 97 100 * in top-bottom order and repaint() is called on each widget. Widget shall 98 101 * either paint itself or copy its private buffer onto window surface. 99 * Widget shall also post damage event into window event loop. */ 102 * Widget shall also post damage event into window event loop. 103 */ 100 104 void (*repaint)(widget_t *); 101 105 … … 104 108 * reaction to the event, widget might call reconfigure() on its parent or 105 109 * rearrange() on its children. If the widget wants to change its visual 106 * information, refresh event should be posted to the window event loop. */ 110 * information, refresh event should be posted to the window event loop. 111 */ 107 112 void (*handle_keyboard_event)(widget_t *, kbd_event_t); 108 113 … … 114 119 * should be posted to the window event loop. If the widget accepts 115 120 * keyboard events, it should take ownership of keyboard focus. Widget can 116 * also acquire or release mouse grab. */ 121 * also acquire or release mouse grab. 122 */ 117 123 void (*handle_position_event)(widget_t *, pos_event_t); 118 124 };
Note:
See TracChangeset
for help on using the changeset viewer.