Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_align.c
| Context not available. | |||||
| bool ui_but_can_align(const uiBut *but) | bool ui_but_can_align(const uiBut *but) | ||||
| { | { | ||||
| return ( | const bool btype_can_align = !ELEM(but->type, UI_BTYPE_LABEL, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, | ||||
| !ELEM(but->type, UI_BTYPE_LABEL, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE) && | UI_BTYPE_TAB, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE); | ||||
| (BLI_rctf_size_x(&but->rect) > 0.0f) && (BLI_rctf_size_y(&but->rect) > 0.0f)); | return (btype_can_align && (BLI_rctf_size_x(&but->rect) > 0.0f) && (BLI_rctf_size_y(&but->rect) > 0.0f)); | ||||
| } | } | ||||
| /** | /** | ||||
| Context not available. | |||||