|
Blender V5.0
|
#include <limits>#include "BKE_screen.hh"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "WM_message.hh"#include "ED_screen.hh"#include "UI_interface.hh"Go to the source code of this file.
Functions | |
Generic Tool System Region Callbacks | |
| void | ED_region_generic_tools_region_message_subscribe (const wmRegionMessageSubscribeParams *params) |
| int | ED_region_generic_tools_region_snap_size (const ARegion *region, int size, int axis) |
| int | ED_region_generic_panel_region_snap_size (const ARegion *region, int size, int axis) |
Helper functions for area/region API.
Definition in file area_utils.cc.
| int ED_region_generic_panel_region_snap_size | ( | const ARegion * | region, |
| int | size, | ||
| int | axis ) |
Definition at line 71 of file area_utils.cc.
References BLI_rctf_size_y(), BLI_rcti_size_y(), View2D::cur, View2D::mask, size(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MIN_WIDTH, and ARegion::v2d.
Referenced by ED_spacetype_clip(), ED_spacetype_image(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), ED_spacetype_text(), and ED_spacetype_view3d().
| void ED_region_generic_tools_region_message_subscribe | ( | const wmRegionMessageSubscribeParams * | params | ) |
Callback for ARegionType.message_subscribe
Definition at line 28 of file area_utils.cc.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, wmMsgSubscribeValue::user_data, and WM_msg_subscribe_rna_anon_prop.
Referenced by ED_spacetype_image(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_view3d().
| int ED_region_generic_tools_region_snap_size | ( | const ARegion * | region, |
| int | size, | ||
| int | axis ) |
Callback for ARegionType.snap_size
Definition at line 40 of file area_utils.cc.
References abs, ARRAY_SIZE, BLI_rctf_size_y(), BLI_rcti_size_y(), View2D::cur, i, View2D::mask, size(), UI_TOOLBAR_COLUMN, UI_TOOLBAR_MARGIN, and ARegion::v2d.
Referenced by ED_spacetype_image(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_view3d().