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>
79 friend peak::common::detail::BackendAccessor<DrawingOptions>;
81 explicit operator peak_icv_drawing_options()
const;
108inline DrawingOptions::operator peak_icv_drawing_options() const
110 return { m_color.GetRaw(), m_opacity.GetValue(), m_reserved };
115 return m_color == other.m_color && m_opacity.
GetValue() == other.m_opacity.
GetValue();
void SetColor(const experimental::Color &color)
Set the color for drawing.
DrawingOptions()=default
Default Drawing options are red with 100% opacity.
void SetOpacity(const experimental::Opacity &opacity)
Set the opacity for drawing.
experimental::Opacity GetOpacity() const
Get the opacity for drawing.
constexpr experimental::Color GetColor() const
Get the color for drawing.
bool operator==(const DrawingOptions &other) const
Color class holding the actual color codes.
Opacity refers to the transparency or the degree to which an object or pixel allows the background to...
constexpr uint32_t GetValue() const
Retrieve the current opacity value.