|
| void | blender::ED_region_draw_mouse_line_cb (const bContext *C, ARegion *region, void *arg_info) |
| BLI_INLINE bool | blender::metadata_is_valid (const ImBuf *ibuf, char *r_str, short index, int offset) |
| BLI_INLINE bool | blender::metadata_is_custom_drawable (const char *field) |
| static void | blender::metadata_custom_draw_fields (const char *field, const char *value, void *ctx_v) |
| static void | blender::metadata_draw_imbuf (const ImBuf *ibuf, const rctf *rect, int fontid, const bool is_top) |
| static void | blender::metadata_custom_count_fields (const char *field, const char *, void *ctx_v) |
| static float | blender::metadata_box_height_get (const ImBuf *ibuf, int fontid, const bool is_top) |
| static void | blender::text_info_row (const char *text, const int text_len, int col1, int col2, int row, const int size_x, const int size_y) |
| void | blender::ED_region_overlay_info_text_draw (const int render_size_x, const int render_size_y, const int viewer_size_x, const int viewer_size_y, const int draw_offset_x, const int draw_offset_y) |
| void | blender::ED_region_render_region_draw (int x, int y, const rcti *frame, float zoomx, float zoomy, float passepartout_alpha) |
| void | blender::ED_region_image_metadata_draw (int x, int y, const ImBuf *ibuf, const rctf *frame, float zoomx, float zoomy) |
|
The generic slider is supposed to be called during modal operations. It calculates a factor value based on mouse position and draws a visual representation. In order to use it, you need to store a reference to a #tSlider in your operator which you get by calling #ED_slider_create. Then you need to update it during modal operations by calling #ED_slider_modal, which will update #tSlider.factor for you to use. To remove drawing and free the memory, call #ED_slider_destroy.
|
| #define | SLIDE_PIXEL_DISTANCE (300.0f * UI_SCALE_FAC) |
| #define | OVERSHOOT_RANGE_DELTA 0.2f |
| #define | SLIDER_UNIT_STRING_SIZE 64 |
| static void | blender::draw_overshoot_triangle (const uint8_t color[4], const bool facing_right, const float x, const float y) |
| static void | blender::draw_ticks (const float start_factor, const float end_factor, const float line_start[2], const float base_tick_height, const float line_width, const uint8_t color_overshoot[4], const uint8_t color_line[4]) |
| static void | blender::draw_main_line (const rctf *main_line_rect, const float factor, const bool overshoot, const uint8_t color_overshoot[4], const uint8_t color_line[4]) |
| static void | blender::draw_backdrop (const int fontid, const rctf *main_line_rect, const uint8_t color_bg[4], const short region_y_size, const float base_tick_height, const std::string &property_label) |
| static void | blender::slider_draw (const bContext *, ARegion *region, void *arg) |
| static void | blender::slider_update_factor (tSlider *slider, const wmEvent *event) |
| tSlider * | blender::ED_slider_create (bContext *C) |
| void | blender::ED_slider_init (tSlider *slider, const wmEvent *event) |
| bool | blender::ED_slider_modal (tSlider *slider, const wmEvent *event) |
| void | blender::ED_slider_status_string_get (const tSlider *slider, char *status_string, size_t size_of_status_string) |
| void | blender::ED_slider_status_get (const tSlider *slider, WorkspaceStatus &status) |
| void | blender::ED_slider_destroy (bContext *C, tSlider *slider) |
| float | blender::ED_slider_factor_get (const tSlider *slider) |
| void | blender::ED_slider_factor_set (tSlider *slider, float factor) |
| void | blender::ED_slider_increment_step_set (tSlider *slider, float increment_step) |
| void | blender::ED_slider_allow_overshoot_set (tSlider *slider, bool lower, bool upper) |
| bool | blender::ED_slider_allow_increments_get (const tSlider *slider) |
| void | blender::ED_slider_allow_increments_set (tSlider *slider, bool value) |
| void | blender::ED_slider_factor_bounds_set (tSlider *slider, float factor_bound_lower, float factor_bound_upper) |
| void | blender::ED_slider_mode_set (tSlider *slider, SliderMode mode) |
| SliderMode | blender::ED_slider_mode_get (const tSlider *slider) |
| void | blender::ED_slider_unit_set (tSlider *slider, const char *unit) |
| void | blender::ED_slider_property_label_set (tSlider *slider, const char *property_label) |