Added missing Color operators

This commit is contained in:
Marc Gilleron
2020-05-29 19:55:32 +01:00
parent c2f765e49c
commit 0f4ea6cc35
2 changed files with 136 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include <cmath>
#include "Defs.hpp"
#include "String.hpp"
namespace godot {
@@ -73,6 +74,23 @@ public:
return components[idx];
}
Color operator+(const Color &p_color) const;
void operator+=(const Color &p_color);
Color operator-() const;
Color operator-(const Color &p_color) const;
void operator-=(const Color &p_color);
Color operator*(const Color &p_color) const;
Color operator*(const real_t &rvalue) const;
void operator*=(const Color &p_color);
void operator*=(const real_t &rvalue);
Color operator/(const Color &p_color) const;
Color operator/(const real_t &rvalue) const;
void operator/=(const Color &p_color);
void operator/=(const real_t &rvalue);
void invert();
void contrast();