Blender V4.5
UI_interface_types.hh File Reference
#include <string>
#include "BLI_string_ref.hh"

Go to the source code of this file.

Macros

#define UI_MAX_DRAW_STR   400
#define UI_MAX_NAME_STR   128
#define UI_MAX_SHORTCUT_STR   64

Typedefs

using uiMenuCreateFunc = void (*)(bContext *C, uiLayout *layout, void *arg1)
using uiMenuHandleFunc = void (*)(bContext *C, void *arg, int event)
using uiMenuStepFunc = bool (*)(bContext *C, int direction, void *arg1)
using uiCopyArgFunc = void *(*)(const void *arg)
using uiFreeArgFunc = void (*)(void *arg)
using uiButToolTipFunc = std::string (*)(bContext *C, void *argN, blender::StringRef tip)

Macro Definition Documentation

◆ UI_MAX_DRAW_STR

#define UI_MAX_DRAW_STR   400

Definition at line 15 of file UI_interface_types.hh.

Referenced by add_collection_search_item(), blender::ed::transform::apply_shear(), blender::ed::transform::apply_value_impl(), blender::ed::transform::applyBakeTime(), blender::ed::transform::applyBoneEnvelope(), blender::ed::transform::applyBoneRoll(), blender::ed::transform::applyBoneSize(), blender::ed::transform::applyCurveShrinkFatten(), blender::ed::transform::applyEdgeSlide(), blender::ed::transform::applyGPOpacity(), blender::ed::transform::applyMaskShrinkFatten(), blender::ed::transform::applyMirror(), blender::ed::transform::applyNormalRotation(), blender::ed::transform::applyPushPull(), blender::ed::transform::applyResize(), blender::ed::transform::applyRotation(), blender::ed::transform::applySeqSlide(), blender::ed::transform::applySkinResize(), blender::ed::transform::applyTilt(), blender::ed::transform::applyTimeScale(), blender::ed::transform::applyTimeSlide(), blender::ed::transform::applyTimeTranslate(), blender::ed::transform::applyToSphere(), blender::ed::transform::applyTrackball(), blender::ed::transform::applyTranslation(), blender::ed::transform::applyVertSlide(), blender::ed::transform::Bend(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_update_header(), ED_area_status_text(), ed_marker_move_update_header(), edbm_inset_update_header(), blender::ed::transform::headerBoneSize(), blender::ed::transform::headerSeqSlide(), blender::ed::transform::headerTimeScale(), blender::ed::transform::headerTimeSlide(), blender::ed::transform::headerTimeTranslate(), blender::ed::transform::headerTranslation(), loopcut_init(), loopcut_modal(), minimize_stretch_iteration(), radial_control_update_header(), sample_color_update_header(), blender::ed::vse::slip_update_header(), template_search_textbut_width(), ui_but_build_drawstr_float(), ui_but_string_get_maxncpy(), ui_but_update_ex(), ui_draw_menu_item(), ui_draw_preview_item_stateless(), UI_fontstyle_draw_multiline_clipped_ex(), UI_popup_menu_reports(), ui_rna_collection_search_update_fn(), ui_text_clip_middle(), UI_text_clip_middle_ex(), ui_text_clip_middle_protect_right(), ui_text_clip_right_label(), widget_draw_text(), and widget_draw_text_icon().

◆ UI_MAX_NAME_STR

◆ UI_MAX_SHORTCUT_STR

#define UI_MAX_SHORTCUT_STR   64

Definition at line 17 of file UI_interface_types.hh.

Referenced by RNA_api_keymapitem().

Typedef Documentation

◆ uiButToolTipFunc

using uiButToolTipFunc = std::string (*)(bContext *C, void *argN, blender::StringRef tip)

Must return an allocated string.

Definition at line 36 of file UI_interface_types.hh.

◆ uiCopyArgFunc

using uiCopyArgFunc = void *(*)(const void *arg)

Definition at line 32 of file UI_interface_types.hh.

◆ uiFreeArgFunc

using uiFreeArgFunc = void (*)(void *arg)

Definition at line 33 of file UI_interface_types.hh.

◆ uiMenuCreateFunc

using uiMenuCreateFunc = void (*)(bContext *C, uiLayout *layout, void *arg1)

Definition at line 21 of file UI_interface_types.hh.

◆ uiMenuHandleFunc

using uiMenuHandleFunc = void (*)(bContext *C, void *arg, int event)

Definition at line 22 of file UI_interface_types.hh.

◆ uiMenuStepFunc

using uiMenuStepFunc = bool (*)(bContext *C, int direction, void *arg1)

Used for cycling menu values without opening the menu (Ctrl-Wheel).

Parameters
directionforward or backwards [1 / -1].
arg1uiBut.poin (as with uiMenuCreateFunc).
Returns
true when the button was changed.

Definition at line 30 of file UI_interface_types.hh.