Skip to content

Replace C pointers with xfce4::Ptr0 and std::vector. Add xfce4::RGBA.

Ghost User requested to merge (removed):master into master

Changes:

  • Replace C pointers with xfce4::Ptr0 and std::vector

  • Replace a hard-to-extend/verify single-shot memory allocation in read_topology() with memory managed by xfce4::Ptr0<Topology> and std::vector

  • Add xfce4::RGBA color with an alpha channel. All channels are 64-bit floats.

    The operators == and != are unsupported. The RGBA::equals() member function takes an epsilon (defaults to 1e-10 if omitted) which is used as a maximum allowed difference between the two RGBA 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.

Merge request reports