|
Blender V4.5
|
#include <algorithm>#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_linklist.h"#include "BLI_listbase.h"#include "BLI_rand.hh"#include "BLI_string.h"#include "BLI_string_utils.hh"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_screen.hh"#include "BKE_workspace.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "ED_asset_shelf.hh"#include "ED_buttons.hh"#include "ED_screen.hh"#include "ED_screen_types.hh"#include "ED_space_api.hh"#include "ED_time_scrub_ui.hh"#include "GPU_framebuffer.hh"#include "GPU_immediate.hh"#include "GPU_immediate_util.hh"#include "GPU_matrix.hh"#include "GPU_state.hh"#include "BLF_api.hh"#include "IMB_metadata.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "screen_intern.hh"Go to the source code of this file.
Classes | |
| struct | RegionTypeAlignInfo |
| struct | MetadataPanelDrawContext |
Enumerations | |
| enum | RegionEmbossSide { REGION_EMBOSS_LEFT = (1 << 0) , REGION_EMBOSS_TOP = (1 << 1) , REGION_EMBOSS_BOTTOM = (1 << 2) , REGION_EMBOSS_RIGHT = (1 << 3) , REGION_EMBOSS_ALL } |
Functions | |
| static void | region_draw_emboss (const ARegion *region, const rcti *scirct, int sides) |
| void | ED_region_pixelspace (const ARegion *region) |
| void | ED_region_do_listen (wmRegionListenerParams *params) |
| void | ED_area_do_listen (wmSpaceTypeListenerParams *params) |
| void | ED_area_do_refresh (bContext *C, ScrArea *area) |
| static void | area_draw_azone_fullscreen (short, short, short x2, short y2, float alpha) |
| Corner widget use for quitting full-screen. | |
| static void | area_draw_azone (short, short, short, short) |
| Corner widgets use for dragging and splitting the view. | |
| static void | draw_azone_arrow (float x1, float y1, float x2, float y2, AZEdge edge) |
| Edge widgets to show hidden panels such as the toolbar and headers. | |
| static void | region_draw_azone_tab_arrow (ScrArea *area, ARegion *region, AZone *az) |
| static void | area_azone_tag_update (ScrArea *area) |
| static void | region_draw_azones (ScrArea *area, ARegion *region) |
| static void | region_draw_status_text (ScrArea *, ARegion *region) |
| void | ED_region_do_msg_notify_tag_redraw (bContext *, wmMsgSubscribeKey *, wmMsgSubscribeValue *msg_val) |
| void | ED_area_do_msg_notify_tag_refresh (bContext *, wmMsgSubscribeKey *, wmMsgSubscribeValue *msg_val) |
| void | ED_area_do_mgs_subscribe_for_tool_header (const wmRegionMessageSubscribeParams *params) |
| void | ED_area_do_mgs_subscribe_for_tool_ui (const wmRegionMessageSubscribeParams *params) |
| static bool | area_is_pseudo_minimized (const ScrArea *area) |
| void | ED_region_do_layout (bContext *C, ARegion *region) |
| void | ED_region_do_draw (bContext *C, ARegion *region) |
| void | ED_region_tag_redraw (ARegion *region) |
| void | ED_region_tag_redraw_cursor (ARegion *region) |
| void | ED_region_tag_redraw_no_rebuild (ARegion *region) |
| void | ED_region_tag_refresh_ui (ARegion *region) |
| void | ED_region_tag_redraw_editor_overlays (ARegion *region) |
| void | ED_region_tag_redraw_partial (ARegion *region, const rcti *rct, bool rebuild) |
| void | ED_area_tag_redraw (ScrArea *area) |
| void | ED_area_tag_redraw_no_rebuild (ScrArea *area) |
| void | ED_area_tag_redraw_regiontype (ScrArea *area, int regiontype) |
| void | ED_area_tag_refresh (ScrArea *area) |
| void | ED_area_tag_region_size_update (ScrArea *area, ARegion *changed_region) |
| int | ED_area_max_regionsize (const ScrArea *area, const ARegion *scale_region, const AZEdge edge) |
| const char * | ED_area_region_search_filter_get (const ScrArea *area, const ARegion *region) |
| void | ED_region_search_filter_update (const ScrArea *area, ARegion *region) |
| void | ED_area_status_text (ScrArea *area, const char *str) |
| static void | ed_workspace_status_item (WorkSpace *workspace, std::string text, const int icon, const float space_factor=0.0f, const bool inverted=false) |
| static void | ed_workspace_status_space (WorkSpace *workspace, const float space_factor) |
| static void | area_azone_init (const wmWindow *win, const bScreen *screen, ScrArea *area) |
| static void | fullscreen_azone_init (ScrArea *area, ARegion *region) |
| static bool | region_background_is_transparent (const ScrArea *area, const ARegion *region) |
| static void | region_azone_edge (const ScrArea *area, AZone *az, const ARegion *region) |
| static void | region_azone_tab_plus (ScrArea *area, AZone *az, ARegion *region) |
| static bool | region_azone_edge_poll (const ScrArea *area, const ARegion *region, const bool is_fullscreen) |
| static void | region_azone_edge_init (ScrArea *area, ARegion *region, AZEdge edge, const bool is_fullscreen) |
| static void | region_azone_scrollbar_init (ScrArea *area, ARegion *region, AZScrollDirection direction) |
| static void | region_azones_scrollbars_init (ScrArea *area, ARegion *region) |
| static void | region_azones_add_edge (ScrArea *area, ARegion *region, const int alignment, const bool is_fullscreen) |
| static void | region_azones_add (const bScreen *screen, ScrArea *area, ARegion *region) |
| static int | rct_fits (const rcti *rect, const eScreenAxis dir_axis, int size) |
| static void | region_overlap_fix (ScrArea *area, ARegion *region) |
| bool | ED_region_is_overlap (int spacetype, int regiontype) |
| static void | region_rect_recursive (ScrArea *area, ARegion *region, rcti *remainder, rcti *overlap_remainder, int quad) |
| static void | area_calc_totrct (const bScreen *screen, ScrArea *area, const rcti *window_rect) |
| static void | region_evaulate_visibility (ARegion *region) |
| static void | ed_default_handlers (wmWindowManager *wm, ScrArea *area, ARegion *region, ListBase *handlers, int flag) |
| void | ED_area_update_region_sizes (wmWindowManager *wm, wmWindow *win, ScrArea *area) |
| bool | ED_area_has_shared_border (ScrArea *a, ScrArea *b) |
| static void | area_init_type_fallback (ScrArea *area, eSpace_Type space_type) |
| void | ED_area_and_region_types_init (ScrArea *area) |
| void | ED_area_init (bContext *C, const wmWindow *win, ScrArea *area) |
| static void | area_offscreen_init (ScrArea *area) |
| ScrArea * | ED_area_offscreen_create (wmWindow *win, eSpace_Type space_type) |
| static void | area_offscreen_exit (wmWindowManager *wm, wmWindow *win, ScrArea *area) |
| void | ED_area_offscreen_free (wmWindowManager *wm, wmWindow *win, ScrArea *area) |
| static void | region_update_rect (ARegion *region) |
| void | ED_region_update_rect (ARegion *region) |
| void | ED_region_floating_init (ARegion *region) |
| void | ED_region_cursor_set (wmWindow *win, ScrArea *area, ARegion *region) |
| void | ED_region_visibility_change_update_ex (bContext *C, ScrArea *area, ARegion *region, bool is_hidden, bool do_init) |
| void | ED_region_visibility_change_update (bContext *C, ScrArea *area, ARegion *region) |
| void | region_toggle_hidden (bContext *C, ARegion *region, const bool do_fade) |
| void | ED_region_toggle_hidden (bContext *C, ARegion *region) |
| void | ED_area_data_copy (ScrArea *area_dst, ScrArea *area_src, const bool do_free) |
| void | ED_area_data_swap (ScrArea *area_dst, ScrArea *area_src) |
| void | ED_area_swapspace (bContext *C, ScrArea *sa1, ScrArea *sa2) |
| void | ED_area_newspace (bContext *C, ScrArea *area, int type, const bool skip_region_exit) |
| static SpaceLink * | area_get_prevspace (ScrArea *area) |
| void | ED_area_prevspace (bContext *C, ScrArea *area) |
| int | ED_area_header_switchbutton (const bContext *C, uiBlock *block, int yco) |
| static ThemeColorID | region_background_color_id (const bContext *, const ARegion *region) |
| void | ED_region_clear (const bContext *C, const ARegion *region, const int colorid) |
| static void | region_clear_fully_transparent (const bContext *C) |
| BLI_INLINE bool | streq_array_any (const char *s, const char *arr[]) |
| static void | ed_panel_draw (const bContext *C, ARegion *region, ListBase *lb, PanelType *pt, Panel *panel, int w, int em, char *unique_panel_str, const char *search_filter, wmOperatorCallContext op_context) |
| static bool | panel_add_check (const bContext *C, const WorkSpace *workspace, const char *contexts[], const char *category_override, PanelType *panel_type) |
| static bool | region_uses_category_tabs (const ScrArea *area, const ARegion *region) |
| static const char * | region_panels_collect_categories (ARegion *region, LinkNode *panel_types_stack, bool *use_category_tabs) |
| static int | panel_draw_width_from_max_width_get (const ARegion *region, const PanelType *panel_type, const int max_width) |
| void | ED_region_panels_layout_ex (const bContext *C, ARegion *region, ListBase *paneltypes, wmOperatorCallContext op_context, const char *contexts[], const char *category_override) |
| void | ED_region_panels_layout (const bContext *C, ARegion *region) |
| void | ED_region_panels_draw (const bContext *C, ARegion *region) |
| void | ED_region_panels_ex (const bContext *C, ARegion *region, wmOperatorCallContext op_context, const char *contexts[]) |
| void | ED_region_panels (const bContext *C, ARegion *region) |
| void | ED_region_panels_init (wmWindowManager *wm, ARegion *region) |
| static bool | panel_property_search (const bContext *C, ARegion *region, const uiStyle *style, Panel *panel, PanelType *panel_type, const char *search_filter) |
| bool | ED_region_property_search (const bContext *C, ARegion *region, ListBase *paneltypes, const char *contexts[], const char *category_override) |
| void | ED_region_header_layout (const bContext *C, ARegion *region) |
| static void | region_draw_blocks_in_view2d (const bContext *C, const ARegion *region) |
| void | ED_region_header_draw (const bContext *C, ARegion *region) |
| void | ED_region_header_draw_with_button_sections (const bContext *C, const ARegion *region, const uiButtonSectionsAlign align) |
| void | ED_region_header (const bContext *C, ARegion *region) |
| void | ED_region_header_with_button_sections (const bContext *C, ARegion *region, const uiButtonSectionsAlign align) |
| void | ED_region_header_init (ARegion *region) |
| int | ED_area_headersize () |
| int | ED_area_footersize () |
| int | ED_area_global_size_y (const ScrArea *area) |
| int | ED_area_global_min_size_y (const ScrArea *area) |
| int | ED_area_global_max_size_y (const ScrArea *area) |
| bool | ED_area_is_global (const ScrArea *area) |
| ScrArea * | ED_area_find_under_cursor (const bContext *C, int spacetype, const int event_xy[2]) |
| ScrArea * | ED_screen_areas_iter_first (const wmWindow *win, const bScreen *screen) |
| ScrArea * | ED_screen_areas_iter_next (const bScreen *screen, const ScrArea *area) |
| int | ED_region_global_size_y () |
| void | ED_region_info_draw_multiline (ARegion *region, const char *text_array[], const float fill_color[4], const bool full_redraw) |
| void | ED_region_info_draw (ARegion *region, const char *text, const float fill_color[4], const bool full_redraw) |
| static void | metadata_panel_draw_field (const char *field, const char *value, void *ctx_v) |
| void | ED_region_image_metadata_panel_draw (ImBuf *ibuf, uiLayout *layout) |
| void | ED_region_grid_draw (ARegion *region, float zoomx, float zoomy, float x0, float y0) |
| static void | region_visible_rect_calc (ARegion *region, rcti *rect) |
| const rcti * | ED_region_visible_rect (ARegion *region) |
| void | ED_region_cache_draw_background (ARegion *region) |
| void | ED_region_cache_draw_curfra_label (const int framenr, const float x, const float y) |
| void | ED_region_cache_draw_cached_segments (ARegion *region, const int num_segments, const int *points, const int sfra, const int efra) |
| void | ED_region_message_subscribe (wmRegionMessageSubscribeParams *params) |
| int | ED_region_snap_size_test (const ARegion *region) |
| bool | ED_region_snap_size_apply (ARegion *region, int snap_flag) |
Public Functions | |
| void | ED_workspace_status_text (bContext *C, const char *str) |
Region Alignment Syncing for Space Switching | |
| static void | region_align_info_from_area (ScrArea *area, RegionTypeAlignInfo *r_align_info) |
| static short | region_alignment_from_header_and_tool_header_state (const RegionTypeAlignInfo *region_align_info, const short fallback) |
| static void | region_align_info_to_area_for_headers (const RegionTypeAlignInfo *region_align_info_src, const RegionTypeAlignInfo *region_align_info_dst, ARegion *region_by_type[RGN_TYPE_NUM]) |
| static void | region_align_info_to_area (ScrArea *area, const RegionTypeAlignInfo region_align_info_src[RGN_TYPE_NUM]) |
Private helper functions to help ensure consistent spacing | |
| static constexpr float | STATUS_BEFORE_TEXT = 0.17f |
| static constexpr float | STATUS_AFTER_TEXT = 0.90f |
| static constexpr float | STATUS_MOUSE_ICON_PAD = -0.68f |
| static void | ed_workspace_status_text_item (WorkSpace *workspace, std::string text) |
| static void | ed_workspace_status_icon_item (WorkSpace *workspace, const int icon, const bool inverted=false) |
| enum RegionEmbossSide |
Definition at line 1050 of file area.cc.
References ScrArea::actionzones, AZONE_AREA, BLI_addtail(), BLI_freelistN(), BLI_rcti_init(), ED_area_headersize(), ED_area_is_global(), i, MEM_callocN(), AZone::rect, SCREENNORMAL, bScreen::state, bScreen::temp, ScrArea::totrct, AZone::type, U, UI_AZONESPOTH, UI_AZONESPOTW, USER_APP_LOCK_CORNER_SPLIT, WM_window_is_fullscreen(), WM_window_native_pixel_x(), AZone::x1, AZone::x2, rcti::xmax, rcti::xmin, AZone::y1, AZone::y2, rcti::ymax, and rcti::ymin.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Definition at line 295 of file area.cc.
References AREA_FLAG_ACTIONZONES_UPDATE, and ScrArea::flag.
Referenced by region_draw_azones().
Definition at line 1875 of file area.cc.
References bScreen::areabase, BLI_assert, BLI_listbase_is_single(), BLI_rcti_size_x(), BLI_rcti_size_y(), ED_area_is_global(), SCREENFULL, SCREENMAXIMIZED, bScreen::state, bScreen::temp, ScrArea::totrct, U, UI_SCALE_FAC, ScrArea::v1, ScrArea::v2, ScrArea::v4, ScrVert::vec, ScrArea::winx, ScrArea::winy, vec2s::x, rcti::xmax, rcti::xmin, vec2s::y, rcti::ymax, and rcti::ymin.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Corner widgets use for dragging and splitting the view.
Definition at line 197 of file area.cc.
Referenced by region_draw_azones().
|
static |
Corner widget use for quitting full-screen.
Definition at line 181 of file area.cc.
References min_ff(), U, UI_icon_draw_ex(), UI_INV_SCALE_FAC, and UI_NO_ICON_OVERLAY_TEXT.
Referenced by region_draw_azones().
Definition at line 2838 of file area.cc.
References ListBase::first, SpaceLink::next, SPACE_FLAG_TYPE_TEMPORARY, SPACE_FLAG_TYPE_WAS_ACTIVE, and ScrArea::spacedata.
Referenced by ED_area_prevspace().
|
static |
Setup a known space type in the event a file with an unknown space-type is loaded.
Definition at line 2097 of file area.cc.
References BKE_spacetype_from_id(), BLI_addhead(), BLI_assert, BLI_listbase_clear(), BLI_remlink(), ListBase::first, LIKELY, LISTBASE_FOREACH, ScrArea::regionbase, SpaceLink::regionbase, screen_area_spacelink_add(), ScrArea::spacedata, ScrArea::spacetype, and ScrArea::type.
Referenced by ED_area_and_region_types_init().
|
static |
Although there's no general support for minimizing areas, the status-bar can be snapped to be only a few pixels high. A few pixels rather than 0 so it can be un-minimized again. We consider it pseudo-minimized and don't draw it then.
Definition at line 474 of file area.cc.
References ScrArea::winx, and ScrArea::winy.
Referenced by ED_region_do_draw(), and ED_region_do_layout().
|
static |
Definition at line 2253 of file area.cc.
References SpaceType::exit, LISTBASE_FOREACH, MEM_SAFE_FREE, ScrArea::regionbase, wmWindow::runtime, ScrArea::type, WM_draw_region_free(), WM_event_modal_handler_area_replace(), WM_event_modal_handler_region_replace(), WM_event_timer_remove(), and WM_msgbus_clear_by_owner().
Referenced by ED_area_offscreen_free().
|
static |
Definition at line 2229 of file area.cc.
References AREA_FLAG_OFFSCREEN, BKE_regiontype_from_id(), BKE_spacetype_from_id(), BLI_assert, ScrArea::flag, LISTBASE_FOREACH, ScrArea::regionbase, ScrArea::spacetype, and ScrArea::type.
Referenced by ED_area_offscreen_create().
|
static |
Edge widgets to show hidden panels such as the toolbar and headers.
Definition at line 205 of file area.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, BLI_assert, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), i, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immVertex2f(), immVertexFormat(), l, pos, sign(), size(), and U.
Referenced by region_draw_azone_tab_arrow().
| void ED_area_and_region_types_init | ( | ScrArea * | area | ) |
Ensure ScrArea.type and #ARegion.type are set and valid.
Definition at line 2127 of file area.cc.
References area_init_type_fallback(), BKE_regiontype_from_id(), BKE_spacetype_from_id(), BLI_assert, BLI_assert_msg, LISTBASE_FOREACH, ScrArea::regionbase, SPACE_VIEW3D, ScrArea::spacetype, and ScrArea::type.
Referenced by ED_area_init(), and screen_refresh_if_needed().
We swap spaces for full-screen to keep all allocated data area vertices were set.
Definition at line 2382 of file area.cc.
References BKE_area_region_copy(), BKE_area_region_free(), BKE_spacedata_copylist(), BKE_spacedata_freelist(), BKE_spacetype_from_id(), BLI_addtail(), BLI_freelistN(), ScrArea::flag, HEADER_NO_PULLDOWN, LISTBASE_FOREACH, ScrArea::regionbase, ScrArea::spacedata, ScrArea::spacetype, and ScrArea::type.
Referenced by area_dupli_fn(), area_split(), ED_area_swapspace(), ED_workspace_layout_duplicate(), and screen_data_copy().
Definition at line 2415 of file area.cc.
References ScrArea::regionbase, ScrArea::spacedata, ScrArea::spacetype, and ScrArea::type.
Referenced by ED_screen_state_toggle(), and screen_state_to_nonnormal().
| void ED_area_do_listen | ( | wmSpaceTypeListenerParams * | params | ) |
Only exported for WM.
Definition at line 161 of file area.cc.
References params.
Referenced by wm_event_do_notifiers().
| void ED_area_do_mgs_subscribe_for_tool_header | ( | const wmRegionMessageSubscribeParams * | params | ) |
Follow ARegionType.message_subscribe.
Definition at line 417 of file area.cc.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, ARegion::regiontype, RGN_TYPE_TOOL_HEADER, wmMsgSubscribeValue::user_data, and WM_msg_subscribe_rna_prop.
Referenced by ED_spacetype_image(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_view3d().
| void ED_area_do_mgs_subscribe_for_tool_ui | ( | const wmRegionMessageSubscribeParams * | params | ) |
Definition at line 432 of file area.cc.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, LISTBASE_FOREACH, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, ARegion::panels, params, PNL_PIN, ARegion::regiontype, RGN_TYPE_UI, STREQ, UI_panel_category_active_get(), UI_panel_is_active(), wmMsgSubscribeValue::user_data, and WM_msg_subscribe_rna_prop.
Referenced by ED_spacetype_image(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_view3d().
| void ED_area_do_msg_notify_tag_refresh | ( | bContext * | C, |
| wmMsgSubscribeKey * | msg_key, | ||
| wmMsgSubscribeValue * | msg_val ) |
Definition at line 407 of file area.cc.
References ED_area_tag_refresh(), and wmMsgSubscribeValue::user_data.
Referenced by file_main_region_message_subscribe().
Only exported for WM.
Definition at line 169 of file area.cc.
References C, ScrArea::do_refresh, SpaceType::refresh, and ScrArea::type.
Referenced by wm_event_do_refresh_wm_and_depsgraph(), and wm_handler_fileselect_do().
Search all screens, even non-active or overlapping (multiple windows), return the most-likely area of interest. xy is relative to active window, like all similar functions.
Definition at line 3802 of file area.cc.
References BKE_screen_find_area_xy(), C, CTX_wm_screen(), CTX_wm_window(), wmWindow::parent, WM_window_find_under_cursor(), and WM_window_get_active_screen().
Referenced by area_join_update_data(), area_swap_modal(), and blender::ed::asset::screenshot_preview_exec().
| int ED_area_footersize | ( | ) |
Definition at line 3776 of file area.cc.
References ED_area_headersize().
Referenced by region_rect_recursive().
| int ED_area_global_max_size_y | ( | const ScrArea * | area | ) |
Definition at line 3791 of file area.cc.
References BLI_assert, ED_area_is_global(), ScrArea::global, round_fl_to_int(), ScrGlobalAreaData::size_max, and UI_SCALE_FAC.
Referenced by area_move_set_limits().
| int ED_area_global_min_size_y | ( | const ScrArea * | area | ) |
Definition at line 3786 of file area.cc.
References BLI_assert, ED_area_is_global(), ScrArea::global, round_fl_to_int(), ScrGlobalAreaData::size_min, and UI_SCALE_FAC.
Referenced by area_move_set_limits().
| int ED_area_global_size_y | ( | const ScrArea * | area | ) |
Definition at line 3781 of file area.cc.
References BLI_assert, ScrGlobalAreaData::cur_fixed_height, ED_area_is_global(), ScrArea::global, round_fl_to_int(), and UI_SCALE_FAC.
Referenced by screen_geom_vertices_scale(), and WM_window_screen_rect_calc().
Definition at line 2089 of file area.cc.
References area_getorientation(), and b.
Referenced by ED_buttons_should_sync_with_outliner().
Returns offset for next button in header.
Definition at line 2886 of file area.cc.
References C, CTX_wm_area(), CTX_wm_screen(), bScreen::id, RNA_pointer_create_discrete(), U, UI_BTYPE_MENU, and uiDefButR().
Referenced by uiTemplateHeader().
| int ED_area_headersize | ( | ) |
Definition at line 3770 of file area.cc.
References HEADER_PADDING_Y, U, and UI_SCALE_FAC.
Referenced by area_azone_init(), area_move_set_limits(), area_snap_calc_location(), area_split_allowed(), area_split_factor(), ED_area_footersize(), ED_region_global_size_y(), region_rect_recursive(), screen_geom_find_area_split_point(), screen_geom_vertices_scale_pass(), screen_global_header_size(), and blender::ed::vse::sequencer_refresh().
Called in screen_refresh, or screens_init, also area size changes.
Definition at line 2144 of file area.cc.
References area_azone_init(), area_calc_totrct(), AREA_FLAG_ACTIVE_TOOL_UPDATE, AREA_FLAG_REGION_SIZE_UPDATE, area_regions_poll(), BKE_workspace_active_screen_get(), C, CTX_wm_manager(), ED_area_and_region_types_init(), ED_area_is_global(), ed_default_handlers(), ListBase::first, ScrArea::flag, ScrGlobalAreaData::flag, G, G_TRANSFORM_WM, ScrArea::global, GLOBAL_AREA_IS_HIDDEN, ScrArea::handlers, SpaceType::init, ScrArea_Runtime::is_tool_set, SpaceType::keymapflag, LISTBASE_FOREACH, region_azones_add(), region_evaulate_visibility(), region_rect_recursive(), ScrArea::regionbase, ScrArea::runtime, ScrArea::spacetype, ScrArea_Runtime::tool, ScrArea::totrct, ScrArea::type, UI_blocklist_free(), WM_toolsystem_refresh_screen_area(), WM_TOOLSYSTEM_SPACE_MASK, WM_window_get_active_scene(), WM_window_get_active_view_layer(), WM_window_get_active_workspace(), WM_window_screen_rect_calc(), and wmWindow::workspace_hook.
Referenced by ED_area_newspace(), ED_area_swapspace(), ED_region_visibility_change_update_animated(), ED_region_visibility_change_update_ex(), region_blend_end(), screen_refresh_if_needed(), and blender::ed::vse::sequencer_refresh().
| bool ED_area_is_global | ( | const ScrArea * | area | ) |
Definition at line 3797 of file area.cc.
References ScrArea::global.
Referenced by area_azone_init(), area_calc_totrct(), area_close_poll(), area_join_invoke(), area_move_apply_do(), ED_area_global_max_size_y(), ED_area_global_min_size_y(), ED_area_global_size_y(), ED_area_init(), ED_region_do_draw(), file_context(), fullscreen_azone_init(), region_rect_recursive(), screen_area_edge_from_cursor(), screen_area_menu_items(), and screen_maximize_area_poll().
| int ED_area_max_regionsize | ( | const ScrArea * | area, |
| const ARegion * | scale_region, | ||
| const AZEdge | edge ) |
Returns the maximum size a region can grow to so it still fits in the area.
Definition at line 783 of file area.cc.
References AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, ARegion::alignment, BLI_rcti_size_x(), BLI_rcti_size_y(), ELEM, LISTBASE_FOREACH, ARegion::prev, ScrArea::regionbase, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_SPLIT_PREV, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, ScrArea::totrct, U, UI_SCALE_FAC, ARegion::winx, and ARegion::winy.
Referenced by blender::ed::asset::shelf::region_resize_to_preferred(), and region_scale_invoke().
| skip_region_exit | Skip calling area exit callback. Set for opening temp spaces. |
Definition at line 2693 of file area.cc.
References BKE_spacetype_from_id(), BLI_addhead(), BLI_freelinkN(), BLI_listbase_clear(), BLI_listbase_is_empty(), BLI_listbase_is_single(), BLI_remlink(), ScrArea::butspacetype_subtype, C, SpaceType::create, CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), ED_area_exit(), ED_area_init(), ED_area_tag_redraw(), ED_area_tag_refresh(), SpaceType::exit, ListBase::first, SpaceType::free, G, SpaceLink::link_flag, LISTBASE_FOREACH, NC_SPACE, NC_WINDOW, ND_SPACE_CHANGED, region_align_info_from_area(), region_align_info_to_area(), ScrArea::regionbase, SpaceLink::regionbase, RGN_TYPE_NUM, SPACE_FLAG_TYPE_TEMPORARY, SPACE_FLAG_TYPE_WAS_ACTIVE, SpaceType::space_subtype_get, SpaceType::space_subtype_item_extend, SpaceType::space_subtype_set, ScrArea::spacedata, ScrArea::spacetype, ScrArea::type, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_DECORATION_STYLES, WM_event_add_mousemove(), WM_event_add_notifier(), WM_window_get_active_scene(), and WM_window_title().
Referenced by ED_area_prevspace(), ED_screen_full_newspace(), ED_screen_temp_space_open(), render_view_open(), and WM_window_open().
| ScrArea * ED_area_offscreen_create | ( | wmWindow * | win, |
| eSpace_Type | space_type ) |
Definition at line 2242 of file area.cc.
References area_offscreen_init(), MEM_callocN(), screen_area_spacelink_add(), ScrArea::spacetype, and WM_window_get_active_scene().
Referenced by wm_xr_session_actions_update().
| void ED_area_offscreen_free | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| ScrArea * | area ) |
Definition at line 2283 of file area.cc.
References area_offscreen_exit(), BKE_screen_area_free(), and MEM_freeN().
Referenced by wm_xr_runtime_data_free().
Definition at line 2860 of file area.cc.
References AREA_FLAG_STACKED_FULLSCREEN, area_get_prevspace(), ScrArea::butspacetype_subtype, C, ED_area_newspace(), ED_area_tag_redraw(), ListBase::first, ScrArea::flag, SpaceLink::link_flag, NC_SPACE, ND_SPACE_CHANGED, SPACE_FLAG_TYPE_TEMPORARY, ScrArea::spacedata, SpaceLink::spacetype, and WM_event_add_notifier().
Referenced by ED_screen_full_prevspace(), ED_screen_restore_temp_type(), render_view_cancel_exec(), render_view_show_invoke(), and wm_handler_fileselect_do().
Returns the search string if the space type and region type support property search.
Definition at line 846 of file area.cc.
References ED_buttons_search_string_get(), ListBase::first, ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_PROPERTIES, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by ED_region_panels_layout_ex(), ED_region_property_search(), and ED_region_search_filter_update().
| void ED_area_status_text | ( | ScrArea * | area, |
| const char * | str ) |
Show the given text in the area's header, instead of its regular contents. Use NULL to disable this and show the regular header contents again.
Definition at line 872 of file area.cc.
References BLI_str_rstrip(), BLI_strncpy(), ED_region_tag_redraw(), LISTBASE_FOREACH, MEM_malloc_arrayN(), MEM_SAFE_FREE, ScrArea::regionbase, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, ARegion::runtime, str, and UI_MAX_DRAW_STR.
Referenced by blender::ed::transform::apply_shear(), blender::ed::transform::applyAlign(), blender::ed::transform::applyBakeTime(), blender::ed::transform::applyBoneEnvelope(), blender::ed::transform::applyBoneRoll(), blender::ed::transform::applyBoneSize(), blender::ed::transform::applyCurveShrinkFatten(), blender::ed::transform::applyEdgeSlide(), blender::ed::transform::applyGPOpacity(), blender::ed::transform::applyMaskShrinkFatten(), blender::ed::transform::applyMirror(), blender::ed::transform::applyNormalRotation(), blender::ed::transform::applyRotation(), blender::ed::transform::applySeqSlide(), blender::ed::transform::applyTilt(), blender::ed::transform::applyTimeScale(), blender::ed::transform::applyTimeSlide(), blender::ed::transform::applyTimeTranslate(), blender::ed::transform::applyTrackball(), blender::ed::transform::applyTranslation(), blender::ed::transform::applyVertSlide(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_cancel(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_modal(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_update_header(), ed_marker_move_exit(), ed_marker_move_update_header(), ED_screen_state_toggle(), ED_slider_create(), ED_slider_destroy(), edbm_bevel_exit(), edbm_bevel_update_status_text(), edbm_inset_exit(), edbm_inset_update_header(), graph_slider_exit(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_exit(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_modal(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_status_indicators(), interactive_value_exit(), interactive_value_update(), loopcut_finish(), loopcut_init(), loopcut_modal(), minimize_stretch_exit(), minimize_stretch_iteration(), pose_slide_draw_status(), pose_slide_modal(), poselib_blend_cleanup(), radial_control_cancel(), radial_control_update_header(), blender::ed::vse::slip_cleanup(), blender::ed::vse::slip_update_header(), ui_handler_wait_for_input_remove(), blender::ed::transform::viewRedrawPost(), and WM_operator_name_call_ptr_with_depends_on_cursor().
Definition at line 2667 of file area.cc.
References BKE_screen_area_free(), C, CTX_wm_window(), ED_area_data_copy(), ED_area_exit(), ED_area_init(), ED_area_tag_redraw(), ED_area_tag_refresh(), MEM_callocN(), and WM_event_add_mousemove().
Referenced by area_docking_apply(), area_swap_exec(), and area_swap_modal().
| void ED_area_tag_redraw | ( | ScrArea * | area | ) |
Definition at line 714 of file area.cc.
References ED_region_tag_redraw(), LISTBASE_FOREACH, and ScrArea::regionbase.
Referenced by action_listener(), action_refresh(), actkeys_viewall(), area_actionzone_refresh_xy(), area_docking_apply(), area_dupli_fn(), area_join_dock_cb_window(), area_join_exec(), area_join_modal(), area_move_apply_do(), area_split_apply(), area_split_exit(), area_split_modal(), area_swap_modal(), blender::ui::bonedropper_exit(), box_select_exec(), buttons_area_listener(), buttons_area_redraw(), buttons_clear_filter_exec(), clip_listener(), clip_rebuild_proxy_exec(), console_clear_exec(), console_clear_line_exec(), console_copy_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), console_modal_select_all_invoke(), console_modal_select_apply(), console_move_exec(), console_paste_exec(), console_scrollback_append_exec(), console_select_set_modal(), console_selectword_invoke(), console_unindent_exec(), do_view3d_region_buttons(), ED_area_newspace(), ED_area_prevspace(), ED_area_swapspace(), ED_area_type_hud_clear(), ED_editors_init(), ED_imbuf_sample_exit(), ED_region_visibility_change_update_ex(), ED_screen_restore_temp_type(), ED_view3d_quadview_update(), ED_workspace_layout_duplicate(), file_draw_check_ex(), file_filenum_exec(), file_highlight_invoke(), file_refresh(), file_rename_exec(), file_select_all_exec(), file_view_selected_exec(), fsmenu_write_file_and_refresh_or_report_error(), gesture_modal_end(), graph_listener(), graph_refresh(), graphkeys_clear_ghostcurves_exec(), graphkeys_create_ghostcurves_exec(), header_toggle_menus_exec(), image_listener(), image_sample_apply(), image_sample_line_exec(), localview_exec(), nla_listener(), nlaedit_viewall(), blender::ed::space_node::node_area_listener(), blender::ed::outliner::outliner_clear_filter_exec(), blender::ed::outliner::outliner_id_remap(), blender::ed::space_node::pick_input_link_by_link_intersect(), previewrange_clear_exec(), proj_paint_add_slot(), redraw_timer_window_swap(), region_blend_end(), region_flip_exec(), region_quadview_exec(), region_scale_modal(), report_delete_exec(), report_replay_exec(), report_select_all_exec(), reset_exec(), blender::ed::space_node::sample_apply(), blender::ed::space_node::sample_exit(), scene_range_frame_exec(), screen_area_join_ex(), scroll_exit(), select_report_pick_exec(), blender::ed::vse::seq_build_proxy(), blender::ed::vse::seq_proxy_build_job(), blender::ed::vse::sequencer_listener(), blender::ed::vse::sequencer_preview_add_sound(), blender::ed::vse::sequencer_refresh(), sequencer_sample_apply(), blender::ed::vse::sequencer_view_all_preview_exec(), template_texture_show(), text_autocomplete_invoke(), text_autocomplete_modal(), text_listener(), text_scroll_apply(), text_scroll_exec(), text_scroll_modal(), toggle_pin_exec(), toggle_xray_exec(), blender::ed::spreadsheet::view_active_object(), view_curve_in_graph_editor_exec(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), blender::ed::transform::viewRedrawForce(), WM_keyconfig_update_ex(), WM_window_cursor_keymap_status_refresh(), WM_window_status_area_tag_redraw(), and WorkspaceStatus::WorkspaceStatus().
| void ED_area_tag_redraw_no_rebuild | ( | ScrArea * | area | ) |
Definition at line 723 of file area.cc.
References ED_region_tag_redraw_no_rebuild(), LISTBASE_FOREACH, and ScrArea::regionbase.
Referenced by area_actionzone_refresh_xy(), and area_move_apply_do().
| void ED_area_tag_redraw_regiontype | ( | ScrArea * | area, |
| int | regiontype ) |
Definition at line 732 of file area.cc.
References ED_region_tag_redraw(), LISTBASE_FOREACH, and ScrArea::regionbase.
Referenced by blender::ed::sculpt_paint::flush_update_done(), and space_view3d_listener().
| void ED_area_tag_refresh | ( | ScrArea * | area | ) |
Definition at line 743 of file area.cc.
References ScrArea::do_refresh.
Referenced by action_listener(), ED_area_do_msg_notify_tag_refresh(), ED_area_newspace(), ED_area_swapspace(), ED_screen_state_toggle(), file_listener(), file_reset_filelist_showing_main_data(), fsmenu_write_file_and_refresh_or_report_error(), graph_init(), graph_listener(), image_listener(), nla_init(), nla_listener(), blender::ed::space_node::node_area_tag_tree_recalc(), screen_state_to_nonnormal(), and view3d_main_region_listener().
For regions that change the region size in their ARegionType.layout() callback: Mark the area as having a changed region size, requiring refitting of regions within the area.
Definition at line 750 of file area.cc.
References ARegion::alignment, AREA_FLAG_REGION_SIZE_UPDATE, ED_region_tag_redraw(), ScrArea::flag, ARegion::next, ARegion::overlap, and RGN_ALIGN_FLOAT.
Referenced by ED_area_type_hud_ensure(), ED_region_header_layout(), ED_region_panels_layout_ex(), and blender::ed::asset::shelf::region_resize_to_preferred().
| void ED_area_update_region_sizes | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| ScrArea * | area ) |
Definition at line 2050 of file area.cc.
References area_azone_init(), area_calc_totrct(), AREA_FLAG_REGION_SIZE_UPDATE, ED_area_azones_update(), wmWindow::eventstate, ListBase::first, ScrArea::flag, LISTBASE_FOREACH, region_azones_add(), region_evaulate_visibility(), region_rect_recursive(), ScrArea::regionbase, RGN_FLAG_POLL_FAILED, ScrArea::totrct, WM_window_get_active_screen(), WM_window_screen_rect_calc(), and wmEvent::xy.
Referenced by ED_area_type_hud_ensure(), and wm_draw_area_offscreen().
|
static |
| region | Region, may be nullptr when adding handlers for area. |
Definition at line 1946 of file area.cc.
References BLI_assert, dropboxes, ED_KEYMAP_ANIMATION, ED_KEYMAP_ASSET_SHELF, ED_KEYMAP_FOOTER, ED_KEYMAP_FRAMES, ED_KEYMAP_GIZMO, ED_KEYMAP_GPENCIL, ED_KEYMAP_HEADER, ED_KEYMAP_NAVBAR, ED_KEYMAP_TOOL, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_time_scrub_event_in_region_poll(), ELEM, flag, ScrArea::handlers, params, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, ARegion::runtime, SPACE_EMPTY, ScrArea::spacetype, UI_region_handlers_add(), WM_dropboxmap_find(), WM_event_add_dropbox_handler(), WM_event_add_keymap_handler(), WM_event_add_keymap_handler_dynamic(), WM_event_add_keymap_handler_poll(), WM_event_get_keymap_from_toolsystem(), WM_event_get_keymap_from_toolsystem_with_gizmos(), WM_event_handler_region_marker_poll(), WM_gizmomap_add_handlers(), WM_gizmomap_new_from_type(), and WM_keymap_ensure().
Referenced by ED_area_init().
|
static |
Builds the panel layout for the input panel or type pt.
| panel | The panel to draw. Can be null, in which case a panel with the type of pt will be created. |
| unique_panel_str | A unique identifier for the name of the uiBlock associated with the panel. Used when the panel is an instanced panel so a unique identifier is needed to find the correct old uiBlock, and nullptr otherwise. |
Definition at line 2969 of file area.cc.
References BKE_ST_MAXNAME, BLI_string_join, C, Panel::children, PanelType::children, LayoutPanels::clear(), PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, ed_panel_draw(), blender::ui::Emboss, PanelType::flag, PanelType::idname, INSTANCED_PANEL_UNIQUE_STR_SIZE, Panel::labelofs, Panel::layout, Panel_Runtime::layout_panels, LISTBASE_FOREACH, PANEL_TYPE_HEADER_EXPAND, PANEL_TYPE_LAYOUT_VERT_BAR, PANEL_TYPE_NO_HEADER, uiStyle::panelspace, PanelType::poll, ARegion::regiontype, RGN_TYPE_TOOLS, uiLayout::row(), Panel::runtime, STRNCPY(), UI_block_apply_search_filter(), UI_block_begin(), UI_block_end(), UI_block_layout(), UI_block_layout_resolve(), UI_block_translate(), UI_LAYOUT_HEADER, UI_LAYOUT_HORIZONTAL, UI_LAYOUT_PANEL, UI_LAYOUT_TOOLBAR, UI_LAYOUT_VERT_BAR, UI_LAYOUT_VERTICAL, UI_panel_begin(), UI_panel_end(), UI_panel_find_by_type(), UI_panel_header_buttons_begin(), UI_panel_header_buttons_end(), UI_panel_label_offset(), UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiLayoutEndsWithPanelHeader(), uiLayoutSetOperatorContext(), and w().
Referenced by ed_panel_draw(), and ED_region_panels_layout_ex().
| void ED_region_cache_draw_background | ( | ARegion * | region | ) |
Definition at line 4125 of file area.cc.
References ED_region_visible_rect(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_SCALE_FAC, ARegion::winx, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
| void ED_region_cache_draw_cached_segments | ( | ARegion * | region, |
| const int | num_segments, | ||
| const int * | points, | ||
| const int | sfra, | ||
| const int | efra ) |
Definition at line 4174 of file area.cc.
References ED_region_visible_rect(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_SCALE_FAC, ARegion::winx, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
| void ED_region_cache_draw_curfra_label | ( | const int | framenr, |
| const float | x, | ||
| const float | y ) |
Definition at line 4138 of file area.cc.
References BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), padding(), SNPRINTF, TH_CFRAME, TH_HEADER_TEXT_HI, U, UI_CNR_ALL, UI_draw_roundbox_4fv_ex(), UI_draw_roundbox_corner_set(), UI_FontThemeColor(), UI_GetThemeColorShade4fv(), UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, uiStyle::widget, float2::x, x, rctf::xmax, rctf::xmin, float2::y, y, rctf::ymax, and rctf::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 2927 of file area.cc.
References C, GPU_clear_color(), ARegion::overlap, UI_GetThemeColor4fv(), UI_ThemeClearColor(), and UI_view2d_view_restore().
Referenced by ED_region_header_draw(), ED_region_header_draw_with_button_sections(), ED_region_panels_draw(), and blender::ed::asset::shelf::region_draw().
Definition at line 2315 of file area.cc.
References ARegion::runtime, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_cursor_set_from_tool(), and WM_gizmomap_cursor_set().
Referenced by region_cursor_set_ex().
Only exported for WM.
Definition at line 502 of file area.cc.
References ARegion::alignment, wmRegionMessageSubscribeParams::area, area_is_pseudo_minimized(), C, wmRegionMessageSubscribeParams::context, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_workspace(), ARegionType::do_lock, ARegionType::draw, ED_area_is_global(), ED_region_do_msg_notify_tag_redraw(), ED_region_draw_cb_draw(), ED_region_message_subscribe(), ED_region_pixelspace(), ELEM, fb(), ListBase::first, RandomNumberGenerator::from_random_seed(), G, RandomNumberGenerator::get_float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_framebuffer_active_get(), GPU_framebuffer_bind(), GPU_line_width(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), bScreen::id, imm_draw_box_wire_2d(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4f(), immUniformColor4fv(), immVertexFormat(), wmRegionMessageSubscribeParams::message_bus, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, pos, ptr, wmRegionMessageSubscribeParams::region, region_draw_azones(), region_draw_emboss(), REGION_DRAW_POST_PIXEL, region_draw_status_text(), REGION_EMBOSS_LEFT, REGION_EMBOSS_RIGHT, ARegionType::regionid, ARegion::regiontype, RGN_ALIGN_QSPLIT, RGN_DRAWING, RGN_TYPE_CHANNELS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RNA_pointer_create_discrete(), ARegion::runtime, wmRegionMessageSubscribeParams::scene, wmRegionMessageSubscribeParams::screen, SCREENFULL, ScrArea::spacedata, ScrArea::spacetype, bScreen::state, TH_EDITOR_BORDER, UI_blocklist_free_inactive(), UI_GetThemeColor3fv(), UI_SetTheme(), UI_ThemeClearColor(), wmMsgSubscribeValue::user_data, ARegion::winrct, WM_msg_subscribe_rna(), WM_msgbus_clear_by_owner(), WM_window_get_active_screen(), wmOrtho2_region_pixelspace(), wmPartialViewport(), wmRegionMessageSubscribeParams::workspace, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by text_text_search_exec(), ui_region_redraw_immediately(), wm_draw_area_offscreen(), wm_draw_region_test(), and wm_draw_window_offscreen().
Only exported for WM.
Definition at line 479 of file area.cc.
References area_is_pseudo_minimized(), C, CTX_wm_area(), ARegionType::do_lock, ARegion::flag, ARegionType::layout, ARegionType::regionid, RGN_DRAWING, RGN_FLAG_SEARCH_FILTER_UPDATE, ARegion::runtime, ScrArea::spacetype, and UI_SetTheme().
Referenced by text_text_search_exec(), ui_region_redraw_immediately(), and wm_draw_area_offscreen().
| void ED_region_do_listen | ( | wmRegionListenerParams * | params | ) |
Only exported for WM.
Definition at line 129 of file area.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), LISTBASE_FOREACH, NC_WINDOW, NC_WM, ND_FILEREAD, params, ARegion::runtime, UI_block_listen(), and ARegion::ui_lists.
Referenced by wm_event_do_notifiers().
| void ED_region_do_msg_notify_tag_redraw | ( | bContext * | C, |
| wmMsgSubscribeKey * | msg_key, | ||
| wmMsgSubscribeValue * | msg_val ) |
Definition at line 384 of file area.cc.
References ED_region_tag_redraw(), ELEM, ARegion::next, wmMsgSubscribeValue::owner, ARegion::prev, ARegion::regiontype, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, RGN_TYPE_UI, and RGN_TYPE_WINDOW.
Referenced by buttons_header_region_message_subscribe(), buttons_navigation_bar_region_message_subscribe(), ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), ED_region_do_draw(), ED_region_generic_tools_region_message_subscribe(), graph_region_message_subscribe(), info_header_region_message_subscribe(), nla_main_region_message_subscribe(), nla_track_region_message_subscribe(), blender::ed::outliner::outliner_main_region_message_subscribe(), blender::ed::asset::shelf::region_message_subscribe(), saction_channel_region_message_subscribe(), saction_main_region_message_subscribe(), blender::ed::vse::sequencer_main_region_message_subscribe(), statusbar_header_region_message_subscribe(), topbar_header_region_message_subscribe(), ui_block_message_subscribe(), view3d_header_region_message_subscribe(), view3d_main_region_message_subscribe(), and WM_gizmo_target_property_subscribe_all().
| void ED_region_floating_init | ( | ARegion * | region | ) |
Externally called for floating regions like menus.
Definition at line 2305 of file area.cc.
References ARegion::alignment, BLI_assert, region_evaulate_visibility(), region_update_rect(), and RGN_ALIGN_FLOAT.
Referenced by ED_area_type_hud_ensure(), ui_popup_block_refresh(), ui_searchbox_create_generic_ex(), and ui_tooltip_create_with_data().
| int ED_region_global_size_y | ( | ) |
For now we just assume all global areas are made up out of horizontal bars with the same size. A fixed size could be stored in ARegion instead if needed.
Definition at line 3861 of file area.cc.
References ED_area_headersize().
Referenced by region_rect_recursive().
| void ED_region_grid_draw | ( | ARegion * | region, |
| float | zoomx, | ||
| float | zoomy, | ||
| float | x0, | ||
| float | y0 ) |
Definition at line 3970 of file area.cc.
References CLAMP, floorf, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_vertformat_clear(), i, immAttr3fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformThemeColorBlendShade(), immVertex2f(), immVertexFormat(), pos, TH_BACK, TH_GRID, UI_GetThemeColor3fv(), UI_GetThemeColor4fv(), UI_GetThemeColorShade3fv(), UI_view2d_view_to_region(), and ARegion::v2d.
Referenced by clip_draw_main().
Definition at line 3750 of file area.cc.
References C, ED_region_header_draw(), and ED_region_header_layout().
Referenced by action_header_region_draw(), buttons_header_region_draw(), clip_header_region_draw(), console_header_region_draw(), file_header_region_draw(), graph_header_region_draw(), image_header_region_draw(), info_header_region_draw(), nla_header_region_draw(), blender::ed::space_node::node_header_region_draw(), blender::ed::outliner::outliner_header_region_draw(), script_header_region_draw(), blender::ed::vse::sequencer_header_region_draw(), blender::ed::spreadsheet::spreadsheet_header_region_draw(), text_header_region_draw(), userpref_header_region_draw(), and view3d_header_region_draw().
Definition at line 3725 of file area.cc.
References C, ED_region_clear(), region_background_color_id(), and region_draw_blocks_in_view2d().
Referenced by ED_region_header(), ED_spacetype_statusbar(), and ED_spacetype_topbar().
| void ED_region_header_draw_with_button_sections | ( | const bContext * | C, |
| const ARegion * | region, | ||
| uiButtonSectionsAlign | align ) |
Version of ED_region_header_draw() that draws with button sections.
Definition at line 3732 of file area.cc.
References C, ED_region_clear(), ARegion::overlap, region_background_color_id(), region_clear_fully_transparent(), region_draw_blocks_in_view2d(), and UI_region_button_sections_draw().
Referenced by ED_region_header_with_button_sections().
| void ED_region_header_init | ( | ARegion * | region | ) |
Definition at line 3765 of file area.cc.
References UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_HEADER, ARegion::winx, and ARegion::winy.
Referenced by action_header_region_init(), buttons_header_region_init(), clip_header_region_init(), console_header_region_init(), file_header_region_init(), graph_header_region_init(), blender::ed::asset::shelf::header_region_init(), image_header_region_init(), info_header_region_init(), nla_header_region_init(), blender::ed::space_node::node_header_region_init(), blender::ed::outliner::outliner_header_region_init(), script_header_region_init(), blender::ed::vse::sequencer_header_region_init(), blender::ed::spreadsheet::spreadsheet_footer_region_init(), blender::ed::spreadsheet::spreadsheet_header_region_init(), statusbar_header_region_init(), text_header_region_init(), topbar_header_region_init(), userpref_header_region_init(), and view3d_header_region_init().
Definition at line 3633 of file area.cc.
References C, CTX_wm_area(), ED_area_tag_region_size_update(), blender::ui::Emboss, ARegion::flag, Header::layout, LISTBASE_FOREACH, min_ii(), RGN_FLAG_DYNAMIC_SIZE, ARegion::runtime, uiLayout::separator(), ARegion::sizex, Header::type, UI_block_begin(), UI_block_end(), UI_block_layout(), UI_block_layout_resolve(), UI_HEADER_OFFSET, UI_LAYOUT_HEADER, UI_LAYOUT_HORIZONTAL, UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_Y, UI_view2d_totRect_set(), UI_view2d_view_ortho(), UI_view2d_view_restore(), uiLayoutGetWidth(), uiLayoutSetScaleY(), ARegion::v2d, and ARegion::winy.
Referenced by ED_region_header(), ED_region_header_with_button_sections(), ED_spacetype_statusbar(), and ED_spacetype_topbar().
| void ED_region_header_with_button_sections | ( | const bContext * | C, |
| ARegion * | region, | ||
| uiButtonSectionsAlign | align ) |
Version of ED_region_header() that draws with button sections.
Definition at line 3757 of file area.cc.
References C, ED_region_header_draw_with_button_sections(), and ED_region_header_layout().
Referenced by blender::ed::asset::shelf::header_region(), image_tools_header_region_draw(), and view3d_tools_header_region_draw().
Definition at line 3963 of file area.cc.
References IMB_metadata_foreach(), MetadataPanelDrawContext::layout, and metadata_panel_draw_field().
Referenced by blender::ed::vse::metadata_panel_context_draw(), metadata_panel_context_draw(), and metadata_panel_context_draw().
| void ED_region_info_draw | ( | ARegion * | region, |
| const char * | text, | ||
| const float | fill_color[4], | ||
| const bool | full_redraw ) |
Definition at line 3942 of file area.cc.
References ED_region_info_draw_multiline().
Referenced by draw_movieclip_notes(), and draw_render_info().
| void ED_region_info_draw_multiline | ( | ARegion * | region, |
| const char * | text_array[], | ||
| const float | fill_color[4], | ||
| const bool | full_redraw ) |
Definition at line 3866 of file area.cc.
References BLF_CLIPPING, BLF_clipping(), BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), BLF_size(), BLF_width(), BLI_rcti_size_x(), BLI_rcti_size_y(), ED_region_visible_rect(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), min_ii(), uiFontStyle::points, pos, TH_TEXT_HI, U, UI_FontThemeColor(), UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_Y, uiFontStyle::uifont_id, uiStyle::widget, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_info_draw().
| bool ED_region_is_overlap | ( | int | spacetype, |
| int | regiontype ) |
Overlapping regions only in the following restricted cases.
Definition at line 1490 of file area.cc.
References ELEM, ThemeSpace::header, RGN_TYPE_ASSET_SHELF, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_HUD, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, bTheme::space_view3d, U, UI_GetTheme(), and USER_REGION_OVERLAP.
Referenced by ED_region_overlap_isect_any_xy(), region_rect_recursive(), and UI_ThemeGetColorPtr().
| void ED_region_message_subscribe | ( | wmRegionMessageSubscribeParams * | params | ) |
Generate subscriptions for this region.
Definition at line 4198 of file area.cc.
References BLI_listbase_is_empty(), C, params, ARegion::runtime, UI_region_message_subscribe(), and WM_gizmomap_message_subscribe().
Referenced by ED_region_do_draw().
Definition at line 3462 of file area.cc.
References C, ED_region_panels_draw(), and ED_region_panels_layout().
Referenced by action_buttons_area_draw(), clip_properties_region_draw(), clip_tools_region_draw(), file_execution_region_draw(), file_tools_region_draw(), file_ui_region_draw(), graph_buttons_region_draw(), image_tools_region_draw(), nla_buttons_region_draw(), blender::ed::space_node::node_buttons_region_draw(), blender::ed::space_node::node_toolbar_region_draw(), blender::ed::vse::sequencer_buttons_region_draw(), blender::ed::spreadsheet::spreadsheet_dataset_region_draw(), text_properties_region_draw(), and userpref_navigation_region_draw().
Definition at line 3405 of file area.cc.
References ARegion::alignment, C, ED_region_clear(), GPU_line_width(), mask(), RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_RIGHT, RGN_TYPE_PREVIEW, round_fl_to_int(), ARegion::runtime, TH_BACK, TH_PREVIEW_BACK, UI_blocklist_update_window_matrix(), UI_panel_category_draw_all(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_panels_draw(), UI_view2d_mask_from_win(), UI_view2d_scale_get_x(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by buttons_navigation_bar_region_draw(), ED_region_panels(), ED_region_panels_ex(), ED_spacetype_buttons(), ED_spacetype_userpref(), ED_spacetype_view3d(), hud_region_draw(), image_buttons_region_draw(), and blender::ed::spreadsheet::register_spacetype().
| void ED_region_panels_ex | ( | const bContext * | C, |
| ARegion * | region, | ||
| wmOperatorCallContext | op_context, | ||
| const char * | contexts[] ) |
Definition at line 3451 of file area.cc.
References C, ED_region_panels_draw(), ED_region_panels_layout_ex(), and ARegion::runtime.
Referenced by blender::ed::vse::sequencer_tools_region_draw(), and view3d_tools_region_draw().
| void ED_region_panels_init | ( | wmWindowManager * | wm, |
| ARegion * | region ) |
Definition at line 3469 of file area.cc.
References ARegion::alignment, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_TYPE_WINDOW, ARegion::runtime, View2D::scroll, SPACE_EMPTY, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_PANELS_UI, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by action_buttons_area_init(), buttons_main_region_init(), buttons_navigation_bar_region_init(), clip_properties_region_init(), clip_tools_region_init(), file_execution_region_init(), file_tools_region_init(), file_ui_region_init(), graph_buttons_region_init(), hud_region_init(), image_buttons_region_init(), image_tools_region_init(), nla_buttons_region_init(), blender::ed::space_node::node_buttons_region_init(), blender::ed::space_node::node_toolbar_region_init(), blender::ed::spreadsheet::register_spacetype(), blender::ed::vse::sequencer_buttons_region_init(), blender::ed::vse::sequencer_tools_region_init(), blender::ed::spreadsheet::spreadsheet_sidebar_init(), text_properties_region_init(), userpref_execute_region_init(), userpref_main_region_init(), userpref_navigation_region_init(), view3d_buttons_region_init(), and view3d_tools_region_init().
Definition at line 3399 of file area.cc.
References C, ED_region_panels_layout_ex(), ARegion::runtime, and WM_OP_INVOKE_REGION_WIN.
Referenced by buttons_navigation_bar_region_draw(), ED_region_panels(), ED_spacetype_userpref(), hud_region_layout(), and blender::ed::spreadsheet::register_spacetype().
| void ED_region_panels_layout_ex | ( | const bContext * | C, |
| ARegion * | region, | ||
| ListBase * | paneltypes, | ||
| wmOperatorCallContext | op_context, | ||
| const char * | contexts[], | ||
| const char * | category_override ) |
| contexts | A NULL terminated array of context strings to match against. Matching against any of these strings will draw the panel. Can be NULL to skip context checks. |
Definition at line 3219 of file area.cc.
References ARegion::alignment, BLI_linklist_prepend_alloca, BLI_rctf_size_x(), C, PanelType::category, CTX_wm_area(), CTX_wm_workspace(), View2D::cur, ED_area_region_search_filter_get(), ED_area_tag_region_size_update(), ed_panel_draw(), fabsf, ARegion::flag, Panel::flag, PanelType::flag, INSTANCED_PANEL_UNIQUE_STR_SIZE, View2D::keepofs, ListBase::last, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, min_ii(), LinkNode::next, panel_add_check(), panel_draw_width_from_max_width_get(), PANEL_TYPE_INSTANCED, ARegion::panels, PNL_PIN, region_panels_collect_categories(), region_uses_category_tabs(), RGN_ALIGN_LEFT, RGN_FLAG_DYNAMIC_SIZE, ARegion::runtime, View2D::scroll, ARegion::sizex, ARegion::sizey, STREQ, View2D::tot, UI_blocklist_update_view_for_buttons(), UI_list_panel_unique_str(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_panel_find_by_type(), UI_panel_is_closed(), UI_panel_is_dragging(), UI_panel_size_y(), UI_panels_begin(), UI_panels_end(), UI_SCALE_FAC, UI_UNIT_X, UI_view2d_totRect_set(), UI_view2d_view_ortho(), ARegion::v2d, V2D_KEEPOFS_X, V2D_KEEPOFS_Y, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, View2D::winy, x, y, rctf::ymax, and rctf::ymin.
Referenced by buttons_main_region_layout_properties(), ED_region_panels_ex(), ED_region_panels_layout(), ED_view3d_buttons_region_layout_ex(), image_buttons_region_layout(), and userpref_main_region_layout().
| void ED_region_pixelspace | ( | const ARegion * | region | ) |
Definition at line 123 of file area.cc.
References GPU_matrix_identity_set(), and wmOrtho2_region_pixelspace().
Referenced by blender::ed::vse::draw_cursor_2d(), drw_callbacks_post_scene_2D(), ED_region_do_draw(), and view3d_draw_region_info().
| bool ED_region_property_search | ( | const bContext * | C, |
| ARegion * | region, | ||
| ListBase * | paneltypes, | ||
| const char * | contexts[], | ||
| const char * | category_override ) |
Build the same panel list as ED_region_panels_layout_ex and checks whether any of the panels contain a search result based on the area / region's search filter.
Definition at line 3555 of file area.cc.
References BKE_area_region_panels_free(), BLI_linklist_prepend_alloca, C, PanelType::category, CTX_wm_area(), CTX_wm_workspace(), ED_area_region_search_filter_get(), PanelType::flag, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, LinkNode::next, panel_add_check(), panel_property_search(), PANEL_TYPE_INSTANCED, ARegion::panels, region_panels_collect_categories(), region_uses_category_tabs(), STREQ, UI_blocklist_free(), UI_panels_free_instanced(), and UI_style_get_dpi().
Referenced by property_search_for_context().
Set the temporary update flag for property search.
Definition at line 859 of file area.cc.
References ED_area_region_search_filter_get(), ARegion::flag, ARegion::regiontype, RGN_FLAG_SEARCH_FILTER_ACTIVE, RGN_FLAG_SEARCH_FILTER_UPDATE, RGN_TYPE_WINDOW, and SET_FLAG_FROM_TEST.
Referenced by buttons_clear_filter_exec().
| bool ED_region_snap_size_apply | ( | ARegion * | region, |
| int | snap_flag ) |
Definition at line 4230 of file area.cc.
References ARegion::runtime, ARegion::sizex, and ARegion::sizey.
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
| int ED_region_snap_size_test | ( | const ARegion * | region | ) |
Definition at line 4217 of file area.cc.
References abs, ARegion::runtime, ARegion::sizex, and ARegion::sizey.
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
| void ED_region_tag_redraw | ( | ARegion * | region | ) |
Definition at line 639 of file area.cc.
References RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, RGN_DRAWING, and ARegion::runtime.
Referenced by action_channel_region_listener(), action_header_region_listener(), action_main_region_listener(), action_refresh(), action_region_listener(), blender::ed::space_node::add_dragged_links_to_tree(), animchannels_select_filter_invoke(), annotation_draw_apply_event(), annotation_draw_modal(), blender::ed::asset::shelf::asset_shelf_region_listen(), asset_view_listener(), axis_set_view(), blender::ed::space_node::backimage_fit_exec(), blender::ed::space_node::backimage_zoom_exec(), blender::ui::bonedropper_sample_pt(), blender::ui::bonedropper_set_draw_callback_region(), buttons_main_region_listener(), center_current_frame_exec(), clip_header_region_listener(), clip_main_region_listener(), clip_properties_region_listener(), clip_props_region_listener(), colorband_tools_fn(), console_main_region_listener(), blender::ed::curves::curve_draw_event_add(), curve_draw_event_add(), curve_draw_modal(), curve_profile_presets_fn(), curve_profile_tools_fn(), curve_profile_zoom_in(), curve_profile_zoom_out(), curvemap_buttons_redraw(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_tools_func(), blender::ed::curves::curves_draw_modal(), datadropper_id_sample_pt(), datadropper_set_draw_callback_region(), depthdropper_depth_sample_pt(), blender::ed::outliner::do_item_rename(), dopesheet_view_all_exec(), drop_color_invoke(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_modal(), ED_area_status_text(), ED_area_tag_redraw(), ED_area_tag_redraw_regiontype(), ED_area_tag_region_size_update(), ED_area_type_hud_clear(), ED_area_type_hud_ensure(), ED_region_do_listen(), ED_region_do_msg_notify_tag_redraw(), ED_region_tag_redraw_editor_overlays(), ED_slider_modal(), ED_view3d_smooth_view_ex(), edbm_bevel_cancel(), edbm_inset_cancel(), ViewOpsData::end_navigation(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute(), eyedropper_cryptomatte_sample_fl(), face_select_all_exec(), face_select_hide_exec(), face_vert_reveal_exec(), file_main_region_listener(), file_smoothscroll_invoke(), file_tool_props_region_listener(), file_tools_region_listener(), file_ui_region_listener(), blender::ed::spreadsheet::fit_column_invoke(), blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::flush_update_step(), fly_modal(), grab_clone_apply(), graph_region_listener(), graphkeys_snap_cursor_value_exec(), blender::ed::greasepencil::grease_pencil_primitive_update_view(), hud_region_layout(), hud_region_listener(), image_buttons_region_listener(), image_header_region_listener(), image_main_region_listener(), image_tools_region_listener(), image_view_all_exec(), image_view_pan_exec(), image_view_pan_exit(), image_view_selected_exec(), image_view_zoom_border_exec(), image_view_zoom_exec(), image_view_zoom_exit(), image_view_zoom_in_exec(), image_view_zoom_invoke(), image_view_zoom_out_exec(), image_view_zoom_ratio_exec(), image_zoom_apply(), info_header_listener(), info_main_region_listener(), ViewOpsData::init_navigation(), knifetool_exit_ex(), knifetool_init(), knifetool_modal(), knifetool_update_mval(), loopcut_finish(), loopcut_modal(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), nla_main_region_listener(), nla_region_listener(), nla_track_region_listener(), blender::ed::space_node::node_add_nodes_modal(), blender::ed::space_node::node_insert_offset_modal(), blender::ed::space_node::node_link_modal(), blender::ed::space_node::node_region_listener(), blender::ed::space_node::node_resize_modal(), blender::ed::object::object_transform_axis_target_invoke(), blender::ed::object::object_transform_axis_target_modal(), blender::ed::outliner::outliner_header_region_listener(), blender::ed::outliner::outliner_item_do_activate_from_cursor(), blender::ed::outliner::outliner_main_region_listener(), blender::ed::outliner::outliner_one_level_exec(), blender::ed::outliner::outliner_show_hierarchy_exec(), blender::ed::outliner::outliner_tag_redraw_avoid_rebuild_on_open_change(), blender::ed::outliner::outliner_toggle_expanded_exec(), paint_2d_redraw(), paint_proj_redraw(), paint_proj_stroke(), paint_select_less_exec(), paint_select_linked_exec(), paint_select_linked_pick_invoke(), paint_select_more_exec(), paintface_mouse_select(), paintface_select_loop_invoke(), paintvert_select_less_exec(), paintvert_select_linked_exec(), paintvert_select_linked_pick_invoke(), paintvert_select_more_exec(), panel_activate_state(), pose_slide_modal(), radial_control_modal(), redraw_timer_step(), region_blend_end(), region_blend_invoke(), region_rect_recursive(), region_toggle_exec(), rename_anim_channels(), renamebutton_cb(), blender::ed::spreadsheet::reorder_columns_modal(), reset_exec(), blender::ed::spreadsheet::resize_column_modal(), ringsel_exit(), ringsel_init(), run_pyfile_exec(), blender::ed::outliner::scene_drop_invoke(), sclip_zoom_set_factor_exec(), screen_animation_region_tag_redraw(), SCULPT_tag_update_overlays(), select_anim_channel_keys(), blender::ed::vse::sequencer_buttons_region_listener(), blender::ed::vse::sequencer_main_region_listener(), blender::ed::vse::sequencer_preview_region_listener(), blender::ed::vse::sequencer_view_zoom_ratio_exec(), blender::ed::sculpt_paint::set_pivot_position_exec(), blender::ed::space_node::snode_bg_viewmove_modal(), blender::ed::spreadsheet::spreadsheet_dataset_region_listener(), blender::ed::spreadsheet::spreadsheet_header_region_listener(), blender::ed::spreadsheet::spreadsheet_main_region_draw(), blender::ed::spreadsheet::spreadsheet_main_region_listener(), statusbar_header_region_listener(), stencil_control_modal(), stitch_modal(), blender::ed::sculpt_paint::stroke_redraw(), blender::ed::sculpt_paint::hide::tag_update_visibility(), text_text_search_exec(), topbar_header_listener(), topbar_main_region_listener(), ui_block_views_listen(), ui_but_pie_menu_apply(), UI_context_update_anim_flag(), ui_do_animate(), ui_do_but_extra_operator_icon(), ui_do_but_HOTKEYEVT(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_do_but_VIEW_ITEM(), ui_do_button(), ui_do_drag(), ui_drag_toggle_set(), ui_handle_layout_panel_header(), ui_handle_list_event(), ui_handle_menus_recursive(), ui_handle_panel_category_cycling(), ui_handle_panel_header(), ui_handler_panel_region(), ui_menu_scroll_apply_offset_y(), ui_numedit_apply(), ui_numedit_set_active(), ui_panel_category_show_active_tab(), ui_panel_drag_collapse(), ui_pie_handler(), ui_popup_block_refresh(), ui_popup_translate(), ui_searchbox_create_generic_ex(), ui_searchbox_select(), ui_searchbox_update(), ui_tooltip_create_with_data(), ui_view_drop_invoke(), ui_view_item_rename_exec(), ui_view_scroll_invoke(), uv_sculpt_stroke_modal(), vert_select_all_exec(), vert_select_hide_exec(), vert_select_ungrouped_exec(), view3d_all_exec(), view3d_boxview_copy(), view3d_boxview_sync(), view3d_buttons_region_listener(), view3d_clipping_invoke(), view3d_header_region_listener(), view3d_interactive_add_begin(), view3d_interactive_add_exit(), view3d_interactive_add_modal(), view3d_main_region_listener(), view3d_smoothview_apply_from_timer(), view_all_exec(), view_all_exec(), view_center_cursor_exec(), view_center_cursor_exec(), view_pan_exec(), view_pan_exit(), view_selected_exec(), view_zoom_apply(), view_zoom_apply_step(), view_zoom_exec(), view_zoom_exit(), view_zoom_in_exec(), view_zoom_out_exec(), view_zoom_ratio_exec(), viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewmove_apply(), viewpersportho_exec(), viewroll_apply(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), blender::ed::object::voxel_size_edit_invoke(), blender::ed::object::voxel_size_edit_modal(), vpaint_stroke_update_step(), walk_modal(), weight_paint_set_exec(), WM_gizmo_do_msg_notify_tag_refresh(), wm_region_tag_draw_on_gizmo_delay_refresh_for_tweak(), WM_reinit_gizmomap_all(), and wpaint_stroke_update_step().
| void ED_region_tag_redraw_cursor | ( | ARegion * | region | ) |
Definition at line 652 of file area.cc.
References RGN_DRAW, and ARegion::runtime.
Referenced by view3d_main_region_listener().
| void ED_region_tag_redraw_editor_overlays | ( | ARegion * | region | ) |
Tag editor overlays to be redrawn. If in doubt about which parts need to be redrawn (partial clipping rectangle set), redraw everything.
Definition at line 675 of file area.cc.
References ED_region_tag_redraw(), RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_PARTIAL, RGN_DRAWING, and ARegion::runtime.
Referenced by ED_view3d_gizmo_ruler_remove_by_gpencil_layer(), blender::ed::transform::gizmo2d_modal(), gizmo_arrow_modal(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), blender::ed::transform::gizmo_modal(), gizmo_move_modal(), gizmo_preselect_edgering_test_select(), gizmo_preselect_elem_test_select(), gizmo_ruler_modal(), gizmo_select_invoke(), gizmotype_unlink(), view3d_ruler_remove_invoke(), WM_gizmo_group_remove_by_tool(), WM_gizmoconfig_update(), wm_gizmomap_highlight_set(), wm_gizmomap_modal_set(), WM_gizmomaptype_group_init_runtime_with_region(), WM_gizmomaptype_group_unlink(), and wm_region_test_gizmo_do_draw().
| void ED_region_tag_redraw_no_rebuild | ( | ARegion * | region | ) |
Definition at line 659 of file area.cc.
References RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, RGN_DRAWING, and ARegion::runtime.
Referenced by area_actionzone_refresh_xy(), button_activate_exit(), button_activate_state(), blender::ed::outliner::collection_drop_poll(), blender::ed::outliner::datastack_drop_poll(), blender::ed::outliner::do_outliner_operation_event(), ED_area_tag_redraw_no_rebuild(), ED_screen_set_active_region(), edge_pan_apply_delta(), force_activate_view_item_but(), blender::ed::outliner::outliner_box_select_exec(), blender::ed::outliner::outliner_deactivate(), blender::ed::outliner::outliner_highlight_update_invoke(), blender::ed::outliner::outliner_item_do_activate_from_cursor(), blender::ed::outliner::outliner_main_region_listener(), blender::ed::outliner::outliner_scroll_page_exec(), blender::ed::outliner::outliner_select_all_exec(), blender::ed::outliner::outliner_show_active_exec(), blender::ed::outliner::outliner_tag_redraw_avoid_rebuild_on_open_change(), blender::ed::outliner::parent_drop_poll(), blender::ed::asset::shelf::region_listen(), region_rect_recursive(), scroller_activate_apply(), scroller_activate_exit(), scroller_activate_init(), UI_but_ensure_in_view(), ui_do_but_extra_operator_icons_mousemove(), ui_handle_button_event(), ui_handle_viewlist_items_hover(), UI_view2d_edge_pan_cancel(), UI_view2d_smooth_view(), UI_view2d_sync(), view2d_smoothview_invoke(), view_pan_apply_ex(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), wm_drags_exit(), and wm_region_test_render_do_draw().
Definition at line 687 of file area.cc.
References BLI_rcti_union(), RGN_DRAW, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, RGN_DRAWING, and ARegion::runtime.
Referenced by wm_region_test_render_do_draw().
| void ED_region_tag_refresh_ui | ( | ARegion * | region | ) |
Definition at line 668 of file area.cc.
References RGN_REFRESH_UI, and ARegion::runtime.
Referenced by blender::ed::asset::list::asset_reading_region_listen_fn(), button_activate_exit(), ED_undo_operator_repeat(), force_activate_view_item_but(), ui_block_region_popup_window_listener(), ui_do_but_SCROLL(), ui_do_but_textedit(), ui_handle_list_event(), ui_handle_menus_recursive(), ui_panel_drag_collapse(), UI_popup_block_close(), UI_popup_handlers_remove(), and uilist_resize_update().
Exported to all editors, uses fading default.
Definition at line 2377 of file area.cc.
References C, and region_toggle_hidden().
Referenced by animchannels_select_filter_invoke(), region_toggle_exec(), and text_text_search_exec().
| void ED_region_update_rect | ( | ARegion * | region | ) |
Call to move a popup window (keep OpenGL context free!)
Definition at line 2300 of file area.cc.
References region_update_rect().
Referenced by ui_popup_block_refresh(), and ui_popup_translate().
Definition at line 2355 of file area.cc.
References C, ED_region_visibility_change_update_ex(), ARegion::flag, RGN_FLAG_HIDDEN, and RGN_FLAG_POLL_FAILED.
Referenced by ED_drivers_editor_init(), blender::ed::animrig::ensure_asset_ui_visible(), file_refresh(), blender::ed::asset::shelf::region_on_poll_success(), region_toggle_hidden(), and userpref_show_exec().
| void ED_region_visibility_change_update_ex | ( | bContext * | C, |
| ScrArea * | area, | ||
| ARegion * | region, | ||
| bool | is_hidden, | ||
| bool | do_init ) |
For use after changing visibility of regions.
Definition at line 2336 of file area.cc.
References C, CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), ARegion::runtime, UI_region_free_active_but_all(), and WM_event_remove_handlers().
Referenced by area_regions_poll(), ED_region_visibility_change_update(), and ED_region_visibility_change_update_animated().
Definition at line 4114 of file area.cc.
References region_visible_rect_calc(), ARegion::runtime, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by annotation_draw_modal(), draw_image_cache(), blender::ed::space_node::draw_tree_path(), blender::ed::transform::drawAutoKeyWarning(), ED_image_draw_info(), ED_mask_draw_frames(), ED_region_cache_draw_background(), ED_region_cache_draw_cached_segments(), ED_region_info_draw_multiline(), ED_space_image_show_cache_and_mval_over(), fullscreen_azone_init(), image_main_region_draw(), image_main_region_set_view2d(), blender::eevee::Instance::init(), blender::ed::vse::sequencer_preview_draw_overlays(), view3d_draw_region_info(), WIDGETGROUP_navigate_draw_prepare(), and WIDGETGROUP_navigate_draw_prepare().
Definition at line 3833 of file area.cc.
References bScreen::areabase, ScrAreaMap::areabase, ED_screen_areas_iter_next(), ListBase::first, ScrGlobalAreaData::flag, ScrArea::global, GLOBAL_AREA_IS_HIDDEN, and wmWindow::global_areas.
Definition at line 3846 of file area.cc.
References bScreen::areabase, ListBase::first, ScrArea::global, GLOBAL_AREA_IS_HIDDEN, and ScrArea::next.
Referenced by ED_screen_areas_iter_first().
|
static |
Definition at line 960 of file area.cc.
References ed_workspace_status_item(), ed_workspace_status_space(), and STATUS_MOUSE_ICON_PAD.
Referenced by WorkspaceStatus::item(), WorkspaceStatus::item_bool(), and WorkspaceStatus::opmodal().
|
static |
Definition at line 909 of file area.cc.
References blender::bke::WorkSpaceStatusItem::icon, blender::bke::WorkSpaceStatusItem::inverted, WorkSpace::runtime, blender::bke::WorkSpaceStatusItem::space_factor, and blender::bke::WorkSpaceStatusItem::text.
Referenced by ed_workspace_status_icon_item(), ed_workspace_status_space(), ed_workspace_status_text_item(), WorkspaceStatus::opmodal(), and WorkspaceStatus::range().
|
static |
Definition at line 928 of file area.cc.
References ed_workspace_status_item().
Referenced by ed_workspace_status_icon_item(), ed_workspace_status_text_item(), and WorkspaceStatus::range().
| void ED_workspace_status_text | ( | bContext * | C, |
| const char * | str ) |
Definition at line 1040 of file area.cc.
References C, WorkspaceStatus::item(), and str.
Referenced by blender::ed::space_node::add_dragged_links_to_tree(), add_marker_at_click_modal(), area_join_exit(), area_move_exit(), area_split_exit(), area_swap_exit(), button_activate_state(), change_frame_modal(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_cancel(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_modal(), ED_screen_state_toggle(), ED_slider_destroy(), edbm_bevel_invoke(), edbm_bevel_modal(), edbm_inset_exit(), eyedropper_exit(), blender::ui::greasepencil::eyedropper_grease_pencil_exit(), blender::ui::greasepencil::eyedropper_grease_pencil_status_indicators(), blender::ed::sculpt_paint::expand::finish(), flyEnd(), blender::ed::sculpt_paint::grease_pencil_fill_exit(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_exit(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_modal(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_status_indicators(), blender::ed::greasepencil::grease_pencil_primitive_exit(), knifetool_modal(), loopcut_finish(), loopcut_modal(), minimize_stretch_exit(), minimize_stretch_iteration(), point_normals_cancel(), pose_slide_modal(), poselib_blend_cleanup(), redraw_timer_exec(), sample_color_modal(), sample_color_update_header(), blender::ed::asset::screenshot_preview_exit(), blender::ed::sculpt_paint::filter::sculpt_mesh_filter_modal(), blender::ed::sculpt_paint::dyntopo::sculpt_sample_detail_size_invoke(), blender::ed::sculpt_paint::dyntopo::sculpt_sample_detail_size_modal(), blender::ed::vse::slip_cleanup(), stitch_exit(), blender::ed::transform::transformEvent(), ui_block_open_end(), ui_handler_wait_for_input_remove(), UI_popup_block_close(), ui_popup_block_free(), ui_textedit_end(), blender::ed::object::voxel_size_edit_cancel(), blender::ed::object::voxel_size_edit_modal(), walkEnd(), and WM_operator_name_call_ptr_with_depends_on_cursor().
|
static |
Definition at line 951 of file area.cc.
References ed_workspace_status_item(), ed_workspace_status_space(), STATUS_AFTER_TEXT, and STATUS_BEFORE_TEXT.
Referenced by WorkspaceStatus::item(), WorkspaceStatus::item_bool(), WorkspaceStatus::opmodal(), and WorkspaceStatus::range().
Definition at line 1124 of file area.cc.
References ScrArea::actionzones, AZone::alpha, AZONE_FULLSCREEN, AZONEFADEOUT, BLI_addtail(), BLI_rcti_init(), ED_area_is_global(), ED_region_visible_rect(), MEM_callocN(), AZone::rect, AZone::region, ARegion::regiontype, RGN_TYPE_WINDOW, AZone::type, U, USER_REGION_OVERLAP, ARegion::winrct, AZone::x1, AZone::x2, rcti::xmax, rcti::xmin, AZone::y1, AZone::y2, rcti::ymax, and rcti::ymin.
Referenced by region_azones_add().
|
static |
Definition at line 3955 of file area.cc.
References uiLayout::label(), MetadataPanelDrawContext::layout, and uiLayout::row().
Referenced by ED_region_image_metadata_panel_draw().
|
static |
Check whether a panel should be added to the region's panel layout.
Definition at line 3137 of file area.cc.
References BKE_workspace_owner_id_check(), C, PanelType::category, PanelType::context, PanelType::draw, LIKELY, PanelType::owner_id, PanelType::parent, PanelType::poll, STREQ, and streq_array_any().
Referenced by ED_region_panels_layout_ex(), and ED_region_property_search().
|
static |
Definition at line 3209 of file area.cc.
References UI_PANEL_MARGIN_X, and UI_panel_should_show_background().
Referenced by ED_region_panels_layout_ex().
|
static |
Check whether any of the buttons generated by the panel_type's layout callbacks match the search_filter.
| panel | If non-null, use this instead of adding a new panel for the panel_type. |
Definition at line 3494 of file area.cc.
References C, Panel::children, PanelType::children, PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, blender::ui::Emboss, PanelType::flag, PanelType::idname, Panel::layout, LIKELY, LISTBASE_FOREACH, panel_property_search(), PANEL_TYPE_NO_SEARCH, ARegion::panels, PanelType::poll, Panel::type, UI_block_apply_search_filter(), UI_block_begin(), UI_block_layout(), UI_block_layout_free(), UI_block_set_search_only(), UI_LAYOUT_HEADER, UI_LAYOUT_HORIZONTAL, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_panel_begin(), and UI_panel_find_by_type().
Referenced by ED_region_property_search(), and panel_property_search().
|
static |
Definition at line 1402 of file area.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), SCREEN_AXIS_H, and size().
Referenced by region_rect_recursive().
|
static |
Definition at line 2449 of file area.cc.
References RegionTypeAlignInfo::alignment, RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, LISTBASE_FOREACH, ScrArea::regionbase, RGN_ALIGN_ENUM_FROM_MASK, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, and RGN_TYPE_NUM.
Referenced by ED_area_newspace(), and region_align_info_to_area().
|
static |
Definition at line 2639 of file area.cc.
References LISTBASE_FOREACH, region_align_info_from_area(), region_align_info_to_area_for_headers(), ScrArea::regionbase, ARegion::regiontype, RGN_TYPE_HEADER, RGN_TYPE_NUM, and RGN_TYPE_TOOL_HEADER.
Referenced by ED_area_newspace().
|
static |
Notes on header alignment syncing.
This is as involved as it is because:
How this works:
Definition at line 2524 of file area.cc.
References ARegion::alignment, RegionTypeAlignInfo::alignment, RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, region_alignment_from_header_and_tool_header_state(), RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLAG_FROM_MASK, RGN_ALIGN_TOP, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NUM, and RGN_TYPE_TOOL_HEADER.
Referenced by region_align_info_to_area().
|
static |
Keeping alignment between headers keep the space-type selector button in the same place. This is complicated by the editor-type selector being placed on the header closest to the screen edge which changes based on hidden state.
The tool-header is used when visible, otherwise the header is used.
Definition at line 2477 of file area.cc.
References RegionTypeAlignInfo::alignment, RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, RGN_TYPE_HEADER, and RGN_TYPE_TOOL_HEADER.
Referenced by region_align_info_to_area_for_headers().
Definition at line 1171 of file area.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, BLI_rctf_size_y(), BLI_rcti_init(), BLI_rcti_size_y(), View2D::cur, AZone::edge, View2D::mask, ARegion::overlap, AZone::rect, region_background_is_transparent(), ARegion::regiontype, RGN_TYPE_IS_HEADER_ANY, UI_SCALE_FAC, ARegion::v2d, ARegion::winrct, AZone::x1, AZone::x2, rcti::xmax, rcti::xmin, AZone::y1, AZone::y2, rcti::ymax, and rcti::ymin.
Referenced by region_azone_edge_init().
|
static |
Definition at line 1294 of file area.cc.
References ScrArea::actionzones, AZONE_REGION, BLI_addtail(), AZone::edge, ARegion::flag, MEM_callocN(), AZone::region, region_azone_edge(), region_azone_edge_poll(), region_azone_tab_plus(), RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, and AZone::type.
Referenced by region_azones_add_edge().
|
static |
Definition at line 1255 of file area.cc.
References ARegion::alignment, ELEM, ARegion::flag, ARegion::prev, ARegion::regiontype, RGN_ALIGN_HIDE_WITH_PREV, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_TOOL_HEADER, SPACE_PROPERTIES, ScrArea::spacetype, U, USER_APP_HIDE_REGION_TOGGLE, and USER_APP_LOCK_EDGE_RESIZE.
Referenced by region_azone_edge_init().
|
static |
Definition at line 1319 of file area.cc.
References ScrArea::actionzones, View2D::alpha_hor, View2D::alpha_vert, AZ_SCROLL_HOR, AZ_SCROLL_VERT, AZONE_REGION_SCROLL, BLI_addtail(), AZone::direction, MEM_callocN(), AZone::region, AZone::type, and ARegion::v2d.
Referenced by region_azones_scrollbars_init().
Definition at line 1217 of file area.cc.
References add(), AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, BLI_rcti_init(), AZone::edge, AZone::rect, ScrArea::totrct, U, ARegion::winrct, AZone::x1, AZone::x2, rcti::xmax, rcti::xmin, AZone::y1, AZone::y2, rcti::ymax, and rcti::ymin.
Referenced by region_azone_edge_init().
Definition at line 1375 of file area.cc.
References ARegion::alignment, fullscreen_azone_init(), ARegion::prev, region_azones_add_edge(), region_azones_scrollbars_init(), ARegion::regiontype, RGN_ALIGN_ENUM_FROM_MASK, RGN_SPLIT_PREV, RGN_TYPE_TOOL_HEADER, SCREENFULL, and bScreen::state.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Definition at line 1354 of file area.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, region_azone_edge_init(), RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, and RGN_ALIGN_TOP.
Referenced by region_azones_add().
Definition at line 1341 of file area.cc.
References AZ_SCROLL_HOR, AZ_SCROLL_VERT, region_azone_scrollbar_init(), View2D::scroll, ARegion::v2d, V2D_SCROLL_HORIZONTAL, and V2D_SCROLL_VERTICAL.
Referenced by region_azones_add().
|
static |
Definition at line 2914 of file area.cc.
References ARegion::regiontype, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOL_HEADER, TH_BACK, TH_HEADER, and TH_PREVIEW_BACK.
Referenced by ED_region_header_draw(), and ED_region_header_draw_with_button_sections().
Return true if the background color alpha is close to fully transparent. That is, a value of less than 50 on a [0-255] scale (rather arbitrary threshold). Assumes the region uses TH_BACK for its background.
Definition at line 1156 of file area.cc.
References ARegion::regiontype, ScrArea::spacetype, TH_BACK, UI_GetThemeColor4ubv(), UI_SetTheme(), UI_Theme_Restore(), and UI_Theme_Store().
Referenced by region_azone_edge().
|
static |
Definition at line 2942 of file area.cc.
References C, GPU_clear_color(), and UI_view2d_view_restore().
Referenced by ED_region_header_draw_with_button_sections().
Definition at line 261 of file area.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, draw_azone_arrow(), AZone::edge, GPU_blend(), GPU_BLEND_ALPHA, U, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), WM_region_use_viewport(), AZone::x1, AZone::x2, rctf::xmax, rctf::xmin, AZone::y1, AZone::y2, rctf::ymax, and rctf::ymin.
Referenced by region_draw_azones().
Definition at line 300 of file area.cc.
References ScrArea::actionzones, area_azone_tag_update(), area_draw_azone(), area_draw_azone_fullscreen(), AZONE_AREA, AZONE_FULLSCREEN, AZONE_REGION, AZONE_REGION_SCROLL, BLI_rcti_init(), BLI_rcti_isect(), ELEM, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), IS_EQF, LISTBASE_FOREACH, region_draw_azone_tab_arrow(), RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, ARegion::runtime, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by ED_region_do_draw().
Definition at line 3711 of file area.cc.
References C, ARegion::runtime, UI_blocklist_draw(), UI_blocklist_update_window_matrix(), UI_view2d_view_ortho(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by ED_region_header_draw(), and ED_region_header_draw_with_button_sections().
Definition at line 71 of file area.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), pos, REGION_EMBOSS_BOTTOM, REGION_EMBOSS_LEFT, REGION_EMBOSS_RIGHT, REGION_EMBOSS_TOP, TH_EDITOR_BORDER, UI_GetThemeColor3fv(), ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_do_draw().
Definition at line 345 of file area.cc.
References BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), BLF_set_default(), BLF_width(), GPU_blend(), GPU_BLEND_ALPHA, GPU_clear_color(), pad, ARegion::runtime, TH_BACK, TH_HEADER, TH_TEXT, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_FontThemeColor(), UI_GetThemeColor3fv(), UI_GetThemeColor4fv(), UI_SCALE_FAC, UI_UNIT_Y, ARegion::winx, ARegion::winy, x, and y.
Referenced by ED_region_do_draw().
|
static |
Update the ARegion::visible flag.
Definition at line 1931 of file area.cc.
References ARegion::alignment, ARegion::flag, ARegion::prev, RGN_ALIGN_HIDE_WITH_PREV, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, and ARegion::runtime.
Referenced by ED_area_init(), ED_area_update_region_sizes(), and ED_region_floating_init().
Definition at line 1415 of file area.cc.
References ARegion::alignment, BLI_assert, BLI_rcti_isect(), BLI_rcti_translate(), ELEM, ARegion::flag, ARegion::overlap, ARegion::prev, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, U, ARegion::winrct, ARegion::winx, ScrArea::winx, rcti::xmax, and rcti::xmin.
Referenced by region_rect_recursive().
|
static |
Definition at line 3185 of file area.cc.
References PanelType::category, LinkNode::next, UI_panel_category_active_get(), UI_panel_category_add(), UI_panel_category_clear_all(), UI_panel_category_find(), and UI_panel_category_is_visible().
Referenced by ED_region_panels_layout_ex(), and ED_region_property_search().
|
static |
This aligns to the lower left of the area.
Definition at line 1537 of file area.cc.
References ARegion::alignment, AREAMINX, BLI_assert, BLI_rcti_cent_x(), BLI_rcti_cent_y(), BLI_rcti_init(), BLI_rcti_is_valid(), BLI_rcti_isect(), BLI_rcti_resize(), BLI_rcti_sanitize(), BLI_rcti_size_x(), BLI_rcti_size_y(), count, ED_area_footersize(), ED_area_headersize(), ED_area_is_global(), ED_region_global_size_y(), ED_region_is_overlap(), ED_region_tag_redraw(), ED_region_tag_redraw_no_rebuild(), ELEM, ARegion::flag, G, G_DEBUG, blender::ed::asset::shelf::header_region_size(), HEADERY, max_ii(), ARegion::next, ARegion::overlap, ARegion::prev, printf, quad, rct_fits(), region_overlap_fix(), blender::ed::asset::shelf::region_prefsizey(), region_rect_recursive(), ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_HSPLIT, RGN_ALIGN_LEFT, RGN_ALIGN_NONE, RGN_ALIGN_QSPLIT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_ALIGN_VSPLIT, RGN_FLAG_DYNAMIC_SIZE, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_SIZE_CLAMP_X, RGN_FLAG_SIZE_CLAMP_Y, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, RGN_TYPE_ASSET_SHELF, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, ARegion::runtime, SCREEN_AXIS_H, SCREEN_AXIS_V, ARegion::sizex, ARegion::sizey, SPACE_VIEW3D, ScrArea::spacetype, U, UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_area_init(), ED_area_update_region_sizes(), and region_rect_recursive().
Definition at line 2362 of file area.cc.
References C, CTX_wm_area(), ED_region_visibility_change_update(), ED_region_visibility_change_update_animated(), ARegion::flag, ARegion::overlap, and RGN_FLAG_HIDDEN.
Referenced by ED_region_toggle_hidden(), and region_scale_toggle_hidden().
|
static |
Definition at line 2291 of file area.cc.
References BLI_rcti_init(), BLI_rcti_size_x(), BLI_rcti_size_y(), View2D::mask, ARegion::v2d, ARegion::winrct, ARegion::winx, and ARegion::winy.
Referenced by ED_region_floating_init(), and ED_region_update_rect().
Definition at line 3177 of file area.cc.
References ARegion::regiontype, RGN_TYPE_HAS_CATEGORY_MASK, RGN_TYPE_TOOLS, SPACE_CLIP, and ScrArea::spacetype.
Referenced by ED_region_panels_layout_ex(), and ED_region_property_search().
Definition at line 4065 of file area.cc.
References abs, ARegion::alignment, BLI_assert_msg, BLI_rcti_isect(), BLI_rcti_translate(), ELEM, ARegion::next, ARegion::overlap, ARegion::prev, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_visible_rect().
| BLI_INLINE bool streq_array_any | ( | const char * | s, |
| const char * | arr[] ) |
Definition at line 2950 of file area.cc.
References BLI_INLINE, i, and STREQ.
Referenced by panel_add_check().
|
staticconstexpr |
Definition at line 948 of file area.cc.
Referenced by ed_workspace_status_text_item().
|
staticconstexpr |
Definition at line 947 of file area.cc.
Referenced by ed_workspace_status_text_item().
|
staticconstexpr |
Definition at line 949 of file area.cc.
Referenced by ed_workspace_status_icon_item().