19 #ifndef OST_GFX_GRADIENT_HH
20 #define OST_GFX_GRADIENT_HH
33 namespace ost {
namespace gfx {
78 return t==ref.
t && color==ref.
color;
122 std::vector<Stop> stops_;
StopList GetStops() const
get list of color stops
void GradientToInfo(info::InfoGroup &group) const
convert gradient to info
static gfx::Gradient GradientFromInfo(const info::InfoGroup &group)
create gradient from info
std::vector< Stop > StopList
Gradient(const String &name)
initialize with a pre-define gradient name
bool GetHSVMode() const
return the HSV interpolation mode flag
void SetColorAt(float t, const Color &color)
set color
Color GetColorAt(float t) const
get color
void SetHSVMode(bool m)
turn HSV interpolation mode on or off
#define DLLEXPORT_OST_GFX
Stop(float tt, const Color &c)
bool operator==(const Stop &ref) const