15#include <peak_common_c/detail/peak_common_defines.h>
18#include <peak_icv_c/painting/peak_icv_color.h>
19#include <peak_icv_c/painting/peak_icv_painter.h>
20#include <peak_icv_c/types/peak_icv_simple_types.h>
81 friend peak::common::detail::BackendAccessor<DrawingOptions>;
83 explicit operator peak_icv_drawing_options()
const;
110inline DrawingOptions::operator peak_icv_drawing_options() const
112 return { m_color.GetRaw(), m_opacity.GetValue(), m_reserved };
117 return m_color == other.m_color && m_opacity.
GetValue() == other.m_opacity.
GetValue();
Holds a color code composed of red, green, and blue components.
Holds an opacity value representing the transparency level of an object or pixel.
constexpr uint32_t GetValue() const
constexpr Color GetColor() const
Get the color for drawing.
DrawingOptions()=default
Default Drawing options are red with 100% opacity.
void SetColor(const Color &color)
Set the color for drawing.
void SetOpacity(const Opacity &opacity)
Set the opacity for drawing.
Opacity GetOpacity() const
Get the opacity for drawing.
bool operator==(const DrawingOptions &other) const
@ Red
Represents red with 8-bit intensity.