|
Blender V4.3
|
#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "BLI_listbase.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_view2d.hh"#include "BLT_translation.hh"#include "ED_screen.hh"#include "GPU_framebuffer.hh"#include "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | HudRegionData |
Floating Persistent Region
Definition in file interface_region_hud.cc.
| ARegionType * ED_area_type_hud | ( | int | space_type | ) |
Definition at line 220 of file interface_region_hud.cc.
References AREAMINX, ARegionType::draw, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ARegionType::free, HEADERY, hud_panels_register(), hud_region_draw(), hud_region_free(), hud_region_init(), hud_region_layout(), ARegionType::init, ARegionType::keymapflag, ARegionType::layout, ARegionType::lock, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, and RGN_TYPE_HUD.
Referenced by ED_spacetype_action(), ED_spacetype_clip(), ED_spacetype_image(), ED_spacetype_ipo(), ED_spacetype_nla(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
| void ED_area_type_hud_clear | ( | wmWindowManager * | wm, |
| ScrArea * | area_keep ) |
Definition at line 259 of file interface_region_hud.cc.
References ED_area_tag_redraw(), ED_region_tag_redraw(), hud_region_hide(), LISTBASE_FOREACH, RGN_FLAG_HIDDEN, RGN_TYPE_HUD, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by ED_area_type_hud_ensure(), and wm_operator_finished().
Definition at line 279 of file interface_region_hud.cc.
References BKE_area_find_region_type(), BKE_regiontype_from_id(), BLI_assert, CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), ED_area_tag_region_size_update(), ED_area_type_hud_clear(), ED_area_update_region_sizes(), ED_region_floating_init(), ED_region_tag_redraw(), hud_region_add(), hud_region_hide(), hud_region_layout(), init(), last_redo_poll(), HudRegionData::regionid, ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_FLAG_TOO_SMALL, RGN_TYPE_HUD, RGN_TYPE_WINDOW, UI_view2d_scroller_size_get(), ARegion::v2d, x, rctf::xmax, y, and rctf::ymax.
Referenced by wm_operator_finished().
Lookup the region the operation was executed in, and which should be used to redo the operation. The lookup is based on the region type, so it can return a different region when the same region type is present multiple times.
Definition at line 388 of file interface_region_hud.cc.
References BKE_area_find_region_type(), BLI_assert, ARegion::regiondata, HudRegionData::regionid, ARegion::regiontype, and RGN_TYPE_HUD.
Referenced by ED_undo_operator_repeat().
Definition at line 108 of file interface_region_hud.cc.
References col, Panel::layout, wmOperatorType::name, wmOperator::type, uiLayoutColumn(), uiLayoutSetEnabled(), uiTemplateOperatorRedoProperties(), WM_operator_check_ui_enabled(), and WM_operator_last_redo().
Referenced by hud_panels_register().
Definition at line 101 of file interface_region_hud.cc.
References wmOperator::ptr, wmOperator::type, UI_panel_drawname_set(), WM_operator_last_redo(), and WM_operatortype_name().
Referenced by hud_panels_register().
Definition at line 88 of file interface_region_hud.cc.
References BKE_area_find_region_type(), CTX_wm_area(), last_redo_poll(), HudRegionData::regionid, and RGN_TYPE_HUD.
Referenced by hud_panels_register().
|
static |
Definition at line 121 of file interface_region_hud.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::draw, PanelType::draw_header, PanelType::flag, hud_panel_operator_redo_draw(), hud_panel_operator_redo_draw_header(), hud_panel_operator_redo_poll(), PanelType::idname, PanelType::label, N_, PANEL_TYPE_DEFAULT_CLOSED, ARegionType::paneltypes, PanelType::poll, PanelType::region_type, PanelType::space_type, STRNCPY, and PanelType::translation_context.
Referenced by ED_area_type_hud().
Definition at line 241 of file interface_region_hud.cc.
References BKE_area_find_region_type(), BLI_addtail(), BLI_insertlinkbefore(), RGN_ALIGN_FLOAT, RGN_FLAG_DYNAMIC_SIZE, RGN_TYPE_HUD, and RGN_TYPE_WINDOW.
Referenced by ED_area_type_hud_ensure().
Definition at line 205 of file interface_region_hud.cc.
References ED_region_panels_draw(), GPU_clear_color(), RGN_FLAG_HIDDEN, ui_draw_menu_back(), UI_view2d_view_ortho(), wmOrtho2_region_pixelspace(), rcti::xmax, and rcti::ymax.
Referenced by ED_area_type_hud().
|
static |
Definition at line 154 of file interface_region_hud.cc.
References MEM_SAFE_FREE.
Referenced by ED_area_type_hud().
|
static |
Definition at line 74 of file interface_region_hud.cc.
References BLI_rcti_init(), and RGN_FLAG_HIDDEN.
Referenced by ED_area_type_hud_clear(), ED_area_type_hud_ensure(), and hud_region_layout().
|
static |
Definition at line 142 of file interface_region_hud.cc.
References ED_region_panels_init(), RGN_FLAG_TEMP_REGIONDATA, and UI_region_handlers_add().
Referenced by ED_area_type_hud().
Definition at line 159 of file interface_region_hud.cc.
References AREA_FLAG_REGION_SIZE_UPDATE, CLAMP_MAX, CTX_wm_area(), ED_region_panels_layout(), ED_region_tag_redraw(), hud_region_hide(), last_redo_poll(), HudRegionData::regionid, RGN_FLAG_SIZE_CLAMP_X, RGN_FLAG_SIZE_CLAMP_Y, UI_SCALE_FAC, UI_view2d_region_reinit(), UI_view2d_view_restore(), and V2D_COMMONVIEW_LIST.
Referenced by ED_area_type_hud(), and ED_area_type_hud_ensure().
|
static |
Definition at line 47 of file interface_region_hud.cc.
References BKE_area_find_region_type(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_set(), wmOperator::ptr, wmOperator::type, WM_operator_last_redo(), WM_operator_poll(), WM_operator_repeat_check(), and WM_operator_ui_poll().
Referenced by ED_area_type_hud_ensure(), hud_panel_operator_redo_poll(), and hud_region_layout().