Blender V4.3
tSlider Struct Reference

Public Attributes

Scenescene
 
ScrAreaarea
 
ARegionregion_header
 
void * draw_handle
 
float raw_factor
 
float factor
 
float last_cursor [2]
 
float factor_bounds [2]
 
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 59 of file ed_draw.cc.

Member Data Documentation

◆ allow_increments

bool tSlider::allow_increments

Whether keeping CTRL pressed will snap to 10% increments. Default is true. Set to false if the CTRL key is needed for other means.

Definition at line 103 of file ed_draw.cc.

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

◆ allow_overshoot_lower

bool 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 94 of file ed_draw.cc.

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

◆ allow_overshoot_upper

bool tSlider::allow_overshoot_upper

◆ area

ScrArea* tSlider::area

Definition at line 61 of file ed_draw.cc.

Referenced by ED_slider_create(), and ED_slider_destroy().

◆ draw_handle

void* tSlider::draw_handle

Draw callback handler.

Definition at line 67 of file ed_draw.cc.

Referenced by ED_slider_create(), and ED_slider_destroy().

◆ factor

float tSlider::factor

Current value for determining the influence of whatever is relevant.

Definition at line 73 of file ed_draw.cc.

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

◆ factor_bounds

float tSlider::factor_bounds[2]

Range of the slider without overshoot.

Definition at line 79 of file ed_draw.cc.

Referenced by ED_slider_create(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), slider_draw(), and slider_update_factor().

◆ increments

bool tSlider::increments

Move factor in 10% steps.

Definition at line 106 of file ed_draw.cc.

Referenced by ED_slider_modal(), ED_slider_status_string_get(), and slider_update_factor().

◆ last_cursor

float tSlider::last_cursor[2]

Last mouse cursor position used for mouse movement delta calculation.

Definition at line 76 of file ed_draw.cc.

Referenced by ED_slider_init(), and slider_update_factor().

◆ overshoot

bool tSlider::overshoot

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

Definition at line 99 of file ed_draw.cc.

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

◆ precision

bool tSlider::precision

Reduces factor delta from mouse movement.

Definition at line 109 of file ed_draw.cc.

Referenced by ED_slider_modal(), ED_slider_status_string_get(), and slider_update_factor().

◆ property_label

std::string tSlider::property_label

Definition at line 86 of file ed_draw.cc.

Referenced by ED_slider_property_label_set(), and slider_draw().

◆ raw_factor

float tSlider::raw_factor

Accumulative factor (not clamped or rounded).

Definition at line 70 of file ed_draw.cc.

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

◆ region_header

ARegion* tSlider::region_header

Header of the region used for drawing the slider.

Definition at line 64 of file ed_draw.cc.

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

◆ scene

Scene* tSlider::scene

Definition at line 60 of file ed_draw.cc.

Referenced by ED_slider_create().

◆ slider_mode

SliderMode tSlider::slider_mode

Definition at line 82 of file ed_draw.cc.

Referenced by ED_slider_create(), ED_slider_mode_get(), ED_slider_mode_set(), and slider_draw().

◆ unit_string

char tSlider::unit_string[SLIDER_UNIT_STRING_SIZE]

Definition at line 89 of file ed_draw.cc.

Referenced by ED_slider_create(), ED_slider_unit_set(), and slider_draw().


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