| 359 | } |
| 360 | |
| 361 | inline static ElementLoadContext ForRawImage(void *raw_data, size_t raw_data_size, const u32 custom_width = 0, const u32 custom_height = 0) { |
| 362 | return { |
| 363 | .img_raw_data = raw_data, |
| 364 | .img_raw_data_size = raw_data_size, |
| 365 | .img_custom_width = custom_width, |
| 366 | .img_custom_height = custom_height |
| 367 | }; |
| 368 | } |
| 369 | |
| 370 | inline static ElementLoadContext ForText(const std::string &text) { |
| 371 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected