| 19422 | return !(img->w == 0 && img->h == 0); |
| 19423 | } |
| 19424 | NK_API void |
| 19425 | nk_image(struct nk_context *ctx, struct nk_image img) |
| 19426 | { |
| 19427 | struct nk_window *win; |
| 19428 | struct nk_rect bounds; |
| 19429 | |
| 19430 | NK_ASSERT(ctx); |
| 19431 | NK_ASSERT(ctx->current); |
| 19432 | NK_ASSERT(ctx->current->layout); |
| 19433 | if (!ctx || !ctx->current || !ctx->current->layout) return; |
| 19434 | |
| 19435 | win = ctx->current; |
| 19436 | if (!nk_widget(&bounds, ctx)) return; |
| 19437 | nk_draw_image(&win->buffer, bounds, &img, nk_white); |
| 19438 | } |
| 19439 | NK_API void |
| 19440 | nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col) |
| 19441 | { |
nothing calls this directly
no test coverage detected