Lines Matching defs:view
3043 NK_WIDGET_INVALID, /* The widget cannot be seen and is completely out of view */
18929 nk_list_view_begin(struct nk_context *ctx, struct nk_list_view *view,
18944 NK_ASSERT(view);
18946 if (!ctx || !view || !title) return 0;
18953 /* find persistent list view scrollbar offset */
18966 view->scroll_value = *y_offset;
18967 view->scroll_pointer = y_offset;
18974 view->total_height = row_height * NK_MAX(row_count,1);
18975 view->begin = (int)NK_MAX(((float)view->scroll_value / (float)row_height), 0.0f);
18976 view->count = (int)NK_MAX(nk_iceilf((layout->clip.h)/(float)row_height),0);
18977 view->count = NK_MIN(view->count, row_count - view->begin);
18978 view->end = view->begin + view->count;
18979 view->ctx = ctx;
18983 nk_list_view_end(struct nk_list_view *view)
18989 NK_ASSERT(view);
18990 NK_ASSERT(view->ctx);
18991 NK_ASSERT(view->scroll_pointer);
18992 if (!view || !view->ctx) return;
18994 ctx = view->ctx;
18997 layout->at_y = layout->bounds.y + (float)view->total_height;
18998 *view->scroll_pointer = *view->scroll_pointer + view->scroll_value;
18999 nk_group_end(view->ctx);