Blender V4.3
ED_select_utils.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BLI_compiler_attrs.h"
12
13struct KDTree_1d;
14struct PointerRNA;
15struct wmOperatorType;
16
17enum {
22};
23
30
39
46
47#define SEL_OP_USE_OUTSIDE(sel_op) (ELEM(sel_op, SEL_OP_AND))
48#define SEL_OP_USE_PRE_DESELECT(sel_op) (ELEM(sel_op, SEL_OP_SET))
49#define SEL_OP_CAN_DESELECT(sel_op) (!ELEM(sel_op, SEL_OP_ADD))
50
55int ED_select_op_action(eSelectOp sel_op, bool is_select, bool is_inside);
62int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside);
63
64bool ED_select_similar_compare_float(float delta, float thresh, eSimilarCmp compare);
65bool ED_select_similar_compare_float_tree(const KDTree_1d *tree,
66 float length,
67 float thresh,
68 eSimilarCmp compare);
69
73eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first);
74
94
99
105 ATTR_NONNULL(1, 2);
106
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside)
eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first)
int ED_select_op_action(eSelectOp sel_op, bool is_select, bool is_inside)
std::string ED_select_circle_get_name(wmOperatorType *ot, PointerRNA *ptr)
WalkSelectDirection
@ UI_SELECT_WALK_RIGHT
@ UI_SELECT_WALK_UP
@ UI_SELECT_WALK_LEFT
@ UI_SELECT_WALK_DOWN
@ SEL_SELECT
@ SEL_INVERT
@ SEL_DESELECT
@ SEL_TOGGLE
bool ED_select_similar_compare_float(float delta, float thresh, eSimilarCmp compare)
void ED_select_pick_params_from_operator(PointerRNA *ptr, SelectPick_Params *params) ATTR_NONNULL(1
eSimilarCmp
@ SIM_CMP_LT
@ SIM_CMP_GT
@ SIM_CMP_EQ
eSelectOp ED_select_op_from_operator(PointerRNA *ptr) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool ED_select_similar_compare_float_tree(const KDTree_1d *tree, float length, float thresh, eSimilarCmp compare)
void std::string ED_select_pick_get_name(wmOperatorType *ot, PointerRNA *ptr)
eSelectOp
@ SEL_OP_ADD
@ SEL_OP_SUB
@ SEL_OP_SET
@ SEL_OP_AND
@ SEL_OP_XOR
KDTree_3d * tree
static bool is_inside(int x, int y, int cols, int rows)
Definition filesel.cc:768
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
PointerRNA * ptr
Definition wm_files.cc:4126
wmOperatorType * ot
Definition wm_files.cc:4125