|
Blender
V2.93
|
#include <stdio.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_blenlib.h"#include "BLI_linklist_stack.h"#include "BLI_math.h"#include "BLI_rand.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_image.h"#include "BKE_screen.h"#include "BKE_workspace.h"#include "RNA_access.h"#include "RNA_types.h"#include "WM_api.h"#include "WM_message.h"#include "WM_toolsystem.h"#include "WM_types.h"#include "ED_buttons.h"#include "ED_screen.h"#include "ED_screen_types.h"#include "ED_space_api.h"#include "ED_time_scrub_ui.h"#include "GPU_framebuffer.h"#include "GPU_immediate.h"#include "GPU_immediate_util.h"#include "GPU_matrix.h"#include "GPU_state.h"#include "BLF_api.h"#include "IMB_imbuf_types.h"#include "IMB_metadata.h"#include "UI_interface.h"#include "UI_interface_icons.h"#include "UI_resources.h"#include "UI_view2d.h"#include "screen_intern.h"Go to the source code of this file.
Classes | |
| struct | RegionTypeAlignInfo |
| struct | MetadataPanelDrawContext |
Macros | |
| #define | AZONEPAD_EDGE (0.1f * U.widget_unit) |
| #define | AZONEPAD_ICON (0.45f * U.widget_unit) |
Typedefs | |
| typedef struct MetadataPanelDrawContext | 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 } |
| typedef struct MetadataPanelDrawContext MetadataPanelDrawContext |
| enum RegionEmbossSide |
Definition at line 872 of file area.c.
References blender::compositor::area(), AZONE_AREA, AZONESPOTH, AZONESPOTW, BLI_addtail(), BLI_freelistN(), BLI_rcti_init(), ED_area_is_global(), MEM_callocN, AZone::rect, SCREENNORMAL, bScreen::state, bScreen::temp, AZone::type, USER_APP_LOCK_UI_LAYOUT, WM_window_is_fullscreen(), WM_window_pixels_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 307 of file area.c.
References blender::compositor::area(), and AREA_FLAG_ACTIONZONES_UPDATE.
Referenced by region_draw_azones().
Definition at line 1617 of file area.c.
References blender::compositor::area(), BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), if(), 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 204 of file area.c.
Referenced by region_draw_azones().
|
static |
Corner widget use for quitting fullscreen.
Definition at line 188 of file area.c.
References alpha, min_ff(), NULL, UI_icon_draw_ex(), and x2.
Referenced by region_draw_azones().
Definition at line 2493 of file area.c.
References blender::compositor::area(), SpaceLink::next, SPACE_FLAG_TYPE_TEMPORARY, and SPACE_FLAG_TYPE_WAS_ACTIVE.
Referenced by ED_area_prevspace().
|
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 499 of file area.c.
References blender::compositor::area().
Referenced by ED_region_do_draw(), and ED_region_do_layout().
Edge widgets to show hidden panels such as the toolbar and headers.
Definition at line 212 of file area.c.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, BLI_assert, center, 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, pos, KDL::sign(), size(), x2, and y1.
Referenced by region_draw_azone_tab_arrow().
we swap spaces for fullscreen to keep all allocated data area vertices were set
Definition at line 2067 of file area.c.
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_invoke(), area_split(), ED_area_swapspace(), ED_workspace_layout_duplicate(), and screen_data_copy().
Definition at line 2100 of file area.c.
References ScrArea::regionbase, ScrArea::spacedata, ScrArea::spacetype, SWAP, and ScrArea::type.
Referenced by ED_screen_state_toggle(), and screen_state_to_nonnormal().
| void ED_area_do_listen | ( | wmSpaceTypeListenerParams * | params | ) |
| void ED_area_do_mgs_subscribe_for_tool_header | ( | const wmRegionMessageSubscribeParams * | params | ) |
Definition at line 441 of file area.c.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, wmMsgSubscribeValue::owner, params, ARegion::regiontype, RGN_TYPE_TOOL_HEADER, and WM_msg_subscribe_rna_prop.
| void ED_area_do_mgs_subscribe_for_tool_ui | ( | const wmRegionMessageSubscribeParams * | params | ) |
Definition at line 457 of file area.c.
References BLI_assert, ED_region_do_msg_notify_tag_redraw(), WorkSpace::id, LISTBASE_FOREACH, wmMsgSubscribeValue::owner, ARegion::panels, params, PNL_PIN, ARegion::regiontype, RGN_TYPE_UI, STREQ, UI_panel_category_active_get(), UI_panel_is_active(), and WM_msg_subscribe_rna_prop.
| void ED_area_do_msg_notify_tag_refresh | ( | bContext * | UNUSEDC, |
| wmMsgSubscribeKey * | UNUSEDmsg_key, | ||
| wmMsgSubscribeValue * | msg_val | ||
| ) |
Definition at line 430 of file area.c.
References blender::compositor::area(), ED_area_tag_refresh(), and wmMsgSubscribeValue::user_data.
Definition at line 176 of file area.c.
References blender::compositor::area(), and C.
Referenced by wm_event_do_refresh_wm_and_depsgraph(), and wm_handler_fileselect_do().
| int ED_area_footersize | ( | void | ) |
Definition at line 3369 of file area.c.
References ED_area_headersize().
Referenced by region_rect_recursive().
| int ED_area_global_max_size_y | ( | const ScrArea * | area | ) |
Definition at line 3387 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by area_move_set_limits().
| int ED_area_global_min_size_y | ( | const ScrArea * | area | ) |
Definition at line 3382 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by area_move_set_limits().
| int ED_area_global_size_y | ( | const ScrArea * | area | ) |
Definition at line 3377 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by screen_geom_vertices_scale(), and WM_window_screen_rect_calc().
Definition at line 1900 of file area.c.
References Freestyle::a, and area_getorientation().
Referenced by ED_buttons_should_sync_with_outliner().
Definition at line 2540 of file area.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_screen(), bScreen::id, RNA_Area, RNA_pointer_create(), UI_BTYPE_MENU, and uiDefButR().
| int ED_area_headersize | ( | void | ) |
Definition at line 3363 of file area.c.
References HEADER_PADDING_Y, and UI_DPI_FAC.
Referenced by area_move_set_limits(), area_split_init(), 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 | ||
| ) |
Definition at line 1906 of file area.c.
References blender::compositor::area(), area_azone_init(), area_calc_totrct(), AREA_FLAG_ACTIVE_TOOL_UPDATE, AREA_FLAG_REGION_SIZE_UPDATE, BKE_regiontype_from_id_or_first(), BKE_spacetype_from_id(), BKE_workspace_active_screen_get(), ED_area_is_global(), ed_default_handlers(), G, G_TRANSFORM_WM, GLOBAL_AREA_IS_HIDDEN, LISTBASE_FOREACH, NULL, region_azones_add(), region_rect_recursive(), region_subwindow(), SPACE_VIEW3D, UI_blocklist_free(), WM_toolsystem_refresh_screen_area(), WM_TOOLSYSTEM_SPACE_MASK, WM_window_get_active_view_layer(), WM_window_get_active_workspace(), WM_window_rect_calc(), and wmWindow::workspace_hook.
Referenced by clip_refresh(), ED_area_newspace(), ED_area_swapspace(), ED_region_visibility_change_update(), ED_region_visibility_change_update_animated(), ED_screen_refresh(), file_ensure_valid_region_state(), region_blend_end(), and sequencer_refresh().
| bool ED_area_is_global | ( | const ScrArea * | area | ) |
Definition at line 3393 of file area.c.
References blender::compositor::area(), and NULL.
Referenced by area_azone_init(), 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_background_color_id(), region_rect_recursive(), screen_area_edge_from_cursor(), and screen_maximize_area_poll().
| skip_region_exit | Skip calling area exit callback. Set for opening temp spaces. |
Definition at line 2375 of file area.c.
References blender::compositor::area(), BKE_spacetype_from_id(), BLI_addhead(), BLI_freelinkN(), BLI_listbase_clear(), BLI_listbase_is_empty(), BLI_remlink(), C, SpaceType::create, CTX_wm_manager(), 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, NULL, region_align_info_from_area(), region_align_info_to_area(), SpaceLink::regionbase, RGN_TYPE_LEN, scene, SPACE_FLAG_TYPE_TEMPORARY, SPACE_FLAG_TYPE_WAS_ACTIVE, type, WM_event_add_mousemove(), WM_event_add_notifier(), and WM_window_get_active_scene().
Referenced by ED_area_prevspace(), ED_screen_full_newspace(), ED_screen_temp_space_open(), render_view_open(), and WM_window_open().
Definition at line 2515 of file area.c.
References blender::compositor::area(), AREA_FLAG_STACKED_FULLSCREEN, area_get_prevspace(), C, ED_area_newspace(), ED_area_tag_redraw(), SpaceLink::link_flag, NC_SPACE, ND_SPACE_CHANGED, NULL, SPACE_FLAG_TYPE_TEMPORARY, 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 786 of file area.c.
References blender::compositor::area(), ED_buttons_search_string_get(), NULL, ARegion::regiontype, 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 | ||
| ) |
Definition at line 815 of file area.c.
References blender::compositor::area(), BLI_str_rstrip(), BLI_strncpy(), ED_region_tag_redraw(), LISTBASE_FOREACH, MEM_freeN, MEM_mallocN, NULL, RGN_TYPE_HEADER, str, and UI_MAX_DRAW_STR.
Referenced by applyAlign(), applyBakeTime(), applyBevelWeight(), applyBoneEnvelope(), applyBoneRoll(), applyBoneSize(), applyCrease(), applyCurveShrinkFatten(), applyEdgeSlide(), applyGPOpacity(), applyGPShrinkFatten(), applyMaskShrinkFatten(), applyMirror(), applyNormalRotation(), applyPushPull(), applyResize(), applyRotation(), applySeqSlide(), applyShear(), applyShrinkFatten(), applySkinResize(), applyTilt(), applyTimeScale(), applyTimeSlide(), applyTimeTranslate(), applyToSphere(), applyTrackball(), applyTranslation(), applyVertSlide(), Bend(), decimate_draw_status_header(), decimate_exit(), ed_marker_move_exit(), ed_marker_move_update_header(), ED_screen_state_toggle(), edbm_bevel_exit(), edbm_inset_exit(), edbm_inset_update_header(), gpencil_interpolate_exit(), gpencil_interpolate_modal(), gpencil_interpolate_status_indicators(), gpencil_uv_transform_exit(), gpencil_uv_transform_update_header(), interactive_value_exit(), interactive_value_update(), minimize_stretch_exit(), minimize_stretch_iteration(), point_normals_cancel(), point_normals_update_header(), pose_slide_draw_status(), pose_slide_modal(), poselib_preview_apply(), poselib_preview_cleanup(), radial_control_cancel(), radial_control_update_header(), sequencer_slip_modal(), sequencer_slip_update_header(), and viewRedrawPost().
Definition at line 2346 of file area.c.
References BKE_screen_area_free(), C, 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, MEM_freeN, and WM_event_add_mousemove().
Referenced by area_swap_exec(), and area_swap_modal().
| void ED_area_tag_redraw | ( | ScrArea * | area | ) |
Definition at line 745 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by action_listener(), action_refresh(), actkeys_viewall(), area_actionzone_refresh_xy(), area_dupli_invoke(), area_join_modal(), area_move_apply_do(), area_split_apply(), area_split_exit(), area_split_modal(), area_swap_modal(), bookmark_add_exec(), bookmark_cleanup_exec(), bookmark_delete_exec(), bookmark_move_exec(), box_select_exec(), buttons_area_listener(), buttons_area_redraw(), buttons_clear_filter_exec(), clip_listener(), clip_rebuild_proxy_exec(), clip_refresh(), console_clear_exec(), console_clear_line_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), 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_imbuf_sample_exit(), ED_region_visibility_change_update(), ED_screen_restore_temp_type(), ED_view3d_quadview_update(), ED_workspace_layout_duplicate(), ED_workspace_status_text(), file_draw_check_ex(), file_filenum_exec(), file_highlight_invoke(), file_refresh(), file_rename_exec(), file_rename_invoke(), file_select_all_exec(), file_view_selected_exec(), 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(), node_area_listener(), outliner_id_remap(), 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(), reset_recent_exec(), sample_apply(), sample_exit(), 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(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), viewRedrawForce(), WM_window_cursor_keymap_status_refresh(), and WM_window_status_area_tag_redraw().
| void ED_area_tag_redraw_no_rebuild | ( | ScrArea * | area | ) |
Definition at line 754 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw_no_rebuild(), and LISTBASE_FOREACH.
Referenced by area_actionzone_refresh_xy(), and area_move_apply_do().
| void ED_area_tag_redraw_regiontype | ( | ScrArea * | area, |
| int | regiontype | ||
| ) |
Definition at line 763 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by space_view3d_listener().
| void ED_area_tag_refresh | ( | ScrArea * | area | ) |
Definition at line 774 of file area.c.
References blender::compositor::area().
Referenced by action_listener(), bookmark_add_exec(), bookmark_cleanup_exec(), bookmark_delete_exec(), ED_area_do_msg_notify_tag_refresh(), ED_area_newspace(), ED_area_swapspace(), ED_screen_state_toggle(), file_listener(), file_tag_reset_list(), graph_init(), graph_listener(), image_listener(), nla_init(), nla_listener(), node_area_listener(), screen_state_to_nonnormal(), and view3d_main_region_listener().
| void ED_area_update_region_sizes | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| ScrArea * | area | ||
| ) |
Definition at line 1865 of file area.c.
References blender::compositor::area(), area_azone_init(), area_calc_totrct(), AREA_FLAG_REGION_SIZE_UPDATE, ED_area_azones_update(), wmWindow::eventstate, LISTBASE_FOREACH, region_azones_add(), region_rect_recursive(), region_subwindow(), WM_window_get_active_screen(), WM_window_rect_calc(), and wmEvent::x.
Referenced by ED_area_type_hud_ensure(), and wm_draw_window_offscreen().
|
static |
| region | Region, may be NULL when adding handlers for area. |
Definition at line 1677 of file area.c.
References blender::compositor::area(), BLI_assert, wmWindowManager::defaultconf, ED_KEYMAP_ANIMATION, 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(), ARegion::gizmo_map, ARegion::handlers, NULL, ARegionType::regionid, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, ARegion::type, UI_region_handlers_add(), 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_fallback(), 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 NULL otherwise. |
Definition at line 2628 of file area.c.
References BKE_ST_MAXNAME, C, PanelType::children, Panel::children, PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, PanelType::flag, PanelType::idname, INSTANCED_PANEL_UNIQUE_STR_LEN, Panel::labelofs, Panel::layout, LISTBASE_FOREACH, NULL, PANEL_TYPE_HEADER_EXPAND, PANEL_TYPE_LAYOUT_VERT_BAR, PANEL_TYPE_NO_HEADER, uiStyle::panelspace, PanelType::poll, ARegion::regiontype, RGN_TYPE_TOOLS, 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, uiLayoutRow(), and w().
Referenced by ED_region_panels_layout_ex().
| void ED_region_cache_draw_background | ( | ARegion * | region | ) |
Definition at line 3693 of file area.c.
References ED_region_visible_rect(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_DPI_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 3732 of file area.c.
References Freestyle::a, ED_region_visible_rect(), float(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_DPI_FAC, ARegion::winx, x2, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 3707 of file area.c.
References BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), BLI_snprintf(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), pos, TH_CFRAME, TH_TEXT, UI_FontThemeColor(), UI_style_get(), uiFontStyle::uifont_id, uiStyle::widget, x, and y.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 2012 of file area.c.
References blender::compositor::area(), ARegionType::cursor, ARegion::gizmo_map, NULL, ARegion::type, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_cursor_set_from_tool(), and WM_gizmomap_cursor_set().
Referenced by region_cursor_set_ex().
Definition at line 529 of file area.c.
References ARegion::alignment, blender::compositor::area(), 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(), ARegion::do_draw, ARegionType::do_lock, ARegionType::draw, ARegion::drawrct, 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_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), ARegion::headerstr, bScreen::id, imm_draw_box_wire_2d(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4f(), immUniformColor4fv(), immVertexFormat(), wmWindowManager::message_bus, NULL, wmMsgSubscribeValue::owner, pos, ptr, 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(), RNA_Space, scene, SCREENFULL, bScreen::state, TH_EDITOR_OUTLINE, ARegion::type, UI_blocklist_free_inactive(), UI_GetThemeColor3fv(), UI_SetTheme(), UI_ThemeClearColor(), ARegion::uiblocks, ARegion::winrct, WM_msg_subscribe_rna(), WM_msgbus_clear_by_owner(), WM_window_get_active_screen(), wmOrtho2_region_pixelspace(), wmPartialViewport(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by wm_draw_region_test(), and wm_draw_window_offscreen().
Definition at line 505 of file area.c.
References blender::compositor::area(), area_is_pseudo_minimized(), C, CTX_wm_area(), ARegion::do_draw, ARegionType::do_lock, ARegion::flag, ARegionType::layout, ARegionType::regionid, RGN_DRAWING, RGN_FLAG_SEARCH_FILTER_UPDATE, ARegion::type, and UI_SetTheme().
Referenced by wm_draw_window_offscreen().
| void ED_region_do_listen | ( | wmRegionListenerParams * | params | ) |
Definition at line 144 of file area.c.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ARegionType::listener, NC_WINDOW, NC_WM, ND_FILEREAD, params, and ARegion::type.
Referenced by wm_event_do_notifiers().
| void ED_region_do_msg_notify_tag_redraw | ( | bContext * | UNUSEDC, |
| wmMsgSubscribeKey * | UNUSEDmsg_key, | ||
| wmMsgSubscribeValue * | msg_val | ||
| ) |
Definition at line 407 of file area.c.
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 ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), and ED_region_do_draw().
| void ED_region_floating_init | ( | ARegion * | region | ) |
Definition at line 2002 of file area.c.
References ARegion::alignment, BLI_assert, region_subwindow(), region_update_rect(), and RGN_ALIGN_FLOAT.
Referenced by ED_area_type_hud_ensure(), ui_popup_block_refresh(), ui_searchbox_create_generic(), and ui_tooltip_create_with_data().
| int ED_region_global_size_y | ( | void | ) |
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 3432 of file area.c.
References ED_area_headersize().
Referenced by region_rect_recursive().
Definition at line 3538 of file area.c.
References CLAMP, floorf, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_FLAT_COLOR, GPU_SHADER_2D_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(), UI_view2d_view_to_region(), ARegion::v2d, x2, and y1.
Referenced by clip_draw_main(), and draw_image_main().
Definition at line 3351 of file area.c.
References C, ED_region_header_draw(), and ED_region_header_layout().
Definition at line 3334 of file area.c.
References C, region_background_color_id(), region_clear_color(), UI_blocklist_draw(), UI_blocklist_update_window_matrix(), UI_view2d_view_ortho(), UI_view2d_view_restore(), ARegion::uiblocks, and ARegion::v2d.
Referenced by ED_region_header().
| void ED_region_header_init | ( | ARegion * | region | ) |
Definition at line 3358 of file area.c.
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(), image_header_region_init(), info_header_region_init(), nla_header_region_init(), node_header_region_init(), outliner_header_region_init(), script_header_region_init(), sequencer_header_region_init(), spreadsheet_footer_region_init(), 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 3246 of file area.c.
References blender::compositor::area(), AREA_FLAG_REGION_SIZE_UPDATE, C, CTX_wm_area(), ELEM, ARegion::flag, float(), ARegionType::headertypes, Header::layout, LISTBASE_FOREACH, min_ii(), NULL, RGN_FLAG_DYNAMIC_SIZE, ARegion::sizex, SPACE_STATUSBAR, SPACE_TOPBAR, ScrArea::spacetype, Header::type, ARegion::type, UI_block_begin(), UI_block_end(), UI_block_layout(), UI_block_layout_resolve(), UI_DPI_FAC, UI_EMBOSS, UI_HEADER_OFFSET, UI_LAYOUT_HEADER, UI_LAYOUT_HORIZONTAL, UI_style_get_dpi(), UI_UNIT_Y, UI_view2d_totRect_set(), UI_view2d_view_ortho(), UI_view2d_view_restore(), uiItemS(), uiLayoutGetWidth(), uiLayoutSetScaleY(), ARegion::v2d, and ARegion::winy.
Referenced by ED_region_header().
Definition at line 3531 of file area.c.
References IMB_metadata_foreach(), MetadataPanelDrawContext::layout, and metadata_panel_draw_field().
Referenced by metadata_panel_context_draw().
| void ED_region_info_draw | ( | ARegion * | region, |
| const char * | text, | ||
| float | fill_color[4], | ||
| const bool | full_redraw | ||
| ) |
Definition at line 3510 of file area.c.
References ED_region_info_draw_multiline(), and NULL.
Referenced by draw_movieclip_notes(), and draw_render_info().
| void ED_region_info_draw_multiline | ( | ARegion * | region, |
| const char * | text_array[], | ||
| float | fill_color[4], | ||
| const bool | full_redraw | ||
| ) |
Definition at line 3437 of file area.c.
References BLF_clipping(), BLF_CLIPPING, BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), 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_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), min_ii(), pos, TH_TEXT_HI, UI_FontThemeColor(), 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 | ||
| ) |
Definition at line 1259 of file area.c.
References ELEM, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_HUD, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, and USER_REGION_OVERLAP.
Referenced by ED_region_overlap_isect_any_xy(), region_draw_status_text(), region_rect_recursive(), and UI_ThemeGetColorPtr().
| void ED_region_message_subscribe | ( | wmRegionMessageSubscribeParams * | params | ) |
Generate subscriptions for this region.
Definition at line 3760 of file area.c.
References BLI_listbase_is_empty(), C, ARegion::gizmo_map, ARegionType::message_subscribe, NULL, params, ARegion::type, UI_region_message_subscribe(), ARegion::uiblocks, and WM_gizmomap_message_subscribe().
Referenced by ED_region_do_draw().
Definition at line 3083 of file area.c.
References C, ED_region_panels_draw(), and ED_region_panels_layout().
Definition at line 3035 of file area.c.
References ARegion::alignment, C, ARegion_Runtime::category, GPU_line_width(), mask(), NULL, region_clear_color(), ARegionType::regionid, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_RIGHT, RGN_TYPE_PREVIEW, ARegion::runtime, TH_BACK, TH_PREVIEW_BACK, ARegion::type, UI_blocklist_update_window_matrix(), UI_panel_category_draw_all(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_panels_draw(), UI_view2d_mask_from_win(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), ARegion::uiblocks, and ARegion::v2d.
Referenced by ED_region_panels(), and ED_region_panels_ex().
Definition at line 3076 of file area.c.
References C, ED_region_panels_draw(), ED_region_panels_layout_ex(), NULL, ARegionType::paneltypes, and ARegion::type.
| void ED_region_panels_init | ( | wmWindowManager * | wm, |
| ARegion * | region | ||
| ) |
Definition at line 3090 of file area.c.
References wmWindowManager::defaultconf, ARegion::handlers, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_PANELS_UI, 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(), node_buttons_region_init(), node_toolbar_region_init(), sequencer_buttons_region_init(), sequencer_tools_region_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 3030 of file area.c.
References C, ED_region_panels_layout_ex(), NULL, ARegionType::paneltypes, and ARegion::type.
Referenced by ED_region_panels().
| void ED_region_panels_layout_ex | ( | const bContext * | C, |
| ARegion * | region, | ||
| ListBase * | paneltypes, | ||
| 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 2856 of file area.c.
References blender::compositor::area(), AREA_FLAG_REGION_SIZE_UPDATE, BLI_linklist_prepend_alloca, BLI_rctf_size_x(), C, PanelType::category, ARegion_Runtime::category, CTX_wm_area(), CTX_wm_workspace(), View2D::cur, ED_area_region_search_filter_get(), ed_panel_draw(), fabsf, PanelType::flag, Panel::flag, ARegion::flag, INSTANCED_PANEL_UNIQUE_STR_LEN, View2D::keepofs, ListBase::last, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, min_ii(), LinkNode::next, NULL, panel_add_check(), PANEL_TYPE_DRAW_BOX, PANEL_TYPE_INSTANCED, ARegion::panels, PNL_PIN, ARegionType::prefsizex, region_panels_collect_categories(), region_uses_category_tabs(), RGN_FLAG_DYNAMIC_SIZE, ARegion::runtime, View2D::scroll, ARegion::sizex, ARegion::sizey, STREQ, View2D::tot, ARegion::type, UI_DPI_FAC, UI_list_panel_unique_str(), UI_PANEL_BOX_STYLE_MARGIN, 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_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_RIGHT, w(), View2D::winy, x, y, rctf::ymax, and rctf::ymin.
Referenced by ED_region_panels_ex(), and ED_region_panels_layout().
| void ED_region_pixelspace | ( | ARegion * | region | ) |
Definition at line 137 of file area.c.
References GPU_matrix_identity_set(), and wmOrtho2_region_pixelspace().
Referenced by DRW_draw_cursor(), DRW_draw_cursor_2d(), DRW_draw_render_loop_2d_ex(), ED_region_do_draw(), external_draw_scene_do(), 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 3169 of file area.c.
References blender::compositor::area(), 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, NULL, 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(), UI_style_get_dpi(), and ARegion::uiblocks.
Set the temporary update flag for property search.
Definition at line 802 of file area.c.
References blender::compositor::area(), 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.
| bool ED_region_snap_size_apply | ( | ARegion * | region, |
| int | snap_flag | ||
| ) |
Definition at line 3794 of file area.c.
References NULL, ARegion::sizex, ARegion::sizey, ARegionType::snap_size, and ARegion::type.
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
| int ED_region_snap_size_test | ( | const ARegion * | region | ) |
Definition at line 3779 of file area.c.
References NULL, ARegion::sizex, ARegion::sizey, ARegionType::snap_size, and ARegion::type.
| void ED_region_tag_redraw | ( | ARegion * | region | ) |
Definition at line 667 of file area.c.
References ARegion::do_draw, ARegion::drawrct, 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(), annotation_draw_apply_event(), annotation_draw_modal(), axis_set_view(), backimage_fit_exec(), backimage_zoom_exec(), 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_dofunc(), console_main_region_listener(), curve_draw_event_add(), curve_draw_modal(), curvemap_buttons_redraw(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_tools_dofunc(), CurveProfile_buttons_zoom_in(), CurveProfile_buttons_zoom_out(), CurveProfile_presets_dofunc(), CurveProfile_tools_dofunc(), datadropper_id_sample_pt(), datadropper_set_draw_callback_region(), depthdropper_depth_sample_pt(), do_item_rename(), dopesheet_view_all_exec(), drop_color_invoke(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), ED_area_status_text(), ED_area_tag_redraw(), ED_area_tag_redraw_regiontype(), 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_view3d_smooth_view_ex(), edbm_bevel_cancel(), edbm_inset_cancel(), eyedropper_modal(), face_select_all_exec(), face_select_hide_exec(), face_select_reveal_exec(), file_main_region_listener(), file_smoothscroll_invoke(), file_tool_props_region_listener(), file_ui_region_listener(), fly_modal(), gesture_tweak_modal(), gpencil_draw_apply_event(), gpencil_draw_modal(), gpencil_sculpt_brush_invoke(), gpencil_sculpt_brush_modal(), gpencil_transform_fill_cancel(), gpencil_vertexpaint_brush_invoke(), gpencil_vertexpaint_brush_modal(), gpencil_weightpaint_brush_invoke(), gpencil_weightpaint_brush_modal(), grab_clone_apply(), graph_region_listener(), graphkeys_snap_cursor_value_exec(), hide_show_exec(), 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(), knifetool_exit_ex(), knifetool_init(), knifetool_modal(), knifetool_update_mval(), loopcut_finish(), loopcut_modal(), nla_channel_region_listener(), nla_main_region_listener(), nla_region_listener(), node_insert_offset_modal(), node_link_modal(), node_region_listener(), node_resize_modal(), object_transform_axis_target_invoke(), object_transform_axis_target_modal(), outliner_header_region_listener(), outliner_item_do_activate_from_cursor(), outliner_main_region_listener(), outliner_one_level_exec(), outliner_show_hierarchy_exec(), outliner_tag_redraw_avoid_rebuild_on_open_change(), outliner_toggle_expanded_exec(), paint_2d_redraw(), paint_proj_redraw(), paint_proj_stroke(), paint_select_linked_exec(), paint_select_linked_pick_invoke(), paintface_mouse_select(), panel_activate_state(), 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_dirty_mask_exec(), SCULPT_flush_update_done(), SCULPT_flush_update_step(), sculpt_mask_expand_modal(), sculpt_set_pivot_position_exec(), 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(), snode_bg_viewmove_modal(), spreadsheet_header_region_listener(), spreadsheet_main_region_draw(), spreadsheet_main_region_listener(), statusbar_header_region_listener(), stencil_control_modal(), stitch_modal(), text_text_search_exec(), topbar_header_listener(), topbar_main_region_listener(), 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_button(), ui_do_drag(), ui_drag_toggle_set(), ui_handle_list_event(), 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_pie_handler(), ui_popup_block_refresh(), ui_popup_translate(), ui_searchbox_create_generic(), ui_searchbox_select(), ui_searchbox_update(), ui_tooltip_create_with_data(), uv_sculpt_stroke_modal(), vert_select_all_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(), view_all_exec(), view_center_cursor_exec(), view_pan_exec(), view_pan_exit(), view_selected_exec(), view_zoom_apply(), 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(), viewops_data_create(), viewops_data_free(), viewpersportho_exec(), viewroll_apply(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_exec(), voxel_size_edit_invoke(), voxel_size_edit_modal(), vpaint_stroke_update_step(), walk_modal(), weight_paint_set_exec(), WM_gizmo_do_msg_notify_tag_refresh(), and wpaint_stroke_update_step().
| void ED_region_tag_redraw_cursor | ( | ARegion * | region | ) |
Definition at line 679 of file area.c.
References ARegion::do_draw_paintcursor, and RGN_DRAW.
Referenced by view3d_main_region_listener().
| void ED_region_tag_redraw_editor_overlays | ( | struct 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 706 of file area.c.
References ARegion::do_draw, 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(), snap_gizmo_test_select(), 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 686 of file area.c.
References ARegion::do_draw, ARegion::drawrct, 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(), collection_drop_poll(), datastack_drop_poll(), do_outliner_operation_event(), ED_area_tag_redraw_no_rebuild(), ED_screen_set_active_region(), outliner_box_select_exec(), outliner_deactivate(), outliner_highlight_update(), outliner_item_do_activate_from_cursor(), outliner_main_region_listener(), outliner_scroll_page_exec(), outliner_select_all_exec(), outliner_show_active_exec(), outliner_tag_redraw_avoid_rebuild_on_open_change(), parent_drop_poll(), region_rect_recursive(), scroller_activate_apply(), scroller_activate_exit(), scroller_activate_init(), ui_do_but_extra_operator_icons_mousemove(), ui_handle_button_event(), UI_view2d_smooth_view(), UI_view2d_sync(), view2d_smoothview_invoke(), view_pan_apply_ex(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), and wm_region_test_render_do_draw().
Definition at line 718 of file area.c.
References BLI_rcti_union(), ARegion::do_draw, ARegion::drawrct, RGN_DRAW, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
| void ED_region_tag_refresh_ui | ( | ARegion * | region | ) |
Definition at line 695 of file area.c.
References ARegion::do_draw, and RGN_REFRESH_UI.
Referenced by button_activate_exit(), ED_undo_operator_repeat(), ui_block_region_popup_window_listener(), ui_handle_list_event(), UI_popup_block_close(), UI_popup_handlers_remove(), and uilist_resize_update_cb().
Definition at line 2059 of file area.c.
References C, and region_toggle_hidden().
Referenced by 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 1996 of file area.c.
References region_update_rect().
Referenced by ui_popup_block_refresh(), and ui_popup_translate().
Definition at line 2032 of file area.c.
References blender::compositor::area(), C, CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), ARegion::flag, ARegion::handlers, RGN_FLAG_HIDDEN, and WM_event_remove_handlers().
Referenced by ED_drivers_editor_init(), region_toggle_hidden(), and userpref_show_exec().
Definition at line 3682 of file area.c.
References region_visible_rect_calc(), ARegion::runtime, ARegion_Runtime::visible_rect, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by annotation_draw_modal(), change_frame_invoke(), draw_image_cache(), 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(), EEVEE_lookdev_init(), fullscreen_azone_init(), gpencil_draw_modal(), image_main_region_set_view2d(), sequencer_preview_region_draw(), view3d_draw_region_info(), and WIDGETGROUP_navigate_draw_prepare().
Definition at line 3398 of file area.c.
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 3411 of file area.c.
References blender::compositor::area(), bScreen::areabase, ListBase::first, GLOBAL_AREA_IS_HIDDEN, and NULL.
Referenced by ED_screen_areas_iter_first().
| void ED_workspace_status_text | ( | bContext * | C, |
| const char * | str | ||
| ) |
Definition at line 840 of file area.c.
References blender::compositor::area(), ScrAreaMap::areabase, BLI_strncpy(), C, CTX_wm_window(), CTX_wm_workspace(), ED_area_tag_redraw(), wmWindow::global_areas, LISTBASE_FOREACH, MEM_freeN, MEM_mallocN, NULL, SPACE_STATUSBAR, WorkSpace::status_text, str, and UI_MAX_DRAW_STR.
Referenced by add_marker_at_click_invoke(), add_marker_at_click_modal(), annotation_draw_status_indicators(), dyntopo_detail_size_edit_cancel(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), ED_screen_state_toggle(), edbm_bevel_invoke(), edbm_bevel_modal(), edbm_bevel_update_status_text(), eyedropper_gpencil_exit(), eyedropper_gpencil_status_indicators(), face_set_extract_invoke(), face_set_extract_modal(), gpencil_draw_status_indicators(), gpencil_fill_exit(), gpencil_fill_status_indicators(), gpencil_interpolate_exit(), gpencil_interpolate_modal(), gpencil_interpolate_status_indicators(), gpencil_primitive_exit(), gpencil_primitive_interaction_end(), gpencil_primitive_modal(), gpencil_primitive_status_indicators(), gpencil_sculpt_brush_exit(), gpencil_sculpt_brush_header_set(), gpencil_vertexpaint_brush_exit(), gpencil_vertexpaint_brush_header_set(), gpencil_weightpaint_brush_exit(), gpencil_weightpaint_brush_header_set(), knife_update_header(), knifetool_modal(), loopcut_finish(), loopcut_init(), loopcut_modal(), mesh_bisect_invoke(), mesh_bisect_modal(), minimize_stretch_exit(), minimize_stretch_iteration(), node_link_modal(), node_link_update_header(), object_transfer_mode_invoke(), object_transfer_mode_modal(), poselib_preview_apply(), poselib_preview_cleanup(), sample_color_modal(), sample_color_update_header(), sculpt_expand_finish(), sculpt_mask_expand_cancel(), sculpt_mask_expand_invoke(), sculpt_mask_expand_modal(), sculpt_sample_detail_size_invoke(), sculpt_sample_detail_size_modal(), stitch_exit(), stitch_update_header(), voxel_size_edit_cancel(), voxel_size_edit_invoke(), and voxel_size_edit_modal().
Definition at line 1667 of file area.c.
References BLI_rcti_isect_pt(), UI_MARKER_MARGIN_Y, ARegion::winrct, wmEvent::x, wmEvent::y, rcti::ymax, and rcti::ymin.
Referenced by ed_default_handlers().
Definition at line 940 of file area.c.
References AZone::alpha, blender::compositor::area(), 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, 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 3523 of file area.c.
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 2779 of file area.c.
References BKE_workspace_owner_id_check(), C, PanelType::category, PanelType::context, PanelType::draw, LIKELY, NULL, 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 |
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 3104 of file area.c.
References C, PanelType::children, Panel::children, PanelType::draw, PanelType::draw_header, PanelType::draw_header_preset, PanelType::flag, PanelType::idname, Panel::layout, LIKELY, LISTBASE_FOREACH, NULL, 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_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().
|
static |
Definition at line 1175 of file area.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), and size().
Referenced by region_rect_recursive().
|
static |
Definition at line 2134 of file area.c.
References RegionTypeAlignInfo::alignment, blender::compositor::area(), RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, LISTBASE_FOREACH, RGN_ALIGN_ENUM_FROM_MASK, RGN_FLAG_HIDDEN, and RGN_TYPE_LEN.
Referenced by ED_area_newspace(), and region_align_info_to_area().
|
static |
Definition at line 2319 of file area.c.
References blender::compositor::area(), LISTBASE_FOREACH, NULL, region_align_info_from_area(), region_align_info_to_area_for_headers(), RGN_TYPE_HEADER, RGN_TYPE_LEN, 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 2204 of file area.c.
References RegionTypeAlignInfo::alignment, ARegion::alignment, RegionTypeAlignInfo::by_type, RegionTypeAlignInfo::hidden, NULL, 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 2158 of file area.c.
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 969 of file area.c.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, AZONEPAD_EDGE, BLI_rcti_init(), AZone::edge, AZone::rect, 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 1060 of file area.c.
References blender::compositor::area(), 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 1046 of file area.c.
References ELEM, ARegion::flag, ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, RGN_TYPE_HEADER, and RGN_TYPE_TOOL_HEADER.
Referenced by region_azone_edge_init().
|
static |
Definition at line 1085 of file area.c.
References View2D::alpha_vert, blender::compositor::area(), AZ_SCROLL_HOR, AZ_SCROLL_VERT, AZONE_REGION_SCROLL, AZONEFADEIN, BLI_addtail(), BLI_rcti_init(), BLI_rcti_translate(), View2D::hor, MEM_callocN, ARegion::v2d, View2D::vert, ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by region_azones_scrollbars_init().
Definition at line 1001 of file area.c.
References add(), AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, blender::compositor::area(), BLI_rcti_init(), AZone::edge, LISTBASE_FOREACH, AZone::rect, 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 1148 of file area.c.
References ARegion::alignment, blender::compositor::area(), 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 1127 of file area.c.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, blender::compositor::area(), 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 1113 of file area.c.
References blender::compositor::area(), AZ_SCROLL_HOR, AZ_SCROLL_VERT, region_azone_scrollbar_init(), View2D::scroll, ARegion::v2d, V2D_SCROLL_HORIZONTAL, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_VERTICAL, and V2D_SCROLL_VERTICAL_HANDLES.
Referenced by region_azones_add().
|
static |
Definition at line 2571 of file area.c.
References blender::compositor::area(), C, CTX_wm_area(), ED_area_is_global(), ED_screen_area_active(), ARegion::regiontype, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOL_HEADER, TH_BACK, TH_HEADER, TH_HEADERDESEL, and TH_PREVIEW_BACK.
Referenced by ED_region_header_draw().
|
static |
Definition at line 2591 of file area.c.
References ARegion::alignment, C, GPU_clear_color(), ARegion::overlap, RGN_ALIGN_FLOAT, UI_GetThemeColor4fv(), UI_ThemeClearColor(), and UI_view2d_view_restore().
Referenced by ED_region_header_draw(), and ED_region_panels_draw().
Definition at line 270 of file area.c.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, alpha, blender::compositor::area(), 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, AZone::y1, and AZone::y2.
Referenced by region_draw_azones().
Definition at line 312 of file area.c.
References blender::compositor::area(), 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(), ARegion::drawrct, 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, NULL, region_draw_azone_tab_arrow(), RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by ED_region_do_draw().
Definition at line 86 of file area.c.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_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_OUTLINE, UI_GetThemeColor3fv(), ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_do_draw().
Definition at line 357 of file area.c.
References blender::compositor::area(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), BLF_set_default(), BLF_width(), ED_region_is_overlap(), GPU_blend(), GPU_BLEND_ALPHA, GPU_clear_color(), ARegion::headerstr, ARegion::regiontype, TH_BACK, TH_HEADER, TH_TEXT, UI_CNR_ALL, UI_DPI_FAC, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), UI_FontThemeColor(), UI_GetThemeColor3fv(), UI_ThemeClearColor(), UI_UNIT_X, UI_UNIT_Y, width, ARegion::winy, x, x2, y, and y1.
Referenced by ED_region_do_draw().
Definition at line 1188 of file area.c.
References ARegion::alignment, blender::compositor::area(), BLI_assert, BLI_rcti_isect(), BLI_rcti_translate(), ELEM, ARegion::flag, NULL, ARegion::overlap, ARegion::prev, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_FLOAT, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, ARegion::winrct, ARegion::winx, rcti::xmax, and rcti::xmin.
Referenced by region_rect_recursive().
|
static |
Definition at line 2827 of file area.c.
References PanelType::category, LinkNode::next, NULL, 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 1285 of file area.c.
References ARegion::alignment, blender::compositor::area(), 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, HEADERY, ARegionType::layout, max_ii(), ARegion::next, NULL, ARegion_Runtime::offset_x, ARegion_Runtime::offset_y, ARegion::overlap, ARegionType::prefsizex, ARegionType::prefsizey, ARegion::prev, quad, rct_fits(), region_overlap_fix(), 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_PREFSIZE_OR_HIDDEN, RGN_FLAG_SIZE_CLAMP_X, RGN_FLAG_SIZE_CLAMP_Y, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, ARegion::runtime, ARegion::sizex, ARegion::sizey, SPACE_VIEW3D, ARegion::type, UI_DPI_FAC, UI_UNIT_X, UI_UNIT_Y, ARegion_Runtime::visible_rect, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_area_init(), and ED_area_update_region_sizes().
|
static |
Definition at line 1656 of file area.c.
References ARegion::alignment, ARegion::flag, ARegion::prev, RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, RGN_SPLIT_PREV, and ARegion::visible.
Referenced by ED_area_init(), ED_area_update_region_sizes(), and ED_region_floating_init().
Definition at line 2043 of file area.c.
References blender::compositor::area(), 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 1984 of file area.c.
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 2819 of file area.c.
References blender::compositor::area(), ARegion::regiontype, 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 3633 of file area.c.
References abs(), ARegion::alignment, BLI_assert, BLI_rcti_isect(), BLI_rcti_translate(), ELEM, ARegion::next, NULL, 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[] | ||
| ) |