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_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_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index 537ecf8c65b..638ab01f8ba 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -583,25 +583,24 @@ struct uiPopupBlockHandle { /* #endif */ }; -uiBlock *ui_block_func_COLOR(struct bContext *C, uiPopupBlockHandle *handle, void *arg_but); +/* -------------------------------------------------------------------- */ +/* interface_region_*.c */ +/* interface_region_tooltip.c */ struct ARegion *ui_tooltip_create(struct bContext *C, struct ARegion *butregion, uiBut *but); void ui_tooltip_free(struct bContext *C, struct ARegion *ar); -uiBut *ui_popup_menu_memory_get(struct uiBlock *block); -void ui_popup_menu_memory_set(uiBlock *block, struct uiBut *but); - -void ui_popup_translate(struct bContext *C, struct ARegion *ar, const int mdiff[2]); - -ColorPicker *ui_block_colorpicker_create(struct uiBlock *block); -void ui_popup_block_scrolltest(struct uiBlock *block); - +/* interface_region_color_picker.c */ void ui_rgb_to_color_picker_compat_v(const float rgb[3], float r_cp[3]); void ui_rgb_to_color_picker_v(const float rgb[3], float r_cp[3]); void ui_color_picker_to_rgb_v(const float r_cp[3], float rgb[3]); void ui_color_picker_to_rgb(float r_cp0, float r_cp1, float r_cp2, float *r, float *g, float *b); -/* searchbox for string button */ +uiBlock *ui_block_func_COLOR(struct bContext *C, uiPopupBlockHandle *handle, void *arg_but); +ColorPicker *ui_block_colorpicker_create(struct uiBlock *block); + +/* interface_region_search.c */ +/* Searchbox for string button */ ARegion *ui_searchbox_create_generic(struct bContext *C, struct ARegion *butregion, uiBut *but); ARegion *ui_searchbox_create_operator(struct bContext *C, struct ARegion *butregion, uiBut *but); bool ui_searchbox_inside(struct ARegion *ar, int x, int y); @@ -613,6 +612,12 @@ bool ui_searchbox_apply(uiBut *but, struct ARegion *ar); void ui_searchbox_free(struct bContext *C, struct ARegion *ar); void ui_but_search_refresh(uiBut *but); +/* interface_region_menu_popup.c */ +int ui_but_menu_step(uiBut *but, int step); +bool ui_but_menu_step_poll(const uiBut *but); +uiBut *ui_popup_menu_memory_get(struct uiBlock *block); +void ui_popup_menu_memory_set(uiBlock *block, struct uiBut *but); + uiBlock *ui_popup_block_refresh( struct bContext *C, uiPopupBlockHandle *handle, ARegion *butregion, uiBut *but); @@ -625,14 +630,17 @@ uiPopupBlockHandle *ui_popup_menu_create( struct bContext *C, struct ARegion *butregion, uiBut *but, uiMenuCreateFunc create_func, void *arg); +/* interface_region_menu_pie.c */ void ui_pie_menu_level_create( uiBlock *block, struct wmOperatorType *ot, const char *propname, IDProperty *properties, const EnumPropertyItem *items, int totitem, int context, int flag); +/* interface_region_popup.c */ +void ui_popup_translate(struct bContext *C, struct ARegion *ar, const int mdiff[2]); void ui_popup_block_free(struct bContext *C, uiPopupBlockHandle *handle); +void ui_popup_block_scrolltest(struct uiBlock *block); -int ui_but_menu_step(uiBut *but, int step); -bool ui_but_menu_step_poll(const uiBut *but); +/* end interface_region_*.c */ /* interface_panel.c */ |