Changeset d70dc1c4 in mainline for uspace/lib/ui/src/paint.c
- Timestamp:
- 2021-01-06T10:06:42Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7020d1f
- Parents:
- e037cf37
- git-author:
- Jiri Svoboda <jiri@…> (2021-01-05 18:06:37)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-01-06 10:06:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/paint.c
re037cf37 rd70dc1c4 39 39 #include <gfx/render.h> 40 40 #include <ui/paint.h> 41 #include "../private/resource.h" 41 42 42 43 /** Paint bevel. … … 118 119 } 119 120 121 /** Paint inset frame. 122 * 123 * @param resource UI resource 124 * @param rect Rectangle to paint onto 125 * @param inside Place to store inside rectangle or @c NULL 126 * @return EOK on success or an error code 127 */ 128 errno_t ui_paint_inset_frame(ui_resource_t *resource, gfx_rect_t *rect, 129 gfx_rect_t *inside) 130 { 131 gfx_rect_t frame; 132 errno_t rc; 133 134 rc = ui_paint_bevel(resource->gc, rect, 135 resource->wnd_shadow_color, resource->wnd_highlight_color, 136 1, &frame); 137 if (rc != EOK) 138 goto error; 139 140 rc = ui_paint_bevel(resource->gc, &frame, 141 resource->wnd_frame_sh_color, resource->wnd_frame_hi_color, 142 1, inside); 143 if (rc != EOK) 144 goto error; 145 146 return EOK; 147 error: 148 return rc; 149 } 150 120 151 /** @} 121 152 */
Note:
See TracChangeset
for help on using the changeset viewer.