summaryrefslogtreecommitdiff
path: root/src/colour.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-02 13:21:16 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-02 13:21:16 +0100
commit4d406c620b0211a5e27c19187d963241120f8838 (patch)
tree4ec7f4a1652ee89fc1b45faccb4d2d72a512a698 /src/colour.h
parentb20c6fd0047a7b8ad63d19c46c3ea0e2185babc2 (diff)
Add support for reading <font> tags in SubRip.
Diffstat (limited to 'src/colour.h')
-rw-r--r--src/colour.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/colour.h b/src/colour.h
index 673bb9f..55d2239 100644
--- a/src/colour.h
+++ b/src/colour.h
@@ -35,14 +35,15 @@ public:
, g (0)
, b (0)
{}
-
+
Colour (float r, float g, float b)
: r (r)
, g (g)
, b (b)
{}
- Colour (std::string);
+ static Colour from_argb_hex (std::string);
+ static Colour from_rgb_hex (std::string);
/** red component (from 0 to 1) */
float r;
@@ -54,7 +55,7 @@ public:
bool
operator== (Colour const & a, Colour const & b);
-
+
}
#endif