|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_blenlib.h"#include "BLI_linklist_stack.h"#include "BLI_rand.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 } |
Private helper functions to help ensure consistent spacing | |
| static constexpr float | STATUS_AFTER_TEXT = 0.7f |
| static constexpr float | STATUS_MOUSE_ICON_PAD = -0.5f |
| 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 976 of file area.cc.
References AZONE_AREA, AZONESPOTH, AZONESPOTW, BLI_addtail(), BLI_freelistN(), BLI_rcti_init(), ED_area_is_global(), MEM_callocN, AZone::rect, SCREENNORMAL, AZone::type, USER_APP_LOCK_CORNER_SPLIT, WM_window_is_fullscreen(), WM_window_native_pixel_x(), AZone::x1, AZone::x2, AZone::y1, and AZone::y2.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Definition at line 292 of file area.cc.
References AREA_FLAG_ACTIONZONES_UPDATE.
Referenced by region_draw_azones().
Definition at line 1792 of file area.cc.
References BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), rcti::xmax, rcti::xmin, 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 195 of file area.cc.
Referenced by region_draw_azones().
|
static |
Corner widget use for quitting full-screen.
Definition at line 179 of file area.cc.
References min_ff(), UI_icon_draw_ex(), UI_INV_SCALE_FAC, and UI_NO_ICON_OVERLAY_TEXT.
Referenced by region_draw_azones().
Definition at line 2720 of file area.cc.
References SpaceLink::next, SPACE_FLAG_TYPE_TEMPORARY, and SPACE_FLAG_TYPE_WAS_ACTIVE.
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 2006 of file area.cc.
References BKE_spacetype_from_id(), BLI_addhead(), BLI_assert, BLI_listbase_clear(), BLI_remlink(), LIKELY, LISTBASE_FOREACH, SpaceLink::regionbase, and screen_area_spacelink_add().
Referenced by ED_area_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 471 of file area.cc.
Referenced by ED_region_do_draw(), and ED_region_do_layout().
|
static |
Definition at line 2154 of file area.cc.
References LISTBASE_FOREACH, MEM_SAFE_FREE, wmWindowManager::message_bus, 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 2130 of file area.cc.
References AREA_FLAG_OFFSCREEN, BKE_regiontype_from_id(), BKE_spacetype_from_id(), BLI_assert, and LISTBASE_FOREACH.
Referenced by ED_area_offscreen_create().
Edge widgets to show hidden panels such as the toolbar and headers.
Definition at line 203 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(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immVertex2f(), immVertexFormat(), l, and pos.
Referenced by region_draw_azone_tab_arrow().
We swap spaces for full-screen to keep all allocated data area vertices were set.
Definition at line 2281 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 2314 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 159 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 414 of file area.cc.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, wmMsgSubscribeValue::owner, params, RGN_TYPE_TOOL_HEADER, and WM_msg_subscribe_rna_prop.
Referenced by ED_spacetype_image(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
| void ED_area_do_mgs_subscribe_for_tool_ui | ( | const wmRegionMessageSubscribeParams * | params | ) |
Definition at line 429 of file area.cc.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, LISTBASE_FOREACH, wmMsgSubscribeValue::owner, params, PNL_PIN, RGN_TYPE_UI, STREQ, UI_panel_category_active_get(), UI_panel_is_active(), and WM_msg_subscribe_rna_prop.
Referenced by ED_spacetype_image(), ED_spacetype_node(), 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 404 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 167 of file area.cc.
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 3698 of file area.cc.
References BKE_screen_find_area_xy(), 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(), and area_swap_modal().
| int ED_area_footersize | ( | ) |
Definition at line 3672 of file area.cc.
References ED_area_headersize().
Referenced by region_rect_recursive().
Definition at line 3687 of file area.cc.
References BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_SCALE_FAC.
Referenced by area_move_set_limits().
Definition at line 3682 of file area.cc.
References BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_SCALE_FAC.
Referenced by area_move_set_limits().
Definition at line 3677 of file area.cc.
References BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_SCALE_FAC.
Referenced by screen_geom_vertices_scale(), and WM_window_screen_rect_calc().
Definition at line 1998 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 2766 of file area.cc.
References CTX_wm_area(), CTX_wm_screen(), RNA_pointer_create(), UI_BTYPE_MENU, and uiDefButR().
Referenced by uiTemplateHeader().
| int ED_area_headersize | ( | ) |
Definition at line 3666 of file area.cc.
References HEADER_PADDING_Y, int, and UI_SCALE_FAC.
Referenced by area_move_set_limits(), area_split_allowed(), 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 sequencer_refresh().
| void ED_area_init | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| ScrArea * | area ) |
Called in screen_refresh, or screens_init, also area size changes.
Definition at line 2036 of file area.cc.
References area_azone_init(), area_calc_totrct(), AREA_FLAG_ACTIVE_TOOL_UPDATE, area_init_type_fallback(), BKE_regiontype_from_id(), BKE_spacetype_from_id(), BKE_workspace_active_screen_get(), BLI_assert, BLI_assert_msg, ED_area_is_global(), ed_default_handlers(), G, G_TRANSFORM_WM, GLOBAL_AREA_IS_HIDDEN, LISTBASE_FOREACH, region_azones_add(), region_evaulate_visibility(), region_rect_recursive(), SPACE_VIEW3D, 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_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(), and sequencer_refresh().
| bool ED_area_is_global | ( | const ScrArea * | area | ) |
Definition at line 3693 of file area.cc.
Referenced by area_azone_init(), 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().
| skip_region_exit | Skip calling area exit callback. Set for opening temp spaces. |
Definition at line 2592 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(), 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::free, SpaceLink::link_flag, LISTBASE_FOREACH, NC_SPACE, ND_SPACE_CHANGED, region_align_info_from_area(), region_align_info_to_area(), SpaceLink::regionbase, RGN_TYPE_NUM, SPACE_FLAG_TYPE_TEMPORARY, SpaceType::space_subtype_item_extend, SpaceType::space_subtype_set, 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 2143 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 2184 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 2742 of file area.cc.
References area_get_prevspace(), ED_area_newspace(), ED_area_tag_redraw(), SpaceLink::link_flag, NC_SPACE, ND_SPACE_CHANGED, 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 777 of file area.cc.
References ED_buttons_search_string_get(), RGN_TYPE_WINDOW, and SPACE_PROPERTIES.
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 803 of file area.cc.
References BLI_str_rstrip(), BLI_strncpy(), ED_region_tag_redraw(), ARegion::headerstr, LISTBASE_FOREACH, MEM_mallocN, MEM_SAFE_FREE, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, str, and UI_MAX_DRAW_STR.
Referenced by apply_shear(), apply_value_impl(), applyAlign(), applyBakeTime(), applyBoneEnvelope(), applyBoneRoll(), applyBoneSize(), applyCurveShrinkFatten(), applyEdgeSlide(), applyGPOpacity(), applyGPShrinkFatten(), applyMaskShrinkFatten(), applyMirror(), applyNormalRotation(), applyPushPull(), applyResize(), applyRotation(), applySeqSlide(), applyShrinkFatten(), applySkinResize(), applyTilt(), applyTimeScale(), applyTimeSlide(), applyTimeTranslate(), applyToSphere(), applyTrackball(), applyTranslation(), applyVertSlide(), Bend(), 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(), point_normals_cancel(), point_normals_update_header(), pose_slide_draw_status(), pose_slide_modal(), poselib_blend_cleanup(), radial_control_cancel(), radial_control_update_header(), sequencer_slip_modal(), sequencer_slip_update_header(), ui_handler_wait_for_input_remove(), viewRedrawPost(), and WM_operator_name_call_ptr_with_depends_on_cursor().
Definition at line 2566 of file area.cc.
References BKE_screen_area_free(), CTX_wm_manager(), 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 708 of file area.cc.
References ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by action_listener(), action_refresh(), actkeys_viewall(), area_actionzone_refresh_xy(), 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(), console_modal_select_all_invoke(), console_modal_select_apply(), console_move_exec(), console_paste_exec(), console_scrollback_append_exec(), 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(), scroll_exit(), select_report_pick_exec(), seq_build_proxy(), seq_proxy_build_job(), sequencer_listener(), sequencer_preview_add_sound(), sequencer_refresh(), sequencer_sample_apply(), 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(), 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 717 of file area.cc.
References ED_region_tag_redraw_no_rebuild(), and LISTBASE_FOREACH.
Referenced by area_actionzone_refresh_xy(), and area_move_apply_do().
Definition at line 726 of file area.cc.
References ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by blender::ed::sculpt_paint::flush_update_done(), and space_view3d_listener().
| void ED_area_tag_refresh | ( | ScrArea * | area | ) |
Definition at line 737 of file area.cc.
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 744 of file area.cc.
References ARegion::alignment, AREA_FLAG_REGION_SIZE_UPDATE, ED_region_tag_redraw(), 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 1959 of file area.cc.
References area_azone_init(), area_calc_totrct(), AREA_FLAG_REGION_SIZE_UPDATE, ED_area_azones_update(), wmWindow::eventstate, LISTBASE_FOREACH, region_azones_add(), region_evaulate_visibility(), region_rect_recursive(), RGN_FLAG_POLL_FAILED, WM_window_get_active_screen(), WM_window_rect_calc(), and wmEvent::xy.
Referenced by ED_area_type_hud_ensure(), and wm_draw_window_offscreen().
|
static |
| region | Region, may be nullptr when adding handlers for area. |
Definition at line 1855 of file area.cc.
References BLI_assert, wmWindowManager::defaultconf, 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(), ELEM, event_in_markers_region(), flag, params, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SPACE_EMPTY, 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_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 2849 of file area.cc.
References BKE_ST_MAXNAME, BLI_string_join, Panel::children, PanelType::children, LayoutPanels::clear(), PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, ed_panel_draw(), 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, RGN_TYPE_TOOLS, 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_EMBOSS, 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(), uiLayoutRow(), 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 4021 of file area.cc.
References ED_region_visible_rect(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_SCALE_FAC, 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 4060 of file area.cc.
References ED_region_visible_rect(), float, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_SCALE_FAC, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 4035 of file area.cc.
References BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), pos, SNPRINTF, TH_CFRAME, TH_TEXT, UI_FontThemeColor(), UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, and uiStyle::widget.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 2807 of file area.cc.
References GPU_clear_color(), 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 2216 of file area.cc.
References 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 499 of file area.cc.
References area_is_pseudo_minimized(), BLI_thread_frand(), C, wmRegionMessageSubscribeParams::context, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_workspace(), 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(), G, 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(), imm_draw_box_wire_2d(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4f(), immUniformColor4fv(), immVertexFormat(), wmWindowManager::message_bus, wmMsgSubscribeValue::owner, pos, ptr, region_draw_azones(), region_draw_emboss(), REGION_DRAW_POST_PIXEL, region_draw_status_text(), REGION_EMBOSS_LEFT, REGION_EMBOSS_RIGHT, RGN_ALIGN_QSPLIT, RGN_DRAWING, RGN_TYPE_CHANNELS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RNA_pointer_create(), scene, SCREENFULL, TH_EDITOR_BORDER, UI_blocklist_free_inactive(), UI_GetThemeColor3fv(), UI_SetTheme(), UI_ThemeClearColor(), WM_msg_subscribe_rna(), WM_msgbus_clear_by_owner(), WM_window_get_active_screen(), wmOrtho2_region_pixelspace(), and wmPartialViewport().
Referenced by text_text_search_exec(), ui_region_redraw_immediately(), wm_draw_region_test(), and wm_draw_window_offscreen().
Only exported for WM.
Definition at line 476 of file area.cc.
References area_is_pseudo_minimized(), CTX_wm_area(), ARegionType::layout, RGN_DRAWING, and UI_SetTheme().
Referenced by text_text_search_exec(), ui_region_redraw_immediately(), and wm_draw_window_offscreen().
| void ED_region_do_listen | ( | wmRegionListenerParams * | params | ) |
Only exported for WM.
Definition at line 127 of file area.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), LISTBASE_FOREACH, NC_WINDOW, NC_WM, ND_FILEREAD, params, and UI_block_listen().
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 381 of file area.cc.
References ED_region_tag_redraw(), ELEM, wmMsgSubscribeValue::owner, 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(), 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 2206 of file area.cc.
References 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 3757 of file area.cc.
References ED_area_headersize().
Referenced by region_rect_recursive().
Definition at line 3866 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(), immAttr3fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformThemeColorBlendShade(), immVertex2f(), immVertexFormat(), pos, TH_BACK, TH_GRID, UI_GetThemeColor3fv(), UI_GetThemeColor4fv(), UI_GetThemeColorShade3fv(), and UI_view2d_view_to_region().
Referenced by clip_draw_main().
Definition at line 3646 of file area.cc.
References 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(), 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 3621 of file area.cc.
References 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 3628 of file area.cc.
References ED_region_clear(), 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 3661 of file area.cc.
References UI_view2d_region_reinit(), and V2D_COMMONVIEW_HEADER.
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(), 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 3522 of file area.cc.
References CTX_wm_area(), CTX_wm_window(), ED_area_tag_region_size_update(), float, Header::layout, layout_coordinates_correct_for_drawable_rect(), LISTBASE_FOREACH, min_ii(), RGN_FLAG_DYNAMIC_SIZE, Header::type, UI_block_begin(), UI_block_end(), UI_block_layout(), UI_block_layout_resolve(), UI_EMBOSS, 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(), uiItemS(), uiLayoutGetWidth(), and uiLayoutSetScaleY().
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 3653 of file area.cc.
References 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 3859 of file area.cc.
References IMB_metadata_foreach(), MetadataPanelDrawContext::layout, and metadata_panel_draw_field().
Referenced by 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 3838 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 3762 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_I32, GPU_FETCH_INT_TO_FLOAT, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), min_ii(), uiFontStyle::points, pos, TH_TEXT_HI, 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().
Overlapping regions only in the following restricted cases.
Definition at line 1407 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, 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 4085 of file area.cc.
References BLI_listbase_is_empty(), params, UI_region_message_subscribe(), and WM_gizmomap_message_subscribe().
Referenced by ED_region_do_draw().
Definition at line 3336 of file area.cc.
References 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(), sequencer_buttons_region_draw(), blender::ed::spreadsheet::spreadsheet_dataset_region_draw(), text_properties_region_draw(), and userpref_navigation_region_draw().
Definition at line 3277 of file area.cc.
References 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(), 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_ex(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
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 3326 of file area.cc.
References ED_region_panels_draw(), and ED_region_panels_layout_ex().
Referenced by sequencer_tools_region_draw(), and view3d_tools_region_draw().
| void ED_region_panels_init | ( | wmWindowManager * | wm, |
| ARegion * | region ) |
Definition at line 3343 of file area.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_EMPTY, UI_view2d_region_reinit(), V2D_COMMONVIEW_PANELS_UI, 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(), sequencer_buttons_region_init(), 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 3271 of file area.cc.
References ED_region_panels_layout_ex(), 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 3099 of file area.cc.
References BLI_linklist_prepend_alloca, BLI_rctf_size_x(), 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, Panel::flag, PanelType::flag, View2D::flag, INSTANCED_PANEL_UNIQUE_STR_SIZE, int, View2D::keepofs, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, min_ii(), LinkNode::next, panel_add_check(), panel_draw_width_from_max_width_get(), PANEL_TYPE_INSTANCED, PNL_PIN, region_panels_collect_categories(), region_uses_category_tabs(), RGN_FLAG_DYNAMIC_SIZE, View2D::scroll, 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(), V2D_KEEPOFS_X, V2D_KEEPOFS_Y, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, 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 121 of file area.cc.
References GPU_matrix_identity_set(), and wmOrtho2_region_pixelspace().
Referenced by DRW_draw_cursor(), DRW_draw_cursor_2d_ex(), DRW_draw_render_loop_2d_ex(), ED_region_do_draw(), external_draw_scene_do_v3d(), 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 3419 of file area.cc.
References BKE_area_region_panels_free(), BLI_linklist_prepend_alloca, 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, 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 790 of file area.cc.
References ED_area_region_search_filter_get(), RGN_FLAG_SEARCH_FILTER_ACTIVE, RGN_FLAG_SEARCH_FILTER_UPDATE, RGN_TYPE_WINDOW, and SET_FLAG_FROM_TEST.
Referenced by buttons_clear_filter_exec().
Definition at line 4117 of file area.cc.
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
Definition at line 4104 of file area.cc.
References abs().
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
| void ED_region_tag_redraw | ( | ARegion * | region | ) |
Definition at line 634 of file area.cc.
References RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
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::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(), 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_file_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(), reset_exec(), ringsel_exit(), ringsel_init(), run_pyfile_exec(), sclip_zoom_set_factor_exec(), screen_animation_region_tag_redraw(), SCULPT_tag_update_overlays(), select_anim_channel_keys(), sequencer_buttons_region_listener(), sequencer_main_region_listener(), sequencer_preview_region_listener(), 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_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 646 of file area.cc.
References RGN_DRAW.
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 669 of file area.cc.
References ED_region_tag_redraw(), RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_PARTIAL, and RGN_DRAWING.
Referenced by gizmo2d_modal(), gizmo_arrow_modal(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), 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 653 of file area.cc.
References RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
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 681 of file area.cc.
References BLI_rcti_union(), RGN_DRAW, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
Referenced by blender::ed::sculpt_paint::flush_update_step(), wm_region_test_render_do_draw(), and wpaint_stroke_update_step().
| void ED_region_tag_refresh_ui | ( | ARegion * | region | ) |
Definition at line 662 of file area.cc.
References RGN_REFRESH_UI.
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 2276 of file area.cc.
References 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 2201 of file area.cc.
References region_update_rect().
Referenced by ui_popup_block_refresh(), and ui_popup_translate().
Definition at line 2254 of file area.cc.
References ED_region_visibility_change_update_ex(), RGN_FLAG_HIDDEN, and RGN_FLAG_POLL_FAILED.
Referenced by ED_drivers_editor_init(), file_refresh(), blender::ed::asset::shelf::region_on_poll_success(), region_toggle_hidden(), screen_regions_poll(), 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 2235 of file area.cc.
References CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), UI_region_free_active_but_all(), and WM_event_remove_handlers().
Referenced by ED_region_visibility_change_update(), and ED_region_visibility_change_update_animated().
Definition at line 4010 of file area.cc.
References region_visible_rect_calc(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by annotation_draw_modal(), draw_image_cache(), blender::ed::space_node::draw_tree_path(), drawAutoKeyWarning(), DRW_draw_callbacks_post_scene(), DRW_draw_render_loop_2d_ex(), 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(), eevee_engine_init(), fullscreen_azone_init(), image_main_region_set_view2d(), sequencer_preview_region_draw(), view3d_draw_region_info(), WIDGETGROUP_navigate_draw_prepare(), and WIDGETGROUP_navigate_draw_prepare().
Definition at line 3729 of file area.cc.
References ScrAreaMap::areabase, ED_screen_areas_iter_next(), ListBase::first, ScrGlobalAreaData::flag, ScrArea::global, GLOBAL_AREA_IS_HIDDEN, and wmWindow::global_areas.
Definition at line 3742 of file area.cc.
References GLOBAL_AREA_IS_HIDDEN, and ScrArea::next.
Referenced by ED_screen_areas_iter_first().
|
static |
Definition at line 889 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 840 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().
Definition at line 859 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 966 of file area.cc.
References WorkspaceStatus::item(), and str.
Referenced by blender::ed::space_node::add_dragged_links_to_tree(), add_marker_at_click_invoke(), add_marker_at_click_modal(), annotation_draw_status_indicators(), area_join_exit(), area_move_exit(), area_split_exit(), area_swap_exit(), button_activate_state(), common_draw_status_header(), decimate_draw_status(), 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(), ease_draw_status_header(), ED_screen_state_toggle(), ED_slider_destroy(), edbm_bevel_invoke(), edbm_bevel_modal(), edbm_inset_exit(), blender::ui::greasepencil::eyedropper_grease_pencil_exit(), blender::ui::greasepencil::eyedropper_grease_pencil_status_indicators(), blender::ed::sculpt_paint::expand::finish(), blender::ed::sculpt_paint::grease_pencil_fill_exit(), blender::ed::sculpt_paint::grease_pencil_fill_status_indicators(), 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(), blender::ed::greasepencil::grease_pencil_primitive_status_indicators(), knifetool_modal(), loopcut_finish(), loopcut_modal(), mesh_bisect_invoke(), minimize_stretch_exit(), minimize_stretch_iteration(), pose_slide_draw_status(), pose_slide_modal(), poselib_blend_cleanup(), poselib_blend_modal(), sample_color_modal(), sample_color_update_header(), scale_from_neighbor_draw_status_header(), 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(), shear_draw_status_header(), stitch_exit(), stitch_update_header(), 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(), and WM_operator_name_call_ptr_with_depends_on_cursor().
|
static |
Definition at line 881 of file area.cc.
References ed_workspace_status_item(), ed_workspace_status_space(), and STATUS_AFTER_TEXT.
Referenced by WorkspaceStatus::item(), WorkspaceStatus::item_bool(), WorkspaceStatus::opmodal(), and WorkspaceStatus::range().
Definition at line 1845 of file area.cc.
References BLI_rcti_isect_pt_v(), UI_MARKER_MARGIN_Y, wmEvent::xy, rcti::ymax, and rcti::ymin.
Referenced by ed_default_handlers().
Definition at line 1045 of file area.cc.
References AZone::alpha, AZONE_FULLSCREEN, AZONEFADEOUT, BLI_addtail(), BLI_rcti_init(), ED_area_is_global(), ED_region_visible_rect(), MEM_callocN, AZone::rect, AZone::region, RGN_TYPE_WINDOW, AZone::type, USER_REGION_OVERLAP, AZone::x1, AZone::x2, rcti::xmax, AZone::y1, AZone::y2, and rcti::ymax.
Referenced by region_azones_add().
|
static |
The drawable part of the region might be slightly smaller because of area edges. This is especially visible for header-like regions, where vertical space around widgets is small, and it's quite visible when widgets aren't centered properly.
Definition at line 3502 of file area.cc.
References WM_window_rect_calc(), rcti::ymax, and rcti::ymin.
Referenced by ED_region_header_layout().
|
static |
Definition at line 3851 of file area.cc.
References MetadataPanelDrawContext::layout, uiItemL(), and uiLayoutRow().
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 3017 of file area.cc.
References BKE_workspace_owner_id_check(), 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 3089 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 3358 of file area.cc.
References Panel::children, PanelType::children, PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, PanelType::flag, PanelType::idname, Panel::layout, LIKELY, LISTBASE_FOREACH, panel_property_search(), PANEL_TYPE_NO_SEARCH, 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_EMBOSS, 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 1319 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 2348 of file area.cc.
References RegionTypeAlignInfo::alignment, RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, LISTBASE_FOREACH, 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 2538 of file area.cc.
References LISTBASE_FOREACH, region_align_info_from_area(), region_align_info_to_area_for_headers(), 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 2423 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, 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 2376 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 1092 of file area.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, BLI_rcti_init(), AZone::edge, AZone::rect, region_background_is_transparent(), RGN_TYPE_IS_HEADER_ANY, AZone::x1, AZone::x2, AZone::y1, and AZone::y2.
Referenced by region_azone_edge_init().
|
static |
Definition at line 1209 of file area.cc.
References AZONE_REGION, BLI_addtail(), AZone::edge, 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 1176 of file area.cc.
References ELEM, RGN_ALIGN_HIDE_WITH_PREV, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, USER_APP_HIDE_REGION_TOGGLE, and USER_APP_LOCK_EDGE_RESIZE.
Referenced by region_azone_edge_init().
|
static |
Definition at line 1234 of file area.cc.
References 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 1138 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, AZone::x1, AZone::x2, AZone::y1, and AZone::y2.
Referenced by region_azone_edge_init().
Definition at line 1292 of file area.cc.
References fullscreen_azone_init(), region_azones_add_edge(), region_azones_scrollbars_init(), RGN_ALIGN_ENUM_FROM_MASK, RGN_SPLIT_PREV, RGN_TYPE_TOOL_HEADER, and SCREENFULL.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Definition at line 1271 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 1256 of file area.cc.
References AZ_SCROLL_HOR, AZ_SCROLL_VERT, region_azone_scrollbar_init(), View2D::scroll, V2D_SCROLL_HORIZONTAL, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_VERTICAL, and V2D_SCROLL_VERTICAL_HANDLES.
Referenced by region_azones_add().
|
static |
Definition at line 2794 of file area.cc.
References 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().
|
static |
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 1077 of file area.cc.
References TH_BACK, UI_GetThemeColor4ubv(), UI_SetTheme(), UI_Theme_Restore(), and UI_Theme_Store().
Referenced by region_azone_edge().
|
static |
Definition at line 2822 of file area.cc.
References GPU_clear_color(), and UI_view2d_view_restore().
Referenced by ED_region_header_draw_with_button_sections().
Definition at line 259 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, float, GPU_blend(), GPU_BLEND_ALPHA, 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::xmin, AZone::y1, and AZone::y2.
Referenced by region_draw_azones().
Definition at line 297 of file area.cc.
References 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, and RGN_FLAG_TOO_SMALL.
Referenced by ED_region_do_draw().
Definition at line 3607 of file area.cc.
References UI_blocklist_draw(), UI_blocklist_update_window_matrix(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by ED_region_header_draw(), and ED_region_header_draw_with_button_sections().
Definition at line 69 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(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_do_draw().
Definition at line 342 of file area.cc.
References BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), BLF_set_default(), BLF_width(), float, GPU_blend(), GPU_BLEND_ALPHA, GPU_clear_color(), pad, 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, and UI_UNIT_Y.
Referenced by ED_region_do_draw().
|
static |
Update the ARegion::visible flag.
Definition at line 1833 of file area.cc.
References RGN_ALIGN_HIDE_WITH_PREV, RGN_FLAG_HIDDEN, RGN_FLAG_POLL_FAILED, RGN_FLAG_TOO_SMALL, and RGN_SPLIT_PREV.
Referenced by ED_area_init(), ED_area_update_region_sizes(), and ED_region_floating_init().
Definition at line 1332 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, ARegion::winrct, and ARegion::winx.
Referenced by region_rect_recursive().
|
static |
Definition at line 3065 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 1454 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, G, G_DEBUG, HEADERY, max_ii(), ARegion::next, printf, quad, rct_fits(), region_overlap_fix(), region_rect_recursive(), 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, SCREEN_AXIS_H, SCREEN_AXIS_V, SPACE_VIEW3D, UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, 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 2261 of file area.cc.
References CTX_wm_area(), ED_region_visibility_change_update(), ED_region_visibility_change_update_animated(), and RGN_FLAG_HIDDEN.
Referenced by ED_region_toggle_hidden(), and region_scale_toggle_hidden().
|
static |
Definition at line 2192 of file area.cc.
References BLI_rcti_init(), BLI_rcti_size_x(), and BLI_rcti_size_y().
Referenced by ED_region_floating_init(), and ED_region_update_rect().
Definition at line 3057 of file area.cc.
References RGN_TYPE_HAS_CATEGORY_MASK, RGN_TYPE_TOOLS, and SPACE_CLIP.
Referenced by ED_region_panels_layout_ex(), and ED_region_property_search().
Definition at line 3961 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[] ) |
|
staticconstexpr |
Definition at line 878 of file area.cc.
Referenced by ed_workspace_status_text_item().
|
staticconstexpr |
Definition at line 879 of file area.cc.
Referenced by ed_workspace_status_icon_item().