Lines Matching defs:col

1094 ///     unsigned char col[4];
1100 /// {NK_VERTEX_COLOR, NK_FORMAT_R8G8B8A8, NK_OFFSETOF(struct your_vertex, col)},
4533 struct nk_color col;
4578 NK_API void nk_stroke_polyline(struct nk_command_buffer*, float *points, int point_count, float line_thickness, struct nk_color col);
4789 NK_API void nk_draw_list_fill_circle(struct nk_draw_list*, struct nk_vec2 center, float radius, struct nk_color col, unsigned int segs);
5977 NK_LIB void nk_draw_color_picker(struct nk_command_buffer *o, const struct nk_rect *matrix, const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, struct nk_colorf col);
5978 NK_LIB int nk_do_color_picker(nk_flags *state, struct nk_command_buffer *out, struct nk_colorf *col, enum nk_color_format fmt, struct nk_rect bounds, struct nk_vec2 padding, const struct nk_input *in, const struct nk_user_font *font);
7476 struct nk_color col;
7479 col.r = (nk_byte)nk_parse_hex(c, 2);
7480 col.g = (nk_byte)nk_parse_hex(c+2, 2);
7481 col.b = (nk_byte)nk_parse_hex(c+4, 2);
7482 col.a = 255;
7483 return col;
7488 struct nk_color col;
7491 col.r = (nk_byte)nk_parse_hex(c, 2);
7492 col.g = (nk_byte)nk_parse_hex(c+2, 2);
7493 col.b = (nk_byte)nk_parse_hex(c+4, 2);
7494 col.a = (nk_byte)nk_parse_hex(c+6, 2);
7495 return col;
7498 nk_color_hex_rgba(char *output, struct nk_color col)
7501 output[0] = (char)NK_TO_HEX((col.r & 0xF0) >> 4);
7502 output[1] = (char)NK_TO_HEX((col.r & 0x0F));
7503 output[2] = (char)NK_TO_HEX((col.g & 0xF0) >> 4);
7504 output[3] = (char)NK_TO_HEX((col.g & 0x0F));
7505 output[4] = (char)NK_TO_HEX((col.b & 0xF0) >> 4);
7506 output[5] = (char)NK_TO_HEX((col.b & 0x0F));
7507 output[6] = (char)NK_TO_HEX((col.a & 0xF0) >> 4);
7508 output[7] = (char)NK_TO_HEX((col.a & 0x0F));
7513 nk_color_hex_rgb(char *output, struct nk_color col)
7516 output[0] = (char)NK_TO_HEX((col.r & 0xF0) >> 4);
7517 output[1] = (char)NK_TO_HEX((col.r & 0x0F));
7518 output[2] = (char)NK_TO_HEX((col.g & 0xF0) >> 4);
7519 output[3] = (char)NK_TO_HEX((col.g & 0x0F));
7520 output[4] = (char)NK_TO_HEX((col.b & 0xF0) >> 4);
7521 output[5] = (char)NK_TO_HEX((col.b & 0x0F));
7778 struct nk_colorf col;
7779 nk_color_f(&col.r,&col.g,&col.b,&col.a, in);
7780 nk_colorf_hsva_f(out_h, out_s, out_v, out_a, col);
8836 float bx, float by, float line_thickness, struct nk_color col)
8840 if (!b || col.a == 0 || line_thickness <= 0) return;
8854 cmd->color = col;
9061 float line_thickness, struct nk_color col)
9068 if (!b || col.a == 0 || line_thickness <= 0) return;
9072 cmd->color = col;
9082 struct nk_color col)
9089 if (!b || col.a == 0) return;
9094 cmd->color = col;
9103 float line_thickness, struct nk_color col)
9110 if (!b || col.a == 0 || line_thickness <= 0) return;
9114 cmd->color = col;
9124 const struct nk_image *img, struct nk_color col)
9143 cmd->col = col;
9494 struct nk_color col = nk_rgba_fv(val);
9495 NK_MEMCPY(attr, &col.r, sizeof(col));
9498 struct nk_color col = nk_rgba_fv(val);
9499 struct nk_color bgra = nk_rgba(col.b, col.g, col.r, col.a);
9503 nk_ushort col[3];
9504 col[0] = (nk_ushort)(val[0]*(float)NK_USHORT_MAX);
9505 col[1] = (nk_ushort)(val[1]*(float)NK_USHORT_MAX);
9506 col[2] = (nk_ushort)(val[2]*(float)NK_USHORT_MAX);
9507 NK_MEMCPY(attr, col, sizeof(col));
9510 nk_ushort col[4];
9511 col[0] = (nk_ushort)(val[0]*(float)NK_USHORT_MAX);
9512 col[1] = (nk_ushort)(val[1]*(float)NK_USHORT_MAX);
9513 col[2] = (nk_ushort)(val[2]*(float)NK_USHORT_MAX);
9514 col[3] = (nk_ushort)(val[3]*(float)NK_USHORT_MAX);
9515 NK_MEMCPY(attr, col, sizeof(col));
9518 nk_uint col[3];
9519 col[0] = (nk_uint)(val[0]*(float)NK_UINT_MAX);
9520 col[1] = (nk_uint)(val[1]*(float)NK_UINT_MAX);
9521 col[2] = (nk_uint)(val[2]*(float)NK_UINT_MAX);
9522 NK_MEMCPY(attr, col, sizeof(col));
9525 nk_uint col[4];
9526 col[0] = (nk_uint)(val[0]*(float)NK_UINT_MAX);
9527 col[1] = (nk_uint)(val[1]*(float)NK_UINT_MAX);
9528 col[2] = (nk_uint)(val[2]*(float)NK_UINT_MAX);
9529 col[3] = (nk_uint)(val[3]*(float)NK_UINT_MAX);
9530 NK_MEMCPY(attr, col, sizeof(col));
9536 double col[4];
9537 col[0] = (double)val[0];
9538 col[1] = (double)val[1];
9539 col[2] = (double)val[2];
9540 col[3] = (double)val[3];
9541 NK_MEMCPY(attr, col, sizeof(col));
9545 struct nk_color col = nk_rgba_fv(val);
9546 nk_uint color = nk_color_u32(col);
9630 struct nk_colorf col;
9645 nk_color_fv(&col.r, color);
9646 col_trans = col;
9746 vtx = nk_draw_vertex(vtx, &list->config, points[i], uv, col);
9812 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+1], uv, col);
9813 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+2], uv, col);
9849 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p1.x + dy, p1.y - dx), uv, col);
9850 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p2.x + dy, p2.y - dx), uv, col);
9851 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p2.x - dy, p2.y + dx), uv, col);
9852 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p1.x - dy, p1.y + dx), uv, col);
9868 struct nk_colorf col;
9881 nk_color_fv(&col.r, color);
9882 col_trans = col;
9954 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2_sub(points[i1], dm), uv, col);
9978 vtx = nk_draw_vertex(vtx, &list->config, points[i], list->config.null.uv, col);
10149 struct nk_vec2 b, struct nk_color col, float thickness)
10152 if (!list || !col.a) return;
10160 nk_draw_list_path_stroke(list, col, NK_STROKE_OPEN, thickness);
10164 struct nk_color col, float rounding)
10167 if (!list || !col.a) return;
10175 } nk_draw_list_path_fill(list, col);
10179 struct nk_color col, float rounding, float thickness)
10182 if (!list || !col.a) return;
10189 } nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness);
10227 struct nk_vec2 b, struct nk_vec2 c, struct nk_color col)
10230 if (!list || !col.a) return;
10234 nk_draw_list_path_fill(list, col);
10238 struct nk_vec2 b, struct nk_vec2 c, struct nk_color col, float thickness)
10241 if (!list || !col.a) return;
10245 nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness);
10249 float radius, struct nk_color col, unsigned int segs)
10253 if (!list || !col.a) return;
10256 nk_draw_list_path_fill(list, col);
10260 float radius, struct nk_color col, unsigned int segs, float thickness)
10264 if (!list || !col.a) return;
10267 nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness);
10272 struct nk_color col, unsigned int segments, float thickness)
10275 if (!list || !col.a) return;
10278 nk_draw_list_path_stroke(list, col, NK_STROKE_OPEN, thickness);
10291 struct nk_colorf col;
10297 nk_color_fv(&col.r, color);
10312 vtx = nk_draw_vertex(vtx, &list->config, a, uva, col);
10313 vtx = nk_draw_vertex(vtx, &list->config, b, uvb, col);
10314 vtx = nk_draw_vertex(vtx, &list->config, c, uvc, col);
10315 vtx = nk_draw_vertex(vtx, &list->config, d, uvd, col);
10516 nk_draw_list_add_image(&ctx->draw_list, i->img, nk_rect(i->x, i->y, i->w, i->h), i->col);
14257 nk_style_item_color(struct nk_color col)
14261 i.data.color = col;
19668 nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col)
19680 nk_draw_image(&win->buffer, bounds, &img, col);
24405 struct nk_colorf col)
24422 nk_colorf_hsva_fv(hsva, col);
24439 float alpha = NK_SATURATE(col.a);
24463 struct nk_command_buffer *out, struct nk_colorf *col,
24475 NK_ASSERT(col);
24478 if (!out || !col || !state || !font)
24503 (fmt == NK_RGBA) ? &alpha_bar:0, col, in);
24504 nk_draw_color_picker(out, &matrix, &hue_bar, (fmt == NK_RGBA) ? &alpha_bar:0, *col);