Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/intermediate/01_nested_panels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ add_dependencies(01_nested_panels format-example-sources)
# Output to build/examples/intermediate/01_nested_panels/
set_target_properties(01_nested_panels PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/intermediate/01_nested_panels"
CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH};-Xiwyu;--error;-Xiwyu;--verbose=3"
)
6 changes: 6 additions & 0 deletions examples/intermediate/01_nested_panels/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@
#include <GLFW/glfw3.h>
#include <bombfork/prong/components/button.h>
#include <bombfork/prong/components/panel.h>
#include <bombfork/prong/core/component.h>
#include <bombfork/prong/core/component_builder.h>
#include <bombfork/prong/core/component_traits.h>
#include <bombfork/prong/core/scene.h>
#include <bombfork/prong/layout/flex_layout.h>
#include <bombfork/prong/layout/grid_layout.h>
#include <bombfork/prong/layout/stack_layout.h>

#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <utility>

using namespace bombfork::prong;
using namespace bombfork::prong::layout;
Expand Down
1 change: 1 addition & 0 deletions examples/intermediate/02_responsive_ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ add_dependencies(02_responsive_ui format-example-sources)
# Output to build/examples/intermediate/02_responsive_ui/
set_target_properties(02_responsive_ui PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/intermediate/02_responsive_ui"
CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH};-Xiwyu;--error;-Xiwyu;--verbose=3"
)
4 changes: 4 additions & 0 deletions examples/intermediate/02_responsive_ui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
#include <GLFW/glfw3.h>
#include <bombfork/prong/components/button.h>
#include <bombfork/prong/components/panel.h>
#include <bombfork/prong/core/component.h>
#include <bombfork/prong/core/component_builder.h>
#include <bombfork/prong/core/scene.h>
#include <bombfork/prong/layout/flex_layout.h>
#include <bombfork/prong/theming/color.h>

#include <functional>
#include <iostream>
#include <memory>
#include <utility>

using namespace bombfork::prong;
using namespace bombfork::prong::layout;
Expand Down
1 change: 1 addition & 0 deletions examples/intermediate/03_event_handling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ add_dependencies(03_event_handling format-example-sources)
# Output to build/examples/intermediate/03_event_handling/
set_target_properties(03_event_handling PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/intermediate/03_event_handling"
CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH};-Xiwyu;--error;-Xiwyu;--verbose=3"
)
3 changes: 2 additions & 1 deletion examples/intermediate/03_event_handling/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "../../adapters/glfw_window_adapter.h"
#include "../../adapters/simple_opengl_renderer.h"
#include <GLFW/glfw3.h>
#include <bombfork/prong/components/button.h>
#include <bombfork/prong/components/panel.h>
#include <bombfork/prong/core/component.h>
#include <bombfork/prong/core/component_builder.h>
Expand All @@ -25,8 +24,10 @@
#include <bombfork/prong/theming/color.h>

#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <utility>

using namespace bombfork::prong;
using namespace bombfork::prong::core;
Expand Down
1 change: 1 addition & 0 deletions examples/intermediate/04_dynamic_layout/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ add_dependencies(04_dynamic_layout format-example-sources)
# Output to build/examples/intermediate/04_dynamic_layout/
set_target_properties(04_dynamic_layout PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/intermediate/04_dynamic_layout"
CXX_INCLUDE_WHAT_YOU_USE "${IWYU_PATH};-Xiwyu;--error;-Xiwyu;--verbose=3"
)
16 changes: 15 additions & 1 deletion examples/intermediate/04_dynamic_layout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,35 @@
#include <GLFW/glfw3.h>
#include <bombfork/prong/components/button.h>
#include <bombfork/prong/components/panel.h>
#include <bombfork/prong/core/component.h>
#include <bombfork/prong/core/component_builder.h>
#include <bombfork/prong/core/component_traits.h>
#include <bombfork/prong/core/scene.h>
#include <bombfork/prong/layout/flex_layout.h>
#include <bombfork/prong/layout/grid_layout.h>
#include <bombfork/prong/layout/stack_layout.h>
#include <bombfork/prong/theming/color.h>

#include <functional>
#include <iostream>
#include <memory>
#include <random>
#include <string>
#include <utility>
#include <vector>

using namespace bombfork::prong;
using namespace bombfork::prong::layout;
using namespace bombfork::prong::theming;
using namespace bombfork::prong::examples;

namespace bombfork {
namespace prong {
namespace rendering {
class IRenderer;
}
} // namespace prong
} // namespace bombfork

// Global state for dynamic manipulation
Panel<>* g_contentPanel = nullptr;
rendering::IRenderer* g_renderer = nullptr;
Expand Down