Simple GUI Library
insets.h
Go to the documentation of this file.
1
/**
2
* @author Nikita Mochalov (github.com/tralf-strues)
3
* @file insets.h
4
* @date 2021-11-06
5
*
6
* @copyright Copyright (c) 2021
7
*/
8
9
#pragma once
10
11
#include <stdint.h>
12
13
namespace
Sgl
14
{
15
struct
Insets
16
{
17
static
const
Insets
EMPTY;
18
19
Insets
() =
default
;
20
21
Insets
(int32_t top, int32_t right, int32_t bottom, int32_t left);
22
Insets
(int32_t topBottom, int32_t rightLeft);
23
Insets
(int32_t inset);
24
25
int32_t top = 0;
26
int32_t right = 0;
27
int32_t bottom = 0;
28
int32_t left = 0;
29
30
Insets
& operator+=(
const
Insets
& second);
31
Insets
& operator-=(
const
Insets
& second);
32
};
33
34
Insets
operator+(
const
Insets
& first,
const
Insets
& second);
35
Insets
operator-(
const
Insets
& first,
const
Insets
& second);
36
}
Sgl::Insets
Definition:
insets.h:16
include
paint
insets.h
Generated by
1.9.2