|
Blender V4.3
|
Go to the source code of this file.
Macros | |
| #define | print_rctf_id(rect) print_rctf(STRINGIFY(rect), rect) |
| #define | print_rcti_id(rect) print_rcti(STRINGIFY(rect), rect) |
Functions | |
| bool | BLI_rcti_is_empty (const struct rcti *rect) |
| bool | BLI_rctf_is_empty (const struct rctf *rect) |
| void | BLI_rctf_init (struct rctf *rect, float xmin, float xmax, float ymin, float ymax) |
| void | BLI_rcti_init (struct rcti *rect, int xmin, int xmax, int ymin, int ymax) |
| bool | BLI_rctf_is_valid (const struct rctf *rect) |
| bool | BLI_rcti_is_valid (const struct rcti *rect) |
| void | BLI_rctf_sanitize (struct rctf *rect) |
| void | BLI_rcti_sanitize (struct rcti *rect) |
| void | BLI_rctf_init_pt_radius (struct rctf *rect, const float xy[2], float size) |
| void | BLI_rcti_init_pt_radius (struct rcti *rect, const int xy[2], int size) |
| void | BLI_rcti_init_minmax (struct rcti *rect) |
| void | BLI_rctf_init_minmax (struct rctf *rect) |
| void | BLI_rcti_do_minmax_v (struct rcti *rect, const int xy[2]) |
| void | BLI_rctf_do_minmax_v (struct rctf *rect, const float xy[2]) |
| void | BLI_rcti_do_minmax_rcti (struct rcti *rect, const struct rcti *other) |
| void | BLI_rctf_transform_pt_v (const rctf *dst, const rctf *src, float xy_dst[2], const float xy_src[2]) |
| void | BLI_rctf_transform_calc_m4_pivot_min_ex (const rctf *dst, const rctf *src, float matrix[4][4], uint x, uint y) |
| void | BLI_rctf_transform_calc_m4_pivot_min (const rctf *dst, const rctf *src, float matrix[4][4]) |
| void | BLI_rctf_translate (struct rctf *rect, float x, float y) |
| void | BLI_rcti_translate (struct rcti *rect, int x, int y) |
| void | BLI_rctf_mul (struct rctf *rect, float factor) |
| void | BLI_rcti_mul (struct rcti *rect, int factor) |
| void | BLI_rcti_recenter (struct rcti *rect, int x, int y) |
| void | BLI_rctf_recenter (struct rctf *rect, float x, float y) |
| void | BLI_rcti_resize (struct rcti *rect, int x, int y) |
| void | BLI_rcti_resize_x (struct rcti *rect, int x) |
| void | BLI_rcti_resize_y (struct rcti *rect, int y) |
| void | BLI_rcti_pad (struct rcti *rect, int pad_x, int pad_y) |
| void | BLI_rctf_pad (struct rctf *rect, float pad_x, float pad_y) |
| void | BLI_rctf_resize (struct rctf *rect, float x, float y) |
| void | BLI_rctf_resize_x (struct rctf *rect, float x) |
| void | BLI_rctf_resize_y (struct rctf *rect, float y) |
| void | BLI_rcti_scale (rcti *rect, float scale) |
| void | BLI_rctf_scale (rctf *rect, float scale) |
| void | BLI_rctf_pad_y (struct rctf *rect, float boundary_size, float pad_min, float pad_max) |
| void | BLI_rctf_interp (struct rctf *rect, const struct rctf *rect_a, const struct rctf *rect_b, float fac) |
| bool | BLI_rctf_clamp_pt_v (const struct rctf *rect, float xy[2]) |
| bool | BLI_rcti_clamp_pt_v (const struct rcti *rect, int xy[2]) |
| bool | BLI_rctf_clamp (struct rctf *rect, const struct rctf *rect_bounds, float r_xy[2]) |
| bool | BLI_rcti_clamp (struct rcti *rect, const struct rcti *rect_bounds, int r_xy[2]) |
| bool | BLI_rctf_compare (const struct rctf *rect_a, const struct rctf *rect_b, float limit) |
| bool | BLI_rcti_compare (const struct rcti *rect_a, const struct rcti *rect_b) |
| bool | BLI_rctf_isect (const struct rctf *src1, const struct rctf *src2, struct rctf *dest) |
| bool | BLI_rcti_isect (const struct rcti *src1, const struct rcti *src2, struct rcti *dest) |
| bool | BLI_rctf_isect_rect_x (const struct rctf *src1, const struct rctf *src2, float range_x[2]) |
| bool | BLI_rctf_isect_rect_y (const struct rctf *src1, const struct rctf *src2, float range_y[2]) |
| bool | BLI_rcti_isect_rect_x (const struct rcti *src1, const struct rcti *src2, int range_x[2]) |
| bool | BLI_rcti_isect_rect_y (const struct rcti *src1, const struct rcti *src2, int range_y[2]) |
| bool | BLI_rcti_isect_x (const rcti *rect, int x) |
| bool | BLI_rcti_isect_y (const rcti *rect, int y) |
| bool | BLI_rcti_isect_pt (const struct rcti *rect, int x, int y) |
| bool | BLI_rcti_isect_pt_v (const struct rcti *rect, const int xy[2]) |
| bool | BLI_rctf_isect_x (const rctf *rect, float x) |
| bool | BLI_rctf_isect_y (const rctf *rect, float y) |
| bool | BLI_rctf_isect_pt (const struct rctf *rect, float x, float y) |
| bool | BLI_rctf_isect_pt_v (const struct rctf *rect, const float xy[2]) |
| int | BLI_rcti_length_x (const rcti *rect, int x) |
| int | BLI_rcti_length_y (const rcti *rect, int y) |
| float | BLI_rctf_length_x (const rctf *rect, float x) |
| float | BLI_rctf_length_y (const rctf *rect, float y) |
| bool | BLI_rcti_isect_segment (const struct rcti *rect, const int s1[2], const int s2[2]) |
| bool | BLI_rctf_isect_segment (const struct rctf *rect, const float s1[2], const float s2[2]) |
| bool | BLI_rcti_isect_circle (const struct rcti *rect, const float xy[2], float radius) |
| bool | BLI_rctf_isect_circle (const struct rctf *rect, const float xy[2], float radius) |
| bool | BLI_rcti_inside_rcti (const rcti *rct_a, const rcti *rct_b) |
| bool | BLI_rctf_inside_rctf (const rctf *rct_a, const rctf *rct_b) |
| void | BLI_rcti_union (struct rcti *rct_a, const struct rcti *rct_b) |
| void | BLI_rctf_union (struct rctf *rct_a, const struct rctf *rct_b) |
| void | BLI_rcti_rctf_copy (struct rcti *dst, const struct rctf *src) |
| void | BLI_rctf_rcti_copy (struct rctf *dst, const struct rcti *src) |
| void | BLI_rcti_rctf_copy_floor (struct rcti *dst, const struct rctf *src) |
| void | BLI_rcti_rctf_copy_round (struct rcti *dst, const struct rctf *src) |
| void | BLI_rctf_rotate_expand (rctf *dst, const rctf *src, float angle) |
| void | print_rctf (const char *str, const struct rctf *rect) |
| void | print_rcti (const char *str, const struct rcti *rect) |
| BLI_INLINE float | BLI_rcti_cent_x_fl (const struct rcti *rct) |
| BLI_INLINE float | BLI_rcti_cent_y_fl (const struct rcti *rct) |
| BLI_INLINE int | BLI_rcti_cent_x (const struct rcti *rct) |
| BLI_INLINE int | BLI_rcti_cent_y (const struct rcti *rct) |
| BLI_INLINE float | BLI_rctf_cent_x (const struct rctf *rct) |
| BLI_INLINE float | BLI_rctf_cent_y (const struct rctf *rct) |
| BLI_INLINE int | BLI_rcti_size_x (const struct rcti *rct) |
| BLI_INLINE int | BLI_rcti_size_y (const struct rcti *rct) |
| BLI_INLINE float | BLI_rctf_size_x (const struct rctf *rct) |
| BLI_INLINE float | BLI_rctf_size_y (const struct rctf *rct) |
| #define print_rctf_id | ( | rect | ) | print_rctf(STRINGIFY(rect), rect) |
Definition at line 161 of file BLI_rect.h.
| #define print_rcti_id | ( | rect | ) | print_rcti(STRINGIFY(rect), rect) |
Definition at line 162 of file BLI_rect.h.
| BLI_INLINE float BLI_rctf_cent_x | ( | const struct rctf * | rct | ) |
Definition at line 180 of file BLI_rect.h.
References rctf::xmax, and rctf::xmin.
Referenced by BLI_rctf_recenter(), BLI_rctf_resize(), BLI_rctf_resize_x(), BLI_rctf_rotate_expand(), BLI_rctf_scale(), cage2d_draw_rect_corner_handles(), cage2d_draw_rect_wire(), blender::ed::space_node::do_lasso_select_node(), draw_fcurve_curve_keys(), draw_vectorscope_graticule(), blender::ed::space_node::frame_node_draw_label(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), blender::ed::space_node::node_clipboard_paste_exec(), blender::ed::space_node::reroute_node_draw_label(), sima_zoom_set_from_bounds(), smooth_view_rect_to_fac(), ui_block_func_POPOVER(), ui_but_drag_init(), ui_do_but_SLI(), ui_drag_toggle_set(), ui_mouse_motion_towards_check(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_SLI(), ui_popup_block_position(), UI_tooltip_create_from_button_or_extra_icon(), UI_view2d_center_get(), ui_view2d_curRect_validate_resize(), and view_borderzoom_exec().
| BLI_INLINE float BLI_rctf_cent_y | ( | const struct rctf * | rct | ) |
Definition at line 184 of file BLI_rect.h.
References rctf::ymax, and rctf::ymin.
Referenced by ANIM_channel_draw_widgets(), BLI_rctf_recenter(), BLI_rctf_resize(), BLI_rctf_resize_y(), BLI_rctf_rotate_expand(), BLI_rctf_scale(), cage2d_draw_rect_wire(), createTransActionData(), blender::ed::space_node::do_lasso_select_node(), draw_fcurve_curve_keys(), draw_vectorscope_graticule(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), blender::ed::space_node::node_clipboard_paste_exec(), blender::ed::space_node::node_draw_extra_info_panel_back(), blender::ed::space_node::node_draw_hidden(), seq_view_collection_rect_timeline(), sima_zoom_set_from_bounds(), smooth_view_rect_to_fac(), ui_block_func_POPOVER(), ui_but_drag_init(), ui_drag_toggle_set(), ui_mouse_motion_towards_check(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_SLI(), ui_popup_block_position(), ui_searchbox_region_layout_fn(), UI_tooltip_create_from_button_or_extra_icon(), UI_view2d_center_get(), ui_view2d_curRect_validate_resize(), and view_borderzoom_exec().
Clamp rect within rect_bounds, setting r_xy to the offset.
Keeps the top left corner within the bounds, which for user interface elements is typically where the most important information is.
Referenced by ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCUBE(), and ui_numedit_but_SLI().
Definition at line 514 of file rct.c.
References rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by BKE_maskrasterize_handle_init(), blender::bke::pbvh::uv_islands::primitive_uv_bounds(), and blender::geometry::UVMinimumEnclosingSquareFinder::update().
Definition at line 408 of file rct.c.
References BLI_rctf_sanitize(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BKE_curvemapping_set_defaults(), BKE_curveprofile_set_defaults(), clear_render_border_exec(), blender::ed::space_node::cursor_isect_multi_input_socket(), displayed_channel_range_get(), draw_channel_names(), draw_display_buffer(), draw_movieclip_buffer(), draw_nla_track_list(), drawscredge_area_draw(), ED_region_image_metadata_draw(), eevee_engine_init(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::get_mouse_input_sample(), blender::ed::greasepencil::get_region_bounds(), graph_draw_channel_names(), image_main_region_draw(), label_rect_init(), layer_bucket_init_dummy(), blender::ed::space_node::node_draw_link_end_marker(), blender::ed::outliner::outliner_draw_active_indicator(), playanim_toscreen_ex(), round_box__edges(), sequencer_draw_display_buffer(), sequencer_draw_scopes(), sequencer_image_crop_init(), sequencer_preview_get_rect(), ui_popup_translate(), UI_view2d_edge_pan_init(), UI_view2d_edge_pan_set_limits(), blender::draw::image_engine::OneTexture::update_bounds(), blender::draw::image_engine::ScreenTileTextures< Divisions >::update_bounds(), and widget_draw_submenu_tria().
| void BLI_rctf_init_minmax | ( | struct rctf * | rect | ) |
Definition at line 484 of file rct.c.
References FLT_MAX, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BKE_maskrasterize_handle_init(), blender::ed::greasepencil::get_boundary_bounds(), blender::ed::space_node::node_draw_nodetree(), blender::bke::pbvh::uv_islands::primitive_uv_bounds(), blender::ed::space_node::space_node_view_flag(), ui_block_bounds_calc(), ui_popup_block_position(), and blender::geometry::UVMinimumEnclosingSquareFinder::update().
Definition at line 462 of file rct.c.
References size(), rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by ED_imbuf_sample_draw(), blender::ed::space_node::find_bounds_by_zone_recursive(), blender::ed::greasepencil::get_boundary_bounds(), and blender::ed::space_node::socket_is_occluded().
is rct_b inside rct_a
Definition at line 193 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::do_lasso_select_node(), blender::ed::space_node::node_box_select_exec(), blender::ed::space_node::node_find_exec_fn(), blender::ed::space_node::node_select_same_type_step_exec(), blender::ed::space_node::viewer_linking::position_viewer_node(), blender::ed::space_node::socket_is_occluded(), and ui_view2d_cur_ensure_rect_in_view().
| void BLI_rctf_interp | ( | struct rctf * | rect, |
| const struct rctf * | rect_a, | ||
| const struct rctf * | rect_b, | ||
| float | fac ) |
Referenced by view2d_smoothview_invoke().
| bool BLI_rctf_is_empty | ( | const struct rctf * | rect | ) |
| bool BLI_rctf_is_valid | ( | const struct rctf * | rect | ) |
Check if X-min and Y-min are less than or equal to X-max and Y-max, respectively. If this returns false, BLI_rctf_sanitize() can be called to address this.
This is not a hard constraint or invariant for rectangles, in some cases it may be useful to have max < min. Usually this is what you'd want though.
Referenced by ANIM_frame_channel_y_extents(), calculate_fcurve_bounds_and_unhide(), calculate_fpt_bounds(), calculate_selection_fcurve_bounds(), and view_curve_in_graph_editor_exec().
Referenced by BKE_maskrasterize_handle_init(), blender::ed::space_node::do_lasso_select_node(), blender::ed::space_node::viewer_linking::find_overlapping_node(), blender::ed::space_node::frame_node_draw_background(), blender::ed::space_node::frame_node_draw_overlay(), blender::ed::space_node::gizmo_node_crop_prop_matrix_set(), gizmo_render_border_prop_matrix_set(), blender::ed::space_node::node_box_select_exec(), blender::ed::space_node::node_draw_basis(), sequencer_box_select_exec(), ui_but_contains_rect(), and ui_but_find_rect_over().
Referenced by blender::ed::space_node::node_circleselect_exec().
Referenced by box_select_cb(), blender::ed::space_node::cursor_isect_multi_input_socket(), blender::ed::space_node::find_node_under_cursor(), blender::ed::space_node::node_frame_select_isect_mouse(), blender::ed::space_node::node_get_resize_direction(), blender::ed::space_node::node_set_cursor(), blender::ed::space_node::node_under_mouse_select(), blender::ed::space_node::node_under_mouse_tweak(), retiming_fake_key_frame_clicked(), retiming_mouseover_key_get(), ui_block_find_mouse_over_ex(), ui_but_contains_pt(), ui_but_extra_operator_icon_mouse_over_get(), ui_but_find_mouse_over_ex(), ui_handle_menu_event(), and ui_handle_menus_recursive().
Referenced by blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::add_point_under_brush_to_brush_buffer(), blender::ed::space_node::add_reroute_exec(), BKE_maskrasterize_handle_sample(), box_select_exec(), box_select_exec(), do_lasso_select_lattice__doSelect(), do_lasso_select_mball__doSelectElem(), do_lasso_select_mesh__doSelectFace(), do_lasso_select_mesh__doSelectVert(), do_lasso_select_meshobject__doSelectVert(), do_lattice_box_select__doSelect(), do_mesh_box_select__doSelectFace(), do_mesh_box_select__doSelectVert(), do_nurbs_box_select__doSelect(), do_paintvert_box_select__doSelectVert(), edge_fully_inside_rect(), get_strip_handle_under_cursor(), gizmo_cage2d_test_select(), is_mouse_over_retiming_key(), keyframe_region_circle_test(), keyframe_region_lasso_test(), layer_bucket_index_from_xy(), line_clip_rect2f(), mouseover_strips_sorted_get(), blender::ed::space_node::node_find_frame_to_attach(), ok_bezier_region(), project_bucket_clip_face(), project_bucket_face_isect(), project_bucket_isect_circle(), and uv_box_select_exec().
Referenced by ui_handler_region_menu().
Referenced by ui_handler_region_menu().
Referenced by do_lasso_select_pose__do_tag(), blender::ed::space_node::node_insert_on_link_flags_set(), ui_drag_toggle_set_xy_xy(), ui_multibut_states_tag(), ui_panel_drag_collapse(), UI_view2d_view_to_region_segment_clip(), uv_box_select_exec(), and view3d_project_segment_to_screen_with_content_clip_planes().
Definition at line 93 of file rct.c.
References x, and rctf::xmax.
Referenced by ed_marker_box_select_exec(), ED_region_overlap_isect_x(), blender::ed::space_node::node_link_insert_offset_ntree(), and retime_key_draw().
Definition at line 104 of file rct.c.
References y, and rctf::ymax.
Referenced by ED_region_overlap_isect_y(), blender::ui::AbstractTreeView::find_hovered(), and blender::ed::space_node::node_link_insert_offset_ntree().
Definition at line 171 of file rct.c.
References x, rctf::xmax, and rctf::xmin.
Referenced by blender::ed::space_node::node_link_dim_factor(), and strip_to_frame_distance().
Definition at line 182 of file rct.c.
References y, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_link_dim_factor().
Definition at line 582 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BKE_camera_params_compute_viewplane(), and vfont_to_curve().
Definition at line 631 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::find_bounds_by_zone_recursive(), blender::ed::space_node::node_circleselect_exec(), blender::ed::space_node::node_draw_extra_info_panel_back(), blender::ed::space_node::node_frame_rect_inside(), blender::ed::space_node::viewer_linking::position_viewer_node(), screen_draw_move_highlight(), seq_view_collection_rect_preview(), strip_clickable_areas_get(), UI_but_ensure_in_view(), and widget_softshadow().
Definition at line 683 of file rct.c.
References BLI_assert, BLI_rctf_size_y(), rctf::ymax, and rctf::ymin.
Referenced by add_region_padding(), graphkeys_viewall(), and SEQ_add_timeline_region_padding().
Referenced by actkeys_lassoselect_exec(), blender::ed::space_node::do_lasso_select_node(), draw_tile_background(), find_file_mouse_rect(), graphkeys_box_select_exec(), graphkeys_lassoselect_exec(), round_box__edges(), screen_draw_dock_preview(), screen_draw_split_preview(), ui_but_find_rect_over(), ui_draw_but_HSV_v(), ui_draw_but_HSVCUBE(), ui_draw_button_sections_background(), ui_draw_layout_panels_backdrop(), UI_view2d_view_to_region_m4(), view3d_userdata_boxselect_init(), view3d_userdata_lassoselect_init(), widget_softshadow(), and WM_operator_properties_border_to_rctf().
Definition at line 596 of file rct.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), and BLI_rctf_translate().
Referenced by blender::ed::space_node::gizmo_node_crop_prop_matrix_set(), gizmo_render_border_prop_matrix_set(), ui_pie_handler(), ui_popup_block_refresh(), and UI_view2d_center_set().
Definition at line 651 of file rct.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::gizmo_node_crop_prop_matrix_set(), gizmo_render_border_prop_matrix_set(), sequencer_view_zoom_ratio_exec(), and blender::ed::space_node::space_node_view_flag().
Definition at line 639 of file rct.c.
References BLI_rctf_cent_x(), x, rctf::xmax, and rctf::xmin.
Referenced by sequencer_draw_scopes().
Definition at line 645 of file rct.c.
References BLI_rctf_cent_y(), y, rctf::ymax, and rctf::ymin.
Referenced by graphkeys_viewall(), and sequencer_draw_scopes().
Expand the rectangle to fit a rotated src.
Definition at line 1099 of file rct.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), cosf, fabsf, MAX2, ROTATE_SINCOS, sinf, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
| void BLI_rctf_sanitize | ( | struct rctf * | rect | ) |
Ensure X-min and Y-min are less than or equal to X-max and Y-max, respectively.
Definition at line 438 of file rct.c.
References BLI_assert, BLI_rctf_is_valid(), SWAP, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BLI_rctf_init().
Definition at line 671 of file rct.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by add_region_padding(), image_view_selected_exec(), seq_view_collection_rect_preview(), blender::ed::space_node::space_node_view_flag(), and widget_draw_submenu_tria().
| BLI_INLINE float BLI_rctf_size_x | ( | const struct rctf * | rct | ) |
Definition at line 197 of file BLI_rect.h.
References rctf::xmax, and rctf::xmin.
Referenced by actkeys_viewall(), ANIM_center_frame(), ANIM_frame_range_view2d_add_xmargin(), annotation_stroke_convertcoords(), areas_do_frame_follow(), BKE_camera_params_crop_viewplane(), BKE_curvemapping_changed(), BKE_curveprofile_update(), BLI_rctf_scale(), BLI_rctf_transform_calc_m4_pivot_min_ex(), BLI_rcti_rctf_copy(), button_activate_init(), calculate_pixel_distance(), calculate_pixels_per_unit(), calculateZfac(), camera_frame_fit_calc_from_data(), clipx_rctf(), colorband_buttons_layout(), convertViewVec2D(), convertViewVec2D_mask(), createTransActionData(), curve_profile_can_zoom_in(), curve_profile_can_zoom_out(), curve_profile_zoom_in(), curve_profile_zoom_out(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_can_zoom_in(), curvemap_can_zoom_out(), dopesheet_view_all_exec(), draw_anti_tria_rect(), draw_channel_labels(), draw_emboss(), draw_fcurve_active_vertex(), draw_fcurve_curve_keys(), draw_fcurve_modifier_controls_envelope(), draw_icon_centered(), draw_nla_main_data(), draw_seq_in_view(), draw_seq_waveform_overlay(), draw_vectorscope_graticule(), drawLine(), drawSnapping(), drawWalkPixel(), ED_clip_graph_center_current_frame(), ED_fileselect_init_layout(), ED_fileselect_layout_numfiles(), ed_marker_move_modal(), ED_mask_draw_region(), ED_region_panels_layout_ex(), ED_space_clip_get_zoom(), ED_space_image_get_zoom(), ED_view3d_calc_camera_border_size(), ED_view3d_calc_render_border(), ED_view3d_update_viewmat(), edge_pan_speed(), eevee_engine_init(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), find_nearest_seq(), blender::ed::space_node::frame_node_draw_label(), blender::geometry::get_aspect_scaled_area(), blender::geometry::get_aspect_scaled_extent(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), gpencil_point_to_xy(), icon_draw_rect_input(), icon_draw_rect_input_text(), blender::draw::image_engine::SpaceImageAccessor::init_ss_to_texture_matrix(), initFlyInfo(), layer_bucket_init(), nlaedit_viewall(), blender::ed::space_node::node_circleselect_exec(), blender::ed::space_node::node_draw_extra_info_panel(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::node_draw_zones_and_frames(), blender::ed::space_node::node_link_dim_factor(), blender::ed::space_node::viewer_linking::position_viewer_node(), print_rctf(), RE_GetWindowMatrixWithOverscan(), region_scale_modal(), render_border_exec(), blender::geometry::rotate_inside_square(), screen_animation_region_tag_redraw(), scroller_activate_init(), seq_view_collection_rect_preview(), sequencer_box_select_exec(), sequencer_draw_scopes(), sequencer_preview_get_rect(), sima_zoom_set_from_bounds(), smooth_view_rect_to_fac(), blender::ed::space_node::snode_setup_v2d(), blender::ed::space_node::space_node_view_flag(), square_rctf(), blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), TargetSnapOffset(), timeline_draw_context_get(), ui_block_align_but_to_region(), ui_block_bounds_calc(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_popup(), ui_block_bounds_calc_text(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_but_can_align(), ui_but_update_ex(), ui_do_but_COLORBAND(), ui_do_but_GRIP(), ui_do_but_SCROLL(), ui_do_but_SLI(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_item_size(), ui_numedit_but_COLORBAND(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_numedit_but_SLI(), ui_numedit_but_TRACKPREVIEW(), ui_numedit_but_UNITVEC(), ui_numedit_set_active(), ui_pie_handler(), ui_popup_block_position(), ui_popup_block_refresh(), UI_region_button_sections_draw(), ui_searchbox_region_layout_fn(), ui_view2d_cur_ensure_rect_in_view(), ui_view2d_curRect_validate_resize(), UI_view2d_dot_grid_draw(), UI_view2d_edge_pan_init(), UI_view2d_offset(), UI_view2d_region_to_view_rctf(), UI_view2d_region_to_view_x(), UI_view2d_scale_get_inverse(), UI_view2d_scale_get_x(), UI_view2d_view_ortho(), UI_view2d_view_to_region(), UI_view2d_view_to_region_clip(), UI_view2d_view_to_region_fl(), UI_view2d_view_to_region_rcti(), UI_view2d_view_to_region_rcti_clip(), UI_view2d_view_to_region_segment_clip(), UI_view2d_view_to_region_x(), view2d_major_step_x__continuous(), view2d_major_step_x__discrete(), view2d_major_step_x__time(), view2d_map_cur_using_mask(), view2d_masks(), view2d_scrollers_calc(), view3d_camera_border(), view3d_winmatrix_set(), view_all_exec(), view_borderzoom_exec(), view_ghost_border_exec(), view_pan_init(), view_zoomdrag_apply(), view_zoomdrag_invoke(), view_zoomdrag_modal(), view_zoomstep_apply_ex(), and WIDGETGROUP_camera_view_draw_prepare().
| BLI_INLINE float BLI_rctf_size_y | ( | const struct rctf * | rct | ) |
Definition at line 201 of file BLI_rect.h.
References rctf::ymax, and rctf::ymin.
Referenced by ANIM_channel_draw_widgets(), annotation_stroke_convertcoords(), BKE_camera_params_crop_viewplane(), BKE_curvemapping_changed(), BKE_curveprofile_update(), BLI_rctf_pad_y(), BLI_rctf_scale(), BLI_rctf_transform_calc_m4_pivot_min_ex(), BLI_rcti_rctf_copy(), button_activate_init(), calculate_pixel_distance(), calculate_pixels_per_unit(), camera_frame_fit_calc_from_data(), blender::ui::TreeViewItemDropTarget::choose_drop_location(), clipy_rctf(), console_main_region_init(), convertViewVec2D(), convertViewVec2D_mask(), createTransActionData(), blender::ed::asset::shelf::current_tile_draw_height(), curve_profile_zoom_in(), curve_profile_zoom_out(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), draw_anti_tria_rect(), draw_channel_labels(), draw_emboss(), draw_icon_centered(), draw_seq_in_view(), draw_vectorscope_graticule(), drawLine(), drawWalkPixel(), ED_fileselect_init_layout(), ED_fileselect_layout_numfiles(), ED_mask_draw_region(), ED_region_generic_tools_region_snap_size(), ED_space_clip_get_zoom(), ED_space_image_get_zoom(), ED_view3d_calc_camera_border_size(), ED_view3d_calc_render_border(), ED_view3d_update_viewmat(), eevee_engine_init(), blender::geometry::get_aspect_scaled_area(), blender::geometry::get_aspect_scaled_extent(), get_normalized_fcurve_bounds(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), gpencil_point_to_xy(), graphkeys_viewall(), icon_draw_rect_input_text(), blender::draw::image_engine::SpaceImageAccessor::init_ss_to_texture_matrix(), initFlyInfo(), layer_bucket_init(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::viewer_linking::position_viewer_node(), print_rctf(), RE_GetWindowMatrixWithOverscan(), render_border_exec(), blender::geometry::rotate_inside_square(), scroller_activate_init(), seq_view_collection_rect_preview(), seq_view_collection_rect_timeline(), sequencer_draw_scopes(), sequencer_main_clamp_view(), sequencer_preview_get_rect(), sima_zoom_set_from_bounds(), smooth_view_rect_to_fac(), blender::ed::space_node::space_node_view_flag(), square_rctf(), blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), TargetSnapOffset(), timeline_draw_context_get(), ui_block_align_but_to_region(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_popup(), ui_but_can_align(), ui_but_extra_operator_icon_mouse_over_get(), ui_do_but_GRIP(), ui_do_but_SCROLL(), ui_do_drag(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_dropshadow(), ui_item_size(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_numedit_but_SLI(), ui_numedit_but_TRACKPREVIEW(), ui_numedit_set_active(), ui_pie_handler(), ui_popup_block_position(), ui_popup_block_refresh(), ui_searchbox_region_layout_fn(), UI_tooltip_create_from_button_or_extra_icon(), ui_view2d_cur_ensure_rect_in_view(), UI_view2d_curRect_clamp_y(), ui_view2d_curRect_validate_resize(), UI_view2d_edge_pan_init(), UI_view2d_offset(), UI_view2d_offset_y_snap_to_closest_page(), UI_view2d_region_to_view_rctf(), UI_view2d_region_to_view_y(), UI_view2d_scale_get_inverse(), UI_view2d_scale_get_y(), UI_view2d_view_ortho(), UI_view2d_view_to_region(), UI_view2d_view_to_region_clip(), UI_view2d_view_to_region_fl(), UI_view2d_view_to_region_rcti(), UI_view2d_view_to_region_rcti_clip(), UI_view2d_view_to_region_segment_clip(), UI_view2d_view_to_region_y(), view2d_major_step_y__continuous(), view2d_map_cur_using_mask(), view2d_masks(), view2d_scrollers_calc(), view3d_camera_border(), view3d_winmatrix_set(), view_all_exec(), view_borderzoom_exec(), view_ghost_border_exec(), view_pan_init(), view_zoomdrag_apply(), view_zoomdrag_invoke(), view_zoomdrag_modal(), view_zoomstep_apply_ex(), and WIDGETGROUP_camera_view_draw_prepare().
| void BLI_rctf_transform_calc_m4_pivot_min | ( | const rctf * | dst, |
| const rctf * | src, | ||
| float | matrix[4][4] ) |
Definition at line 555 of file rct.c.
References BLI_rctf_transform_calc_m4_pivot_min_ex().
Referenced by drw_manager_init(), DRW_text_cache_draw(), and UI_view2d_view_to_region_m4().
| void BLI_rctf_transform_calc_m4_pivot_min_ex | ( | const rctf * | dst, |
| const rctf * | src, | ||
| float | matrix[4][4], | ||
| uint | x, | ||
| uint | y ) |
Calculate a 4x4 matrix representing the transformation between two rectangles.
Definition at line 542 of file rct.c.
References BLI_assert, BLI_rctf_size_x(), BLI_rctf_size_y(), unit_m4(), x, rctf::xmin, y, and rctf::ymin.
Referenced by BLI_rctf_transform_calc_m4_pivot_min().
| void BLI_rctf_transform_pt_v | ( | const rctf * | dst, |
| const rctf * | src, | ||
| float | xy_dst[2], | ||
| const float | xy_src[2] ) |
Given 2 rectangles, transform a point from one to another.
Definition at line 530 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::transform::flushTransNodes(), keyframe_region_circle_test(), keyframe_region_lasso_test(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), view2d_edge_pan_loc_compensate(), and view_zoom_to_window_xy_camera().
Definition at line 567 of file rct.c.
References x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by BLI_rctf_recenter(), blender::ed::outliner::outliner_restore_scrolling_position(), UI_block_translate(), ui_popup_block_position(), ui_popup_translate(), ui_searchbox_region_layout_fn(), ui_update_flexible_spacing(), UI_view2d_view_ortho(), and view_zoom_to_window_xy_camera().
Referenced by ANIM_frame_channel_y_extents(), BKE_maskrasterize_handle_init(), calculate_fcurve_bounds_and_unhide(), calculate_selection_fcurve_bounds(), blender::ed::space_node::frame_node_prepare_for_draw(), blender::ed::greasepencil::get_boundary_bounds(), graphkeys_view_selected_channels_exec(), blender::ed::space_node::node_draw_nodetree(), scroller_activate_init(), blender::ed::space_node::space_node_view_flag(), strip_clickable_area_get(), ui_block_bounds_calc(), ui_popup_block_position(), and view_curve_in_graph_editor_exec().
| BLI_INLINE int BLI_rcti_cent_x | ( | const struct rcti * | rct | ) |
Definition at line 172 of file BLI_rect.h.
References rcti::xmax, and rcti::xmin.
Referenced by BLI_rcti_recenter(), BLI_rcti_resize(), BLI_rcti_resize_x(), BLI_rcti_scale(), calctrackballvec(), ED_image_draw_info(), ED_screen_draw_edges(), ViewOpsData::init_navigation(), blender::ed::space_node::node_socket_draw(), region_rect_recursive(), render_result_new(), text_scroll_bar_invoke(), ui_draw_clip_tri(), ui_draw_popover_back_impl(), ui_draw_separator(), ui_tooltip_create_with_data(), viewroll_invoke(), viewzoom_scale_value(), widget_draw_icon_centered(), and widget_nodesocket().
| BLI_INLINE float BLI_rcti_cent_x_fl | ( | const struct rcti * | rct | ) |
Definition at line 164 of file BLI_rect.h.
References rcti::xmax, and rcti::xmin.
Referenced by ui_draw_but_HSVCIRCLE(), ui_hsvcircle_pos_from_vals(), and ui_hsvcircle_vals_from_pos().
| BLI_INLINE int BLI_rcti_cent_y | ( | const struct rcti * | rct | ) |
Definition at line 176 of file BLI_rect.h.
References rcti::ymax, and rcti::ymin.
Referenced by BLI_rcti_recenter(), BLI_rcti_resize(), BLI_rcti_resize_y(), BLI_rcti_scale(), calctrackballvec(), draw_current_frame(), ED_image_draw_info(), ED_screen_draw_edges(), get_centered_text_y(), ViewOpsData::init_navigation(), blender::ed::space_node::node_socket_draw(), region_rect_recursive(), render_result_new(), text_scroll_bar_invoke(), ui_draw_separator(), ui_tooltip_create_with_data(), viewroll_invoke(), viewzoom_scale_value(), widget_draw_icon_centered(), and widget_nodesocket().
| BLI_INLINE float BLI_rcti_cent_y_fl | ( | const struct rcti * | rct | ) |
Definition at line 168 of file BLI_rect.h.
References rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but_HSVCIRCLE(), ui_hsvcircle_pos_from_vals(), and ui_hsvcircle_vals_from_pos().
Referenced by ui_block_bounds_calc_popup(), and ui_tooltip_create_with_data().
Definition at line 490 of file rct.c.
References rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Referenced by ED_screen_draw_edges(), blender::bke::pbvh::pixels::get_bounds(), blender::ed::greasepencil::trim::get_intersections_of_curve_with_curves(), blender::bke::pbvh::pixels::UDIMTilePixels::mark_dirty(), paint_convert_bb_to_rect(), and blender::bke::pbvh::pixels::NodeData::rebuild_undo_regions().
Definition at line 418 of file rct.c.
References BLI_rcti_sanitize(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::compositor::BuffersIteratorBuilder< T >::add_input(), area_azone_init(), blender::bke::image::partial_update::BKE_image_partial_update_collect_changes(), BKE_image_update_gputexture_delayed(), blender::compositor::BufferArea< T >::BufferArea(), blender::bke::pbvh::pixels::clamp(), blender::compositor::ViewerOperation::clear_display_buffer(), blender::compositor::compute_bloom_downsample_chain(), blender::compositor::compute_symmetric_separable_blur_weights(), blender::compositor::ConstantFolder::ConstantFolder(), blender::compositor::create_rect(), blender::compositor::tests::create_rect(), blender::compositor::tests::create_rect(), blender::compositor::BaseImageOperation::determine_canvas(), blender::compositor::BokehImageOperation::determine_canvas(), blender::compositor::CompositorOperation::determine_canvas(), blender::compositor::MovieClipBaseOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::RenderLayersProg::determine_canvas(), blender::ed::space_node::draw_nodespace_back_pix(), blender::ed::spreadsheet::draw_spreadsheet_in_region(), DRW_render_gpencil(), DRW_render_to_image(), ED_image_draw_info(), ED_imapaint_dirty_region(), eevee_engine_init(), blender::compositor::ExecutionSystem::execute_work(), file_tile_boundbox(), blender::bke::pbvh::pixels::Rows::find_copy_source(), find_file_mouse_rect(), blender::bke::pbvh::pixels::Rows::find_second_source(), fullscreen_azone_init(), fullscreen_click_rcti_init(), graph_main_region_draw_overlay(), graph_region_draw(), hud_region_hide(), image_gpu_texture_partial_update_changes_available(), image_paint_partial_redraw_expand(), IMB_display_buffer_acquire(), IMB_float_from_rect(), IMB_partial_display_buffer_update_delayed(), blender::eevee::Film::init(), ViewportColorSampleSession::init(), blender::compositor::MemoryBuffer::MemoryBuffer(), RE_GetViewPlane(), region_azone_edge(), region_azone_tab_plus(), region_draw_azones(), region_rect_recursive(), region_update_rect(), screen_global_statusbar_area_refresh(), screen_global_topbar_area_refresh(), blender::compositor::tests::BuffersIteratorTest::SetUpTestCase(), blender::compositor::step_update_memory_buffer(), blender::compositor::symmetric_separable_blur_variable_size(), blender::eevee::Camera::sync(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::ed::sculpt_paint::greasepencil::trim_stroke_ends(), blender::draw::image_engine::OneTexture::update_bounds(), blender::compositor::PreviewOperation::update_memory_buffer_partial(), and WM_window_rect_calc().
| void BLI_rcti_init_minmax | ( | struct rcti * | rect | ) |
Definition at line 478 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by button_section_bounds_calc(), blender::bke::pbvh::pixels::UDIMTilePixels::clear_dirty(), ED_imapaint_clear_partial_redraw(), ED_screen_draw_edges(), blender::bke::pbvh::pixels::get_bounds(), blender::ed::greasepencil::trim::get_intersections_of_curve_with_curves(), paint_convert_bb_to_rect(), partial_redraw_single_init(), blender::bke::pbvh::pixels::NodeData::rebuild_undo_regions(), blender::bke::pbvh::pixels::UDIMTilePixels::UDIMTilePixels(), and ViewLink::views_bounds_calc().
Definition at line 470 of file rct.c.
References size(), rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Referenced by DRW_select_buffer_find_nearest_to_point(), ed_armature_pick_bone_impl(), ed_mball_findnearest_metaelem(), ED_region_contains_xy(), get_nearest_editbonepoint(), gizmo_find_intersected_3d_intern(), mixed_bones_object_selectbuffer(), view3d_opengl_select_ex(), and view_autodist_depth_margin().
Definition at line 198 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::compositor::BuffersIteratorBuilder< T >::add_input(), blf_glyph_draw(), blender::compositor::BuffersIteratorBuilder< T >::BuffersIteratorBuilder(), blender::compositor::SharedOperationBuffers::is_area_registered(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), and ui_tooltip_create_with_data().
| bool BLI_rcti_is_empty | ( | const struct rcti * | rect | ) |
Determine if a rect is empty. An empty rect is one with a zero (or negative) width or height.
Referenced by blender::compositor::NodeOperationInput::determine_canvas(), blender::compositor::NodeOperationOutput::determine_canvas(), blender::compositor::TextureBaseOperation::determine_canvas(), do_paintface_box_select(), do_paintvert_box_select(), draw_filled_lasso(), DRW_render_gpencil(), DRW_render_to_image(), extend_redraw_rect_previous(), blender::compositor::MemoryBuffer::get_max_value(), imapaint_image_update(), blender::eevee::Film::init(), partial_redraw_array_merge(), PE_box_select(), blender::compositor::TranslateOperation::update_memory_buffer_partial(), ViewLink::views_bounds_calc(), widget_draw_text(), and wpaint_stroke_update_step().
| bool BLI_rcti_is_valid | ( | const struct rcti * | rect | ) |
Referenced by project_image_refresh_tagged(), region_rect_recursive(), and WM_window_screen_rect_calc().
Referenced by blender::bke::pbvh::pixels::clamp(), draw_filled_lasso(), DRW_select_buffer_read(), ED_fileselect_layout_isect_rect(), ED_view3d_calc_render_border(), blender::draw::compositor::Context::get_compositing_region(), blender::ed::greasepencil::trim::get_intersections_of_curve_with_curves(), blender::compositor::MemoryBuffer::get_max_value(), image_gpu_texture_partial_update_changes_available(), region_draw_azones(), region_overlap_fix(), region_rect_recursive(), region_visible_rect_calc(), blender::bke::image::partial_update::TEST_F(), blender::bke::image::partial_update::TEST_F(), ui_but_pixelrect_in_view(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_region_contains_rect_px(), view3d_depths_rect_create(), and wmPartialViewport().
Referenced by annotation_stroke_eraser_dostroke(), do_lasso_select_armature__doSelectBone(), do_lasso_select_marker(), do_lasso_select_mask(), blender::ed::space_node::do_lasso_select_node(), ED_fileselect_layout_is_inside_pt(), file_attribute_column_header_is_inside(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), blender::ed::sculpt_paint::gesture::is_affected_lasso(), panel_categories_find_mouse_over(), text_cursor(), ui_but_contains_point_px_icon(), ui_region_contains_point_px(), UI_region_view_find_at(), ui_searchbox_event(), and ui_searchbox_inside().
Referenced by actionzone_area_poll(), annotation_draw_modal(), area_actionzone_refresh_xy(), area_event_inside(), area_join_update_data(), BKE_area_find_region_xy(), BKE_screen_find_region_xy(), do_lasso_select_mesh_uv_is_point_inside(), ED_region_contains_xy(), ED_region_panel_category_gutter_isect_xy(), ED_screen_draw_edges(), ED_time_scrub_event_in_region(), event_in_markers_region(), event_or_prev_in_rect(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), region_event_inside(), ViewportColorSampleSession::sample(), blender::ed::curves::select_box(), blender::ed::curves::select_box_mask(), blender::ed::curves::select_lasso(), blender::ed::curves::select_lasso_mask(), sequencer_main_cursor(), ui_region_contains_point_px(), ui_screen_region_find_mouse_over_ex(), UI_view2d_edge_pan_apply(), uiTemplateInputStatus(), wm_event_inside_rect(), WM_gizmo_group_refresh(), wm_operator_invoke(), and wm_paintcursor_test().
Definition at line 37 of file rct.c.
References x, and rcti::xmax.
Referenced by UI_region_button_sections_is_inside_x().
Definition at line 48 of file rct.c.
References y, and rcti::ymax.
Definition at line 149 of file rct.c.
References x, rcti::xmax, and rcti::xmin.
Referenced by area_actionzone_refresh_xy(), and file_box_select_find_last_selected().
Definition at line 160 of file rct.c.
References y, rcti::ymax, and rcti::ymin.
Referenced by area_actionzone_refresh_xy(), and file_box_select_find_last_selected().
Definition at line 575 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Definition at line 623 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by button_section_bounds_calc(), draw_text_outline(), draw_text_shadow(), ED_screen_draw_edges(), file_add_preview_drag_but(), blender::ed::greasepencil::trim::get_intersections_of_curve_with_curves(), ui_draw_but(), UI_region_view_find_at(), and UI_view2d_edge_pan_apply().
Referenced by ui_to_pixelrect(), UI_tooltip_create_from_button_or_extra_icon(), and ViewLink::views_bounds_calc().
Definition at line 590 of file rct.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), and BLI_rcti_translate().
Definition at line 615 of file rct.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by blender::ed::space_node::node_socket_draw(), region_rect_recursive(), ui_tooltip_create_with_data(), and widget_optionbut().
Change width & height around the central X location.
Definition at line 603 of file rct.c.
References BLI_rcti_cent_x(), x, rcti::xmax, and rcti::xmin.
Referenced by blender::compositor::TranslateOperation::get_area_of_interest(), view3d_zoom_border_exec(), widget_list_itembut(), and wm_window_check_size().
Change width & height around the central Y location.
Definition at line 609 of file rct.c.
References BLI_rcti_cent_y(), y, rcti::ymax, and rcti::ymin.
Referenced by blender::compositor::TranslateOperation::get_area_of_interest(), view3d_zoom_border_exec(), widget_list_itembut(), and wm_window_check_size().
| void BLI_rcti_sanitize | ( | struct rcti * | rect | ) |
Definition at line 450 of file rct.c.
References BLI_assert, BLI_rcti_is_valid(), SWAP, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by BLI_rcti_init(), GPU_viewport_draw_to_screen_ex(), and region_rect_recursive().
Definition at line 659 of file rct.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
| BLI_INLINE int BLI_rcti_size_x | ( | const struct rcti * | rct | ) |
Definition at line 189 of file BLI_rect.h.
References rcti::xmax, and rcti::xmin.
Referenced by actkeys_box_select_exec(), blender::compositor::BuffersIteratorBuilder< T >::add_input(), ANIM_channel_draw(), ANIM_channel_draw_widgets(), ANIM_frame_range_view2d_add_xmargin(), blender::compositor::MemoryBuffer::apply_processor(), area_calc_totrct(), area_max_regionsize(), BKE_camera_params_crop_viewplane(), blf_font_width(), blf_font_width_and_height(), BLI_rcti_scale(), blender::compositor::BuffersIteratorBuilder< T >::BuffersIteratorBuilder(), calctrackballvec(), calculate_pixels_per_unit(), calculateZfac(), channel_list_draw_keys(), blender::compositor::ScaleOperation::clamp_area_size_max(), clip_draw_dopesheet_main(), clip_view_calculate_view_selection(), blender::compositor::colorspace_to_scene_linear(), convertViewVec2D(), convertViewVec2D_mask(), blender::compositor::MemoryBuffer::copy_from(), createTransActionData(), blender::compositor::BokehBlurOperation::determine_canvas(), blender::compositor::GlareThresholdOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::ScaleOperation::determine_canvas(), do_text_effect(), draw_fcurve_curve_keys(), draw_filled_lasso(), draw_horizontal_scale_indicators(), draw_nla_main_data(), draw_parallel_lines(), draw_seq_in_view(), blender::ed::space_node::draw_tree_path(), drawSnapping(), DRW_draw_select_loop(), DRW_select_buffer_find_nearest_to_point(), DRW_select_buffer_read(), ED_image_draw_info(), ed_marker_move_modal(), ED_mask_draw_region(), ED_preview_draw(), ed_preview_draw_rect(), ED_region_info_draw_multiline(), ED_screen_draw_edges(), ED_space_clip_get_zoom(), ED_space_image_get_zoom(), ED_time_scrub_channel_search_draw(), ED_view3d_update_viewmat(), edge_pan_speed(), blender::compositor::TranslateOperation::ensure_delta(), blender::draw::image_engine::OneTexture::ensure_gpu_textures_allocation(), file_add_preview_drag_but(), blender::bke::pbvh::pixels::Rows::filter_pixels_for_closer_examination(), blender::bke::pbvh::pixels::Rows::find_copy_source(), find_nearest_seq(), blender::bke::pbvh::pixels::Rows::find_second_source(), blender::realtime_compositor::Context::get_compositing_region_size(), blender::compositor::RotateOperation::get_rotation_center(), blender::compositor::RotateOperation::get_rotation_offset(), blender::compositor::ScaleOperation::get_scale_area_of_interest(), blender::compositor::ScaleOperation::get_scale_offset(), blender::compositor::MemoryBuffer::get_width(), blender::compositor::NodeOperation::get_width(), GPENCIL_render_init(), GPENCIL_render_result_combined(), GPENCIL_render_result_z(), GPU_select_buffer_stride_realign(), gpu_select_next_get_pick_area_center(), gpu_select_pick_begin(), gpu_select_query_begin(), GPU_viewport_bind(), GPU_viewport_draw_to_screen_ex(), graphkeys_box_select_exec(), icon_draw_rect_input_text(), image_buffer_rect_update(), image_gpu_texture_partial_update_changes_available(), image_main_region_set_view2d(), image_rect_update(), image_view_all(), imapaint_image_update(), IMB_float_from_rect_ex(), IMB_rect_crop(), blender::eevee::Film::init(), blender::eevee::Instance::init(), blender::realtime_compositor::Context::is_valid_compositing_region(), movieclip_main_area_set_view2d(), nla_action_draw_keyframes(), nlaedit_box_select_exec(), blender::ed::space_node::node_circleselect_exec(), blender::ed::outliner::outliner_draw_tree(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), print_rcti(), blender::ed::sculpt_paint::paint::image::push_undo(), rct_fits(), re_init_resolution(), rect_crop_16bytes(), rect_crop_4bytes(), rect_subregion_stride_calc(), region_rect_recursive(), region_scale_modal(), region_update_rect(), render_result_new(), reset_exec(), round_box__edges(), blender::compositor::ScaleOperation::scale_area(), sclip_zoom_set(), screen_geom_vertices_scale_pass(), scroller_activate_init(), sequencer_box_select_exec(), sequencer_preview_get_rect(), sequencer_retiming_keys_draw(), sequencer_view_zoom_ratio_exec(), shape_preset_init_trias_ex(), shape_preset_trias_from_rect_menu(), sima_zoom_set(), sima_zoom_set_from_bounds(), blender::ed::geometry::store_input_node_values_rna_props(), blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), timeline_draw_context_get(), ui_block_to_region_fl(), ui_but_contains_point_px_icon(), ui_draw_but(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HSVCIRCLE(), ui_draw_but_IMAGE(), ui_draw_but_UNITVEC(), ui_draw_gradient(), ui_draw_menu_item(), ui_draw_preview_item_stateless(), UI_draw_widget_scroll(), UI_fontstyle_draw_ex(), UI_fontstyle_draw_rotated(), ui_hsvcircle_pos_from_vals(), ui_hsvcircle_vals_from_pos(), ui_hsvcube_pos_from_vals(), UI_region_button_sections_draw(), ui_searchbox_butrect(), ui_searchbox_region_draw_cb__operator(), ui_searchbox_region_draw_fn(), ui_searchbox_region_layout_fn(), ui_text_clip_cursor(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), ui_text_clip_right_label(), ui_tooltip_create_with_data(), UI_view2d_curRect_reset(), ui_view2d_curRect_validate_resize(), UI_view2d_dot_grid_draw(), UI_view2d_edge_pan_init(), UI_view2d_region_to_view_rctf(), UI_view2d_region_to_view_x(), UI_view2d_scale_get_inverse(), UI_view2d_scale_get_x(), UI_view2d_scrollers_draw_ex(), UI_view2d_text_cache_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), UI_view2d_view_to_region(), UI_view2d_view_to_region_clip(), UI_view2d_view_to_region_fl(), UI_view2d_view_to_region_rcti(), UI_view2d_view_to_region_rcti_clip(), UI_view2d_view_to_region_segment_clip(), UI_view2d_view_to_region_x(), ui_window_to_block_fl(), blender::compositor::IDMaskOperation::update_memory_buffer_partial(), blender::compositor::MixBaseOperation::update_memory_buffer_partial(), view2d_major_step_x__continuous(), view2d_major_step_x__discrete(), view2d_major_step_x__time(), view2d_map_cur_using_mask(), view2d_scrollers_calc(), view3d_depths_rect_create(), view3d_opengl_read_Z_pixels(), view3d_zoom_border_exec(), view_all_exec(), view_pan_init(), view_zoomdrag_modal(), view_zoomstep_apply_ex(), widget_draw_preview(), widget_draw_text_icon(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_progress_type_bar(), widget_scroll(), blender::compositor::BufferArea< T >::width(), wm_draw_region_blend(), wm_paintcursor_draw(), wm_window_check_size(), WM_window_open(), wmGetProjectionMatrix(), wmPartialViewport(), wmViewport(), write_render_color_output(), and write_render_z_output().
| BLI_INLINE int BLI_rcti_size_y | ( | const struct rcti * | rct | ) |
Definition at line 193 of file BLI_rect.h.
References rcti::ymax, and rcti::ymin.
Referenced by actkeys_box_select_exec(), actkeys_viewall(), blender::compositor::MemoryBuffer::apply_processor(), area_calc_totrct(), area_max_regionsize(), BKE_camera_params_crop_viewplane(), blf_font_height(), blf_font_width_and_height(), BLI_rcti_scale(), blender::compositor::BuffersIteratorBuilder< T >::BuffersIteratorBuilder(), calctrackballvec(), calculate_pixels_per_unit(), channel_list_draw_keys(), blender::compositor::ScaleOperation::clamp_area_size_max(), clip_draw_dopesheet_channels(), clip_draw_dopesheet_main(), clip_view_calculate_view_selection(), blender::compositor::colorspace_to_scene_linear(), convertViewVec2D(), convertViewVec2D_mask(), blender::compositor::MemoryBuffer::copy_from(), createTransActionData(), blender::ed::asset::shelf::current_tile_draw_height(), blender::compositor::BokehBlurOperation::determine_canvas(), blender::compositor::GlareThresholdOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::ScaleOperation::determine_canvas(), draw_filled_lasso(), draw_parallel_lines(), draw_seq_in_view(), draw_vertical_scale_indicators(), DRW_draw_select_loop(), DRW_select_buffer_read(), ED_mask_draw_region(), ED_preview_draw(), ed_preview_draw_rect(), ED_region_generic_tools_region_snap_size(), ED_region_info_draw_multiline(), ED_screen_draw_edges(), ED_space_clip_get_zoom(), ED_space_image_get_zoom(), ED_view3d_update_viewmat(), blender::compositor::TranslateOperation::ensure_delta(), blender::draw::image_engine::OneTexture::ensure_gpu_textures_allocation(), blender::compositor::ExecutionSystem::execute_work(), file_add_preview_drag_but(), file_draw_string_multiline(), blender::bke::pbvh::pixels::Rows::filter_pixels_for_closer_examination(), blender::bke::pbvh::pixels::Rows::find_copy_source(), blender::bke::pbvh::pixels::Rows::find_second_source(), blender::realtime_compositor::Context::get_compositing_region_size(), blender::compositor::MemoryBuffer::get_height(), blender::compositor::NodeOperation::get_height(), blender::compositor::RotateOperation::get_rotation_center(), blender::compositor::RotateOperation::get_rotation_offset(), blender::compositor::ScaleOperation::get_scale_area_of_interest(), blender::compositor::ScaleOperation::get_scale_offset(), GPENCIL_render_init(), GPENCIL_render_result_combined(), GPENCIL_render_result_z(), GPU_select_buffer_stride_realign(), gpu_select_next_get_pick_area_center(), gpu_select_pick_begin(), gpu_select_query_begin(), GPU_viewport_bind(), GPU_viewport_draw_to_screen_ex(), graphkeys_box_select_exec(), blender::compositor::BufferArea< T >::height(), icon_draw_rect_input_text(), image_buffer_rect_update(), image_gpu_texture_partial_update_changes_available(), image_main_region_set_view2d(), image_rect_update(), image_view_all(), imapaint_image_update(), IMB_float_from_rect_ex(), IMB_rect_crop(), blender::eevee::Film::init(), blender::eevee::Instance::init(), blender::realtime_compositor::Context::is_valid_compositing_region(), movieclip_main_area_set_view2d(), nla_action_draw_keyframes(), nlaedit_box_select_exec(), nlaedit_viewall(), blender::ed::space_node::node_socket_draw(), blender::ed::outliner::outliner_item_rename_invoke(), blender::ed::outliner::outliner_scroll_page_exec(), blender::ed::outliner::outliner_show_active_exec(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), panel_draw_aligned_widgets(), print_rcti(), blender::ed::sculpt_paint::paint::image::push_undo(), rct_fits(), re_init_resolution(), rect_crop_16bytes(), rect_crop_4bytes(), rect_subregion_stride_calc(), region_rect_recursive(), region_update_rect(), render_result_new(), reset_exec(), round_box__edges(), blender::compositor::ScaleOperation::scale_area(), sclip_zoom_set(), screen_geom_vertices_scale_pass(), scroller_activate_init(), sequencer_main_clamp_view(), sequencer_preview_get_rect(), sequencer_retiming_keys_draw(), sequencer_view_zoom_ratio_exec(), shape_preset_init_trias_ex(), shape_preset_trias_from_rect_checkmark(), shape_preset_trias_from_rect_dash(), shape_preset_trias_from_rect_menu(), sima_zoom_set(), sima_zoom_set_from_bounds(), blender::ed::geometry::store_input_node_values_rna_props(), blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), timeline_draw_context_get(), ui_block_to_region_fl(), ui_but_contains_point_px_icon(), ui_do_drag(), ui_draw_but(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_IMAGE(), ui_draw_but_UNITVEC(), ui_draw_colorband_handle(), ui_draw_gradient(), ui_draw_menu_item(), UI_draw_widget_scroll(), UI_fontstyle_draw_ex(), UI_fontstyle_draw_rotated(), ui_hsvcircle_pos_from_vals(), ui_hsvcircle_vals_from_pos(), ui_hsvcube_pos_from_vals(), UI_panel_category_draw_all(), ui_searchbox_butrect(), ui_searchbox_region_layout_fn(), ui_tooltip_create_with_data(), UI_view2d_curRect_reset(), ui_view2d_curRect_validate_resize(), UI_view2d_edge_pan_init(), UI_view2d_region_to_view_rctf(), UI_view2d_region_to_view_y(), UI_view2d_scale_get_inverse(), UI_view2d_scale_get_y(), UI_view2d_scrollers_draw_ex(), UI_view2d_text_cache_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), UI_view2d_view_to_region(), UI_view2d_view_to_region_clip(), UI_view2d_view_to_region_fl(), UI_view2d_view_to_region_rcti(), UI_view2d_view_to_region_rcti_clip(), UI_view2d_view_to_region_segment_clip(), UI_view2d_view_to_region_y(), ui_window_to_block_fl(), view2d_major_step_y__continuous(), view2d_map_cur_using_mask(), view2d_page_size_y(), view2d_scrollers_calc(), view3d_depths_rect_create(), view3d_opengl_read_Z_pixels(), view3d_zoom_border_exec(), view_all_exec(), view_pan_init(), view_zoomdrag_modal(), view_zoomstep_apply_ex(), widget_draw_preview(), widget_draw_text_icon(), widget_menubut(), widget_nodesocket(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_radius_from_rcti(), widget_scroll(), wm_draw_region_blend(), wm_paintcursor_draw(), wm_window_check_size(), WM_window_open(), wmGetProjectionMatrix(), wmPartialViewport(), wmViewport(), write_render_color_output(), and write_render_z_output().
Definition at line 560 of file rct.c.
References x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by area_actionzone_get_rect(), blf_glyph_draw(), BLI_rcti_recenter(), blender::compositor::ProjectorLensDistortionOperation::determine_canvas(), blender::compositor::ScreenLensDistortionOperation::determine_canvas(), blender::compositor::TransformOperation::determine_canvas(), blender::compositor::TranslateCanvasOperation::determine_canvas(), do_text_effect(), draw_filled_lasso(), draw_text_shadow(), ED_view3d_calc_render_border(), file_draw_list(), blender::compositor::TransformOperation::get_area_of_interest(), blender::compositor::TranslateOperation::get_area_of_interest(), blender::compositor::SharedOperationBuffers::get_areas_to_render(), blender::compositor::RotateOperation::get_rotation_area_of_interest(), blender::compositor::RotateOperation::get_rotation_canvas(), handler_region_v2d_mask_test(), region_overlap_fix(), region_visible_rect_calc(), blender::compositor::ScaleOperation::scale_area(), ui_but_pixelrect_in_view(), ui_popup_translate(), ui_region_winrct_get_no_margin(), ui_searchbox_region_layout_fn(), ui_to_pixelrect(), ui_tooltip_create_with_data(), UI_view2d_rect_in_scrollers_ex(), widget_optionbut(), WM_gesture_box_modal(), WM_gesture_straightline_modal(), and WM_gesture_straightline_oneshot_modal().
| void print_rctf | ( | const char * | str, |
| const struct rctf * | rect ) |
| void print_rcti | ( | const char * | str, |
| const struct rcti * | rect ) |