Blender V4.5
blender::nodes::PanelDeclarationBuilder Class Reference

#include <NOD_node_declaration.hh>

Inherits blender::nodes::DeclarationListBuilder.

Public Member Functions

 PanelDeclarationBuilder (NodeDeclarationBuilder &node_builder, PanelDeclaration &decl)
 
Selfdescription (std::string value="")
 
Selftranslation_context (std::optional< std::string > value=std::nullopt)
 
Selfdefault_closed (bool closed)
 
- Public Member Functions inherited from blender::nodes::DeclarationListBuilder
 DeclarationListBuilder (NodeDeclarationBuilder &node_decl_builder, Vector< ItemDeclaration * > &items)
 
BaseSocketDeclarationBuilderadd_input (eNodeSocketDatatype socket_type, StringRef name, StringRef identifier="")
 
BaseSocketDeclarationBuilderadd_input (eCustomDataType data_type, StringRef name, StringRef identifier="")
 
BaseSocketDeclarationBuilderadd_output (eNodeSocketDatatype socket_type, StringRef name, StringRef identifier="")
 
BaseSocketDeclarationBuilderadd_output (eCustomDataType data_type, StringRef name, StringRef identifier="")
 
PanelDeclarationBuilderadd_panel (StringRef name, int identifier=-1)
 
void add_separator ()
 
void add_default_layout ()
 
void add_layout (std::function< void(uiLayout *, bContext *, PointerRNA *)> draw)
 
template<typename DeclType >
DeclType::Builder & add_socket (StringRef name, StringRef identifier, eNodeSocketInOut in_out)
 
template<typename DeclType >
DeclType::Builder & add_input (StringRef name, StringRef identifier="")
 
template<typename DeclType >
DeclType::Builder & add_output (StringRef name, StringRef identifier="")
 

Protected Types

using Self = PanelDeclarationBuilder
 

Protected Attributes

PanelDeclarationdecl_
 

Friends

class NodeDeclarationBuilder
 

Additional Inherited Members

- Public Attributes inherited from blender::nodes::DeclarationListBuilder
NodeDeclarationBuildernode_decl_builder
 
Vector< ItemDeclaration * > & items
 
PanelDeclarationparent_panel_decl = nullptr
 

Detailed Description

Definition at line 562 of file NOD_node_declaration.hh.

Member Typedef Documentation

◆ Self

Constructor & Destructor Documentation

◆ PanelDeclarationBuilder()

blender::nodes::PanelDeclarationBuilder::PanelDeclarationBuilder ( NodeDeclarationBuilder & node_builder,
PanelDeclaration & decl )
inline

Definition at line 570 of file NOD_node_declaration.hh.

Member Function Documentation

◆ default_closed()

◆ description()

PanelDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::description ( std::string value = "")

Definition at line 894 of file node_declaration.cc.

References decl_, blender::nodes::PanelDeclaration::description, and value.

◆ translation_context()

PanelDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::translation_context ( std::optional< std::string > value = std::nullopt)

Friends And Related Symbol Documentation

◆ NodeDeclarationBuilder

Definition at line 567 of file NOD_node_declaration.hh.

Member Data Documentation

◆ decl_

PanelDeclaration* blender::nodes::PanelDeclarationBuilder::decl_
protected

Definition at line 565 of file NOD_node_declaration.hh.

Referenced by default_closed(), description(), and translation_context().


The documentation for this class was generated from the following files: