Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Olympe::GraphTab Struct Reference

Represents one open tab in the NodeGraphPanel tab bar. More...

#include <NodeGraphPanel.h>

Public Member Functions

 GraphTab ()
 
 GraphTab (const std::string &id, const std::string &name, const std::string &path)
 

Public Attributes

std::string tabID
 Unique identifier (UUID or "root")
 
std::string displayName
 Label shown on the tab ("Root" or subgraph name)
 
std::string graphPath
 "root" or "subgraphs/<uuid>"
 
bool isDirty
 True when the graph has unsaved changes.
 

Detailed Description

Represents one open tab in the NodeGraphPanel tab bar.

The root graph always has graphPath == "root". A subgraph tab has graphPath == "subgraphs/<uuid>".

Definition at line 36 of file NodeGraphPanel.h.

Constructor & Destructor Documentation

◆ GraphTab() [1/2]

Olympe::GraphTab::GraphTab ( )
inline

Definition at line 43 of file NodeGraphPanel.h.

◆ GraphTab() [2/2]

Olympe::GraphTab::GraphTab ( const std::string &  id,
const std::string &  name,
const std::string &  path 
)
inline

Definition at line 44 of file NodeGraphPanel.h.

Member Data Documentation

◆ displayName

std::string Olympe::GraphTab::displayName

Label shown on the tab ("Root" or subgraph name)

Definition at line 39 of file NodeGraphPanel.h.

Referenced by Olympe::NodeGraphPanel::RenderSubgraphTabBar().

◆ graphPath

std::string Olympe::GraphTab::graphPath

"root" or "subgraphs/<uuid>"

Definition at line 40 of file NodeGraphPanel.h.

◆ isDirty

bool Olympe::GraphTab::isDirty

True when the graph has unsaved changes.

Definition at line 41 of file NodeGraphPanel.h.

◆ tabID

std::string Olympe::GraphTab::tabID

Unique identifier (UUID or "root")

Definition at line 38 of file NodeGraphPanel.h.


The documentation for this struct was generated from the following file: