The source project of this merge request has been removed.
Replace C pointers with xfce4::Ptr0 and std::vector. Add xfce4::RGBA.
Changes:
-
Replace C pointers with
xfce4::Ptr0
andstd::vector
-
Replace a hard-to-extend/verify single-shot memory allocation in
read_topology()
with memory managed byxfce4::Ptr0<Topology>
andstd::vector
-
Add
xfce4::RGBA
color with an alpha channel. All channels are 64-bit floats.The operators
==
and!=
are unsupported. TheRGBA::equals()
member function takes an epsilon (defaults to 1e-10 if omitted) which is used as a maximum allowed difference between the twoRGBA
values that are being compared. An explanation is provided in xfce4-systemload-plugin!27 (comment 36436)The
mix_colors()
function no longer sets the alpha channel to 1, enabling the user to choose semi-transparent colors if desired.