diff options
author | falkTX <falktx@gmail.com> | 2014-08-17 15:39:46 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2014-08-17 15:39:46 +0100 |
commit | 17393403bf03049a8178cd217f691c149017ec80 (patch) | |
tree | f21e5b778787b129d65ab0e4b8cc979d75299136 /dgl/NanoVG.hpp | |
parent | 815d01277152c0067b6d309a92aa367651e6cd18 (diff) |
Color using int; NanoVG extended color funcs and in-frame test
Diffstat (limited to 'dgl/NanoVG.hpp')
-rw-r--r-- | dgl/NanoVG.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp index 37ecea3e..4321597a 100644 --- a/dgl/NanoVG.hpp +++ b/dgl/NanoVG.hpp @@ -313,6 +313,18 @@ public: void strokeColor(const Color& color); /** + Sets current stroke style to a solid color, made from red, green, blue and alpha numeric values. + Values must be in [0..255] range. + */ + void strokeColor(const int red, const int green, const int blue, const int alpha = 255); + + /** + Sets current stroke style to a solid color, made from red, green, blue and alpha numeric values. + Values must in [0..1] range. + */ + void strokeColor(const float red, const float green, const float blue, const float alpha = 1.0f); + + /** Sets current stroke style to a paint, which can be a one of the gradients or a pattern. */ void strokePaint(const Paint& paint); @@ -323,6 +335,18 @@ public: void fillColor(const Color& color); /** + Sets current fill style to a solid color, made from red, green, blue and alpha numeric values. + Values must be in [0..255] range. + */ + void fillColor(const int red, const int green, const int blue, const int alpha = 255); + + /** + Sets current fill style to a solid color, made from red, green, blue and alpha numeric values. + Values must in [0..1] range. + */ + void fillColor(const float red, const float green, const float blue, const float alpha = 1.0f); + + /** Sets current fill style to a paint, which can be a one of the gradients or a pattern. */ void fillPaint(const Paint& paint); @@ -713,6 +737,7 @@ public: private: NVGcontext* const fContext; + bool fInFrame; DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(NanoVG) }; |