Lines Matching defs:context
521 /// To use a context it first has to be initialized which can be achieved by calling
540 /// __nk_init_default__ | Initializes context with standard library memory allocation (malloc,free)
541 /// __nk_init_fixed__ | Initializes context from single fixed size memory block
542 /// __nk_init__ | Initializes context with memory allocator callbacks for alloc and free
543 /// __nk_init_custom__ | Initializes context from two buffers. One for draw commands the other for window/panel/table allocations
544 /// __nk_clear__ | Called at the end of the frame to reset and prepare the context for the next frame
545 /// __nk_free__ | Shutdown and free all memory allocated inside the context
629 /// Resets the context state at the end of the frame. This includes mostly
643 /// Frees all memory allocated by nuklear. Not needed if context was
953 /// In program flow context draw commands need to be executed after input has been
1047 /// // setup context
1134 /// __nk__begin__ | Returns the first draw command in the context draw command list to be drawn
1135 /// __nk__next__ | Increments the draw command iterator to the next command inside the context draw command list
1136 /// __nk_foreach__ | Iterates over each draw command inside the context draw command list
1138 /// __nk_draw_begin__ | Returns the first vertex command in the context vertex draw list to be executed
1139 /// __nk__draw_next__ | Increments the vertex command iterator to the next command inside the context vertex command list
1198 /// Iterates over each draw command inside the context draw command list
1209 /// Iterates over each draw command inside the context draw command list
4160 /* Basic string buffer which is only used in context with the text editor
4653 /* The optional vertex buffer draw list provides a 2D drawing context
10606 nk_rp_setup_allow_out_of_mem(struct nk_rp_context *context, int allow_out_of_mem)
10613 context->align = 1;
10621 context->align = (context->width + context->num_nodes-1) / context->num_nodes;
10625 nk_rp_init_target(struct nk_rp_context *context, int width, int height,
10636 context->init_mode = NK_RP__INIT_skyline;
10637 context->heuristic = NK_RP_HEURISTIC_Skyline_default;
10638 context->free_head = &nodes[0];
10639 context->active_head = &context->extra[0];
10640 context->width = width;
10641 context->height = height;
10642 context->num_nodes = num_nodes;
10643 nk_rp_setup_allow_out_of_mem(context, 0);
10646 context->extra[0].x = 0;
10647 context->extra[0].y = 0;
10648 context->extra[0].next = &context->extra[1];
10649 context->extra[1].x = (nk_rp_coord) width;
10650 context->extra[1].y = 65535;
10651 context->extra[1].next = 0;
10793 nk_rp__skyline_pack_rectangle(struct nk_rp_context *context, int width, int height)
10796 struct nk_rp__findresult res = nk_rp__skyline_find_best_pos(context, width, height);
10803 if (res.prev_link == 0 || res.y + height > context->height || context->free_head == 0) {
10809 node = context->free_head;
10813 context->free_head = node->next;
10833 cur->next = context->free_head;
10834 context->free_head = cur;
10892 nk_rp_pack_rects(struct nk_rp_context *context, struct nk_rp_rect *rects, int num_rects)
10904 struct nk_rp__findresult fr = nk_rp__skyline_pack_rectangle(context, rects[i].w, rects[i].h);
12261 struct nk_rp_context *context = (struct nk_rp_context *)
12262 alloc->alloc(alloc->userdata,0, sizeof(*context));
12266 if (context == 0 || nodes == 0) {
12267 if (context != 0) alloc->free(alloc->userdata, context);
12275 spc->pack_info = context;
12282 nk_rp_init_target(context, pw-padding, ph-padding, nodes, num_nodes);
25750 /// - 2016/07/15 (1.00.0) - Changed button API to use context dependend button