Ember
Loading...
Searching...
No Matches
StatusOverlay.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <set>
5#include <wx/colour.h>
6
7namespace EmberUI {
8
11 public:
12 virtual ~IStatusProvider() = default;
14 virtual int GetNodeStatus(int64_t nodeId) const = 0;
16 virtual bool IsNodeInExecutionPath(int64_t nodeId) const = 0;
18 virtual void GetExecutionPathIds(std::set<int64_t> &outIds) const = 0;
19};
20
23 static wxColour GetFillColor(int status);
24 static wxColour GetBorderColor(int status);
25 static wxColour GetTextColor(int status);
26
27 static wxColour GetExecutionPathColor();
28 static wxColour GetCurrentNodeColor();
29
30 static wxColour IdleFill();
31 static wxColour RunningFill();
32 static wxColour SuccessFill();
33 static wxColour FailureFill();
34 static wxColour HaltedFill();
35};
36
37} // namespace EmberUI
Interface for querying node status and execution path.
virtual void GetExecutionPathIds(std::set< int64_t > &outIds) const =0
Fills outIds with IDs of nodes in the execution path.
virtual int GetNodeStatus(int64_t nodeId) const =0
Returns the status code for the given node.
virtual bool IsNodeInExecutionPath(int64_t nodeId) const =0
Returns true if the node is in the current execution path.
virtual ~IStatusProvider()=default
Definition Panel.h:8
Static helpers for status colors by node state (Idle/Running/Success/Failure/Halted).
static wxColour GetCurrentNodeColor()
Color for the currently executing node.
static wxColour RunningFill()
Fill color for running state.
static wxColour FailureFill()
Fill color for failure state.
static wxColour IdleFill()
Fill color for idle state.
static wxColour GetExecutionPathColor()
Color for nodes in the execution path.
static wxColour GetBorderColor(int status)
Returns border color for the given status code.
static wxColour GetTextColor(int status)
Returns text color for the given status code.
static wxColour GetFillColor(int status)
Returns fill color for the given status code.
static wxColour SuccessFill()
Fill color for success state.
static wxColour HaltedFill()
Fill color for halted state.