cgv
Loading...
Searching...
No Matches
layout_spacings.h
1
#pragma once
2
3
#include <vector>
4
#include <string>
5
6
#include "lib_begin.h"
7
8
namespace
cgv
{
9
namespace
gui {
10
11
// spacings in one direction
12
struct
layout_dir_spacing
{
13
int
border;
// space from the border to the elements
14
int
element;
// spaces between elements
15
};
16
17
// spacings in two directions that can be named
18
struct
layout_spacings
{
19
std::string name;
20
layout_dir_spacing
horizontal;
21
layout_dir_spacing
vertical;
22
};
23
24
25
// get spacings
26
CGV_API
const
layout_spacings
& get_layout_spacings(std::string name);
27
// add spacings
28
CGV_API
void
add_layout_spacings(
const
layout_spacings
& new_spacings);
29
// remove spacings
30
CGV_API
void
remove_layout_spacings(
const
std::string& name);
31
}
32
}
33
34
#include <cgv/config/lib_end.h>
cgv
the cgv namespace
Definition
print.h:11
cgv::gui::layout_dir_spacing
Definition
layout_spacings.h:12
cgv::gui::layout_spacings
Definition
layout_spacings.h:18
cgv
gui
layout_spacings.h
Generated by
1.9.8