FPSGraphWindow

This commit is contained in:
2025-06-09 20:16:05 -05:00
parent ab11857cfa
commit 31d5074ed0
2 changed files with 8 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "Rect.hpp"
#include "ImageRect.hpp"
#include <JUI/Widgets/Rect.hpp>
#include <JUI/Widgets/ImageRect.hpp>
#include <JUI/Widgets/FpsGraph.hpp>
namespace JUI {
@@ -97,8 +98,12 @@ namespace JUI {
Name("FPSGraphWindow");
Title("FPS Graph");
Size({500_px, 70_px});
this->SetResizable(false);
data_graph = new FpsGraph(this->Content());
data_graph->Size({500_px, 50_px});
}

View File

@@ -373,14 +373,7 @@ JUI::Scene* CreateScene() {
auto *root = new Scene();
auto* graph_window = new JUI::Window(root);
graph_window->Name("Graph Window");
graph_window->Title("Graph Window");
graph_window->Size({500_px, 50_px});
auto* graph = new JUI::FpsGraph(graph_window->Content());
graph->Name("Graph");
graph->Size({500_px, 50_px});
auto* graph_window = new JUI::FpsGraphWindow(root);
auto* colorpicker_wnd = new JUI::Window(root);
colorpicker_wnd->Name("Slider ColorPicker");