Blender V5.3
blender::tSlider Struct Reference

Public Attributes

Scene * scene
ScrArea * area
ARegion * region_header
void * draw_handle
float raw_factor
float factor
float last_cursor [2]
float factor_bounds [2]
float increment_step
SliderMode slider_mode
std::string property_label
char unit_string [SLIDER_UNIT_STRING_SIZE]
bool allow_overshoot_lower
bool allow_overshoot_upper
bool overshoot
bool allow_increments
bool increments
bool precision

Detailed Description

Definition at line 66 of file ed_draw.cc.

Member Data Documentation

◆ allow_increments

bool blender::tSlider::allow_increments

Whether keeping CTRL pressed will snap to multiples of increment_step. Default is true. Set to false if the CTRL key is needed for other means.

Definition at line 113 of file ed_draw.cc.

Referenced by blender::ED_slider_allow_increments_get(), blender::ED_slider_allow_increments_set(), blender::ED_slider_create(), blender::ED_slider_modal(), blender::ED_slider_status_get(), and blender::ED_slider_status_string_get().

◆ allow_overshoot_lower

bool blender::tSlider::allow_overshoot_lower

Enable range beyond factor_bounds. This is set by the code that uses the slider, as not all operations support extrapolation.

Definition at line 104 of file ed_draw.cc.

Referenced by blender::ED_slider_allow_overshoot_set(), blender::ED_slider_create(), blender::ED_slider_modal(), blender::ED_slider_status_get(), blender::ED_slider_status_string_get(), and blender::slider_update_factor().

◆ allow_overshoot_upper

◆ area

ScrArea* blender::tSlider::area

Definition at line 68 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), and blender::ED_slider_destroy().

◆ draw_handle

void* blender::tSlider::draw_handle

Draw callback handler.

Definition at line 74 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), and blender::ED_slider_destroy().

◆ factor

float blender::tSlider::factor

Current value for determining the influence of whatever is relevant.

Definition at line 80 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), blender::ED_slider_factor_get(), blender::ED_slider_factor_set(), blender::slider_draw(), and blender::slider_update_factor().

◆ factor_bounds

float blender::tSlider::factor_bounds[2]

◆ increment_step

float blender::tSlider::increment_step

Change if the slider range is so large/small that a 0.1 increment is meaningless.

Definition at line 89 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), blender::ED_slider_increment_step_set(), and blender::slider_update_factor().

◆ increments

bool blender::tSlider::increments

◆ last_cursor

float blender::tSlider::last_cursor[2]

Last mouse cursor position used for mouse movement delta calculation.

Definition at line 83 of file ed_draw.cc.

Referenced by blender::ED_slider_init(), and blender::slider_update_factor().

◆ overshoot

bool blender::tSlider::overshoot

Allow overshoot or clamp between factor_bounds. This is set by the artist while using the slider.

Definition at line 109 of file ed_draw.cc.

Referenced by blender::ED_slider_factor_set(), blender::ED_slider_modal(), blender::ED_slider_status_get(), blender::ED_slider_status_string_get(), blender::slider_draw(), and blender::slider_update_factor().

◆ precision

bool blender::tSlider::precision

Reduces factor delta from mouse movement.

Definition at line 119 of file ed_draw.cc.

Referenced by blender::ED_slider_modal(), blender::ED_slider_status_get(), blender::ED_slider_status_string_get(), and blender::slider_update_factor().

◆ property_label

std::string blender::tSlider::property_label

Definition at line 96 of file ed_draw.cc.

Referenced by blender::ED_slider_property_label_set(), and blender::slider_draw().

◆ raw_factor

float blender::tSlider::raw_factor

Accumulative factor (not clamped or rounded).

Definition at line 77 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), blender::ED_slider_factor_set(), and blender::slider_update_factor().

◆ region_header

ARegion* blender::tSlider::region_header

Header of the region used for drawing the slider.

Definition at line 71 of file ed_draw.cc.

Referenced by blender::ED_slider_create(), blender::ED_slider_destroy(), blender::ED_slider_modal(), and blender::slider_draw().

◆ scene

Scene* blender::tSlider::scene

Definition at line 67 of file ed_draw.cc.

Referenced by blender::ED_slider_create().

◆ slider_mode

SliderMode blender::tSlider::slider_mode

◆ unit_string

char blender::tSlider::unit_string[SLIDER_UNIT_STRING_SIZE]

The documentation for this struct was generated from the following file: