Project

General

Profile

Support #5411

Using the Wt::WColor::fromHSL and toHSL.

Added by Apivan Tuntakurn about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/08/2016
Due date:
% Done:

0%

Estimated time:

Description

I am in a situation that I require Wt::WColor::fromHSL and toHSL

Those functions work fine.

However, I notice that they were undocumented.

Were fromHSL/toHSL temporarily created to solve the internal wt problem?

Will they be removed in the future?

[[[https://github.com/emweb/wt/blob/master/src/Wt/WColor]]]

[[[https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WColor.html]]]

#1

Updated by Roel Standaert about 6 years ago

Those functions were indeed added because they are used internally in Wt (in WCartesianChart::setSelectedSeries(), to lighten the color of the series that are not selected). They were not documented because at the time I didn't want to commit to a particular API. Removal of this functionality is not likely, but maybe the signature can change.

Also available in: Atom PDF