本文整理汇总了C++中dt_bauhaus_slider_get函数的典型用法代码示例。如果您正苦于以下问题:C++ dt_bauhaus_slider_get函数的具体用法?C++ dt_bauhaus_slider_get怎么用?C++ dt_bauhaus_slider_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dt_bauhaus_slider_get函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deflicker_params_callback
static void deflicker_params_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
if(!dt_image_is_raw(&self->dev->image_storage)) return;
dt_iop_exposure_gui_data_t *g = (dt_iop_exposure_gui_data_t *)self->gui_data;
dt_iop_exposure_params_t *p = (dt_iop_exposure_params_t *)self->params;
if(p->mode != EXPOSURE_MODE_DEFLICKER) return;
p->deflicker_percentile = dt_bauhaus_slider_get(g->deflicker_percentile);
p->deflicker_target_level = dt_bauhaus_slider_get(g->deflicker_target_level);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例2: frame_offset_callback
static void
frame_offset_callback (GtkWidget *slider, dt_iop_module_t *self)
{
if(self->dt->gui->reset) return;
dt_iop_borders_params_t *p = (dt_iop_borders_params_t *)self->params;
p->frame_offset = dt_bauhaus_slider_get(slider)/100.0f;
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例3: _drago_max_light_callback
static void _drago_max_light_callback(GtkWidget *w, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_global_tonemap_params_t *p = (dt_iop_global_tonemap_params_t *)self->params;
p->drago.max_light = dt_bauhaus_slider_get(w);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例4: threshold_callback
static void threshold_callback(GtkRange *range, dt_iop_module_t *self)
{
if(darktable.gui->reset) return;
dt_iop_hotpixels_gui_data_t *g = (dt_iop_hotpixels_gui_data_t *)self->gui_data;
dt_iop_hotpixels_params_t *p = (dt_iop_hotpixels_params_t *)self->params;
p->threshold = dt_bauhaus_slider_get(g->threshold);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例5: upper_callback
static void upper_callback (GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_overexposed_params_t *p = (dt_iop_overexposed_params_t *)self->params;
p->upper = dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例6: black_callback
static void black_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
const float black = dt_bauhaus_slider_get(slider);
dt_iop_exposure_set_black(self, black);
}
示例7: scale_callback
static void scale_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_grain_params_t *p = (dt_iop_grain_params_t *)self->params;
p->scale = dt_bauhaus_slider_get(slider) / GRAIN_SCALE_FACTOR;
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例8: compression_callback
static void compression_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_graduatednd_params_t *p = (dt_iop_graduatednd_params_t *)self->params;
p->compression = dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例9: clip_callback
static void
clip_callback (GtkWidget *slider, dt_iop_module_t *self)
{
if(self->dt->gui->reset) return;
dt_iop_highlights_params_t *p = (dt_iop_highlights_params_t *)self->params;
p->clip = dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例10: saturation_callback
static void saturation_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
dt_iop_graduatednd_params_t *p = (dt_iop_graduatednd_params_t *)self->params;
p->saturation = dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例11: target_L_callback
static void target_L_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
dt_iop_colorchecker_params_t *p = (dt_iop_colorchecker_params_t *)self->params;
dt_iop_colorchecker_gui_data_t *g = (dt_iop_colorchecker_gui_data_t *)self->gui_data;
p->target_L[g->patch] = p->source_L[g->patch] + dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例12: balance_callback
static void balance_callback(GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_splittoning_params_t *p = (dt_iop_splittoning_params_t *)self->params;
p->balance = dt_bauhaus_slider_get(slider) / 100.0f;
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例13: highlights_callback
static void
highlights_callback(GtkWidget *w, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
dt_iop_monochrome_params_t *p = (dt_iop_monochrome_params_t *)self->params;
p->highlights = dt_bauhaus_slider_get(w);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例14: radius_callback
static void
radius_callback (GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_lowpass_params_t *p = (dt_iop_lowpass_params_t *)self->params;
p->radius = copysignf(dt_bauhaus_slider_get(slider), p->radius);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}
示例15: source_lightness_mix_callback
static void
source_lightness_mix_callback (GtkWidget *slider, gpointer user_data)
{
dt_iop_module_t *self = (dt_iop_module_t *)user_data;
if(self->dt->gui->reset) return;
dt_iop_colorize_params_t *p = (dt_iop_colorize_params_t *)self->params;
p->source_lightness_mix = dt_bauhaus_slider_get(slider);
dt_dev_add_history_item(darktable.develop, self, TRUE);
}