Ember
Loading...
Searching...
No Matches
MonitorTreeCanvas.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace Ember {
6namespace Monitor {
7
10 public:
11 MonitorTreeCanvas(wxWindow *parent, wxWindowID id = wxID_ANY);
12
14 void ApplyBaseConfig();
15
17 void SetConnectionInfo(bool connected, int tickCount);
18
19 protected:
21 wxColour GetNodeFillColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override;
23 wxColour GetNodeBorderColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override;
25 wxColour GetNodeTextColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override;
27 void OnBeforePaintOverlays(wxDC &dc) override;
28
29 private:
30 bool m_connected = false;
31 int m_tickCount = 0;
32};
33
34} // namespace Monitor
35} // namespace Ember
Abstract interface for tree nodes that can be visualized.
Definition ITreeNode.h:31
Shared tree rendering canvas usable by both EmberForge and EmberMonitor.
Definition TreeCanvas.h:76
wxColour GetNodeBorderColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override
Returns border color based on node status, selection, and hover.
wxColour GetNodeTextColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override
Returns text color based on node status, selection, and hover.
MonitorTreeCanvas(wxWindow *parent, wxWindowID id=wxID_ANY)
void ApplyBaseConfig()
Applies base visualization configuration (colors, layout, etc.).
void OnBeforePaintOverlays(wxDC &dc) override
Paints connection info overlay before other overlays.
wxColour GetNodeFillColor(EmberCore::ITreeNode *node, bool selected, bool hovered) override
Returns fill color based on node status, selection, and hover.
void SetConnectionInfo(bool connected, int tickCount)
Sets connection state and tick count for the overlay display.