Blender
V3.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.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "UI_interface.h"
#include "UI_view2d.h"
#include "BLT_translation.h"
#include "ED_screen.h"
#include "ED_undo.h"
#include "GPU_framebuffer.h"
#include "interface_intern.h"
Go to the source code of this file.
Classes | |
struct | HudRegionData |
Functions | |
Utilities | |
static bool | last_redo_poll (const bContext *C, short region_type) |
static void | hud_region_hide (ARegion *region) |
Redo Panel | |
static bool | hud_panel_operator_redo_poll (const bContext *C, PanelType *UNUSED(pt)) |
static void | hud_panel_operator_redo_draw_header (const bContext *C, Panel *panel) |
static void | hud_panel_operator_redo_draw (const bContext *C, Panel *panel) |
static void | hud_panels_register (ARegionType *art, int space_type, int region_type) |
Callbacks for Floating Region | |
static void | hud_region_init (wmWindowManager *wm, ARegion *region) |
static void | hud_region_free (ARegion *region) |
static void | hud_region_layout (const bContext *C, ARegion *region) |
static void | hud_region_draw (const bContext *C, ARegion *region) |
ARegionType * | ED_area_type_hud (int space_type) |
static ARegion * | hud_region_add (ScrArea *area) |
void | ED_area_type_hud_clear (wmWindowManager *wm, ScrArea *area_keep) |
void | ED_area_type_hud_ensure (bContext *C, ScrArea *area) |
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_clip(), ED_spacetype_image(), ED_spacetype_ipo(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
void ED_area_type_hud_clear | ( | wmWindowManager * | wm, |
ScrArea * | area_keep | ||
) |
Definition at line 267 of file interface_region_hud.cc.
References blender::compositor::area(), bScreen::areabase, 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 287 of file interface_region_hud.cc.
References blender::compositor::area(), AREA_FLAG_REGION_SIZE_UPDATE, BKE_area_find_region_type(), BKE_regiontype_from_id(), BLI_assert, C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), View2D::cur, ED_area_type_hud_clear(), ED_area_update_region_sizes(), ED_region_floating_init(), ED_region_tag_redraw(), ARegion::flag, hud_region_add(), hud_region_hide(), hud_region_layout(), init, last_redo_poll(), View2D::maxzoom, View2D::minzoom, ARegion::regiondata, HudRegionData::regionid, ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_FLAG_TOO_SMALL, RGN_TYPE_HUD, View2D::tot, ARegion::type, ARegion::v2d, ARegion::visible, ARegion::winx, View2D::winx, ARegion::winy, View2D::winy, rctf::xmax, and rctf::ymax.
Referenced by wm_operator_finished().
Definition at line 109 of file interface_region_hud.cc.
References C, 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 103 of file interface_region_hud.cc.
References BLI_strncpy(), C, Panel::drawname, wmOperator::ptr, wmOperator::type, WM_operator_last_redo(), and WM_operatortype_name().
Referenced by hud_panels_register().
Definition at line 90 of file interface_region_hud.cc.
References blender::compositor::area(), BKE_area_find_region_type(), C, CTX_wm_area(), last_redo_poll(), ARegion::regiondata, HudRegionData::regionid, and RGN_TYPE_HUD.
Referenced by hud_panels_register().
|
static |
Definition at line 122 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, and PanelType::translation_context.
Referenced by ED_area_type_hud().
Definition at line 241 of file interface_region_hud.cc.
References ARegion::alignment, blender::compositor::area(), BKE_area_find_region_type(), BLI_addtail(), BLI_insertlinkbefore(), ARegion::flag, ARegion_Runtime::offset_x, ARegion_Runtime::offset_y, ARegion::overlap, ARegion::regiontype, RGN_ALIGN_FLOAT, RGN_FLAG_DYNAMIC_SIZE, RGN_TYPE_HUD, RGN_TYPE_WINDOW, ARegion::runtime, UI_view2d_scroller_size_get(), ARegion::v2d, x, and y.
Referenced by ED_area_type_hud_ensure().
Definition at line 205 of file interface_region_hud.cc.
References C, ED_region_panels_draw(), ARegion::flag, GPU_clear_color(), RGN_FLAG_HIDDEN, ui_draw_menu_back(), UI_view2d_view_ortho(), ARegion::v2d, ARegion::winx, ARegion::winy, wmOrtho2_region_pixelspace(), rcti::xmax, and rcti::ymax.
Referenced by ED_area_type_hud().
Definition at line 155 of file interface_region_hud.cc.
References MEM_SAFE_FREE, and ARegion::regiondata.
Referenced by ED_area_type_hud().
Definition at line 76 of file interface_region_hud.cc.
References BLI_rcti_init(), ARegion::flag, RGN_FLAG_HIDDEN, and ARegion::winrct.
Referenced by ED_area_type_hud_clear(), ED_area_type_hud_ensure(), and hud_region_layout().
|
static |
Definition at line 143 of file interface_region_hud.cc.
References ED_region_panels_init(), ARegion::flag, ARegion::handlers, View2D::maxzoom, View2D::minzoom, RGN_FLAG_TEMP_REGIONDATA, UI_region_handlers_add(), and ARegion::v2d.
Referenced by ED_area_type_hud().
Definition at line 160 of file interface_region_hud.cc.
References blender::compositor::area(), AREA_FLAG_REGION_SIZE_UPDATE, C, CLAMP_MAX, CTX_wm_area(), ED_region_panels_layout(), ED_region_tag_redraw(), ListBase::first, ARegion::flag, hud_region_hide(), last_redo_poll(), ARegion::panels, ARegion::regiondata, HudRegionData::regionid, RGN_FLAG_SIZE_CLAMP_X, RGN_FLAG_SIZE_CLAMP_Y, ARegion::sizex, ARegion::sizey, UI_DPI_FAC, UI_view2d_region_reinit(), UI_view2d_view_restore(), ARegion::v2d, V2D_COMMONVIEW_LIST, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_area_type_hud(), and ED_area_type_hud_ensure().
Definition at line 49 of file interface_region_hud.cc.
References blender::compositor::area(), BKE_area_find_region_type(), C, CTX_wm_area(), CTX_wm_region(), CTX_wm_region_set(), wmOperator::type, WM_operator_check_ui_empty(), WM_operator_last_redo(), WM_operator_poll(), and WM_operator_repeat_check().
Referenced by ED_area_type_hud_ensure(), hud_panel_operator_redo_poll(), and hud_region_layout().