Changeset d68239a1 in mainline for uspace/lib/ui/include
- Timestamp:
- 2022-04-04T14:48:41Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86fff971
- Parents:
- 0d1d0ea
- git-author:
- Jiri Svoboda <jiri@…> (2022-04-03 17:48:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-04-04 14:48:41)
- Location:
- uspace/lib/ui/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/types/ui/pbutton.h
r0d1d0ea rd68239a1 37 37 #define _UI_TYPES_PBUTTON_H 38 38 39 #include <errno.h> 40 #include <gfx/coord.h> 41 39 42 struct ui_pbutton; 40 43 typedef struct ui_pbutton ui_pbutton_t; … … 47 50 } ui_pbutton_cb_t; 48 51 52 /** Push button decoration ops */ 53 typedef struct ui_pbutton_decor_ops { 54 errno_t (*paint)(ui_pbutton_t *, void *, gfx_coord2_t *); 55 } ui_pbutton_decor_ops_t; 56 49 57 #endif 50 58 -
uspace/lib/ui/include/ui/paint.h
r0d1d0ea rd68239a1 55 55 extern errno_t ui_paint_filled_circle(gfx_context_t *, gfx_coord2_t *, 56 56 gfx_coord_t, ui_fcircle_part_t); 57 extern errno_t ui_paint_up_triangle(gfx_context_t *, gfx_coord2_t *, 58 gfx_coord_t); 59 extern errno_t ui_paint_down_triangle(gfx_context_t *, gfx_coord2_t *, 60 gfx_coord_t); 61 extern errno_t ui_paint_left_triangle(gfx_context_t *, gfx_coord2_t *, 62 gfx_coord_t); 63 extern errno_t ui_paint_right_triangle(gfx_context_t *, gfx_coord2_t *, 64 gfx_coord_t); 57 65 extern errno_t ui_paint_text_box(ui_resource_t *, gfx_rect_t *, 58 66 ui_box_style_t, gfx_color_t *); -
uspace/lib/ui/include/ui/pbutton.h
r0d1d0ea rd68239a1 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 51 51 extern ui_control_t *ui_pbutton_ctl(ui_pbutton_t *); 52 52 extern void ui_pbutton_set_cb(ui_pbutton_t *, ui_pbutton_cb_t *, void *); 53 extern void ui_pbutton_set_decor_ops(ui_pbutton_t *, ui_pbutton_decor_ops_t *, 54 void *); 53 55 extern void ui_pbutton_set_rect(ui_pbutton_t *, gfx_rect_t *); 54 56 extern void ui_pbutton_set_default(ui_pbutton_t *, bool);
Note:
See TracChangeset
for help on using the changeset viewer.