Blender  V2.93
Classes | Macros | Functions
node_geometry_attribute_search.cc File Reference
#include "BLI_index_range.hh"
#include "BLI_listbase.h"
#include "BLI_map.hh"
#include "BLI_set.hh"
#include "BLI_string_ref.hh"
#include "BLI_string_search.h"
#include "DNA_modifier_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_space_types.h"
#include "BKE_context.h"
#include "BKE_node_ui_storage.hh"
#include "BKE_object.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "ED_undo.h"
#include "BLT_translation.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "node_intern.h"

Go to the source code of this file.

Classes

struct  AttributeSearchData
 

Macros

#define MENU_SEP   "\xe2\x96\xb6"
 

Functions

 BLI_STATIC_ASSERT (std::is_trivially_destructible_v< AttributeSearchData >, "")
 
static StringRef attribute_data_type_string (const CustomDataType type)
 
static StringRef attribute_domain_string (const AttributeDomain domain)
 
static bool attribute_search_item_add (uiSearchItems *items, const AvailableAttributeInfo &item)
 
static void attribute_search_update_fn (const bContext *UNUSED(C), void *arg, const char *str, uiSearchItems *items, const bool is_first)
 
static void attribute_search_exec_fn (bContext *C, void *data_v, void *item_v)
 
void node_geometry_add_attribute_search_button (const bContext *C, const bNodeTree *node_tree, const bNode *node, PointerRNA *socket_ptr, uiLayout *layout)
 

Macro Definition Documentation

◆ MENU_SEP

#define MENU_SEP   "\xe2\x96\xb6"

Definition at line 74 of file node_geometry_attribute_search.cc.

Function Documentation

◆ attribute_data_type_string()

static StringRef attribute_data_type_string ( const CustomDataType  type)
static

◆ attribute_domain_string()

static StringRef attribute_domain_string ( const AttributeDomain  domain)
static

◆ attribute_search_exec_fn()

static void attribute_search_exec_fn ( bContext C,
void *  data_v,
void *  item_v 
)
static

◆ attribute_search_item_add()

static bool attribute_search_item_add ( uiSearchItems items,
const AvailableAttributeInfo item 
)
static

◆ attribute_search_update_fn()

static void attribute_search_update_fn ( const bContext UNUSEDC,
void *  arg,
const char *  str,
uiSearchItems items,
const bool  is_first 
)
static

◆ BLI_STATIC_ASSERT()

BLI_STATIC_ASSERT ( std::is_trivially_destructible_v< AttributeSearchData ,
""   
)

◆ node_geometry_add_attribute_search_button()

void node_geometry_add_attribute_search_button ( const bContext C,
const bNodeTree node_tree,
const bNode node,
PointerRNA socket_ptr,
uiLayout layout 
)