Blender V5.3
interface_templates_intern.hh File Reference
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "RNA_types.hh"
#include "UI_interface_layout.hh"

Go to the source code of this file.

Classes

struct  blender::ui::RNAUpdateCb

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui

Macros

#define CURVE_ZOOM_MAX   (1.0f / 25.0f)
#define ERROR_LIBDATA_MESSAGE   N_("Cannot edit external library data")
#define TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH   (UI_UNIT_X * 4)
#define TEMPLATE_SEARCH_TEXTBUT_HEIGHT   UI_UNIT_Y

Functions

static void blender::ui::rna_update_cb (bContext &C, const RNAUpdateCb &cb)
static void blender::ui::rna_update_cb (bContext *C, void *arg_cb, void *)
Search Menu Helpers
int blender::ui::template_search_textbut_width (PointerRNA *ptr, PropertyRNA *name_prop)
int blender::ui::template_search_textbut_height ()
void blender::ui::template_add_button_search_menu (const bContext *C, Layout &layout, Block *block, PointerRNA *ptr, PropertyRNA *prop, BlockCreateFunc block_func, void *block_argN, const std::optional< StringRef > tip, const bool use_previews, const bool editable, const bool live_icon, ButtonArgNFree func_argN_free_fn, ButtonArgNCopy func_argN_copy_fn)
Block * blender::ui::template_common_search_menu (const bContext *C, ARegion *region, ButtonSearchUpdateFn search_update_fn, void *search_arg, ButtonHandleFunc search_exec_fn, void *active_item, ButtonSearchTooltipFn item_tooltip_fn, const int preview_rows, const int preview_cols, float scale)

Detailed Description

Share between interface/templates/ files.

Definition in file interface_templates_intern.hh.

Macro Definition Documentation

◆ CURVE_ZOOM_MAX

#define CURVE_ZOOM_MAX   (1.0f / 25.0f)

◆ ERROR_LIBDATA_MESSAGE

◆ TEMPLATE_SEARCH_TEXTBUT_HEIGHT

#define TEMPLATE_SEARCH_TEXTBUT_HEIGHT   UI_UNIT_Y

◆ TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH

#define TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH   (UI_UNIT_X * 4)