diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-03 12:26:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-03 12:57:09 +0300 |
commit | 2a87bd89951204a5dd15b60ba86cbba72fc3b088 (patch) | |
tree | d4eaa0a5bab4f6ca0da0b3d1c0fa8fa8272c0f6a /source/blender/editors/interface/interface_regions_intern.h | |
parent | d19d094ca9bb4f05b0f95c9f168340050864f103 (diff) |
Cleanup: split interface_regions.c
Each region type is quite separate and file was getting too big.
Diffstat (limited to 'source/blender/editors/interface/interface_regions_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_regions_intern.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_regions_intern.h b/source/blender/editors/interface/interface_regions_intern.h new file mode 100644 index 00000000000..d23cf964c5e --- /dev/null +++ b/source/blender/editors/interface/interface_regions_intern.h @@ -0,0 +1,39 @@ +/* + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * ***** END GPL LICENSE BLOCK ***** + */ + +/** \file blender/editors/interface/interface_regions_intern.h + * \ingroup edinterface + * + * Share between interface_region_*.c files. + */ + +#ifndef __INTERFACE_REGIONS_INTERN_H__ +#define __INTERFACE_REGIONS_INTERN_H__ + +#define MENU_PADDING (int)(0.2f * UI_UNIT_Y) + +/* interface_region_menu_popup.c */ +unsigned int ui_popup_menu_hash(const char *str); + +/* interface_regions_intern.h */ +ARegion *ui_region_temp_add(bScreen *sc); +void ui_region_temp_remove(struct bContext *C, bScreen *sc, ARegion *ar); + +#endif /* __INTERFACE_REGIONS_INTERN_H__ */ |