From a42fd3de5d82deff4b7d9b1f14a58fd95d9d20ff Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 30 Jun 2018 10:36:40 +0200 Subject: UI: Add 'interface_query.c' Interface files are increasingly mixing up too much functionality, add a file only to handle queries. More functions can be moved/added here. --- source/blender/editors/include/UI_interface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 6227ea15b71..c87334f4bac 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -379,6 +379,11 @@ typedef void (*uiMenuHandleFunc)(struct bContext *C, void *arg, int event); */ typedef bool (*uiMenuStepFunc)(struct bContext *C, int direction, void *arg1); + +/* interface_query.c */ +bool UI_block_is_empty(const uiBlock *block); + + /* interface_region_menu_popup.c */ /* Popup Menus * @@ -498,8 +503,6 @@ void UI_block_order_flip(uiBlock *block); void UI_block_flag_enable(uiBlock *block, int flag); void UI_block_flag_disable(uiBlock *block, int flag); -bool UI_block_is_empty(const uiBlock *block); - int UI_but_return_value_get(uiBut *but); void UI_but_drag_set_id(uiBut *but, struct ID *id); -- cgit v1.2.3