summaryrefslogtreecommitdiff
path: root/dgl/NanoVG.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2014-08-18 20:04:57 +0100
committerfalkTX <falktx@gmail.com>2014-08-18 20:04:57 +0100
commitb9dcf5ca9f18801d1411525d3672628c08b84871 (patch)
treea746c875534ee03b23e791d116ebeeb2645a48ec /dgl/NanoVG.hpp
parente06cb84757bc45c6e682d4e228c46e3d3d0f432e (diff)
Use uint for sizes; Some DPF UI class changes and docs
Diffstat (limited to 'dgl/NanoVG.hpp')
-rw-r--r--dgl/NanoVG.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp
index 4321597a..32d467d0 100644
--- a/dgl/NanoVG.hpp
+++ b/dgl/NanoVG.hpp
@@ -45,7 +45,7 @@ public:
/**
Get size.
*/
- Size<int> getSize() const noexcept;
+ Size<uint> getSize() const noexcept;
/**
Update image data.
@@ -62,7 +62,7 @@ protected:
private:
NVGcontext* fContext;
int fImageId;
- Size<int> fSize;
+ Size<uint> fSize;
friend class NanoVG;
void _updateSize();
@@ -273,7 +273,7 @@ public:
Begin drawing a new frame.
@param withAlha Controls if drawing the shapes to the render target should be done using straight or pre-multiplied alpha.
*/
- void beginFrame(const int width, const int height, const float scaleFactor = 1.0f, const Alpha alpha = PREMULTIPLIED_ALPHA);
+ void beginFrame(const uint width, const uint height, const float scaleFactor = 1.0f, const Alpha alpha = PREMULTIPLIED_ALPHA);
/**
Begin drawing a new frame inside a widget.
@@ -505,7 +505,7 @@ public:
/**
Creates image from specified image data.
*/
- NanoImage* createImageRGBA(int w, int h, const uchar* data);
+ NanoImage* createImageRGBA(uint w, uint h, const uchar* data);
/* --------------------------------------------------------------------
* Paints */