Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_query.c
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | bool UI_but_is_utf8(const uiBut *but) | ||||
| else { | else { | ||||
| return !(but->flag & UI_BUT_NO_UTF8); | return !(but->flag & UI_BUT_NO_UTF8); | ||||
| } | } | ||||
| } | } | ||||
| #ifdef USE_UI_POPOVER_ONCE | #ifdef USE_UI_POPOVER_ONCE | ||||
| bool ui_but_is_popover_once_compat(const uiBut *but) | bool ui_but_is_popover_once_compat(const uiBut *but) | ||||
| { | { | ||||
| return ((but->type == UI_BTYPE_BUT) || ui_but_is_toggle(but)); | return (ELEM(but->type, UI_BTYPE_BUT, UI_BTYPE_DECORATOR) || ui_but_is_toggle(but)); | ||||
| } | } | ||||
| #endif | #endif | ||||
| bool ui_but_has_array_value(const uiBut *but) | bool ui_but_has_array_value(const uiBut *but) | ||||
| { | { | ||||
| return (but->rnapoin.data && but->rnaprop && | return (but->rnapoin.data && but->rnaprop && | ||||
| ELEM(RNA_property_subtype(but->rnaprop), | ELEM(RNA_property_subtype(but->rnaprop), | ||||
| PROP_COLOR, | PROP_COLOR, | ||||
| ▲ Show 20 Lines • Show All 553 Lines • Show Last 20 Lines | |||||