78 if (icon && name && name[0] ==
'\0') {
181 block,
UI_BTYPE_NUM, 0, name,
x,
y,
width,
height,
ptr, prop, index, 0, 0, 0, 0,
NULL);
190 if (icon && name && name[0] ==
'\0') {
247 if (icon && name && name[0] ==
'\0') {
314 if (icon == ICON_DOT) {
341 but =
uiDefBut(block,
UI_BTYPE_LABEL, 0, text,
x,
y,
width,
height,
NULL, 0, 0, 0, 0,
NULL);
379 if (check_prop && check_prop(
ptr, prop,
user_data) == 0) {
385 switch (label_align) {
416 const bool use_activate_init = ((prop == prop_activate_init) &&
419 if (use_activate_init) {
426 if (use_activate_init) {
449 const bool requires_exact_data_name,
450 const bool has_id_icon,
458 if (!has_id_icon && cis->
is_id && !requires_exact_data_name) {
464 strcpy(cis->
name, name_buf);
488 const bool requires_exact_data_name = !is_ptr_target;
489 const bool skip_filter = is_first;
492 bool has_id_icon =
false;
501 if (itemptr.data ==
data->target_ptr.owner_id) {
524 if (requires_exact_data_name) {
528 const ID *
id = itemptr.data;
532 "Name string buffer should be big enough to hold full UI ID name");
543 cis->
data = itemptr.data;
545 cis->
index = item_index;
554 if (
name != name_buf) {
574 for (
int i = 0; i < filtered_amount; i++) {
604 return ICON_EMPTY_DATA;
636 return ICON_CHECKMARK;
696 1e0, 1
e-1, 1
e-2, 1
e-3, 1
e-4, 1
e-5, 1
e-6};
697 static const double max_pow = 10000000.0;
707 if ((value < pow10_neg[prec]) && (value > (1.0 / max_pow))) {
708 int value_i = (int)((value * max_pow) + 0.5);
710 const int prec_span = 3;
715 while (i && value_i) {
725 test_prec = prec_min;
727 dec_flag = (dec_flag >> (prec_min + 1)) & ((1 << prec_span) - 1);
731 dec_flag = dec_flag >> 1;
734 if (test_prec > prec) {
806 bs_handle->
block = block;
824 block = bs_handle->
block;
843 if (*bs_elem->but_p == but) {
864 if (bs_elem->but_p ==
but_p) {
882 if (*bs_elem->but_p == but_src) {
883 *bs_elem->but_p = but_dst;
898 bs_handle->block =
NULL;
900 *bs_elem->but_p =
NULL;
927 if (bs_handle->block == block->
oldblock) {
928 bs_handle->block = block;
931 if (*bs_elem->but_p) {
937 *bs_elem->but_p = but_new;
#define MAX_ID_FULL_NAME_UI
void BKE_id_full_name_ui_prefix_get(char name[MAX_ID_FULL_NAME_UI], const struct ID *id, const bool add_lib_hint, char separator_char, int *r_prefix_len)
#define BLI_STATIC_ASSERT(a, msg)
#define LISTBASE_FOREACH(type, var, list)
#define LISTBASE_FOREACH_MUTABLE(type, var, list)
void void void BLI_movelisttolist(struct ListBase *dst, struct ListBase *src) ATTR_NONNULL(1
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
void BLI_string_search_free(StringSearch *search)
void BLI_string_search_add(StringSearch *search, const char *str, void *user_data)
StringSearch * BLI_string_search_new(void)
int BLI_string_search_query(StringSearch *search, const char *query, void ***r_data)
Object is a sort of wrapper for general info.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
Read Guarded memory(de)allocation.
Group RGB to Bright Vector Camera CLAMP
#define RNA_STRUCT_BEGIN(sptr, prop)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
@ UI_PROP_BUTS_ANY_FAILED_CHECK
@ UI_PROP_BUTS_NONE_ADDED
uiBut * uiDefIconTextButR_prop(uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
uiBut * uiDefBut(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip)
void uiItemL(uiLayout *layout, const char *name, int icon)
bool UI_search_item_add(uiSearchItems *items, const char *name, void *poin, int iconid, int state, const uint8_t name_prefix_offset)
uiBut * uiDefIconButR_prop(uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * UI_context_active_but_get(const struct bContext *C)
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep)
#define UI_PRECISION_FLOAT_MAX
@ UI_BUT_LABEL_ALIGN_SPLIT_COLUMN
@ UI_BUT_LABEL_ALIGN_NONE
@ UI_BUT_LABEL_ALIGN_COLUMN
uiBut * uiDefButR_prop(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
void uiLayoutSetActivateInit(uiLayout *layout, bool activate_init)
void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon)
void UI_but_flag_enable(uiBut *but, int flag)
int UI_icon_from_library(const struct ID *id)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
uiBut * ui_but_find_new(uiBlock *block_new, const uiBut *but_old)
int ui_id_icon_get(const bContext *C, ID *id, const bool big)
int UI_text_colorid_from_report_type(int type)
bool UI_but_online_manual_id_from_active(const struct bContext *C, char *r_str, size_t maxlength)
int UI_icon_from_report_type(int type)
eAutoPropButsReturn uiDefAutoButsRNA(uiLayout *layout, PointerRNA *ptr, bool(*check_prop)(PointerRNA *ptr, PropertyRNA *prop, void *user_data), void *user_data, PropertyRNA *prop_activate_init, const eButLabelAlign label_align, const bool compact)
bool UI_butstore_is_valid(uiButStore *bs)
int UI_icon_from_id(const ID *id)
int UI_icon_colorid_from_report_type(int type)
uiBut * uiDefAutoButR(uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, int index, const char *name, int icon, int x, int y, int width, int height)
void UI_butstore_update(uiBlock *block)
void UI_butstore_unregister(uiButStore *bs_handle, uiBut **but_p)
bool UI_butstore_register_update(uiBlock *block, uiBut *but_dst, const uiBut *but_src)
static bool add_collection_search_item(CollItemSearch *cis, const bool requires_exact_data_name, const bool has_id_icon, uiSearchItems *items)
void ui_rna_collection_search_update_fn(const struct bContext *C, void *arg, const char *str, uiSearchItems *items, const bool is_first)
bool UI_butstore_is_registered(uiBlock *block, uiBut *but)
uiButStore * UI_butstore_create(uiBlock *block)
void UI_butstore_register(uiButStore *bs_handle, uiBut **but_p)
void UI_butstore_clear(uiBlock *block)
struct CollItemSearch CollItemSearch
bool UI_but_online_manual_id(const uiBut *but, char *r_str, size_t maxlength)
void UI_butstore_free(uiBlock *block, uiButStore *bs_handle)
int UI_calc_float_precision(int prec, double value)
void(* MEM_freeN)(void *vmemh)
size_t(* MEM_allocN_len)(const void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
INLINE Rall1d< T, V, S > pow(const Rall1d< T, V, S > &arg, double m)
const char * RNA_struct_identifier(const StructRNA *type)
bool RNA_property_array_check(PropertyRNA *prop)
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
bool RNA_struct_is_ID(const StructRNA *type)
const char * RNA_property_identifier(const PropertyRNA *prop)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
PropertyType RNA_property_type(PropertyRNA *prop)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
StructRNA * RNA_property_pointer_type(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *value)
int RNA_property_flag(PropertyRNA *prop)
int RNA_struct_ui_icon(const StructRNA *type)
PropertySubType RNA_property_subtype(PropertyRNA *prop)
int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
const char * RNA_property_ui_name(const PropertyRNA *prop)
struct CollItemSearch * next
struct CollItemSearch * prev
struct uiButStoreElem * prev
struct uiButStoreElem * next
struct wmOperatorType * optype
struct PropertyRNA * rnaprop
struct PointerRNA rnapoin
ccl_device_inline float2 fabs(const float2 &a)
void WM_operator_py_idname(char *to, const char *from)