Lines Matching refs:val

841 /// void nk_input_scroll(struct nk_context *ctx, struct nk_vec2 val);
849 NK_API void nk_input_scroll(struct nk_context*, struct nk_vec2 val);
3184 NK_API float nk_slide_float(struct nk_context*, float min, float val, float max, float step);
3185 NK_API int nk_slide_int(struct nk_context*, int min, int val, int max, int step);
3186 NK_API int nk_slider_float(struct nk_context*, float min, float *val, float max, float step);
3187 NK_API int nk_slider_int(struct nk_context*, int min, int *val, int max, int step);
3286 /// void nk_property_int(struct nk_context *ctx, const char *name, int min, int *val, int max, int step, float inc_per_pixel);
3299 NK_API void nk_property_int(struct nk_context*, const char *name, int min, int *val, int max, int step, float inc_per_pixel);
3307 /// void nk_property_float(struct nk_context *ctx, const char *name, float min, float *val, float max, float step, float inc_per_pixel);
3320 NK_API void nk_property_float(struct nk_context*, const char *name, float min, float *val, float max, float step, float inc_per_pixel);
3328 /// void nk_property_double(struct nk_context *ctx, const char *name, double min, double *val, double max, double step, double inc_per_pixel);
3341 NK_API void nk_property_double(struct nk_context*, const char *name, double min, double *val, double max, double step, float inc_per_pixel);
3349 /// int nk_propertyi(struct nk_context *ctx, const char *name, int min, int val, int max, int step, float inc_per_pixel);
3364 NK_API int nk_propertyi(struct nk_context*, const char *name, int min, int val, int max, int step, float inc_per_pixel);
3372 /// float nk_propertyf(struct nk_context *ctx, const char *name, float min, float val, float max, float step, float inc_per_pixel);
3387 NK_API float nk_propertyf(struct nk_context*, const char *name, float min, float val, float max, float step, float inc_per_pixel);
3395 /// float nk_propertyd(struct nk_context *ctx, const char *name, double min, double val, double max, double step, double inc_per_pixel);
3410 NK_API double nk_propertyd(struct nk_context*, const char *name, double min, double val, double max, double step, float inc_per_pixel);
5958 NK_LIB float nk_do_slider(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, float min, float val, float max, float step, const struct nk_style_slider *style, struct nk_input *in, const struct nk_user_font *font);
9480 float val[4];
9485 val[0] = NK_SATURATE(vals[0]);
9486 val[1] = NK_SATURATE(vals[1]);
9487 val[2] = NK_SATURATE(vals[2]);
9488 val[3] = NK_SATURATE(vals[3]);
9494 struct nk_color col = nk_rgba_fv(val);
9498 struct nk_color col = nk_rgba_fv(val);
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);
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);
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);
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);
9533 NK_MEMCPY(attr, val, sizeof(float)*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];
9545 struct nk_color col = nk_rgba_fv(val);
14021 nk_input_scroll(struct nk_context *ctx, struct nk_vec2 val)
14025 ctx->input.mouse.scroll_delta.x += val.x;
14026 ctx->input.mouse.scroll_delta.y += val.y;
21107 float min, float val, float max, float step,
21146 val -= step;
21152 val += step;
21165 slider_value = NK_CLAMP(slider_min, val, slider_max);
21228 nk_slide_float(struct nk_context *ctx, float min, float val, float max, float step)
21230 nk_slider_float(ctx, min, &val, max, step); return val;
21233 nk_slide_int(struct nk_context *ctx, int min, int val, int max, int step)
21235 float value = (float)val;
21240 nk_slider_int(struct nk_context *ctx, int min, int *val, int max, int step)
21243 float value = (float)*val;
21245 *val = (int)value;
23939 int min, int *val, int max, int step, float inc_per_pixel)
23944 NK_ASSERT(val);
23946 if (!ctx || !ctx->current || !name || !val) return;
23947 variant = nk_property_variant_int(*val, min, max, step);
23949 *val = variant.value.i;
23953 float min, float *val, float max, float step, float inc_per_pixel)
23958 NK_ASSERT(val);
23960 if (!ctx || !ctx->current || !name || !val) return;
23961 variant = nk_property_variant_float(*val, min, max, step);
23963 *val = variant.value.f;
23967 double min, double *val, double max, double step, float inc_per_pixel)
23972 NK_ASSERT(val);
23974 if (!ctx || !ctx->current || !name || !val) return;
23975 variant = nk_property_variant_double(*val, min, max, step);
23977 *val = variant.value.d;
23980 nk_propertyi(struct nk_context *ctx, const char *name, int min, int val,
23987 if (!ctx || !ctx->current || !name) return val;
23988 variant = nk_property_variant_int(val, min, max, step);
23990 val = variant.value.i;
23991 return val;
23995 float val, float max, float step, float inc_per_pixel)
24001 if (!ctx || !ctx->current || !name) return val;
24002 variant = nk_property_variant_float(val, min, max, step);
24004 val = variant.value.f;
24005 return val;
24009 double val, double max, double step, float inc_per_pixel)
24015 if (!ctx || !ctx->current || !name) return val;
24016 variant = nk_property_variant_double(val, min, max, step);
24018 val = variant.value.d;
24019 return val;