File tree Expand file tree Collapse file tree
include/bombfork/prong/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ target_include_directories(glfw_adapters PUBLIC
7575
7676target_compile_features (glfw_adapters PUBLIC cxx_std_20 )
7777
78+ # Enable iwyu for glfw_adapters
79+ set_target_properties (glfw_adapters PROPERTIES
80+ CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH} ;-Xiwyu;--error;-Xiwyu;--verbose=3"
81+ )
82+
7883# === Demo App Example ===
7984
8085add_executable (prong_demo_app
@@ -100,6 +105,11 @@ target_compile_features(prong_demo_app PRIVATE cxx_std_20)
100105# Suppress unused function warnings for STB (header-only library with many utilities)
101106target_compile_options (prong_demo_app PRIVATE -Wno-unused-function )
102107
108+ # Enable iwyu for prong_demo_app
109+ set_target_properties (prong_demo_app PROPERTIES
110+ CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH} ;-Xiwyu;--error;-Xiwyu;--verbose=3"
111+ )
112+
103113# Make example depend on formatting target
104114add_dependencies (prong_demo_app format-example-sources )
105115
Original file line number Diff line number Diff line change 1111#include " scenes/demo_scene.h"
1212#include < GLFW/glfw3.h>
1313
14- #include < cmath>
1514#include < filesystem>
1615#include < iostream>
1716#include < memory>
17+ #include < string>
1818
1919#ifdef __linux__
2020#include < sys/types.h>
Original file line number Diff line number Diff line change @@ -169,12 +169,6 @@ class Viewport : public Component {
169169 PanChangedCallback panCallback;
170170 SelectionCallback selectionCallback;
171171
172- // Scrollbar state
173- bool horizontalScrollbarHover = false ;
174- bool verticalScrollbarHover = false ;
175- bool horizontalScrollbarDrag = false ;
176- bool verticalScrollbarDrag = false ;
177-
178172public:
179173 explicit Viewport () : Component(nullptr , " Viewport" ) {
180174 // Initialize default theme
You can’t perform that action at this time.
0 commit comments