Blender V5.0
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
8
9#pragma once
10
11#include <string>
12
14#include "BLI_vector.hh"
15
16namespace blender::bke {
17
18/* Flags for #bNodeSocketValueMenu. */
20 /* Socket has conflicting menu connections and cannot resolve items. */
22};
23
24/* -------------------------------------------------------------------- */
27
32 std::string name;
33 std::string description;
34 /* Immutable unique identifier. */
36};
37
44
45 const RuntimeNodeEnumItem *find_item_by_identifier(int identifier) const;
46
47 void delete_self() override
48 {
49 delete this;
50 }
51};
52
54
55} // namespace blender::bke
Vector< RuntimeNodeEnumItem > items
const RuntimeNodeEnumItem * find_item_by_identifier(int identifier) const