Changes in uspace/lib/ui/src/checkbox.c [806d761:86fff971] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/checkbox.c
r806d761 r86fff971 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 139 139 } 140 140 141 /** Set check boxrectangle.142 * 143 * @param checkbox Check box144 * @param rect New check boxrectangle141 /** Set button rectangle. 142 * 143 * @param checkbox Button 144 * @param rect New button rectangle 145 145 */ 146 146 void ui_checkbox_set_rect(ui_checkbox_t *checkbox, gfx_rect_t *rect) 147 147 { 148 148 checkbox->rect = *rect; 149 }150 151 /** Return if check box is checked.152 *153 * @param checkbox Check box154 * @return @c true iff check box is checked155 */156 bool ui_checkbox_get_checked(ui_checkbox_t *checkbox)157 {158 return checkbox->checked;159 }160 161 /** Set check box checked state.162 *163 * @param checkbox Check box164 * @param checked @c true iff checkbox should be checked165 */166 void ui_checkbox_set_checked(ui_checkbox_t *checkbox, bool checked)167 {168 checkbox->checked = checked;169 149 } 170 150
Note:
See TracChangeset
for help on using the changeset viewer.