|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | AZONESPOTW UI_HEADER_OFFSET /* width of corner #AZone - max */ |
| #define | AZONESPOTH (0.6f * U.widget_unit) /* height of corner #AZone */ |
| #define | AZONEFADEIN (5.0f * U.widget_unit) /* when #AZone is totally visible */ |
| #define | AZONEFADEOUT (6.5f * U.widget_unit) /* when we start seeing the #AZone */ |
| #define | AREAJOINTOLERANCE (1.0f * U.widget_unit) /* Edges must be close to allow joining. */ |
| #define | BORDERPADDING (U.dpi_fac + U.pixelsize) |
Variables | |
| const char * | screen_context_dir [] |
| #define AREAJOINTOLERANCE (1.0f * U.widget_unit) /* Edges must be close to allow joining. */ |
Definition at line 37 of file screen_intern.h.
| #define AZONEFADEIN (5.0f * U.widget_unit) /* when #AZone is totally visible */ |
Definition at line 34 of file screen_intern.h.
| #define AZONEFADEOUT (6.5f * U.widget_unit) /* when we start seeing the #AZone */ |
Definition at line 35 of file screen_intern.h.
Definition at line 33 of file screen_intern.h.
| #define AZONESPOTW UI_HEADER_OFFSET /* width of corner #AZone - max */ |
Definition at line 32 of file screen_intern.h.
| #define BORDERPADDING (U.dpi_fac + U.pixelsize) |
Definition at line 40 of file screen_intern.h.
Definition at line 285 of file screen_edit.c.
References abs(), blender::compositor::area(), AREAJOINTOLERANCE, NULL, ScrArea::v1, ScrArea::v2, ScrArea::v3, ScrArea::v4, ScrVert::vec, vec2s::x, and vec2s::y.
Referenced by area_join_modal(), ED_area_has_shared_border(), ED_screen_draw_join_shape(), screen_area_join(), and screen_area_options_invoke().
| ScrArea* area_split | ( | const wmWindow * | win, |
| bScreen * | screen, | ||
| ScrArea * | area, | ||
| char | dir, | ||
| float | fac, | ||
| int | merge | ||
| ) |
Definition at line 107 of file screen_edit.c.
References blender::compositor::area(), BKE_screen_remove_double_scredges(), BKE_screen_remove_double_scrverts(), BKE_screen_remove_unused_scredges(), ED_area_data_copy(), merge(), NULL, screen_addarea(), screen_geom_edge_add(), screen_geom_find_area_split_point(), screen_geom_vertex_add(), blender::io::alembic::split(), and WM_window_rect_calc().
Referenced by area_split_apply().
Definition at line 945 of file screen_ops.c.
References blender::compositor::area(), and area_actionzone_refresh_xy().
Referenced by actionzone_modal(), ED_screen_area_active(), and screen_cursor_set().
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().
| int ed_screen_context | ( | const struct bContext * | C, |
| const char * | member, | ||
| struct bContextDataResult * | result | ||
| ) |
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().
Empty screen, with 1 dummy area without spacedata. Uses window size.
Definition at line 204 of file screen_edit.c.
References BKE_libblock_alloc(), bScreen::do_refresh, ID_SCR, bScreen::redraws_flag, screen_addarea(), screen_geom_edge_add(), screen_geom_vertex_add(), SPACE_EMPTY, TIME_ALL_3D_WIN, TIME_ALL_ANIM_WIN, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_workspace_layout_add().
Definition at line 396 of file screen_edit.c.
References area_getorientation(), BKE_icon_changed(), BKE_screen_remove_double_scrverts(), C, ID::icon_id, bScreen::id, screen_areas_align(), screen_delarea(), screen_geom_edge_add(), ScrArea::v1, ScrArea::v2, ScrArea::v3, and ScrArea::v4.
Referenced by area_join_apply(), and area_split_cancel().
| void screen_change_prepare | ( | bScreen * | screen_old, |
| bScreen * | screen_new, | ||
| Main * | bmain, | ||
| bContext * | C, | ||
| wmWindow * | win | ||
| ) |
Definition at line 985 of file screen_edit.c.
References bScreen::animtimer, blender::compositor::area(), bScreen::areabase, BLI_assert, BLI_findindex(), C, CTX_wm_manager(), ED_screen_exit(), LISTBASE_FOREACH, wmWindow::modalhandlers, NULL, Main::screens, UNUSED_VARS_NDEBUG, WM_event_remove_area_handler(), and WM_event_timer_sleep().
Referenced by ED_screen_change(), and ED_workspace_change().
Definition at line 1013 of file screen_edit.c.
References BKE_screen_view3d_scene_sync(), BKE_workspace_active_get(), BKE_workspace_layout_find(), C, CTX_wm_manager(), CTX_wm_window_set(), ED_screen_refresh(), NC_SCREEN, NC_WINDOW, ND_LAYOUTSET, NULL, scene, WM_event_add_mousemove(), WM_event_add_notifier(), WM_window_get_active_scene(), and wmWindow::workspace_hook.
Referenced by ED_screen_change(), and ED_workspace_change().
Definition at line 226 of file screen_edit.c.
References blender::compositor::area(), bScreen::areabase, BKE_screen_free(), BKE_screen_sort_scrvert(), BLI_duplicatelist(), BLI_listbase_clear(), ED_area_data_copy(), bScreen::edgebase, ListBase::first, bScreen::flag, from, LISTBASE_FOREACH, ScrVert::next, ScrArea::next, NULL, bScreen::regionbase, and bScreen::vertbase.
Referenced by ED_workspace_layout_duplicate().
| int screen_geom_area_height | ( | const ScrArea * | area | ) |
Definition at line 42 of file screen_geometry.c.
References blender::compositor::area().
Referenced by area_move_apply_do(), area_move_set_limits(), draw_horizontal_join_shape(), draw_vertical_join_shape(), screen_geom_find_area_split_point(), and screen_geom_vertices_scale_pass().
| ScrEdge* screen_geom_area_map_find_active_scredge | ( | const struct ScrAreaMap * | area_map, |
| const rcti * | bounds_rect, | ||
| const int | mx, | ||
| const int | my | ||
| ) |
| int screen_geom_area_width | ( | const ScrArea * | area | ) |
Definition at line 46 of file screen_geometry.c.
References blender::compositor::area().
Referenced by area_move_set_limits(), draw_horizontal_join_shape(), draw_vertical_join_shape(), and screen_geom_find_area_split_point().
Definition at line 76 of file screen_geometry.c.
References AREAMAP_FROM_SCREEN, screen_geom_edge_add_ex(), v1, and v2.
Referenced by area_split(), screen_add(), and screen_area_join().
| ScrEdge* screen_geom_edge_add_ex | ( | ScrAreaMap * | area_map, |
| ScrVert * | v1, | ||
| ScrVert * | v2 | ||
| ) |
Definition at line 65 of file screen_geometry.c.
References BKE_screen_sort_scrvert(), BLI_addtail(), ScrAreaMap::edgebase, MEM_callocN, v1, ScrEdge::v1, v2, and ScrEdge::v2.
Referenced by screen_area_create_with_geometry(), and screen_geom_edge_add().
| bool screen_geom_edge_is_horizontal | ( | ScrEdge * | se | ) |
Definition at line 81 of file screen_geometry.c.
References ScrEdge::v1, ScrEdge::v2, ScrVert::vec, and vec2s::y.
Referenced by area_move_init(), area_split_invoke(), screen_area_edge_from_cursor(), screen_cursor_set(), and screen_geom_area_map_find_active_scredge().
| ScrEdge* screen_geom_find_active_scredge | ( | const wmWindow * | win, |
| const bScreen * | screen, | ||
| const int | mx, | ||
| const int | my | ||
| ) |
Definition at line 128 of file screen_geometry.c.
References AREAMAP_FROM_SCREEN, wmWindow::global_areas, screen_geom_area_map_find_active_scredge(), WM_window_rect_calc(), and WM_window_screen_rect_calc().
Referenced by area_move_init(), and screen_cursor_set().
| short screen_geom_find_area_split_point | ( | const ScrArea * | area, |
| const rcti * | window_rect, | ||
| char | dir, | ||
| float | fac | ||
| ) |
Definition at line 305 of file screen_geometry.c.
References blender::compositor::area(), AREAMINX, CLAMP, ED_area_headersize(), round_fl_to_short(), screen_geom_area_height(), screen_geom_area_width(), x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by area_split().
Select all edges that are directly or indirectly connected to edge.
Definition at line 372 of file screen_geometry.c.
References ED_screen_verts_iter, bScreen::edgebase, ScrVert::flag, LISTBASE_FOREACH, ScrEdge::v1, ScrEdge::v2, ScrVert::vec, WM_window_get_active_screen(), and vec2s::x.
Referenced by area_move_init(), and screen_geom_vertices_scale_pass().
Definition at line 60 of file screen_geometry.c.
References AREAMAP_FROM_SCREEN, screen_geom_vertex_add_ex(), x, and y.
Referenced by area_split(), and screen_add().
| ScrVert* screen_geom_vertex_add_ex | ( | ScrAreaMap * | area_map, |
| short | x, | ||
| short | y | ||
| ) |
Definition at line 51 of file screen_geometry.c.
References BLI_addtail(), MEM_callocN, ScrVert::vec, ScrAreaMap::vertbase, x, vec2s::x, y, and vec2s::y.
Referenced by screen_area_create_with_geometry(), and screen_geom_vertex_add().
Main screen-layout calculation function.
Definition at line 255 of file screen_geometry.c.
References blender::compositor::area(), ScrAreaMap::areabase, ED_area_global_size_y(), GLOBAL_AREA_ALIGN_BOTTOM, GLOBAL_AREA_ALIGN_TOP, GLOBAL_AREA_IS_HIDDEN, wmWindow::global_areas, height, LISTBASE_FOREACH, screen_geom_vertices_scale_pass(), WM_window_rect_calc(), WM_window_screen_rect_calc(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_screen_refresh().
Prepare a newly created screen for initializing it as active screen.
Definition at line 275 of file screen_edit.c.
References bScreen::do_draw, bScreen::do_refresh, bScreen::winid, and wmWindow::winid.
| void SCREEN_OT_screenshot | ( | struct wmOperatorType * | ot | ) |
Definition at line 231 of file screendump.c.
References wmOperatorType::cancel, wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), screenshot_cancel(), screenshot_check(), screenshot_draw(), screenshot_exec(), screenshot_invoke(), screenshot_poll(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_screen().
| bool workspace_layout_set_poll | ( | const struct WorkSpaceLayout * | layout | ) |
|
extern |
Definition at line 65 of file screen_context.c.
Referenced by ed_screen_context().