|
Blender V4.3
|
#include <math.h>#include <stdio.h>#include <stdlib.h>#include <float.h>#include <limits.h>#include "BLI_math_base.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "DNA_vec_types.h"Go to the source code of this file.
Functions | |
| static void | unit_m4 (float m[4][4]) |
| bool | BLI_rcti_is_empty (const rcti *rect) |
| bool | BLI_rctf_is_empty (const rctf *rect) |
| bool | BLI_rcti_isect_x (const rcti *rect, const int x) |
| bool | BLI_rcti_isect_y (const rcti *rect, const int y) |
| bool | BLI_rcti_isect_pt (const rcti *rect, const int x, const int y) |
| bool | BLI_rcti_isect_pt_v (const rcti *rect, const int xy[2]) |
| bool | BLI_rctf_isect_x (const rctf *rect, const float x) |
| bool | BLI_rctf_isect_y (const rctf *rect, const float y) |
| bool | BLI_rctf_isect_pt (const rctf *rect, const float x, const float y) |
| bool | BLI_rctf_isect_pt_v (const rctf *rect, const float xy[2]) |
| int | BLI_rcti_length_x (const rcti *rect, const int x) |
| int | BLI_rcti_length_y (const rcti *rect, const int y) |
| float | BLI_rctf_length_x (const rctf *rect, const float x) |
| float | BLI_rctf_length_y (const rctf *rect, const float y) |
| bool | BLI_rctf_inside_rctf (const rctf *rct_a, const rctf *rct_b) |
| bool | BLI_rcti_inside_rcti (const rcti *rct_a, const rcti *rct_b) |
| static int | isect_segments_i (const int v1[2], const int v2[2], const int v3[2], const int v4[2]) |
| static int | isect_segments_fl (const float v1[2], const float v2[2], const float v3[2], const float v4[2]) |
| bool | BLI_rcti_isect_segment (const rcti *rect, const int s1[2], const int s2[2]) |
| bool | BLI_rctf_isect_segment (const rctf *rect, const float s1[2], const float s2[2]) |
| bool | BLI_rcti_isect_circle (const rcti *rect, const float xy[2], const float radius) |
| bool | BLI_rctf_isect_circle (const rctf *rect, const float xy[2], const float radius) |
| void | BLI_rctf_union (rctf *rct_a, const rctf *rct_b) |
| void | BLI_rcti_union (rcti *rct_a, const rcti *rct_b) |
| void | BLI_rctf_init (rctf *rect, float xmin, float xmax, float ymin, float ymax) |
| void | BLI_rcti_init (rcti *rect, int xmin, int xmax, int ymin, int ymax) |
| bool | BLI_rctf_is_valid (const rctf *rect) |
| bool | BLI_rcti_is_valid (const rcti *rect) |
| void | BLI_rctf_sanitize (rctf *rect) |
| void | BLI_rcti_sanitize (rcti *rect) |
| void | BLI_rctf_init_pt_radius (rctf *rect, const float xy[2], float size) |
| void | BLI_rcti_init_pt_radius (rcti *rect, const int xy[2], int size) |
| void | BLI_rcti_init_minmax (rcti *rect) |
| void | BLI_rctf_init_minmax (rctf *rect) |
| void | BLI_rcti_do_minmax_v (rcti *rect, const int xy[2]) |
| void | BLI_rcti_do_minmax_rcti (rcti *rect, const rcti *other) |
| void | BLI_rctf_do_minmax_v (rctf *rect, const float xy[2]) |
| 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_rcti_translate (rcti *rect, int x, int y) |
| void | BLI_rctf_translate (rctf *rect, float x, float y) |
| void | BLI_rcti_mul (rcti *rect, const int factor) |
| void | BLI_rctf_mul (rctf *rect, const float factor) |
| void | BLI_rcti_recenter (rcti *rect, int x, int y) |
| void | BLI_rctf_recenter (rctf *rect, float x, float y) |
| void | BLI_rcti_resize_x (rcti *rect, int x) |
| void | BLI_rcti_resize_y (rcti *rect, int y) |
| void | BLI_rcti_resize (rcti *rect, int x, int y) |
| void | BLI_rcti_pad (rcti *rect, int pad_x, int pad_y) |
| void | BLI_rctf_pad (rctf *rect, float pad_x, float pad_y) |
| void | BLI_rctf_resize_x (rctf *rect, float x) |
| void | BLI_rctf_resize_y (rctf *rect, float y) |
| void | BLI_rctf_resize (rctf *rect, float x, float y) |
| void | BLI_rcti_scale (rcti *rect, const float scale) |
| void | BLI_rctf_scale (rctf *rect, const float scale) |
| void | BLI_rctf_pad_y (rctf *rect, const float boundary_size, const float pad_min, const float pad_max) |
| void | BLI_rctf_interp (rctf *rect, const rctf *rect_a, const rctf *rect_b, const float fac) |
| bool | BLI_rctf_clamp_pt_v (const rctf *rect, float xy[2]) |
| bool | BLI_rcti_clamp_pt_v (const rcti *rect, int xy[2]) |
| bool | BLI_rctf_clamp (rctf *rect, const rctf *rect_bounds, float r_xy[2]) |
| bool | BLI_rcti_clamp (rcti *rect, const rcti *rect_bounds, int r_xy[2]) |
| bool | BLI_rctf_compare (const rctf *rect_a, const rctf *rect_b, const float limit) |
| bool | BLI_rcti_compare (const rcti *rect_a, const rcti *rect_b) |
| bool | BLI_rctf_isect (const rctf *src1, const rctf *src2, rctf *dest) |
| bool | BLI_rcti_isect (const rcti *src1, const rcti *src2, rcti *dest) |
| bool | BLI_rctf_isect_rect_x (const rctf *src1, const rctf *src2, float range_x[2]) |
| bool | BLI_rctf_isect_rect_y (const rctf *src1, const rctf *src2, float range_y[2]) |
| bool | BLI_rcti_isect_rect_x (const rcti *src1, const rcti *src2, int range_x[2]) |
| bool | BLI_rcti_isect_rect_y (const rcti *src1, const rcti *src2, int range_y[2]) |
| void | BLI_rcti_rctf_copy (rcti *dst, const rctf *src) |
| void | BLI_rcti_rctf_copy_floor (rcti *dst, const rctf *src) |
| void | BLI_rcti_rctf_copy_round (rcti *dst, const rctf *src) |
| void | BLI_rctf_rcti_copy (rctf *dst, const rcti *src) |
| void | print_rctf (const char *str, const rctf *rect) |
| void | print_rcti (const char *str, const rcti *rect) |
Rect math functions | |
| #define | ROTATE_SINCOS(r_vec, mat2, vec) |
| void | BLI_rctf_rotate_expand (rctf *dst, const rctf *src, const float angle) |
A minimalist lib for functions doing stuff with rectangle structs.
Definition in file rct.c.
| #define ROTATE_SINCOS | ( | r_vec, | |
| mat2, | |||
| vec ) |
Definition at line 1092 of file rct.c.
Referenced by BLI_rctf_rotate_expand().
Definition at line 778 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Definition at line 734 of file rct.c.
References rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Definition at line 862 of file rct.c.
References fabsf, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
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 | ( | 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().
Definition at line 723 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
| bool BLI_rctf_is_empty | ( | const rctf * | rect | ) |
Definition at line 32 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
| bool BLI_rctf_is_valid | ( | const rctf * | rect | ) |
Definition at line 428 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BLI_rctf_sanitize().
Definition at line 892 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Definition at line 355 of file rct.c.
References rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Definition at line 115 of file rct.c.
References x, rctf::xmax, y, and rctf::ymax.
Definition at line 132 of file rct.c.
References rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by BLI_rctf_isect_segment().
Definition at line 950 of file rct.c.
References rctf::xmax, and rctf::xmin.
Definition at line 970 of file rct.c.
References rctf::ymax, and rctf::ymin.
Definition at line 288 of file rct.c.
References BLI_rctf_isect_pt_v(), isect_segments_fl(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
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().
| void BLI_rctf_pad_y | ( | rctf * | rect, |
| const float | boundary_size, | ||
| const float | pad_min, | ||
| const float | pad_max ) |
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().
Definition at line 1054 of file rct.c.
References rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
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().
| 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().
Definition at line 376 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Definition at line 820 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Definition at line 756 of file rct.c.
References rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Definition at line 877 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Definition at line 506 of file rct.c.
References max_ii(), min_ii(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
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 | ( | 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 rcti * | rect | ) |
Definition at line 27 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
| bool BLI_rcti_is_valid | ( | const rcti * | rect | ) |
Definition at line 433 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by BLI_rcti_sanitize().
Definition at line 921 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Definition at line 334 of file rct.c.
References rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Definition at line 59 of file rct.c.
References x, rcti::xmax, y, and rcti::ymax.
Definition at line 76 of file rct.c.
References rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Referenced by BLI_rcti_isect_segment().
Definition at line 990 of file rct.c.
References rcti::xmax, and rcti::xmin.
Definition at line 1010 of file rct.c.
References rcti::ymax, and rcti::ymin.
Definition at line 242 of file rct.c.
References BLI_rcti_isect_pt_v(), isect_segments_i(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
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().
Definition at line 1030 of file rct.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), floorf, rcti::xmax, rctf::xmin, rcti::xmin, rcti::ymax, rctf::ymin, and rcti::ymin.
Definition at line 1038 of file rct.c.
References floorf, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Definition at line 1046 of file rct.c.
References floorf, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
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 | ( | 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.
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().
Definition at line 392 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
|
static |
Definition at line 222 of file rct.c.
Referenced by BLI_rctf_isect_segment().
|
static |
Definition at line 206 of file rct.c.
Referenced by BLI_rcti_isect_segment().
| void print_rctf | ( | const char * | str, |
| const rctf * | rect ) |
Definition at line 1062 of file rct.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), printf, str, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
| void print_rcti | ( | const char * | str, |
| const rcti * | rect ) |
Definition at line 1074 of file rct.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), printf, str, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
|
static |
Definition at line 1127 of file rct.c.
Referenced by BLI_rctf_transform_calc_m4_pivot_min_ex().