|
Blender
V3.3
|
#include "DNA_userdef_types.h"#include "BKE_screen.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "RNA_access.h"#include "RNA_types.h"#include "WM_message.h"#include "ED_screen.h"#include "UI_interface_icons.h"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.c.
| void ED_region_generic_tools_region_message_subscribe | ( | const wmRegionMessageSubscribeParams * | params | ) |
Definition at line 29 of file area_utils.c.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::owner, params, and WM_msg_subscribe_rna_anon_prop.
| int ED_region_generic_tools_region_snap_size | ( | const ARegion * | region, |
| int | size, | ||
| int | axis | ||
| ) |
Definition at line 42 of file area_utils.c.
References blender::math::abs(), ARRAY_SIZE, BLI_rctf_size_y(), BLI_rcti_size_y(), View2D::cur, ICON_DEFAULT_HEIGHT_TOOLBAR, View2D::mask, size(), and ARegion::v2d.