Lines Matching defs:sizeof

416 NK_STATIC_ASSERT(sizeof(nk_short) == 2);
417 NK_STATIC_ASSERT(sizeof(nk_ushort) == 2);
418 NK_STATIC_ASSERT(sizeof(nk_uint) == 4);
419 NK_STATIC_ASSERT(sizeof(nk_int) == 4);
420 NK_STATIC_ASSERT(sizeof(nk_byte) == 1);
421 NK_STATIC_ASSERT(sizeof(nk_flags) >= 4);
422 NK_STATIC_ASSERT(sizeof(nk_rune) >= 4);
423 NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
424 NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*));
1106 /// cfg.vertex_size = sizeof(struct your_vertex);
1164 nk_size vertex_size; /* sizeof one vertex for vertex packing */
5531 (((NK_MAX(sizeof(struct nk_window),sizeof(struct nk_panel)) / sizeof(nk_uint))) / 2)
5620 #define NK_LEN(a) (sizeof(a)/sizeof(a)[0])
5637 #define nk_zero_struct(s) nk_zero(&s, sizeof(s))
5675 diff = sizeof(Big) - sizeof(T), value = nk_helper<Big, diff>::value};};
5770 NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
5771 NK_STATIC_ASSERT(sizeof(nk_ptr) == sizeof(void*));
5772 NK_STATIC_ASSERT(sizeof(nk_flags) >= 4);
5773 NK_STATIC_ASSERT(sizeof(nk_rune) >= 4);
5774 NK_STATIC_ASSERT(sizeof(nk_ushort) == 2);
5775 NK_STATIC_ASSERT(sizeof(nk_short) == 2);
5776 NK_STATIC_ASSERT(sizeof(nk_uint) == 4);
5777 NK_STATIC_ASSERT(sizeof(nk_int) == 4);
5778 NK_STATIC_ASSERT(sizeof(nk_byte) == 1);
6344 #define nk_wsize sizeof(nk_word)
6394 #define nk_wsize sizeof(nk_word)
6402 if (sizeof(unsigned int) > 2)
7241 const int bsize = sizeof(k1);
8041 nk_zero(b, sizeof(*b));
8057 nk_zero(b, sizeof(*b));
8317 mem = (char*)nk_buffer_alloc(&s->buffer, NK_BUFFER_FRONT, (nk_size)len * sizeof(char), 0);
8319 NK_MEMCPY(mem, str, (nk_size)len * sizeof(char));
8411 mem = nk_buffer_alloc(&s->buffer, NK_BUFFER_FRONT, (nk_size)len * sizeof(char), 0);
8421 NK_MEMCPY(mem, str, (nk_size)len * sizeof(char));
8808 nk_command_buffer_push(b, NK_COMMAND_SCISSOR, sizeof(*cmd));
8824 nk_command_buffer_push(b, NK_COMMAND_LINE, sizeof(*cmd));
8843 nk_command_buffer_push(b, NK_COMMAND_CURVE, sizeof(*cmd));
8869 nk_command_buffer_push(b, NK_COMMAND_RECT, sizeof(*cmd));
8893 nk_command_buffer_push(b, NK_COMMAND_RECT_FILLED, sizeof(*cmd));
8917 nk_command_buffer_push(b, NK_COMMAND_RECT_MULTI_COLOR, sizeof(*cmd));
8941 nk_command_buffer_push(b, NK_COMMAND_CIRCLE, sizeof(*cmd));
8963 nk_command_buffer_push(b, NK_COMMAND_CIRCLE_FILLED, sizeof(*cmd));
8978 nk_command_buffer_push(b, NK_COMMAND_ARC, sizeof(*cmd));
8996 nk_command_buffer_push(b, NK_COMMAND_ARC_FILLED, sizeof(*cmd));
9021 nk_command_buffer_push(b, NK_COMMAND_TRIANGLE, sizeof(*cmd));
9049 nk_command_buffer_push(b, NK_COMMAND_TRIANGLE_FILLED, sizeof(*cmd));
9069 size = sizeof(*cmd) + sizeof(short) * 2 * (nk_size)point_count;
9090 size = sizeof(*cmd) + sizeof(short) * 2 * (nk_size)point_count;
9111 size = sizeof(*cmd) + sizeof(short) * 2 * (nk_size)point_count;
9136 nk_command_buffer_push(b, NK_COMMAND_IMAGE, sizeof(*cmd));
9159 nk_command_buffer_push(b, NK_COMMAND_CUSTOM, sizeof(*cmd));
9195 nk_command_buffer_push(b, NK_COMMAND_TEXT, sizeof(*cmd) + (nk_size)(length + 1));
9226 nk_zero(list, sizeof(*list));
9316 NK_STORAGE const nk_size point_size = sizeof(struct nk_vec2);
9345 NK_STORAGE const nk_size cmd_size = sizeof(struct nk_draw_command);
9446 if(sizeof(nk_draw_index)==2) NK_ASSERT((list->vertex_count < NK_USHORT_MAX &&
9456 NK_STORAGE const nk_size elem_size = sizeof(nk_draw_index);
9495 NK_MEMCPY(attr, &col.r, sizeof(col));
9500 NK_MEMCPY(attr, &bgra, sizeof(bgra));
9507 NK_MEMCPY(attr, col, sizeof(col));
9515 NK_MEMCPY(attr, col, sizeof(col));
9522 NK_MEMCPY(attr, col, sizeof(col));
9530 NK_MEMCPY(attr, col, sizeof(col));
9533 NK_MEMCPY(attr, val, sizeof(float)*4);
9541 NK_MEMCPY(attr, col, sizeof(col));
9547 NK_MEMCPY(attr, &color, sizeof(color));
9564 NK_MEMCPY(attribute, &value, sizeof(value));
9565 attribute = (void*)((char*)attribute + sizeof(char));
9569 NK_MEMCPY(attribute, &value, sizeof(value));
9570 attribute = (void*)((char*)attribute + sizeof(value));
9574 NK_MEMCPY(attribute, &value, sizeof(value));
9575 attribute = (void*)((char*)attribute + sizeof(nk_int));
9579 NK_MEMCPY(attribute, &value, sizeof(value));
9580 attribute = (void*)((char*)attribute + sizeof(unsigned char));
9584 NK_MEMCPY(attribute, &value, sizeof(value));
9585 attribute = (void*)((char*)attribute + sizeof(value));
9589 NK_MEMCPY(attribute, &value, sizeof(value));
9590 attribute = (void*)((char*)attribute + sizeof(nk_uint));
9593 NK_MEMCPY(attribute, &values[value_index], sizeof(values[value_index]));
9594 attribute = (void*)((char*)attribute + sizeof(float));
9598 NK_MEMCPY(attribute, &value, sizeof(value));
9599 attribute = (void*)((char*)attribute + sizeof(double));
9653 NK_STORAGE const nk_size pnt_size = sizeof(struct nk_vec2);
9872 NK_STORAGE const nk_size pnt_size = sizeof(struct nk_vec2);
11341 vertices = (struct nk_tt_vertex *)alloc->alloc(alloc->userdata, 0, (nk_size)m * sizeof(vertices[0]));
11514 (nk_size)(num_vertices+comp_num_verts)*sizeof(struct nk_tt_vertex));
11520 if (num_vertices > 0) NK_MEMCPY(tmp, vertices, (nk_size)num_vertices*sizeof(struct nk_tt_vertex));
11521 NK_MEMCPY(tmp+num_vertices, comp_verts, (nk_size)comp_num_verts*sizeof(struct nk_tt_vertex));
11622 sizeof(struct nk_tt__hheap_chunk) + size * (nk_size)count);
11653 nk_tt__hheap_alloc(hh, sizeof(*z));
11875 scanline = (float *) alloc->alloc(alloc->userdata,0, (nk_size)(result->w*2+1) * sizeof(float));
11889 NK_MEMSET(scanline , 0, (nk_size)result->w*sizeof(scanline[0]));
11890 NK_MEMSET(scanline2, 0, (nk_size)(result->w+1)*sizeof(scanline[0]));
12061 alloc->alloc(alloc->userdata, 0,(sizeof(*e) * (nk_size)(n+1)));
12092 /*STBTT_sort(e, n, sizeof(e[0]), nk_tt__edge_compare); */
12155 alloc->alloc(alloc->userdata,0, (sizeof(**contour_lengths) * (nk_size)n));
12167 alloc->alloc(alloc->userdata,0, (nk_size)num_points * sizeof(points[0]));
12262 alloc->alloc(alloc->userdata,0, sizeof(*context));
12264 alloc->alloc(alloc->userdata,0, (sizeof(*nodes ) * (nk_size)num_nodes));
12704 *temp = (nk_size)*glyph_count * sizeof(struct nk_rp_rect);
12705 *temp += (nk_size)total_range_count * sizeof(struct nk_tt_pack_range);
12706 *temp += (nk_size)*glyph_count * sizeof(struct nk_tt_packedchar);
12707 *temp += (nk_size)count * sizeof(struct nk_font_bake_data);
12708 *temp += sizeof(struct nk_font_baker);
12773 nk_zero(&custom_space, sizeof(custom_space));
13518 atlas->permanent.alloc(atlas->permanent.userdata,0, sizeof(struct nk_font_config));
13519 NK_MEMCPY(cfg, config, sizeof(*config));
13536 atlas->permanent.alloc(atlas->permanent.userdata,0, sizeof(struct nk_font));
13538 nk_zero(font, sizeof(*font));
13751 atlas->permanent.userdata,0, sizeof(struct nk_font_glyph)*(nk_size)atlas->glyph_count);
15053 nk_zero(&ctx->input, sizeof(ctx->input));
15054 nk_zero(&ctx->style, sizeof(ctx->style));
15055 nk_zero(&ctx->memory, sizeof(ctx->memory));
15082 NK_MEMSET(&ctx->overlay, 0, sizeof(ctx->overlay));
15116 nk_zero(it, sizeof(union nk_page_data));
15315 nk_zero(pool, sizeof(*pool));
15336 nk_zero(pool, sizeof(*pool));
15337 NK_ASSERT(size >= sizeof(struct nk_page));
15338 if (size < sizeof(struct nk_page)) return;
15339 pool->capacity = (unsigned)(size - sizeof(struct nk_page)) / sizeof(struct nk_page_element);
15356 nk_size size = sizeof(struct nk_page);
15357 size += NK_POOL_DEFAULT_CAPACITY * sizeof(union nk_page_data);
15390 NK_STORAGE const nk_size size = sizeof(struct nk_page_element);
15425 ctx->memory.size -= sizeof(struct nk_page_element);
15623 nk_zero(ctx->current->layout, sizeof(*ctx->current->layout));
15625 nk_zero(ctx->current->layout, sizeof(struct nk_panel));
16096 nk_zero(&window->property, sizeof(window->property));
16105 nk_zero(&window->edit, sizeof(window->edit));
16839 nk_zero(popup, sizeof(*popup));
18023 nk_zero(&layout->row.item, sizeof(layout->row.item));
18710 nk_zero(&panel, sizeof(panel));
19570 nk_zero(&s, sizeof(s));
19583 nk_zero(&s, sizeof(s));
19597 nk_zero(&s, sizeof(s));
19610 nk_zero(&s, sizeof(s));
19623 nk_zero(&s, sizeof(s));
19637 nk_zero(&s, sizeof(s));
22422 (nk_size)state->undo_char_point*sizeof(nk_rune));
22431 (nk_size)((nk_size)state->undo_point * sizeof(state->undo_rec[0])));
22451 state->undo_char + state->redo_char_point-n, num * sizeof(char));
22462 state->undo_rec + state->redo_point, num * sizeof(state->undo_rec[0]));
22679 NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
22689 NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
22699 NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
24051 nk_zero(chart, sizeof(*chart));
24061 nk_zero(chart, sizeof(*chart));
24287 NK_MEMSET(chart, 0, sizeof(*chart));