Changeset 4df6607 in mainline for uspace/lib/ui/src
- Timestamp:
- 2020-11-01T18:37:09Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c6f00b40
- Parents:
- 8009dc27
- Location:
- uspace/lib/ui/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/control.c
r8009dc27 r4df6607 74 74 } 75 75 76 /** Paint UI control. 77 * 78 * @param control Push button 79 * @return EOK on success or an error code 80 */ 81 errno_t ui_control_paint(ui_control_t *control) 82 { 83 return control->ops->paint(control->ext); 84 } 85 76 86 /** Deliver position event to UI control. 77 87 * -
uspace/lib/ui/src/fixed.c
r8009dc27 r4df6607 147 147 } 148 148 149 /** Paint fixed layout. 150 * 151 * @param fixed Fixed layout 152 * @return EOK on success or an error code 153 */ 154 errno_t ui_fixed_paint(ui_fixed_t *fixed) 155 { 156 ui_fixed_elem_t *elem; 157 errno_t rc; 158 159 elem = ui_fixed_first(fixed); 160 while (elem != NULL) { 161 rc = ui_control_paint(elem->control); 162 if (rc != EOK) 163 return rc; 164 165 elem = ui_fixed_next(elem); 166 } 167 168 return EOK; 169 } 170 149 171 /** Handle fixed layout position event. 150 172 * -
uspace/lib/ui/src/label.c
r8009dc27 r4df6607 46 46 #include "../private/resource.h" 47 47 48 static errno_t ui_label_ctl_paint(void *); 48 49 static ui_evclaim_t ui_label_ctl_pos_event(void *, pos_event_t *); 49 50 50 51 /** Label control ops */ 51 52 ui_control_ops_t ui_label_ops = { 53 .paint = ui_label_ctl_paint, 52 54 .pos_event = ui_label_ctl_pos_event 53 55 }; … … 205 207 } 206 208 209 /** Paint lable control. 210 * 211 * @param arg Argument (ui_label_t *) 212 * @return EOK on success or an error code 213 */ 214 errno_t ui_label_ctl_paint(void *arg) 215 { 216 ui_label_t *label = (ui_label_t *) arg; 217 218 return ui_label_paint(label); 219 } 220 207 221 /** Handle label control position event. 208 222 * -
uspace/lib/ui/src/pbutton.c
r8009dc27 r4df6607 54 54 }; 55 55 56 static errno_t ui_pbutton_ctl_paint(void *); 56 57 static ui_evclaim_t ui_pbutton_ctl_pos_event(void *, pos_event_t *); 57 58 58 59 /** Push button control ops */ 59 60 ui_control_ops_t ui_pbutton_ops = { 61 .paint = ui_pbutton_ctl_paint, 60 62 .pos_event = ui_pbutton_ctl_pos_event 61 63 }; … … 416 418 } 417 419 420 /** Paint push button control. 421 * 422 * @param arg Argument (ui_pbutton_t *) 423 * @return EOK on success or an error code 424 */ 425 errno_t ui_pbutton_ctl_paint(void *arg) 426 { 427 ui_pbutton_t *pbutton = (ui_pbutton_t *) arg; 428 429 return ui_pbutton_paint(pbutton); 430 } 431 418 432 /** Handle push button control position event. 419 433 *
Note:
See TracChangeset
for help on using the changeset viewer.