Blender
V5.0
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
5
#pragma once
6
7
#include "
BLI_vector.hh
"
8
9
#include "
UI_interface_c.hh
"
10
11
namespace
blender::nodes
{
12
13
struct
NodeExtraInfoRow
{
14
std::string
text
;
15
int
icon
= 0;
16
StringRef
tooltip
;
17
18
uiButToolTipFunc
tooltip_fn
=
nullptr
;
19
void
*
tooltip_fn_arg
=
nullptr
;
20
void (*
tooltip_fn_free_arg
)(
void
*) =
nullptr
;
21
void
*(*tooltip_fn_copy_arg)(
void
*) =
nullptr
;
22
23
std::function<void(
uiBut
&)>
set_execute_fn
;
24
};
25
26
struct
NodeExtraInfoParams
{
27
Vector<NodeExtraInfoRow>
&
rows
;
28
const
bNodeTree
&
tree
;
29
const
bNode
&
node
;
30
const
bContext
&
C
;
31
};
32
33
}
// namespace blender::nodes
BLI_vector.hh
UI_interface_c.hh
uiButToolTipFunc
std::string(*)(bContext *C, void *argN, blender::StringRef tip) uiButToolTipFunc
Definition
UI_interface_types.hh:38
blender::StringRef
Definition
BLI_string_ref.hh:150
blender::Vector
Definition
BLI_vector.hh:76
blender::nodes
Definition
BKE_compute_contexts.hh:29
bContext
Definition
blenkernel/intern/context.cc:63
bNodeTree
Definition
DNA_node_types.h:759
bNode
Definition
DNA_node_types.h:422
blender::nodes::NodeExtraInfoParams
Definition
NOD_node_extra_info.hh:26
blender::nodes::NodeExtraInfoParams::tree
const bNodeTree & tree
Definition
NOD_node_extra_info.hh:28
blender::nodes::NodeExtraInfoParams::C
const bContext & C
Definition
NOD_node_extra_info.hh:30
blender::nodes::NodeExtraInfoParams::rows
Vector< NodeExtraInfoRow > & rows
Definition
NOD_node_extra_info.hh:27
blender::nodes::NodeExtraInfoParams::node
const bNode & node
Definition
NOD_node_extra_info.hh:29
blender::nodes::NodeExtraInfoRow
Definition
NOD_node_extra_info.hh:13
blender::nodes::NodeExtraInfoRow::icon
int icon
Definition
NOD_node_extra_info.hh:15
blender::nodes::NodeExtraInfoRow::tooltip_fn_arg
void * tooltip_fn_arg
Definition
NOD_node_extra_info.hh:19
blender::nodes::NodeExtraInfoRow::set_execute_fn
std::function< void(uiBut &)> set_execute_fn
Definition
NOD_node_extra_info.hh:23
blender::nodes::NodeExtraInfoRow::tooltip
StringRef tooltip
Definition
NOD_node_extra_info.hh:16
blender::nodes::NodeExtraInfoRow::tooltip_fn
uiButToolTipFunc tooltip_fn
Definition
NOD_node_extra_info.hh:18
blender::nodes::NodeExtraInfoRow::text
std::string text
Definition
NOD_node_extra_info.hh:14
blender::nodes::NodeExtraInfoRow::tooltip_fn_free_arg
void(* tooltip_fn_free_arg)(void *)
Definition
NOD_node_extra_info.hh:20
uiBut
Definition
interface_intern.hh:172
Generated on
for Blender by
doxygen
1.16.1