CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Window.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Common.hpp"
11
12#include <string_view>
13
15
16 template<typename Builder> inline bool window(const String& title, Builder&& builder) {
17 if(ImGui::Begin(title.data())) {
18 builder();
19 ImGui::End();
20 return true;
21 }
22 ImGui::End();
23 return false;
24 }
25
26} // namespace CeresEngine::Graphics::UI::Component
Definition Checkbox.hpp:14
bool window(const String &title, Builder &&builder)
Definition Window.hpp:16
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25