Lines Matching refs:data

546 /// __nk_set_user_data__| Utility function to pass user data to draw command
660 /// void nk_set_user_data(struct nk_context *ctx, nk_handle data);
3755 handling scheme and only requires essential data to run nuklear. The next
4051 NK_API struct nk_font* nk_font_atlas_add_compressed_base85(struct nk_font_atlas*, const char *data, float height, const struct nk_font_config *config);
4235 * complexity I would not recommend editing gigabytes of data with it.
4818 union nk_style_item_data data;
5548 union nk_page_data data;
7238 const nk_byte *data = (const nk_byte*)key;
7239 const nk_byte *keyptr = data;
7268 tail = (const nk_byte*)(data + nblocks*4);
10974 const unsigned char* data; /* pointer to .ttf file */
11100 nk_tt__find_table(const nk_byte *data, nk_uint fontstart, const char *tag)
11103 nk_int num_tables = nk_ttUSHORT(data+fontstart+4);
11108 if (nk_tt_tag(data+loc+0, tag))
11109 return nk_ttULONG(data+loc+8);
11118 const nk_byte *data = (const nk_byte *) data2;
11120 info->data = data;
11123 cmap = nk_tt__find_table(data, (nk_uint)fontstart, "cmap"); /* required */
11124 info->loca = (int)nk_tt__find_table(data, (nk_uint)fontstart, "loca"); /* required */
11125 info->head = (int)nk_tt__find_table(data, (nk_uint)fontstart, "head"); /* required */
11126 info->glyf = (int)nk_tt__find_table(data, (nk_uint)fontstart, "glyf"); /* required */
11127 info->hhea = (int)nk_tt__find_table(data, (nk_uint)fontstart, "hhea"); /* required */
11128 info->hmtx = (int)nk_tt__find_table(data, (nk_uint)fontstart, "hmtx"); /* required */
11129 info->kern = (int)nk_tt__find_table(data, (nk_uint)fontstart, "kern"); /* not required */
11133 t = nk_tt__find_table(data, (nk_uint)fontstart, "maxp");
11134 if (t) info->numGlyphs = nk_ttUSHORT(data+t+4);
11140 numTables = nk_ttUSHORT(data + cmap + 2);
11146 switch(nk_ttUSHORT(data+encoding_record)) {
11148 switch (nk_ttUSHORT(data+encoding_record+2)) {
11152 info->index_map = (int)(cmap + nk_ttULONG(data+encoding_record+4));
11159 info->index_map = (int)(cmap + nk_ttULONG(data+encoding_record+4));
11166 info->indexToLocFormat = nk_ttUSHORT(data+info->head + 50);
11172 const nk_byte *data = info->data;
11175 nk_ushort format = nk_ttUSHORT(data + index_map + 0);
11177 nk_int bytes = nk_ttUSHORT(data + index_map + 2);
11179 return nk_ttBYTE(data + index_map + 6 + unicode_codepoint);
11182 nk_uint first = nk_ttUSHORT(data + index_map + 6);
11183 nk_uint count = nk_ttUSHORT(data + index_map + 8);
11185 return nk_ttUSHORT(data + index_map + 10 + (unicode_codepoint - (int)first)*2);
11191 nk_ushort segcount = nk_ttUSHORT(data+index_map+6) >> 1;
11192 nk_ushort searchRange = nk_ttUSHORT(data+index_map+8) >> 1;
11193 nk_ushort entrySelector = nk_ttUSHORT(data+index_map+10);
11194 nk_ushort rangeShift = nk_ttUSHORT(data+index_map+12) >> 1;
11205 if (unicode_codepoint >= nk_ttUSHORT(data + search + rangeShift*2))
11213 end = nk_ttUSHORT(data + search + searchRange*2);
11224 NK_ASSERT(unicode_codepoint <= nk_ttUSHORT(data + endCount + 2*item));
11225 start = nk_ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item);
11229 offset = nk_ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item);
11231 return (nk_ushort) (unicode_codepoint + nk_ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item));
11233 return nk_ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item);
11236 nk_uint ngroups = nk_ttULONG(data+index_map+12);
11242 nk_uint start_char = nk_ttULONG(data+index_map+16+mid*12);
11243 nk_uint end_char = nk_ttULONG(data+index_map+16+mid*12+4);
11249 nk_uint start_glyph = nk_ttULONG(data+index_map+16+mid*12+8);
11279 g1 = info->glyf + nk_ttUSHORT(info->data + info->loca + glyph_index * 2) * 2;
11280 g2 = info->glyf + nk_ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2;
11282 g1 = info->glyf + (int)nk_ttULONG (info->data + info->loca + glyph_index * 4);
11283 g2 = info->glyf + (int)nk_ttULONG (info->data + info->loca + glyph_index * 4 + 4);
11294 if (x0) *x0 = nk_ttSHORT(info->data + g + 2);
11295 if (y0) *y0 = nk_ttSHORT(info->data + g + 4);
11296 if (x1) *x1 = nk_ttSHORT(info->data + g + 6);
11297 if (y1) *y1 = nk_ttSHORT(info->data + g + 8);
11322 const nk_byte *data = info->data;
11329 numberOfContours = nk_ttSHORT(data + g);
11335 endPtsOfContours = (data + g + 10);
11336 ins = nk_ttUSHORT(data + g + 10 + numberOfContours * 2);
11337 points = data + g + 10 + numberOfContours * 2 + 2 + ins;
11348 /* in first pass, we load uninterpreted data into the allocated array */
11350 /* we create our final data starting from the front */
11351 off = m - n; /* starting offset for uninterpreted data, regardless of how m ends up being calculated */
11453 const nk_byte *comp = data + g + 10;
11543 nk_ushort numOfLongHorMetrics = nk_ttUSHORT(info->data+info->hhea + 34);
11546 *advanceWidth = nk_ttSHORT(info->data + info->hmtx + 4*glyph_index);
11548 *leftSideBearing = nk_ttSHORT(info->data + info->hmtx + 4*glyph_index + 2);
11551 *advanceWidth = nk_ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1));
11553 *leftSideBearing = nk_ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics));
11560 if (ascent ) *ascent = nk_ttSHORT(info->data+info->hhea + 4);
11561 if (descent) *descent = nk_ttSHORT(info->data+info->hhea + 6);
11562 if (lineGap) *lineGap = nk_ttSHORT(info->data+info->hhea + 8);
11567 int fheight = nk_ttSHORT(info->data + info->hhea + 4) - nk_ttSHORT(info->data + info->hhea + 6);
11573 int unitsPerEm = nk_ttUSHORT(info->data + info->head + 18);
12771 /* pack custom user data first so it will be in the upper left corner*/
12921 /* fill own glyph type with data */
13284 nk__match(unsigned char *data, unsigned int length)
13289 if (data < nk__barrier4) { nk__dout = nk__barrier+1; return; }
13290 while (length--) *nk__dout++ = *data++;
13293 nk__lit(unsigned char *data, unsigned int length)
13297 if (data < nk__barrier2) { nk__dout = nk__barrier+1; return; }
13298 NK_MEMCPY(nk__dout, data, length);
14253 i.data.image = img;
14261 i.data.color = col;
14269 i.data.color = nk_rgba(0,0,0,0);
15445 return &elem->data.tbl;
15451 struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data);
15536 return &elem->data.pan;
15542 struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data);
15741 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
15743 text.background = background->data.color;
15744 nk_fill_rect(out, header, 0, background->data.color);
15816 nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white);
15817 else nk_fill_rect(out, body, 0, style->window.fixed_background.data.color);
15855 /* cache configuration data */
16031 nk_draw_image(out, scaler, &item->data.image, nk_white);
16036 scaler.y + scaler.h, item->data.color);
16039 scaler.y + scaler.h, scaler.x, scaler.y + scaler.h, item->data.color);
16140 elem->data.win.seq = ctx->seq;
16141 return &elem->data.win;
16167 struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data);
16851 /* setup popup data */
17654 /* prefetch some configuration data */
18376 /* cache some data */
18393 nk_draw_image(out, header, &background->data.image, nk_white);
18396 text.background = background->data.color;
18399 style->tab.rounding, background->data.color);
18561 /* cache some data */
18579 nk_draw_image(out, header, &background->data.image, nk_white);
18582 text.background = background->data.color;
18585 style->tab.rounding, background->data.color);
19785 nk_draw_image(out, *bounds, &background->data.image, nk_white);
19787 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
19829 text.background = background->data.color;
19876 bg = background->data.color;
19957 text.background = background->data.color;
20021 text.background = background->data.color;
20403 nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color);
20404 } else nk_draw_image(out, *selector, &background->data.image, nk_white);
20407 nk_draw_image(out, *cursors, &cursor->data.image, nk_white);
20408 else nk_fill_rect(out, *cursors, 0, cursor->data.color);
20445 nk_fill_circle(out, nk_shrink_rect(*selector, style->border), background->data.color);
20446 } else nk_draw_image(out, *selector, &background->data.image, nk_white);
20449 nk_draw_image(out, *cursors, &cursor->data.image, nk_white);
20450 else nk_fill_circle(out, *cursors, cursor->data.color);
20717 nk_draw_image(out, *bounds, &background->data.image, nk_white);
20720 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
20721 text.background = background->data.color;
21089 nk_draw_image(out, *bounds, &background->data.image, nk_white);
21091 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21101 nk_draw_image(out, *visual_cursor, &cursor->data.image, nk_white);
21102 else nk_fill_circle(out, *visual_cursor, cursor->data.color);
21313 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21315 } else nk_draw_image(out, *bounds, &background->data.image, nk_white);
21319 nk_fill_rect(out, *scursor, style->rounding, cursor->data.color);
21321 } else nk_draw_image(out, *scursor, &cursor->data.image, nk_white);
21499 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21502 nk_draw_image(out, *bounds, &background->data.image, nk_white);
21507 nk_fill_rect(out, *scroll, style->rounding_cursor, cursor->data.color);
21509 } else nk_draw_image(out, *scroll, &cursor->data.image, nk_white);
23050 nk_fill_rect(out, bounds, style->rounding, background->data.color);
23051 } else nk_draw_image(out, bounds, &background->data.image, nk_white);}
23254 else background_color = background->data.color;
23361 else background_color = background->data.color;
23615 nk_draw_image(out, *bounds, &background->data.image, nk_white);
23618 text.background = background->data.color;
23619 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
23620 nk_stroke_rect(out, *bounds, style->rounding, style->border, background->data.color);
24082 nk_draw_image(&win->buffer, bounds, &background->data.image, nk_white);
24086 style->rounding, style->background.data.color);
24149 /* first data point does not have a connection */
24170 /* draw a line between the last data point and the new one */
24180 /* user selection of current data point */
24191 /* save current data point position */
24630 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
24632 text.background = background->data.color;
24633 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24716 nk_draw_image(&win->buffer, header, &background->data.image,nk_white);
24718 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24801 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
24803 sym_background = background->data.color;
24804 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24890 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
24892 text.background = background->data.color;
24893 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24976 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
24978 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
25059 nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
25061 text.background = background->data.color;
25062 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
25301 void(*item_getter)(void* data, int id, const char **out_text),
25382 /* fetch configuration data */
25491 /// - 2018/01/31 (3.00.5) - Fixed overcalculation of cursor data in font baking process.
25746 /// - 2016/07/15 (1.01.0) - Added const correctness to `nk_buffer_push' data argument.