From 19158d9f01909bf566616524f23e0acb635562f7 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 16 Jun 2016 13:25:06 -0700 Subject: [core, node] Implement setPaintProperty for color properties (#5380) --- include/mbgl/util/color.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/mbgl/util/color.hpp') diff --git a/include/mbgl/util/color.hpp b/include/mbgl/util/color.hpp index 87d3175178..6491f75801 100644 --- a/include/mbgl/util/color.hpp +++ b/include/mbgl/util/color.hpp @@ -1,6 +1,8 @@ #pragma once -#include +#include + +#include namespace mbgl { @@ -14,6 +16,8 @@ public: static constexpr Color black() { return { 0.0f, 0.0f, 0.0f, 1.0f }; }; static constexpr Color white() { return { 1.0f, 1.0f, 1.0f, 1.0f }; }; + + static optional parse(const std::string&); }; inline bool operator==(const Color& colorA, const Color& colorB) { -- cgit v1.2.1