Files
test2/source/blender/nodes/NOD_node_extra_info.hh
Hans Goudey 2609f16fc8 Cleanup: Resolve inconsistent struct vs. class declaration warning
Also add a missing include in a header
2023-12-06 10:00:25 -05:00

30 lines
562 B
C++

/* SPDX-FileCopyrightText: 2005 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "BLI_vector.hh"
#include "UI_interface_c.hh"
namespace blender::nodes {
struct NodeExtraInfoRow {
std::string text;
int icon = 0;
const char *tooltip = nullptr;
uiButToolTipFunc tooltip_fn = nullptr;
void *tooltip_fn_arg = nullptr;
void (*tooltip_fn_free_arg)(void *) = nullptr;
};
struct NodeExtraInfoParams {
Vector<NodeExtraInfoRow> &rows;
const bNode &node;
const bContext &C;
};
} // namespace blender::nodes