|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Caller-owned declarative painting over the bounded target command stream. More...
Data Structures | |
| struct | rmgui_recipe_number_t |
| Literal or class-local resolved property. More... | |
| struct | rmgui_recipe_color_t |
| struct | rmgui_recipe_step_t |
| A borrowed immutable layer. More... | |
| struct | rmgui_recipe_t |
| No count limit beyond caller storage and the selected primitive's limits. More... | |
| struct | rmgui_recipe_part_t |
| A class's part/state mapping. More... | |
| struct | rmgui_recipe_set_t |
| struct | rmgui_recipe_scratch_t |
| Caller-owned intersections for contour steps. More... | |
Enumerations | |
| enum | rmgui_recipe_op_t { RMGUI_RECIPE_FILL , RMGUI_RECIPE_STROKE , RMGUI_RECIPE_GLOW , RMGUI_RECIPE_LINEAR , RMGUI_RECIPE_RADIAL , RMGUI_RECIPE_CONIC , RMGUI_RECIPE_IMAGE , RMGUI_RECIPE_NINE_PATCH , RMGUI_RECIPE_TILE , RMGUI_RECIPE_CONTOURS , RMGUI_RECIPE_INK , RMGUI_RECIPE_TILE_PREMUL } |
| Operations preserve the corresponding target primitive's sampling rules. More... | |
Functions | |
| int | rmgui_recipe_paint_to (rmgui_target_t *, const rmgui_recipe_t *, const rmgui_style_resolved_t *, const rmgui_style_ext_resolved_t *, rmgui_rect_t, rmgui_rect_t, rmgui_recipe_scratch_t *, rmgui_color_t *ink) |
| Validate all active steps before painting. | |
| int | rmgui_style_ext_bind_recipes (rmgui_style_ext_t *, size_t, const rmgui_recipe_set_t *) |
| Bind borrowed recipe data to a registered class; validates tuple uniqueness and state bits. | |
| int | rmgui_style_resolve_recipes (const rmgui_style_snapshot_t *, const rmgui_style_ext_t *, size_t, rmgui_style_class_t, rmgui_style_states_t, int, int, rmgui_style_ext_resolved_t *, rmgui_style_resolved_t *) |
| Resolve a builtin geometry template and the registered class properties, attaching its recipes to out. | |
Caller-owned declarative painting over the bounded target command stream.
| enum rmgui_recipe_op_t |
Operations preserve the corresponding target primitive's sampling rules.
SHADED images use 1 (multiply), 2 (luminance ramp), or 3 (bevel) colors.
| int rmgui_recipe_paint_to | ( | rmgui_target_t * | , |
| const rmgui_recipe_t * | , | ||
| const rmgui_style_resolved_t * | , | ||
| const rmgui_style_ext_resolved_t * | , | ||
| rmgui_rect_t | , | ||
| rmgui_rect_t | , | ||
| rmgui_recipe_scratch_t * | , | ||
| rmgui_color_t * | ink ) |
Validate all active steps before painting.
Return 0/-1; invalid input leaves destination and ink unchanged. RECORD exhaustion latches on its stream and prevents prefix replay. CPU image sources must not alias the destination. ink may be NULL; otherwise INK selects it, with resolved text as default. No allocation, retained scratch, or mutation of recipes/properties occurs.
| int rmgui_style_ext_bind_recipes | ( | rmgui_style_ext_t * | , |
| size_t | , | ||
| const rmgui_recipe_set_t * | ) |
Bind borrowed recipe data to a registered class; validates tuple uniqueness and state bits.
NULL removes a binding. Failure leaves the registry intact.
| int rmgui_style_resolve_recipes | ( | const rmgui_style_snapshot_t * | , |
| const rmgui_style_ext_t * | , | ||
| size_t | , | ||
| rmgui_style_class_t | , | ||
| rmgui_style_states_t | , | ||
| int | , | ||
| int | , | ||
| rmgui_style_ext_resolved_t * | , | ||
| rmgui_style_resolved_t * | ) |
Resolve a builtin geometry template and the registered class properties, attaching its recipes to out.
Resolved property storage and registry must outlive out. Both outputs remain unchanged on refusal. For contour steps, assign caller-owned intersections to out->recipe_scratch before painting.