Blender V5.0
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  RNAUpdateCb

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 rna_update_cb (bContext &C, const RNAUpdateCb &cb)
static void rna_update_cb (bContext *C, void *arg_cb, void *)
int template_search_textbut_width (PointerRNA *ptr, PropertyRNA *name_prop)
int template_search_textbut_height ()
void template_add_button_search_menu (const bContext *C, uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, uiBlockCreateFunc block_func, void *block_argN, std::optional< blender::StringRef > tip, const bool use_previews, const bool editable, const bool live_icon, uiButArgNFree func_argN_free_fn=MEM_freeN, uiButArgNCopy func_argN_copy_fn=MEM_dupallocN)
uiBlocktemplate_common_search_menu (const bContext *C, ARegion *region, uiButSearchUpdateFn search_update_fn, void *search_arg, uiButHandleFunc search_exec_fn, void *active_item, uiButSearchTooltipFn 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

Definition at line 27 of file interface_templates_intern.hh.

Referenced by template_search_textbut_height().

◆ TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH

#define TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH   (UI_UNIT_X * 4)

Definition at line 26 of file interface_templates_intern.hh.

Referenced by template_search_textbut_width().

Function Documentation

◆ rna_update_cb() [1/2]

◆ rna_update_cb() [2/2]

void rna_update_cb ( bContext * C,
void * arg_cb,
void *  )
inlinestatic

Definition at line 42 of file interface_templates_intern.hh.

References C, and rna_update_cb().

◆ template_add_button_search_menu()

void template_add_button_search_menu ( const bContext * C,
uiLayout * layout,
uiBlock * block,
PointerRNA * ptr,
PropertyRNA * prop,
uiBlockCreateFunc block_func,
void * block_argN,
std::optional< blender::StringRef > tip,
const bool use_previews,
const bool editable,
const bool live_icon,
uiButArgNFree func_argN_free_fn = MEM_freeN,
uiButArgNCopy func_argN_copy_fn = MEM_dupallocN )

◆ template_common_search_menu()

◆ template_search_textbut_height()

int template_search_textbut_height ( )

◆ template_search_textbut_width()