Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_intern.h
| Context not available. | |||||
| extern void ui_hsvcube_pos_from_vals(struct uiBut *but, const rcti *rect, float *hsv, float *xp, float *yp); | extern void ui_hsvcube_pos_from_vals(struct uiBut *but, const rcti *rect, float *hsv, float *xp, float *yp); | ||||
| bool ui_color_picker_use_display_colorspace(struct uiBut *but); | bool ui_color_picker_use_display_colorspace(struct uiBut *but); | ||||
| extern void ui_get_but_string_unit(uiBut *but, char *str, int len_max, double value, bool pad, int float_precision) ATTR_NONNULL(); | |||||
| extern void ui_get_but_string_ex(uiBut *but, char *str, const size_t maxlen, const int float_precision) ATTR_NONNULL(); | extern void ui_get_but_string_ex(uiBut *but, char *str, const size_t maxlen, const int float_precision) ATTR_NONNULL(); | ||||
| extern void ui_get_but_string(uiBut *but, char *str, const size_t maxlen) ATTR_NONNULL(); | extern void ui_get_but_string(uiBut *but, char *str, const size_t maxlen) ATTR_NONNULL(); | ||||
| extern void ui_get_but_string_suffixed_ex(uiBut *but, char *str, const size_t maxlen, const int float_precision) ATTR_NONNULL(); | |||||
| extern void ui_get_but_string_suffixed(uiBut *but, char *str, const size_t maxlen) ATTR_NONNULL(); | |||||
| extern void ui_convert_to_unit_alt_name(uiBut *but, char *str, size_t maxlen) ATTR_NONNULL(); | extern void ui_convert_to_unit_alt_name(uiBut *but, char *str, size_t maxlen) ATTR_NONNULL(); | ||||
| extern bool ui_set_but_string(struct bContext *C, uiBut *but, const char *str) ATTR_NONNULL(); | extern bool ui_set_but_string(struct bContext *C, uiBut *but, const char *str) ATTR_NONNULL(); | ||||
| extern bool ui_set_but_string_eval_num(struct bContext *C, uiBut *but, const char *str, double *value) ATTR_NONNULL(); | extern bool ui_set_but_string_eval_num(struct bContext *C, uiBut *but, const char *str, double *value) ATTR_NONNULL(); | ||||
| Context not available. | |||||
| extern int ui_is_but_push_ex(uiBut *but, double *value) ATTR_WARN_UNUSED_RESULT; | extern int ui_is_but_push_ex(uiBut *but, double *value) ATTR_WARN_UNUSED_RESULT; | ||||
| extern int ui_is_but_push(uiBut *but) ATTR_WARN_UNUSED_RESULT; | extern int ui_is_but_push(uiBut *but) ATTR_WARN_UNUSED_RESULT; | ||||
| extern int ui_but_float_precision(uiBut *but, double value); | |||||
| extern void ui_bounds_block(uiBlock *block); | extern void ui_bounds_block(uiBlock *block); | ||||
| extern void ui_block_translate(uiBlock *block, int x, int y); | extern void ui_block_translate(uiBlock *block, int x, int y); | ||||
| Context not available. | |||||
| uiBut *postbut; | uiBut *postbut; | ||||
| } uiHandleButtonData; | } uiHandleButtonData; | ||||
| #define UI_VLADDER_MAX_STEPS 10 | |||||
| #define UI_VLADDER_MIN_WIDTH 2.0 * UI_UNIT_X | |||||
| #define UI_VLADDER_STEP_HEIGHT 1.8 * UI_UNIT_Y | |||||
| #define UI_VLADDER_MARGIN 1.0f * UI_UNIT_X | |||||
| typedef struct uiVLadderData { | |||||
| ARegion *ar, *ar_orig; | |||||
| uiBlock *block; | |||||
| uiBut *but; /* the button the value ladder is called from */ | |||||
| double val_step[UI_VLADDER_MAX_STEPS]; | |||||
| short totsteps, step_active, block_ofs_x; | |||||
| char str_step[UI_VLADDER_MAX_STEPS][6]; | |||||
| bool drag, cancel; | |||||
| } uiVLadderData; | |||||
| PointerRNA *ui_handle_afterfunc_add_operator(struct wmOperatorType *ot, int opcontext, bool create_props); | PointerRNA *ui_handle_afterfunc_add_operator(struct wmOperatorType *ot, int opcontext, bool create_props); | ||||
| extern void ui_pan_to_scroll(const struct wmEvent *event, int *type, int *val); | extern void ui_pan_to_scroll(const struct wmEvent *event, int *type, int *val); | ||||
| extern void ui_button_activate_do(struct bContext *C, struct ARegion *ar, uiBut *but); | extern void ui_button_activate_do(struct bContext *C, struct ARegion *ar, uiBut *but); | ||||
| Context not available. | |||||
| void ui_but_pie_dir_visual(RadialDirection dir, float vec[2]); | void ui_but_pie_dir_visual(RadialDirection dir, float vec[2]); | ||||
| void ui_but_pie_dir(RadialDirection dir, float vec[2]); | void ui_but_pie_dir(RadialDirection dir, float vec[2]); | ||||
| void ui_block_calculate_pie_segment(struct uiBlock *block, const float event_xy[2]); | void ui_block_calculate_pie_segment(struct uiBlock *block, const float event_xy[2]); | ||||
| void ui_numedit_begin(uiBut *but, uiHandleButtonData *data); | |||||
| void ui_multibut_states_create(uiBut *but_active, uiHandleButtonData *data); | |||||
| void ui_vladder_create(struct bContext *C, uiBut *but); | |||||
| int ui_vladder_handle(struct bContext *C, const struct wmEvent *event, void *vldata); | |||||
| void ui_button_clipboard_free(void); | void ui_button_clipboard_free(void); | ||||
| void ui_panel_menu(struct bContext *C, ARegion *ar, Panel *pa); | void ui_panel_menu(struct bContext *C, ARegion *ar, Panel *pa); | ||||
| Context not available. | |||||