Blender V5.3
DNA_windowmanager_enums.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2007 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13namespace blender {
14
33
34#define OPERATOR_FLAGS_ALL \
35 (OPERATOR_RUNNING_MODAL | OPERATOR_CANCELLED | OPERATOR_FINISHED | OPERATOR_PASS_THROUGH | \
36 OPERATOR_HANDLED | OPERATOR_INTERFACE | 0)
37
38/* sanity checks for debug mode only */
39#define OPERATOR_RETVAL_CHECK(ret) \
40 { \
41 CHECK_TYPE(ret, wmOperatorStatus); \
42 BLI_assert(ret != 0 && (ret & OPERATOR_FLAGS_ALL) == ret); \
43 } \
44 ((void)0)
45
47enum eOperator_Flag : short {
52 OP_IS_INVOKE = (1 << 0),
54 OP_IS_REPEAT = (1 << 1),
64
67
73};
75
76} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ENUM_OPERATORS(Layer::Flags)
BMesh Iterators.