Blender
V3.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_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 158 of file BLI_rect.h.
#define print_rcti_id | ( | rect | ) | print_rcti(STRINGIFY(rect), rect) |
Definition at line 159 of file BLI_rect.h.
BLI_INLINE float BLI_rctf_cent_x | ( | const struct rctf * | rct | ) |
Definition at line 177 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_circle_handles(), cage2d_draw_circle_wire(), blender::ed::space_node::do_lasso_select_node(), 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(), 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 181 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_circle_wire(), createTransActionData(), blender::ed::space_node::do_lasso_select_node(), 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_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_create_generic_ex(), 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 gpencil_zoom_level_set().
Referenced by ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCUBE(), and ui_numedit_but_SLI().
Definition at line 513 of file rct.c.
References rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by BKE_maskrasterize_handle_init().
Definition at line 407 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_channel_list(), drawscredge_area_draw(), ED_region_image_metadata_draw(), gpencil_zoom_level_set(), graph_draw_channel_names(), image_main_region_draw(), label_rect_init(), layer_bucket_init_dummy(), outliner_draw_active_indicator(), outliner_draw_iconrow_number(), round_box__edges(), sequencer_create(), sequencer_draw_display_buffer(), sequencer_image_crop_init(), sequencer_main_clamp_view(), sequencer_preview_get_rect(), ui_popup_translate(), UI_view2d_edge_pan_init(), UI_view2d_edge_pan_set_limits(), blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds(), blender::draw::image_engine::OneTextureMethod::update_screen_uv_bounds(), and widget_draw_submenu_tria().
Definition at line 483 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by BKE_maskrasterize_handle_init(), blender::ed::space_node::node_draw_nodetree(), blender::ed::space_node::space_node_view_flag(), ui_block_bounds_calc(), ui_popup_block_position(), and blender::draw::image_engine::OneTextureMethod::update_screen_space_bounds().
Definition at line 461 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::node_find_indicated_socket(), and blender::ed::space_node::socket_is_occluded().
is rct_b inside rct_a
Definition at line 192 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::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().
Referenced by blender::ed::space_node::node_draw_basis().
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 BKE_maskrasterize_handle_init(), blender::ed::space_node::do_lasso_select_node(), blender::ed::space_node::frame_node_draw(), 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::node_find_indicated_socket(), 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(), 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::space_node::add_reroute_do_socket_section(), BKE_maskrasterize_handle_sample(), 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(), gizmo_cage2d_test_select(), keyframe_region_circle_test(), keyframe_region_lasso_test(), layer_bucket_index_from_xy(), line_clip_rect2f(), blender::ed::space_node::node_find_frame_to_attach(), 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().
Definition at line 92 of file rct.c.
References x, and rctf::xmax.
Referenced by ed_marker_box_select_exec(), ED_region_overlap_isect_x(), and blender::ed::space_node::node_link_insert_offset_ntree().
Definition at line 103 of file rct.c.
References y, and rctf::ymax.
Referenced by ED_region_overlap_isect_y(), and blender::ed::space_node::node_link_insert_offset_ntree().
Definition at line 170 of file rct.c.
References x, rctf::xmax, and rctf::xmin.
Referenced by blender::ed::space_node::node_link_dim_factor().
Definition at line 181 of file rct.c.
References y, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_link_dim_factor().
Definition at line 615 of file rct.c.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_uvedit_pack_islands_multi(), blender::ed::space_node::node_circleselect_exec(), blender::ed::space_node::node_frame_rect_inside(), seq_view_collection_rect_preview(), and UI_but_ensure_in_view().
Definition at line 667 of file rct.c.
References BLI_assert, BLI_rctf_size_y(), rctf::ymax, and rctf::ymin.
Referenced by graphkeys_viewall().
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(), ui_but_find_rect_over(), UI_view2d_view_to_region_m4(), view3d_userdata_boxselect_init(), view3d_userdata_lassoselect_init(), and WM_operator_properties_border_to_rctf().
Definition at line 580 of file rct.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_translate(), x, and y.
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 635 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 623 of file rct.c.
References BLI_rctf_cent_x(), x, rctf::xmax, and rctf::xmin.
Definition at line 629 of file rct.c.
References BLI_rctf_cent_y(), y, rctf::ymax, and rctf::ymin.
Expand the rectangle to fit a rotated src.
Definition at line 1062 of file rct.c.
References angle(), BLI_rctf_cent_x(), BLI_rctf_cent_y(), cosf, fabsf, MAX2, ROTATE_SINCOS, sinf, src, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Ensure X-min and Y-min are less than or equal to X-max and Y-max, respectively.
Definition at line 437 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 655 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 graphkeys_viewall(), 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 194 of file BLI_rect.h.
References rctf::xmax, and rctf::xmin.
Referenced by actkeys_viewall(), ANIM_center_frame(), annotation_stroke_convertcoords(), areas_do_frame_follow(), BKE_curvemapping_changed(), BKE_curveprofile_update(), BKE_render_resolution(), BLI_rctf_scale(), BLI_rctf_transform_calc_m4_pivot_min_ex(), BLI_rcti_rctf_copy(), button_activate_init(), calculateZfac(), camera_frame_fit_calc_from_data(), clipx_rctf(), colorband_buttons_layout(), convertViewVec2D(), convertViewVec2D_mask(), createTransActionData(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), CurveProfile_buttons_zoom_in(), CurveProfile_buttons_zoom_out(), dopesheet_view_all_exec(), draw_anti_tria_rect(), draw_channel_labels(), draw_fcurve_active_vertex(), draw_fcurve_modifier_controls_envelope(), draw_fcurve_selected_keyframe_vertices(), draw_nla_main_data(), draw_seq_in_view(), draw_seq_strips(), draw_seq_waveform_overlay(), 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_uvedit_pack_islands_multi(), 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(), flushTransNodes(), blender::ed::space_node::frame_node_draw_label(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), gpencil_point_3d_to_xy(), gpencil_point_to_xy(), gpencil_point_to_xy_fl(), gpencil_strokepoint_convertcoords(), 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_hidden(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::node_link_dim_factor(), NodeToTransData(), print_rctf(), RE_GetCameraWindowWithOverscan(), region_scale_modal(), render_border_exec(), screen_animation_region_tag_redraw(), scroller_activate_init(), seq_view_collection_rect_preview(), sequencer_box_select_exec(), sequencer_preview_get_rect(), sequencer_thumbnail_init_job(), 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(), TargetSnapOffset(), 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_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_searchbox_create_generic_ex(), 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_scrollers_calc(), 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(), 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 198 of file BLI_rect.h.
References rctf::ymax, and rctf::ymin.
Referenced by ANIM_channel_draw_widgets(), annotation_stroke_convertcoords(), BKE_curvemapping_changed(), BKE_curveprofile_update(), BKE_render_resolution(), BLI_rctf_pad_y(), BLI_rctf_scale(), BLI_rctf_transform_calc_m4_pivot_min_ex(), BLI_rcti_rctf_copy(), button_activate_init(), camera_frame_fit_calc_from_data(), clipy_rctf(), console_main_region_init(), convertViewVec2D(), convertViewVec2D_mask(), createTransActionData(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), CurveProfile_buttons_zoom_in(), CurveProfile_buttons_zoom_out(), draw_anti_tria_rect(), draw_channel_labels(), draw_seq_in_view(), draw_seq_strip(), 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_uvedit_pack_islands_multi(), ED_view3d_calc_camera_border_size(), ED_view3d_calc_render_border(), ED_view3d_update_viewmat(), eevee_engine_init(), flushTransNodes(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), gizmo_render_border_prop_matrix_get(), gpencil_point_3d_to_xy(), gpencil_point_to_xy(), gpencil_point_to_xy_fl(), gpencil_strokepoint_convertcoords(), 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(), NodeToTransData(), print_rctf(), RE_GetCameraWindowWithOverscan(), render_border_exec(), scroller_activate_init(), seq_view_collection_rect_preview(), seq_view_collection_rect_timeline(), sequencer_main_clamp_view(), sequencer_preview_get_rect(), sequencer_thumbnail_init_job(), sequencer_view_all_exec(), sima_zoom_set_from_bounds(), smooth_view_rect_to_fac(), blender::ed::space_node::space_node_view_flag(), square_rctf(), TargetSnapOffset(), 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_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_create_generic_ex(), ui_view2d_cur_ensure_rect_in_view(), ui_view2d_curRect_validate_resize(), UI_view2d_edge_pan_init(), UI_view2d_offset(), 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_calc(), 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(), 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 554 of file rct.c.
References BLI_rctf_transform_calc_m4_pivot_min_ex(), and src.
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 541 of file rct.c.
References BLI_assert, BLI_rctf_size_x(), BLI_rctf_size_y(), src, 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 529 of file rct.c.
References src, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by 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 566 of file rct.c.
References x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by BLI_rctf_recenter(), outliner_restore_scrolling_position(), UI_block_translate(), ui_popup_block_position(), ui_popup_translate(), ui_searchbox_create_generic_ex(), ui_update_flexible_spacing(), UI_view2d_view_ortho(), and view_zoom_to_window_xy_camera().
BLI_INLINE int BLI_rcti_cent_x | ( | const struct rcti * | rct | ) |
Definition at line 169 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_node_socket_draw(), region_rect_recursive(), render_result_new(), screen_area_menu_items(), text_scroll_bar_invoke(), ui_draw_clip_tri(), ui_draw_popover_back_impl(), ui_tooltip_create_with_data(), viewops_data_create(), viewroll_invoke(), viewzoom_scale_value(), and widget_nodesocket().
BLI_INLINE float BLI_rcti_cent_x_fl | ( | const struct rcti * | rct | ) |
Definition at line 161 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 173 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(), ED_image_draw_info(), ED_node_socket_draw(), get_centered_text_y(), region_rect_recursive(), render_result_new(), screen_area_menu_items(), text_scroll_bar_invoke(), ui_tooltip_create_with_data(), viewops_data_create(), viewroll_invoke(), viewzoom_scale_value(), and widget_nodesocket().
BLI_INLINE float BLI_rcti_cent_y_fl | ( | const struct rcti * | rct | ) |
Definition at line 165 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().
Referenced by ED_imapaint_dirty_region(), image_paint_partial_redraw_expand(), and partial_redraw_array_merge().
Definition at line 489 of file rct.c.
References rcti::xmax, rcti::xmin, xy, rcti::ymax, and rcti::ymin.
Referenced by blender::compositor::calc_ray_shift(), ED_screen_draw_edges(), blender::bke::pbvh::pixels::UDIMTilePixels::mark_dirty(), paint_convert_bb_to_rect(), and blender::bke::pbvh::pixels::NodeData::rebuild_undo_regions().
Definition at line 417 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::compositor::ViewerOperation::clear_display_buffer(), blender::compositor::ConstantFolder::ConstantFolder(), blender::compositor::DenoisePrefilterOperation::create_memory_buffer(), blender::compositor::create_rect(), blender::compositor::tests::create_rect(), blender::compositor::BokehImageOperation::determine_canvas(), blender::compositor::CompositorOperation::determine_canvas(), blender::compositor::BaseImageOperation::determine_canvas(), blender::compositor::MovieClipBaseOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::RenderLayersProg::determine_canvas(), blender::compositor::NodeOperation::determine_depending_area_of_interest(), blender::compositor::ProjectorLensDistortionOperation::determine_depending_area_of_interest(), blender::compositor::ReadBufferOperation::determine_depending_area_of_interest(), blender::compositor::ExecutionGroup::determine_resolution(), blender::ed::space_node::draw_nodespace_back_pix(), draw_seq_strip_thumbnail(), 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(), blender::compositor::ExecutionGroup::ExecutionGroup(), file_tile_boundbox(), find_file_mouse_rect(), fullscreen_azone_init(), fullscreen_click_rcti_init(), blender::compositor::GlareFogGlowOperation::generate_glare(), 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(), RE_engine_tile_highlight_set(), RE_GetViewPlane(), region_azone_edge(), region_azone_scrollbar_init(), 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::ExecutionGroup::set_render_border(), blender::compositor::ExecutionGroup::set_viewer_border(), blender::compositor::tests::BuffersIteratorTest::SetUpTestCase(), blender::compositor::step_update_memory_buffer(), blender::bke::image::partial_update::TEST_F(), blender::compositor::PreviewOperation::update_memory_buffer_partial(), blender::compositor::ViewerOperation::update_memory_buffer_partial(), and WM_window_rect_calc().
Definition at line 477 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::bke::pbvh::pixels::UDIMTilePixels::clear_dirty(), blender::compositor::ScreenLensDistortionOperation::determine_depending_area_of_interest(), ED_imapaint_clear_partial_redraw(), ED_screen_draw_edges(), blender::compositor::ScreenLensDistortionOperation::get_area_of_interest(), paint_convert_bb_to_rect(), partial_redraw_single_init(), blender::bke::pbvh::pixels::NodeData::rebuild_undo_regions(), and blender::bke::pbvh::pixels::UDIMTilePixels::UDIMTilePixels().
Definition at line 469 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 197 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(), and ui_tooltip_create_with_data().
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(), blender::compositor::MemoryBuffer::get_max_value(), imapaint_image_update(), blender::eevee::Film::init(), partial_redraw_array_merge(), PE_box_select(), sculpt_extend_redraw_rect_previous(), and wpaint_stroke_update_step().
Referenced by project_image_refresh_tagged(), region_rect_recursive(), and WM_window_screen_rect_calc().
Referenced by draw_filled_lasso(), DRW_select_buffer_read(), ED_fileselect_layout_isect_rect(), ED_gpencil_stroke_check_collision(), ED_view3d_calc_render_border(), 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(), ui_but_pixelrect_in_view(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_region_contains_rect_px(), blender::compositor::VariableSizeBokehBlurOperation::update_memory_buffer_partial(), 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(), ED_gpencil_stroke_point_is_inside(), file_attribute_column_header_is_inside(), gpencil_do_curve_circle_sel(), gpencil_stroke_do_circle_sel(), gpencil_stroke_eraser_dostroke(), gpencil_test_box(), gpencil_test_lasso(), gpencil_vertexpaint_select_stroke(), gpencil_weightpaint_select_stroke(), panel_categories_find_mouse_over(), sculpt_gesture_is_effected_lasso(), text_cursor(), ui_but_contains_point_px_icon(), ui_region_contains_point_px(), ui_searchbox_event(), ui_searchbox_inside(), and blender::compositor::KeyingScreenOperation::update_memory_buffer_partial().
Referenced by actionzone_area_poll(), annotation_draw_modal(), area_actionzone_refresh_xy(), area_event_inside(), BKE_area_find_region_xy(), BKE_screen_area_map_find_area_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_time_scrub_event_in_region(), event_in_markers_region(), event_or_prev_in_rect(), gpencil_check_cursor_region(), gpencil_draw_modal(), gpencil_fill_modal(), region_event_inside(), ui_region_contains_point_px(), ui_screen_region_find_mouse_over_ex(), UI_view2d_edge_pan_apply(), wm_event_inside_rect(), WM_gizmo_group_refresh(), wm_operator_invoke(), and wm_paintcursor_test().
Referenced by do_lasso_select_mesh_uv_is_edge_inside().
Definition at line 36 of file rct.c.
References x, and rcti::xmax.
Definition at line 47 of file rct.c.
References y, and rcti::ymax.
int BLI_rcti_length_x | ( | const rcti * | rect, |
int | x | ||
) |
Definition at line 148 of file rct.c.
References x, rcti::xmax, and rcti::xmin.
Referenced by area_actionzone_refresh_xy(), and file_box_select_find_last_selected().
int BLI_rcti_length_y | ( | const rcti * | rect, |
int | y | ||
) |
Definition at line 159 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 607 of file rct.c.
References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by file_draw_preview(), and UI_view2d_edge_pan_apply().
Referenced by ui_region_winrct_get_no_margin().
Referenced by ui_but_to_pixelrect(), and UI_tooltip_create_from_button_or_extra_icon().
Definition at line 574 of file rct.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), BLI_rcti_translate(), x, and y.
Definition at line 599 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 ED_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 587 of file rct.c.
References BLI_rcti_cent_x(), x, rcti::xmax, and rcti::xmin.
Referenced by view3d_zoom_border_exec(), and wm_window_check_size().
Change width & height around the central Y location.
Definition at line 593 of file rct.c.
References BLI_rcti_cent_y(), y, rcti::ymax, and rcti::ymin.
Referenced by view3d_zoom_border_exec(), and wm_window_check_size().
Definition at line 449 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 643 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 186 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(), blender::compositor::MemoryBuffer::apply_processor(), area_calc_totrct(), area_max_regionsize(), blf_font_width(), blf_font_width_and_height(), BLI_rcti_scale(), blender::compositor::BuffersIteratorBuilder< T >::BuffersIteratorBuilder(), calctrackballvec(), calculateZfac(), 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::FlipOperation::determine_canvas(), blender::compositor::GlareThresholdOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::ReadBufferOperation::determine_canvas(), blender::compositor::ScaleOperation::determine_canvas(), blender::compositor::TransformOperation::determine_canvas(), blender::compositor::WriteBufferOperation::determine_canvas(), do_text_effect(), draw_filled_lasso(), draw_horizontal_scale_indicators(), draw_nla_main_data(), draw_parallel_lines(), draw_seq_in_view(), draw_seq_strips(), 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_keylist_draw_list_draw_keys(), 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(), EEVEE_cryptomatte_render_result(), EEVEE_lookdev_init(), eevee_render_color_result(), file_draw_preview(), find_nearest_seq(), 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_pick_begin(), gpu_select_query_begin(), GPU_viewport_bind(), GPU_viewport_draw_to_screen_ex(), graphkeys_box_select_exec(), 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(), movieclip_main_area_set_view2d(), nla_action_draw_keyframes(), nlaedit_box_select_exec(), blender::ed::space_node::node_circleselect_exec(), outliner_draw_tree(), 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_thumbnail_init_job(), sequencer_view_zoom_ratio_exec(), shape_preset_init_trias_ex(), shape_preset_trias_from_rect_menu(), sima_zoom_set(), sima_zoom_set_from_bounds(), 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_HSV_v(), 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_searchbox_butrect(), ui_searchbox_create_generic_ex(), ui_searchbox_region_draw_cb__operator(), ui_searchbox_region_draw_fn(), ui_text_clip_cursor(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), ui_text_clip_right_label(), ui_textedit_set_cursor_pos_foreach_glyph(), 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_calc(), UI_view2d_scrollers_draw_ex(), 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::MixBaseOperation::update_memory_buffer_partial(), blender::compositor::IDMaskOperation::update_memory_buffer_partial(), blender::compositor::ViewerOperation::update_memory_buffer_partial(), view2d_major_step_x__continuous(), view2d_major_step_x__discrete(), view2d_major_step_x__time(), view2d_map_cur_using_mask(), 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_draw_text_underline_calc_position(), widget_numbut_draw(), widget_numslider(), widget_optionbut(), widget_progressbar(), widget_scroll(), blender::compositor::BufferArea< T >::width(), wm_draw_region_blend(), wm_paintcursor_draw(), wm_window_check_size(), WM_window_open(), wmGetProjectionMatrix(), wmPartialViewport(), wmViewport(), workbench_render(), and workbench_render_result_z().
BLI_INLINE int BLI_rcti_size_y | ( | const struct rcti * | rct | ) |
Definition at line 190 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(), blf_font_height(), blf_font_width_and_height(), BLI_rcti_scale(), blender::compositor::BuffersIteratorBuilder< T >::BuffersIteratorBuilder(), calctrackballvec(), 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::compositor::BokehBlurOperation::determine_canvas(), blender::compositor::FlipOperation::determine_canvas(), blender::compositor::GlareThresholdOperation::determine_canvas(), blender::compositor::PreviewOperation::determine_canvas(), blender::compositor::ReadBufferOperation::determine_canvas(), blender::compositor::ScaleOperation::determine_canvas(), blender::compositor::TransformOperation::determine_canvas(), blender::compositor::WriteBufferOperation::determine_canvas(), draw_filled_lasso(), draw_parallel_lines(), draw_seq_in_view(), draw_seq_strip(), draw_vertical_scale_indicators(), DRW_draw_select_loop(), DRW_select_buffer_read(), ED_keylist_draw_list_draw_keys(), ED_mask_draw_region(), ED_node_socket_draw(), 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(), EEVEE_cryptomatte_render_result(), eevee_render_color_result(), blender::compositor::ExecutionSystem::execute_work(), file_draw_preview(), file_draw_string_multiline(), 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_pick_begin(), gpu_select_query_begin(), GPU_viewport_bind(), GPU_viewport_draw_to_screen_ex(), graphkeys_box_select_exec(), blender::compositor::BufferArea< T >::height(), 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(), movieclip_main_area_set_view2d(), nla_action_draw_keyframes(), nlaedit_box_select_exec(), nlaedit_viewall(), outliner_item_rename(), outliner_scroll_page_exec(), outliner_show_active_exec(), 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(), round_box_shadow_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_thumbnail_init_job(), sequencer_view_all_exec(), sequencer_view_zoom_ratio_exec(), shape_preset_init_trias_ex(), shape_preset_trias_from_rect_checkmark(), shape_preset_trias_from_rect_menu(), sima_zoom_set(), sima_zoom_set_from_bounds(), ui_block_to_region_fl(), ui_but_contains_point_px_icon(), ui_do_drag(), ui_draw_but(), ui_draw_but_COLORBAND(), 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_separator(), 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_create_generic_ex(), 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_calc(), 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(), blender::compositor::ViewerOperation::update_memory_buffer_partial(), view2d_major_step_y__continuous(), view2d_map_cur_using_mask(), view3d_depths_rect_create(), view3d_opengl_read_Z_pixels(), view3d_zoom_border_exec(), view_all_exec(), view_pan_init(), view_scrollup_exec(), 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(), widget_softshadow(), wm_draw_region_blend(), wm_paintcursor_draw(), wm_window_check_size(), WM_window_open(), wmGetProjectionMatrix(), wmPartialViewport(), wmViewport(), workbench_render(), and workbench_render_result_z().
Definition at line 559 of file rct.c.
References x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by 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(), draw_filled_lasso(), 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_azone_scrollbar_init(), region_overlap_fix(), region_visible_rect_calc(), blender::compositor::ScaleOperation::scale_area(), ui_but_pixelrect_in_view(), ui_but_to_pixelrect(), ui_popup_translate(), ui_region_winrct_get_no_margin(), ui_searchbox_create_generic_ex(), 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().