Lines Matching defs:max
134 /// NK_INPUT_MAX | Defines the max number of bytes which can be added as text input in one frame. Under normal circumstances this should be more than sufficient.
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);
3193 NK_API int nk_progress(struct nk_context*, nk_size *cur, nk_size max, int modifyable);
3194 NK_API nk_size nk_prog(struct nk_context*, nk_size cur, nk_size max, int modifyable);
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);
3444 NK_API nk_flags nk_edit_string(struct nk_context*, nk_flags, char *buffer, int *len, int max, nk_plugin_filter);
3445 NK_API nk_flags nk_edit_string_zero_terminated(struct nk_context*, nk_flags, char *buffer, int max, nk_plugin_filter);
3454 NK_API int nk_chart_begin(struct nk_context*, enum nk_chart_type, int num, float min, float max);
3455 NK_API int nk_chart_begin_colored(struct nk_context*, enum nk_chart_type, struct nk_color, struct nk_color active, int num, float min, float max);
3919 /* max height of the font */
5273 float min, max, range;
5951 NK_LIB nk_size nk_progress_behavior(nk_flags *state, struct nk_input *in, struct nk_rect r, struct nk_rect cursor, nk_size max, nk_size value, int modifiable);
5952 NK_LIB void nk_draw_progress(struct nk_command_buffer *out, nk_flags state, const struct nk_style_progress *style, const struct nk_rect *bounds, const struct nk_rect *scursor, nk_size value, nk_size max);
5953 NK_LIB nk_size nk_do_progress(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, nk_size value, nk_size max, int modifiable, const struct nk_style_progress *style, struct nk_input *in);
5957 NK_LIB void nk_draw_slider(struct nk_command_buffer *out, nk_flags state, const struct nk_style_slider *style, const struct nk_rect *bounds, const struct nk_rect *visual_cursor, float min, float value, float max);
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);
21048 const struct nk_rect *visual_cursor, float min, float value, float max)
21059 NK_UNUSED(max);
21107 float min, float val, float max, float step,
21163 slider_max = NK_MAX(min, max);
21164 slider_min = NK_MIN(min, 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)
21236 nk_slider_float(ctx, (float)min, &value, (float)max, (float)step);
21240 nk_slider_int(struct nk_context *ctx, int min, int *val, int max, int step)
21244 ret = nk_slider_float(ctx, (float)min, &value, (float)max, (float)step);
21260 struct nk_rect r, struct nk_rect cursor, nk_size max, nk_size value, int modifiable)
21276 value = (nk_size)NK_CLAMP(0, (float)max * ratio, (float)max);
21291 const struct nk_rect *scursor, nk_size value, nk_size max)
21296 NK_UNUSED(max);
21326 nk_size value, nk_size max, int modifiable,
21341 prog_scale = (float)value / (float)max;
21344 prog_value = NK_MIN(value, max);
21345 prog_value = nk_progress_behavior(state, in, bounds, cursor,max, prog_value, modifiable);
21350 nk_draw_progress(out, *state, style, &bounds, &cursor, value, max);
21355 nk_progress(struct nk_context *ctx, nk_size *cur, nk_size max, int is_modifyable)
21382 *cur, max, is_modifyable, &style->progress, in);
21386 nk_prog(struct nk_context *ctx, nk_size cur, nk_size max, int modifyable)
21388 nk_progress(ctx, &cur, max, modifyable);
23400 char *memory, int *len, int max, nk_plugin_filter filter)
23437 max = NK_MAX(1, max);
23438 *len = NK_MIN(*len, max-1);
23439 nk_str_init_fixed(&edit->string, memory, (nk_size)max);
23517 char *buffer, int max, nk_plugin_filter filter)
23521 result = nk_edit_string(ctx, flags, buffer, &len, max, filter);
23522 buffer[NK_MIN(NK_MAX(max-1,0), len)] = '\0';
23939 int min, int *val, int max, int step, float inc_per_pixel)
23947 variant = nk_property_variant_int(*val, min, max, step);
23953 float min, float *val, float max, float step, float inc_per_pixel)
23961 variant = nk_property_variant_float(*val, min, max, step);
23967 double min, double *val, double max, double step, float inc_per_pixel)
23975 variant = nk_property_variant_double(*val, min, max, step);
23981 int max, int step, float inc_per_pixel)
23988 variant = nk_property_variant_int(val, min, max, step);
23995 float val, float max, float step, float inc_per_pixel)
24002 variant = nk_property_variant_float(val, min, max, step);
24009 double val, double max, double step, float inc_per_pixel)
24016 variant = nk_property_variant_double(val, min, max, step);
24076 slot->max = NK_MAX(min_value, max_value);
24077 slot->range = slot->max - slot->min;}
24117 slot->max = NK_MAX(min_value, max_value);
24118 slot->range = slot->max - slot->min;}
24145 range = g->slots[slot].max - g->slots[slot].min;
24225 ratio = (value - chart->slots[slot].max) / chart->slots[slot].range;
25615 /// popup did not reach max height.