Add FpsGraphWindow::DockGraph and UndockGraph
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user