Blender V4.3
blender::nodes::PanelDeclaration Class Reference

#include <NOD_node_declaration.hh>

Inherits blender::nodes::ItemDeclaration.

Public Member Functions

virtual ~PanelDeclaration ()=default
 
void build (bNodePanelState &panel) const
 
bool matches (const bNodePanelState &panel) const
 
void update_or_build (const bNodePanelState &old_panel, bNodePanelState &new_panel) const
 
- Public Member Functions inherited from blender::nodes::ItemDeclaration
virtual ~ItemDeclaration ()=default
 

Public Attributes

int identifier
 
std::string name
 
std::string description
 
std::string translation_context
 
bool default_collapsed = false
 
int num_child_decls = 0
 
PanelDrawButtonsFunction draw_buttons = nullptr
 

Friends

class PanelDeclarationBuilder
 

Detailed Description

Describes a panel containing sockets or other panels.

Definition at line 418 of file NOD_node_declaration.hh.

Constructor & Destructor Documentation

◆ ~PanelDeclaration()

virtual blender::nodes::PanelDeclaration::~PanelDeclaration ( )
virtualdefault

Member Function Documentation

◆ build()

void blender::nodes::PanelDeclaration::build ( bNodePanelState & panel) const

◆ matches()

bool blender::nodes::PanelDeclaration::matches ( const bNodePanelState & panel) const

Definition at line 389 of file node_declaration.cc.

References identifier, and bNodePanelState::identifier.

Referenced by blender::nodes::refresh_node_panel().

◆ update_or_build()

void blender::nodes::PanelDeclaration::update_or_build ( const bNodePanelState & old_panel,
bNodePanelState & new_panel ) const

Friends And Related Symbol Documentation

◆ PanelDeclarationBuilder

friend class PanelDeclarationBuilder
friend

Definition at line 430 of file NOD_node_declaration.hh.

Member Data Documentation

◆ default_collapsed

bool blender::nodes::PanelDeclaration::default_collapsed = false

◆ description

std::string blender::nodes::PanelDeclaration::description

◆ draw_buttons

◆ identifier

int blender::nodes::PanelDeclaration::identifier

Definition at line 420 of file NOD_node_declaration.hh.

Referenced by build(), matches(), and blender::nodes::refresh_node_panel().

◆ name

◆ num_child_decls

◆ translation_context

std::string blender::nodes::PanelDeclaration::translation_context

Definition at line 423 of file NOD_node_declaration.hh.


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