Blender V4.3
BKE_node_enum.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
5#pragma once
6
7#include <string>
8
10#include "BLI_vector.hh"
11
12namespace blender::bke {
13
14/* Flags for #bNodeSocketValueMenu. */
16 /* Socket has conflicting menu connections and cannot resolve items. */
18};
19
20/* -------------------------------------------------------------------- */
28 std::string name;
29 std::string description;
30 /* Immutable unique identifier. */
32};
33
40
41 const RuntimeNodeEnumItem *find_item_by_identifier(int identifier) const;
42
43 void delete_self() override
44 {
45 delete this;
46 }
47};
48
51} // namespace blender::bke
Vector< RuntimeNodeEnumItem > items
const RuntimeNodeEnumItem * find_item_by_identifier(int identifier) const