Hedgehog
3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
print_options.h
Go to the documentation of this file.
1
// NIST-developed software is provided by NIST as a public service. You may use, copy and distribute copies of the
2
// software in any medium, provided that you keep intact this entire notice. You may improve, modify and create
3
// derivative works of the software or any portion of the software, and you may copy and distribute such modifications
4
// or works. Modified works should carry a notice stating that you changed the software and should note the date and
5
// nature of any such change. Please explicitly acknowledge the National Institute of Standards and Technology as the
6
// source of the software. NIST-developed software is expressly provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND,
7
// EXPRESS, IMPLIED, IN FACT OR ARISING BY OPERATION OF LAW, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
8
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT AND DATA ACCURACY. NIST NEITHER REPRESENTS NOR
9
// WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE
10
// CORRECTED. NIST DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR THE RESULTS
11
// THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY, RELIABILITY, OR USEFULNESS OF THE SOFTWARE. You
12
// are solely responsible for determining the appropriateness of using and distributing the software and you assume
13
// all risks associated with its use, including but not limited to the risks and costs of program errors, compliance
14
// with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of
15
// operation. This software is not intended to be used in any situation where a failure could cause risk of injury or
16
// damage to property. The software developed by NIST employees is not subject to copyright protection within the
17
// United States.
18
19
#ifndef HEDGEHOG_HEDGEHOG_SRC_TOOLS_PRINT_OPTIONS_H_
20
#define HEDGEHOG_HEDGEHOG_SRC_TOOLS_PRINT_OPTIONS_H_
21
22
#include "
color.h
"
23
25
namespace
hh
{
27
namespace
tool {
28
30
struct
PrintOptions
{
32
struct
Color
{
33
uint8_t
34
r_
= 0,
35
g_
= 0,
36
b_
= 0,
37
a_
= 0;
38
};
39
Color
background_
= {0xff, 0xff, 0xff, 0xff};
40
Color
font_
= {0, 0, 0, 0xff};
41
44
[[nodiscard]]
Color
background
()
const
{
return
background_
; }
47
[[nodiscard]]
Color
font
()
const
{
return
font_
; }
48
51
void
background
(
Color
background
) {
background_
=
background
; }
52
55
void
font
(
Color
font
) {
font_
=
font
; }
56
};
57
58
}
// hh
59
}
// tools
60
61
#endif
//HEDGEHOG_HEDGEHOG_SRC_TOOLS_PRINT_OPTIONS_H_
color.h
hh
Hedgehog main namespace.
Definition:
abstract_execution_pipeline.h:28
hh::tool::PrintOptions
Node print options.
Definition:
print_options.h:30
hh::tool::PrintOptions::background
Color background() const
Background color accessor.
Definition:
print_options.h:44
hh::tool::PrintOptions::background
void background(Color background)
Background color setter.
Definition:
print_options.h:51
hh::tool::PrintOptions::font_
Color font_
Font color.
Definition:
print_options.h:40
hh::tool::PrintOptions::background_
Color background_
Background color.
Definition:
print_options.h:39
hh::tool::PrintOptions::font
void font(Color font)
Font color setter.
Definition:
print_options.h:55
hh::tool::PrintOptions::font
Color font() const
Font color accessor.
Definition:
print_options.h:47
hh::tool::PrintOptions::Color
Simple color representation.
Definition:
print_options.h:32
hh::tool::PrintOptions::Color::g_
uint8_t g_
Green color value.
Definition:
print_options.h:35
hh::tool::PrintOptions::Color::a_
uint8_t a_
Alpha color value.
Definition:
print_options.h:37
hh::tool::PrintOptions::Color::b_
uint8_t b_
Blue color value.
Definition:
print_options.h:36
hh::tool::PrintOptions::Color::r_
uint8_t r_
Red color value.
Definition:
print_options.h:34
hedgehog
src
tools
print_options.h
Generated by
1.9.7