Lines Matching defs:func
4178 struct libinput_config_accel_custom_func *func = zalloc(sizeof(*func));
4180 func->step = 1.0;
4181 func->npoints = 2;
4182 func->points[0] = 0.0; /* default to a flat unaccelerated function */
4183 func->points[1] = 1.0;
4185 return func;
4189 libinput_config_accel_custom_func_destroy(struct libinput_config_accel_custom_func * func)
4191 free(func);
4278 struct libinput_config_accel_custom_func *func = libinput_config_accel_custom_func_create();
4280 func->step = step;
4281 func->npoints = npoints;
4282 memcpy(func->points, points, sizeof(*points) * npoints);
4287 config->custom.fallback = func;
4291 config->custom.motion = func;
4295 config->custom.scroll = func;