wren
Vulkan-based game engine
Toggle main menu visibility
Loading...
Searching...
No Matches
ui.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <boost/describe.hpp>
4
#include <string>
5
6
#include "
wren/math/vector.hpp
"
7
8
namespace
wren::gui
{
9
10
using
Colour
=
wren::math::Vec4f
;
11
12
BOOST_DEFINE_ENUM_CLASS(ElementKind, Panel)
13
14
struct
Element
{
15
std::string
kind
;
16
};
17
18
class
Builder
{
19
public
:
20
auto
column
() ->
Builder
& {
return
*
this
; }
21
auto
gap
(
float
gap
) ->
Builder
& {
return
*
this
; }
22
auto
padding
(
float
padding
) ->
Builder
& {
return
*
this
; }
23
auto
child
() ->
Builder
& {
return
*
this
; }
24
25
auto
build
() ->
Element
{
return
element_
; }
26
27
private
:
28
Element
element_
;
29
};
30
31
}
// namespace wren::gui
wren::gui::Builder
Definition
ui.hpp:18
wren::gui::Builder::padding
auto padding(float padding) -> Builder &
Definition
ui.hpp:22
wren::gui::Builder::element_
Element element_
Definition
ui.hpp:28
wren::gui::Builder::gap
auto gap(float gap) -> Builder &
Definition
ui.hpp:21
wren::gui::Builder::build
auto build() -> Element
Definition
ui.hpp:25
wren::gui::Builder::child
auto child() -> Builder &
Definition
ui.hpp:23
wren::gui::Builder::column
auto column() -> Builder &
Definition
ui.hpp:20
wren::gui
Definition
instance.hpp:12
wren::gui::Colour
wren::math::Vec4f Colour
Definition
ui.hpp:10
wren::gui::Element
Definition
ui.hpp:14
wren::gui::Element::kind
std::string kind
Definition
ui.hpp:15
wren::math::Vec4f
Definition
vector.hpp:192
vector.hpp
wren_gui
include
wren
gui
ui.hpp
Generated by
1.17.0