Add FpsGraphWindow::DockGraph and UndockGraph

This commit is contained in:
2025-06-24 02:52:48 -05:00
parent f46bf097ac
commit 3a0743e787
2 changed files with 26 additions and 2 deletions

View File

@@ -101,7 +101,17 @@ namespace JUI {
FpsGraphWindow();
explicit FpsGraphWindow(Widget* parent);
FpsGraph* GraphWidget() {return data_graph; }
void DockGraph() {
this->Close();
// TODO:: unsafe.
data_graph->Parent(this->GetParent());
data_graph->SetupAsPseudoDockedElementAtBottomOfScreen();
}
void UndockGraph() {
this->Open();
data_graph->Parent(this->Content());
}
protected:
FpsGraph* data_graph;
private: