Blender
V5.3
source
blender
nodes
NOD_node_extra_info.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2005 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_vector.hh
"
12
13
#include "
UI_interface_c.hh
"
14
15
namespace
blender::nodes
{
16
17
struct
NodeExtraInfoRow
{
18
std::string
text
;
19
int
icon
= 0;
20
StringRef
tooltip
;
21
22
ui::ButtonToolTipFunc
tooltip_fn
=
nullptr
;
23
void
*
tooltip_fn_arg
=
nullptr
;
24
void (*
tooltip_fn_free_arg
)(
void
*) =
nullptr
;
25
void
*(*tooltip_fn_copy_arg)(
void
*) =
nullptr
;
26
27
std::function<void(
ui::Button
&)>
set_execute_fn
;
28
};
29
30
struct
NodeExtraInfoParams
{
31
Vector<NodeExtraInfoRow>
&
rows
;
32
const
bNodeTree
&
tree
;
33
const
bNode
&
node
;
34
const
bContext
&
C
;
35
};
36
37
}
// namespace blender::nodes
BLI_vector.hh
UI_interface_c.hh
blender::StringRef
Definition
BLI_string_ref.hh:165
blender::Vector
Definition
BLI_vector.hh:76
blender::nodes
Definition
BKE_compute_contexts.hh:33
blender::ui::ButtonToolTipFunc
std::string(*)(bContext *C, void *argN, StringRef tip) ButtonToolTipFunc
Definition
UI_interface_types.hh:49
blender::bContext
Definition
blenkernel/intern/context.cc:65
blender::bNodeTree
Definition
DNA_node_types.h:1891
blender::bNode
Definition
DNA_node_types.h:1641
blender::nodes::NodeExtraInfoParams
Definition
NOD_node_extra_info.hh:30
blender::nodes::NodeExtraInfoParams::tree
const bNodeTree & tree
Definition
NOD_node_extra_info.hh:32
blender::nodes::NodeExtraInfoParams::C
const bContext & C
Definition
NOD_node_extra_info.hh:34
blender::nodes::NodeExtraInfoParams::rows
Vector< NodeExtraInfoRow > & rows
Definition
NOD_node_extra_info.hh:31
blender::nodes::NodeExtraInfoParams::node
const bNode & node
Definition
NOD_node_extra_info.hh:33
blender::nodes::NodeExtraInfoRow
Definition
NOD_node_extra_info.hh:17
blender::nodes::NodeExtraInfoRow::icon
int icon
Definition
NOD_node_extra_info.hh:19
blender::nodes::NodeExtraInfoRow::tooltip_fn_arg
void * tooltip_fn_arg
Definition
NOD_node_extra_info.hh:23
blender::nodes::NodeExtraInfoRow::tooltip_fn
ui::ButtonToolTipFunc tooltip_fn
Definition
NOD_node_extra_info.hh:22
blender::nodes::NodeExtraInfoRow::tooltip
StringRef tooltip
Definition
NOD_node_extra_info.hh:20
blender::nodes::NodeExtraInfoRow::text
std::string text
Definition
NOD_node_extra_info.hh:18
blender::nodes::NodeExtraInfoRow::tooltip_fn_free_arg
void(*) tooltip_fn_free_arg(void *)
Definition
NOD_node_extra_info.hh:24
blender::nodes::NodeExtraInfoRow::set_execute_fn
std::function< void(ui::Button &)> set_execute_fn
Definition
NOD_node_extra_info.hh:27
blender::ui::Button
Definition
interface_intern.hh:198
Generated on
for Blender by
doxygen
1.18.0