nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::figrender::Rgb Struct Reference

Public Member Functions

 Rgb (std::uint8_t rr, std::uint8_t gg, std::uint8_t bb)
std::string hex () const

Static Public Member Functions

static Rgb fromHex (const std::string &hex)

Public Attributes

std::uint8_t r = 0
std::uint8_t g = 0
std::uint8_t b = 0

Detailed Description

Definition at line 41 of file figure_render.hpp.

Constructor & Destructor Documentation

◆ Rgb()

nk::figrender::Rgb::Rgb ( std::uint8_t rr,
std::uint8_t gg,
std::uint8_t bb )
inline

Definition at line 44 of file figure_render.hpp.

Member Function Documentation

◆ fromHex()

Rgb nk::figrender::Rgb::fromHex ( const std::string & hex)
inlinestatic

Definition at line 46 of file figure_render.hpp.

◆ hex()

std::string nk::figrender::Rgb::hex ( ) const
inline

Definition at line 56 of file figure_render.hpp.

Member Data Documentation

◆ b

std::uint8_t nk::figrender::Rgb::b = 0

Definition at line 42 of file figure_render.hpp.

◆ g

std::uint8_t nk::figrender::Rgb::g = 0

Definition at line 42 of file figure_render.hpp.

◆ r

std::uint8_t nk::figrender::Rgb::r = 0

Definition at line 42 of file figure_render.hpp.


The documentation for this struct was generated from the following file: