|
Blender V4.3
|
#include "BLI_utildefines.h"#include "DNA_asset_types.h"#include "DNA_defs.h"#include "DNA_listBase.h"#include "DNA_vec_types.h"#include "DNA_view2d_types.h"#include "DNA_ID.h"Go to the source code of this file.
Classes | |
| struct | bScreen |
| struct | ScrVert |
| struct | ScrEdge |
| struct | ScrAreaMap |
| struct | LayoutPanelState |
| struct | Panel |
| struct | PanelCategoryDyn |
| struct | PanelCategoryStack |
| struct | uiListDyn |
| struct | uiList |
| struct | TransformOrientation |
| struct | uiPreview |
| struct | ScrGlobalAreaData |
| struct | ScrArea_Runtime |
| struct | ScrArea |
| struct | ARegion_Runtime |
| struct | ARegion |
| struct | AssetShelfSettings |
| struct | AssetShelf |
| struct | RegionAssetShelf |
| struct | FileHandler |
Macros | |
| #define | AREAMAP_FROM_SCREEN(screen) ((ScrAreaMap *)&(screen)->vertbase) |
| #define | AREAGRID 4 |
| #define | AREAMINX 29 |
| #define | HEADER_PADDING_Y 6 |
| #define | HEADERY (20 + HEADER_PADDING_Y) |
| #define | PNL_CATEGORY_FALLBACK "Misc" |
| #define | UI_LIST_AUTO_SIZE_THRESHOLD 1 |
| #define | UILST_FLT_SORT_MASK (((unsigned int)(UILST_FLT_SORT_REVERSE | UILST_FLT_SORT_LOCK)) - 1) |
| #define | RGN_TYPE_NUM (RGN_TYPE_ASSET_SHELF_HEADER + 1) |
| #define | RGN_TYPE_ANY -1 |
| #define | RGN_TYPE_HAS_CATEGORY_MASK (1 << RGN_TYPE_UI) |
| #define | RGN_TYPE_IS_HEADER_ANY(regiontype) |
| #define | RGN_ALIGN_ENUM_FROM_MASK(align) ((align) & ((1 << 4) - 1)) |
| #define | RGN_ALIGN_FLAG_FROM_MASK(align) ((align) & ~((1 << 4) - 1)) |
Typedefs | |
| typedef struct FileHandlerTypeHandle | FileHandlerTypeHandle |
| typedef struct bScreen | bScreen |
| typedef struct ScrVert | ScrVert |
| typedef struct ScrEdge | ScrEdge |
| typedef struct ScrAreaMap | ScrAreaMap |
| typedef struct LayoutPanelState | LayoutPanelState |
| typedef struct Panel | Panel |
| typedef enum uiPanelDataExpansion | uiPanelDataExpansion |
| typedef struct PanelCategoryDyn | PanelCategoryDyn |
| typedef struct PanelCategoryStack | PanelCategoryStack |
| typedef void(* | uiListFreeRuntimeDataFunc) (struct uiList *ui_list) |
| typedef struct uiListDyn | uiListDyn |
| typedef struct uiList | uiList |
| typedef struct TransformOrientation | TransformOrientation |
| typedef struct uiPreview | uiPreview |
| typedef enum uiPreviewTag | uiPreviewTag |
| typedef struct ScrGlobalAreaData | ScrGlobalAreaData |
| typedef enum GlobalAreaAlign | GlobalAreaAlign |
| typedef struct ScrArea_Runtime | ScrArea_Runtime |
| typedef struct ScrArea | ScrArea |
| typedef struct ARegion_Runtime | ARegion_Runtime |
| typedef struct ARegion | ARegion |
| typedef enum eScreen_Redraws_Flag | eScreen_Redraws_Flag |
| typedef enum eRegion_Type | eRegion_Type |
| typedef struct AssetShelfSettings | AssetShelfSettings |
| typedef struct AssetShelf | AssetShelf |
| typedef struct RegionAssetShelf | RegionAssetShelf |
| typedef enum AssetShelfSettings_DisplayFlag | AssetShelfSettings_DisplayFlag |
| typedef enum AssetShelf_InstanceFlag | AssetShelf_InstanceFlag |
| typedef struct FileHandler | FileHandler |
Functions | |
| ENUM_OPERATORS (AssetShelfSettings_DisplayFlag, ASSETSHELF_SHOW_NAMES) | |
| ENUM_OPERATORS (AssetShelf_InstanceFlag, ASSETSHELF_REGION_IS_HIDDEN) | |
| #define AREAGRID 4 |
Definition at line 574 of file DNA_screen_types.h.
Referenced by area_snap_calc_location().
| #define AREAMAP_FROM_SCREEN | ( | screen | ) | ((ScrAreaMap *)&(screen)->vertbase) |
Definition at line 47 of file DNA_screen_types.h.
Referenced by actionzone_modal(), area_split_invoke(), BKE_screen_blend_read_data(), BKE_screen_find_area_xy(), screen_addarea(), screen_area_edge_from_cursor(), screen_blend_write(), screen_free_data(), screen_geom_edge_add(), screen_geom_find_active_scredge(), and screen_geom_vertex_add().
| #define AREAMINX 29 |
Definition at line 575 of file DNA_screen_types.h.
Referenced by area_docking_target(), area_move_set_limits(), area_split_allowed(), ED_area_type_hud(), ED_spacetype_buttons(), region_rect_recursive(), screen_draw_dock_preview(), and screen_geom_find_area_split_point().
| #define HEADER_PADDING_Y 6 |
Definition at line 576 of file DNA_screen_types.h.
Referenced by button_section_bounds_calc(), and ED_area_headersize().
| #define HEADERY (20 + HEADER_PADDING_Y) |
Definition at line 577 of file DNA_screen_types.h.
Referenced by action_main_region_draw_overlay(), area_docking_target(), dopesheet_region_draw(), draw_timeline_seq_display(), ED_area_type_hud(), ED_spacetype_action(), ED_spacetype_buttons(), ED_spacetype_clip(), ED_spacetype_console(), ED_spacetype_file(), ED_spacetype_image(), ED_spacetype_info(), ED_spacetype_ipo(), ED_spacetype_nla(), ED_spacetype_node(), ED_spacetype_outliner(), ED_spacetype_script(), ED_spacetype_sequencer(), ED_spacetype_statusbar(), ED_spacetype_text(), ED_spacetype_topbar(), ED_spacetype_userpref(), ED_spacetype_view3d(), graph_main_region_draw_overlay(), graph_region_draw(), nla_track_region_draw(), region_rect_recursive(), blender::ed::spreadsheet::register_spacetype(), screen_draw_dock_preview(), and set_v2d_height().
| #define PNL_CATEGORY_FALLBACK "Misc" |
Fallback panel category (only for old scripts which need updating).
Definition at line 625 of file DNA_screen_types.h.
| #define RGN_ALIGN_ENUM_FROM_MASK | ( | align | ) | ((align) & ((1 << 4) - 1)) |
Mask out flags so we can check the alignment.
Definition at line 748 of file DNA_screen_types.h.
Referenced by area_max_regionsize(), ED_region_contains_xy(), ED_region_panel_category_gutter_calc_rect(), ED_region_panels_draw(), ED_screens_region_flip_menu_create(), image_tools_header_region_draw(), panel_region_offset_x_get(), region_align_info_from_area(), region_align_info_to_area_for_headers(), region_azones_add(), region_overlap_fix(), region_rect_recursive(), region_scale_invoke(), region_visible_rect_calc(), statusbar_header_region_init(), topbar_header_region_init(), topbar_main_region_init(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_but_align_opposite_to_area_align_get(), ui_but_drag_init(), ui_handle_panel_category_cycling(), ui_item_menu_hold(), UI_panel_category_draw_all(), view3d_tools_header_region_draw(), and wm_draw_region_blend().
| #define RGN_ALIGN_FLAG_FROM_MASK | ( | align | ) | ((align) & ~((1 << 4) - 1)) |
Definition at line 749 of file DNA_screen_types.h.
Referenced by region_align_info_to_area_for_headers().
| #define RGN_TYPE_ANY -1 |
Use for function args.
Definition at line 711 of file DNA_screen_types.h.
Referenced by annotation_draw_modal(), annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), BKE_area_find_region_xy(), BKE_screen_find_region_xy(), ED_area_find_region_xy_visual(), ED_paint_cursor_start(), eyedropper_get_property_button_under_mouse(), gizmo_find_from_properties(), gizmo_primitive_rna_find_operator(), initTransform(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::paint_stroke_modal(), pyrna_callback_classmethod_add(), radial_control_invoke(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), ui_button_press_invoke(), wm_drags_draw(), wm_dropbox_active(), wm_event_do_handlers_area_regions(), and wm_paintcursor_draw().
| #define RGN_TYPE_HAS_CATEGORY_MASK (1 << RGN_TYPE_UI) |
Region supports panel tabs (categories).
Definition at line 714 of file DNA_screen_types.h.
Referenced by region_uses_category_tabs(), and UI_panel_category_draw_all().
| #define RGN_TYPE_IS_HEADER_ANY | ( | regiontype | ) |
Check for any kind of header region.
Definition at line 717 of file DNA_screen_types.h.
Referenced by region_azone_edge(), blender::ui::template_asset_shelf_popover(), ui_block_func_POPOVER(), ui_block_func_POPUP(), and wm_operator_invoke().
| #define RGN_TYPE_NUM (RGN_TYPE_ASSET_SHELF_HEADER + 1) |
Definition at line 707 of file DNA_screen_types.h.
Referenced by ED_area_newspace(), region_align_info_from_area(), region_align_info_to_area(), and wm_dropbox_invoke().
| #define UI_LIST_AUTO_SIZE_THRESHOLD 1 |
Value (in number of items) we have to go below minimum shown items to enable auto size.
Definition at line 642 of file DNA_screen_types.h.
Referenced by ui_handle_list_event(), ui_list_ensure(), and uilist_prepare().
| #define UILST_FLT_SORT_MASK (((unsigned int)(UILST_FLT_SORT_REVERSE | UILST_FLT_SORT_LOCK)) - 1) |
Definition at line 679 of file DNA_screen_types.h.
Referenced by UI_list_filter_and_sort_items().
| typedef struct ARegion ARegion |
| typedef struct ARegion_Runtime ARegion_Runtime |
| typedef struct AssetShelf AssetShelf |
| typedef enum AssetShelf_InstanceFlag AssetShelf_InstanceFlag |
| AssetShelfSettings::AssetShelfSettings |
Definition at line 32 of file asset_shelf_settings.cc.
| typedef struct bScreen bScreen |
| typedef enum eRegion_Type eRegion_Type |
regiontype, first two are the default set.
| typedef enum eScreen_Redraws_Flag eScreen_Redraws_Flag |
| typedef struct FileHandler FileHandler |
| typedef struct FileHandlerTypeHandle FileHandlerTypeHandle |
Definition at line 42 of file DNA_screen_types.h.
| typedef enum GlobalAreaAlign GlobalAreaAlign |
| typedef struct LayoutPanelState LayoutPanelState |
| typedef struct Panel Panel |
The part from uiBlock that needs saved in file.
| typedef struct PanelCategoryDyn PanelCategoryDyn |
Notes on Panel Categories:
Clicking on a tab moves it to the front of region->panels_category_active, If the context changes so this tab is no longer displayed, then the first-most tab in ARegion.panels_category_active is used.
This way you can change modes and always have the tab you last clicked on.
| typedef struct PanelCategoryStack PanelCategoryStack |
Region stack of active tabs.
| typedef struct RegionAssetShelf RegionAssetShelf |
Region-data for the main asset shelf region (RGN_TYPE_ASSET_SHELF). Managed by the asset shelf internals.
Contains storage for all previously activated asset shelf instances plus info on the currently active one (only one can be active at any time).
| typedef struct ScrArea ScrArea |
| typedef struct ScrArea_Runtime ScrArea_Runtime |
| typedef struct ScrAreaMap ScrAreaMap |
| typedef struct ScrEdge ScrEdge |
| typedef struct ScrGlobalAreaData ScrGlobalAreaData |
| typedef struct ScrVert ScrVert |
| typedef struct TransformOrientation TransformOrientation |
| typedef struct uiList uiList |
| typedef struct uiListDyn uiListDyn |
| typedef void(* uiListFreeRuntimeDataFunc) (struct uiList *ui_list) |
Definition at line 242 of file DNA_screen_types.h.
| typedef enum uiPanelDataExpansion uiPanelDataExpansion |
Used for passing expansion between instanced panel data and the panels themselves. There are 16 defines because the expansion data is typically stored in a short.
| typedef struct uiPreview uiPreview |
Some preview UI data need to be saved in file.
| typedef enum uiPreviewTag uiPreviewTag |
| anonymous enum |
Definition at line 549 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SCREEN_DEPRECATED | |
| SCREEN_COLLAPSE_STATUSBAR | |
Definition at line 580 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SCREENNORMAL | |
| SCREENMAXIMIZED | One editor taking over the screen. |
| SCREENFULL | One editor taking over the screen with no bare-minimum UI elements. |
Definition at line 586 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PNL_SELECT | |
| PNL_UNUSED_1 | |
| PNL_CLOSED | |
| PNL_PIN | |
| PNL_POPOVER | |
| PNL_INSTANCED_LIST_ORDER_CHANGED | The panel has been drag-drop reordered and the instanced panel list needs to be rebuilt. |
Definition at line 612 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UILST_LAYOUT_DEFAULT | |
| UILST_LAYOUT_COMPACT | |
| UILST_LAYOUT_GRID | |
| UILST_LAYOUT_BIG_PREVIEW_GRID | |
Definition at line 628 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UILST_SCROLL_TO_ACTIVE_ITEM | Scroll list to make active item visible. |
Definition at line 636 of file DNA_screen_types.h.
| anonymous enum |
uiList filter flags (dyn_data)
| Enumerator | |
|---|---|
| UILST_FLT_ITEM_NEVER_SHOW | |
| UILST_FLT_ITEM | |
Definition at line 651 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UILST_FLT_SHOW | |
| UILST_FLT_EXCLUDE | |
Definition at line 660 of file DNA_screen_types.h.
| anonymous enum |
Definition at line 666 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| RGN_ALIGN_NONE | |
| RGN_ALIGN_TOP | |
| RGN_ALIGN_BOTTOM | |
| RGN_ALIGN_LEFT | |
| RGN_ALIGN_RIGHT | |
| RGN_ALIGN_HSPLIT | |
| RGN_ALIGN_VSPLIT | |
| RGN_ALIGN_FLOAT | |
| RGN_ALIGN_QSPLIT | |
| RGN_SPLIT_PREV | Region is split into the previous one, they share the same space along a common edge. Includes the RGN_ALIGN_HIDE_WITH_PREV behavior. |
| RGN_SPLIT_SCALE_PREV | Always let scaling this region scale the previous region instead. Useful to let regions appear like they are one (while having independent layout, scrolling, etc.). |
| RGN_ALIGN_HIDE_WITH_PREV | Whenever the previous region is hidden, this region becomes invisible too. RGN_FLAG_HIDDEN should only be set for the previous region, not this. The evaluated visibility respecting this flag can be queried via ARegion.visible |
Definition at line 722 of file DNA_screen_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| RGN_FLAG_HIDDEN | |
| RGN_FLAG_TOO_SMALL | |
| RGN_FLAG_DYNAMIC_SIZE | Enable dynamically changing the region size in the ARegionType::layout() callback. |
| RGN_FLAG_TEMP_REGIONDATA | Region data is NULL'd on read, never written. |
| RGN_FLAG_NO_USER_RESIZE | Region resizing by the user is disabled, but the region edge can still be dragged to hide/unhide the region. |
| RGN_FLAG_SIZE_CLAMP_X | Size has been clamped (floating regions only). |
| RGN_FLAG_SIZE_CLAMP_Y | |
| RGN_FLAG_HIDDEN_BY_USER | When the user sets the region is hidden, needed for floating regions that may be hidden for other reasons. |
| RGN_FLAG_SEARCH_FILTER_ACTIVE | Property search filter is active. |
| RGN_FLAG_SEARCH_FILTER_UPDATE | Update the expansion of the region's panels and switch contexts. Only Set temporarily when the search filter is updated and cleared at the end of the region's layout pass. so that expansion is still interactive, |
| RGN_FLAG_POLL_FAILED | ARegionType.poll() failed for the current context, and the region should be treated as if it wouldn't exist. Runtime only flag. |
| RGN_FLAG_RESIZE_RESPECT_BUTTON_SECTIONS | |
Definition at line 752 of file DNA_screen_types.h.
| anonymous enum |
Definition at line 783 of file DNA_screen_types.h.
Definition at line 882 of file DNA_screen_types.h.
| Enumerator | |
|---|---|
| ASSETSHELF_SHOW_NAMES | |
Definition at line 876 of file DNA_screen_types.h.
| enum eRegion_Type |
regiontype, first two are the default set.
Definition at line 685 of file DNA_screen_types.h.
| enum eScreen_Redraws_Flag |
| Enumerator | |
|---|---|
| TIME_REGION | |
| TIME_ALL_3D_WIN | |
| TIME_ALL_ANIM_WIN | |
| TIME_ALL_BUTS_WIN | |
| TIME_SEQ | |
| TIME_ALL_IMAGE_WIN | |
| TIME_NODES | |
| TIME_CLIPS | |
| TIME_SPREADSHEETS | |
| TIME_FOLLOW | |
Definition at line 595 of file DNA_screen_types.h.
| enum GlobalAreaAlign |
| Enumerator | |
|---|---|
| GLOBAL_AREA_ALIGN_TOP | |
| GLOBAL_AREA_ALIGN_BOTTOM | |
Definition at line 374 of file DNA_screen_types.h.
| enum GlobalAreaFlag |
| Enumerator | |
|---|---|
| GLOBAL_AREA_IS_HIDDEN | |
Definition at line 370 of file DNA_screen_types.h.
| enum LayoutPanelStateFlag |
| Enumerator | |
|---|---|
| LAYOUT_PANEL_STATE_FLAG_OPEN | If set, the panel is currently open. Otherwise it is collapsed. |
Definition at line 141 of file DNA_screen_types.h.
| enum uiPanelDataExpansion |
Used for passing expansion between instanced panel data and the panels themselves. There are 16 defines because the expansion data is typically stored in a short.
Definition at line 192 of file DNA_screen_types.h.
| enum uiPreviewTag |
| Enumerator | |
|---|---|
| UI_PREVIEW_TAG_DIRTY | Preview needs re-rendering, handled in ED_preview_draw(). |
Definition at line 345 of file DNA_screen_types.h.
| ENUM_OPERATORS | ( | AssetShelf_InstanceFlag | , |
| ASSETSHELF_REGION_IS_HIDDEN | ) |
| ENUM_OPERATORS | ( | AssetShelfSettings_DisplayFlag | , |
| ASSETSHELF_SHOW_NAMES | ) |