Blender V5.0
UI_interface_types.hh File Reference
#include <string>
#include "BLI_string_ref.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ocio

Macros

#define UI_MAX_DRAW_STR   550
#define UI_MAX_NAME_STR   256
#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)
using uiButToolTipCustomFunc = void (*)(bContext &C, uiTooltipData &data, uiBut *but, void *argN)
using ColorManagedDisplay = blender::ocio::Display

Macro Definition Documentation

◆ UI_MAX_DRAW_STR

#define UI_MAX_DRAW_STR   550

Definition at line 17 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(), format_unit_value(), 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 19 of file UI_interface_types.hh.

Referenced by RNA_api_keymapitem().

Typedef Documentation

◆ ColorManagedDisplay

◆ uiButToolTipCustomFunc

using uiButToolTipCustomFunc = void (*)(bContext &C, uiTooltipData &data, uiBut *but, void *argN)
Parameters
dataThe tooltip data to be filled.
butThe exact button the tooltip is shown for. This is needed when the tooltip function is shared across multiple buttons but there still needs to be some customization per button. Mostly useful when using uiLayoutSetTooltipCustomFunc.

Definition at line 46 of file UI_interface_types.hh.

◆ uiButToolTipFunc

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

Must return an allocated string.

Definition at line 38 of file UI_interface_types.hh.

◆ uiCopyArgFunc

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

Definition at line 34 of file UI_interface_types.hh.

◆ uiFreeArgFunc

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

Definition at line 35 of file UI_interface_types.hh.

◆ uiMenuCreateFunc

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

Definition at line 23 of file UI_interface_types.hh.

◆ uiMenuHandleFunc

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

Definition at line 24 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 32 of file UI_interface_types.hh.