|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
#include "draw_target.h"Data Structures | |
| struct | rmgui_target_composite_args_t |
| RMGUI_CMD_COMPOSITE uses blit.src/tint, rect/clip and an RGBA or SUBSTREAM source resource. More... | |
Functions | |
| void | rmgui_fb_composite_to (rmgui_target_t *target, const rmgui_fb_t *source, rmgui_rect_t source_rect, rmgui_rect_t rect, rmgui_rect_t clip, rmgui_rect_t rounded_mask, int radius, const rmgui_mask_t *shape, rmgui_rect_t shape_rect, int nearest, rmgui_color_t tint) |
| Explicit destination counterpart of fb_internal.h's combined composite. | |
| int | rmgui_fb_composite_stream_to (rmgui_target_t *parent, rmgui_target_t *child, rmgui_rect_t source_rect, rmgui_rect_t rect, rmgui_rect_t clip, rmgui_rect_t rounded_mask, int radius, const rmgui_mask_t *shape, rmgui_rect_t shape_rect, int nearest, rmgui_color_t tint) |
| Composite a same-kind child as a straight RGBA image, with the sampling, shape, rounded coverage and tint rules of rmgui_fb_composite_to. | |
| void rmgui_fb_composite_to | ( | rmgui_target_t * | target, |
| const rmgui_fb_t * | source, | ||
| rmgui_rect_t | source_rect, | ||
| rmgui_rect_t | rect, | ||
| rmgui_rect_t | clip, | ||
| rmgui_rect_t | rounded_mask, | ||
| int | radius, | ||
| const rmgui_mask_t * | shape, | ||
| rmgui_rect_t | shape_rect, | ||
| int | nearest, | ||
| rmgui_color_t | tint ) |
Explicit destination counterpart of fb_internal.h's combined composite.
All coordinates/sampling/tint/no-op rules are unchanged. Sources and the optional shape are pinned until submit/discard. Recording never allocates. Predeclare retained revisions using rmgui_target_source_stamped and rmgui_target_mask_stamped; this painter reuses the declared pins.
| int rmgui_fb_composite_stream_to | ( | rmgui_target_t * | parent, |
| rmgui_target_t * | child, | ||
| rmgui_rect_t | source_rect, | ||
| rmgui_rect_t | rect, | ||
| rmgui_rect_t | clip, | ||
| rmgui_rect_t | rounded_mask, | ||
| int | radius, | ||
| const rmgui_mask_t * | shape, | ||
| rmgui_rect_t | shape_rect, | ||
| int | nearest, | ||
| rmgui_color_t | tint ) |
Composite a same-kind child as a straight RGBA image, with the sampling, shape, rounded coverage and tint rules of rmgui_fb_composite_to.
CPU reads child->destination.cpu immediately. RECORD seals and acquires the child: its stream, storage and pinned resources must remain immutable and alive until parent submit/discard, which consumes both streams. The child starts transparent and cannot read parent pixels. Cycles and trees exceeding RMGUI_TARGET_LAYER_DEPTH_MAX including the root are refused. Replay scratch holds child width*height*4 bytes plus its nested scratch requirement. Returns 0 on success, -1 on invalid target kinds or record failure; RECORD failures latch on the parent. A failed call may seal the child without acquiring it; only a successful call transfers consumption to the parent. No allocation occurs.