|
Blender V4.5
|
#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) |
Helper functions for area/region API.
Definition in file area_utils.cc.
| void ED_region_generic_tools_region_message_subscribe | ( | const wmRegionMessageSubscribeParams * | params | ) |
Callback for ARegionType.message_subscribe
Definition at line 26 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 38 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().