Namespaces | |
namespace | detail |
Classes | |
struct | GlyphPosition |
struct | Paint |
struct | TextRow |
Functions | |
int | addFallbackFont (const char *baseFont, const char *fallbackFont) |
int | addFallbackFontId (int baseFont, int fallbackFont) |
void | arc (float cx, float cy, float r, float a0, float a1, int dir) |
void | arcTo (float x1, float y1, float x2, float y2, float radius) |
void | beginPath () |
void | bezierTo (float c1x, float c1y, float c2x, float c2y, float x, float y) |
Paint | boxGradient (float x, float y, float w, float h, float r, float f, const cv::Scalar &icol, const cv::Scalar &ocol) |
void | circle (float cx, float cy, float r) |
void | clear (const cv::Scalar &bgra=cv::Scalar(0, 0, 0, 255)) |
void | closePath () |
int | createFont (const char *name, const char *filename) |
int | createFontMem (const char *name, unsigned char *data, int ndata, int freeData) |
int | createImage (const char *filename, int imageFlags) |
int | createImageMem (int imageFlags, unsigned char *data, int ndata) |
int | createImageRGBA (int w, int h, int imageFlags, const unsigned char *data) |
void | currentTransform (float *xform) |
float | degToRad (float deg) |
void | deleteImage (int image) |
void | ellipse (float cx, float cy, float rx, float ry) |
void | fill () |
void | fillColor (const cv::Scalar &color) |
void | fillPaint (Paint paint) |
int | findFont (const char *name) |
void | fontBlur (float blur) |
void | fontFace (const char *font) |
void | fontFaceId (int font) |
void | fontSize (float size) |
void | globalAlpha (float alpha) |
Paint | imagePattern (float ox, float oy, float ex, float ey, float angle, int image, float alpha) |
void | imageSize (int image, int *w, int *h) |
void | intersectScissor (float x, float y, float w, float h) |
Paint | linearGradient (float sx, float sy, float ex, float ey, const cv::Scalar &icol, const cv::Scalar &ocol) |
void | lineCap (int cap) |
void | lineJoin (int join) |
void | lineTo (float x, float y) |
void | miterLimit (float limit) |
void | moveTo (float x, float y) |
void | pathWinding (int dir) |
void | quadTo (float cx, float cy, float x, float y) |
Paint | radialGradient (float cx, float cy, float inr, float outr, const cv::Scalar &icol, const cv::Scalar &ocol) |
float | radToDeg (float rad) |
void | rect (float x, float y, float w, float h) |
void | reset () |
void | resetScissor () |
void | resetTransform () |
void | restore () |
void | rotate (float angle) |
void | roundedRect (float x, float y, float w, float h, float r) |
void | roundedRectVarying (float x, float y, float w, float h, float radTopLeft, float radTopRight, float radBottomRight, float radBottomLeft) |
void | save () |
void | scale (float x, float y) |
void | scissor (float x, float y, float w, float h) |
void | skewX (float angle) |
void | skewY (float angle) |
void | stroke () |
void | strokeColor (const cv::Scalar &bgra) |
void | strokePaint (Paint paint) |
void | strokeWidth (float size) |
float | text (float x, float y, const char *string, const char *end) |
void | textAlign (int align) |
float | textBounds (float x, float y, const char *string, const char *end, float *bounds) |
void | textBox (float x, float y, float breakRowWidth, const char *string, const char *end) |
void | textBoxBounds (float x, float y, float breakRowWidth, const char *string, const char *end, float *bounds) |
int | textBreakLines (const char *string, const char *end, float breakRowWidth, TextRow *rows, int maxRows) |
int | textGlyphPositions (float x, float y, const char *string, const char *end, GlyphPosition *positions, int maxPositions) |
void | textLetterSpacing (float spacing) |
void | textLineHeight (float lineHeight) |
void | textMetrics (float *ascender, float *descender, float *lineh) |
void | transform (float a, float b, float c, float d, float e, float f) |
void | transformIdentity (float *dst) |
int | transformInverse (float *dst, const float *src) |
void | transformMultiply (float *dst, const float *src) |
void | transformPoint (float *dstx, float *dsty, const float *xform, float srcx, float srcy) |
void | transformPremultiply (float *dst, const float *src) |
void | transformRotate (float *dst, float a) |
void | transformScale (float *dst, float sx, float sy) |
void | transformSkewX (float *dst, float a) |
void | transformSkewY (float *dst, float a) |
void | transformTranslate (float *dst, float tx, float ty) |
void | translate (float x, float y) |
void | updateImage (int image, const unsigned char *data) |
Detailed Description
In general please refer to https://github.com/memononen/nanovg/blob/master/src/nanovg.h for reference.
Function Documentation
◆ addFallbackFont()
int cv::v4d::nvg::addFallbackFont | ( | const char * | baseFont, |
const char * | fallbackFont | ||
) |
A forward to nvgAddFallbackFont. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ addFallbackFontId()
int cv::v4d::nvg::addFallbackFontId | ( | int | baseFont, |
int | fallbackFont | ||
) |
A forward to nvgAddFallbackFontId. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ arc()
void cv::v4d::nvg::arc | ( | float | cx, |
float | cy, | ||
float | r, | ||
float | a0, | ||
float | a1, | ||
int | dir | ||
) |
A forward to nvgArc. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ arcTo()
void cv::v4d::nvg::arcTo | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | radius | ||
) |
A forward to nvgArcTo. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ beginPath()
void cv::v4d::nvg::beginPath | ( | ) |
A forward to nvgBeginPath. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ bezierTo()
void cv::v4d::nvg::bezierTo | ( | float | c1x, |
float | c1y, | ||
float | c2x, | ||
float | c2y, | ||
float | x, | ||
float | y | ||
) |
A forward to nvgBezierTo. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ boxGradient()
Paint cv::v4d::nvg::boxGradient | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | r, | ||
float | f, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
A forward to nvgBoxGradient. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ circle()
void cv::v4d::nvg::circle | ( | float | cx, |
float | cy, | ||
float | r | ||
) |
A forward to nvgCircle. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ clear()
void cv::v4d::nvg::clear | ( | const cv::Scalar & | bgra = cv::Scalar(0, 0, 0, 255) | ) |
◆ closePath()
void cv::v4d::nvg::closePath | ( | ) |
A forward to nvgClosePath. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ createFont()
int cv::v4d::nvg::createFont | ( | const char * | name, |
const char * | filename | ||
) |
A forward to nvgCreateFont. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ createFontMem()
int cv::v4d::nvg::createFontMem | ( | const char * | name, |
unsigned char * | data, | ||
int | ndata, | ||
int | freeData | ||
) |
A forward to nvgCreateFontMem. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ createImage()
int cv::v4d::nvg::createImage | ( | const char * | filename, |
int | imageFlags | ||
) |
◆ createImageMem()
int cv::v4d::nvg::createImageMem | ( | int | imageFlags, |
unsigned char * | data, | ||
int | ndata | ||
) |
◆ createImageRGBA()
int cv::v4d::nvg::createImageRGBA | ( | int | w, |
int | h, | ||
int | imageFlags, | ||
const unsigned char * | data | ||
) |
◆ currentTransform()
void cv::v4d::nvg::currentTransform | ( | float * | xform | ) |
A forward to nvgCurrentTransform. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ degToRad()
float cv::v4d::nvg::degToRad | ( | float | deg | ) |
A forward to nvgDegToRad. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ deleteImage()
void cv::v4d::nvg::deleteImage | ( | int | image | ) |
◆ ellipse()
void cv::v4d::nvg::ellipse | ( | float | cx, |
float | cy, | ||
float | rx, | ||
float | ry | ||
) |
A forward to nvgEllipse. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fill()
void cv::v4d::nvg::fill | ( | ) |
A forward to nvgFill. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fillColor()
void cv::v4d::nvg::fillColor | ( | const cv::Scalar & | color | ) |
A forward to nvgFillColor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fillPaint()
void cv::v4d::nvg::fillPaint | ( | Paint | paint | ) |
A forward to nvgFillPaint. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ findFont()
int cv::v4d::nvg::findFont | ( | const char * | name | ) |
A forward to nvgFindFont. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fontBlur()
void cv::v4d::nvg::fontBlur | ( | float | blur | ) |
A forward to nvgFontBlur. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fontFace()
void cv::v4d::nvg::fontFace | ( | const char * | font | ) |
A forward to nvgFontFace. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fontFaceId()
void cv::v4d::nvg::fontFaceId | ( | int | font | ) |
A forward to nvgFontFaceId. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ fontSize()
void cv::v4d::nvg::fontSize | ( | float | size | ) |
A forward to nvgFontSize. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ globalAlpha()
void cv::v4d::nvg::globalAlpha | ( | float | alpha | ) |
A forward to nvgGlobalAlpha. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ imagePattern()
Paint cv::v4d::nvg::imagePattern | ( | float | ox, |
float | oy, | ||
float | ex, | ||
float | ey, | ||
float | angle, | ||
int | image, | ||
float | alpha | ||
) |
A forward to nvgImagePattern. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ imageSize()
void cv::v4d::nvg::imageSize | ( | int | image, |
int * | w, | ||
int * | h | ||
) |
◆ intersectScissor()
void cv::v4d::nvg::intersectScissor | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
A forward to nvgIntersectScissor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ linearGradient()
Paint cv::v4d::nvg::linearGradient | ( | float | sx, |
float | sy, | ||
float | ex, | ||
float | ey, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
A forward to nvgLinearGradient. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ lineCap()
void cv::v4d::nvg::lineCap | ( | int | cap | ) |
A forward to nvgLineCap. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ lineJoin()
void cv::v4d::nvg::lineJoin | ( | int | join | ) |
A forward to nvgLineJoin. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ lineTo()
void cv::v4d::nvg::lineTo | ( | float | x, |
float | y | ||
) |
A forward to nvgLineTo. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ miterLimit()
void cv::v4d::nvg::miterLimit | ( | float | limit | ) |
A forward to nvgMiterLimit. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ moveTo()
void cv::v4d::nvg::moveTo | ( | float | x, |
float | y | ||
) |
A forward to nvgMoveTo. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ pathWinding()
void cv::v4d::nvg::pathWinding | ( | int | dir | ) |
A forward to nvgPathWinding. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ quadTo()
void cv::v4d::nvg::quadTo | ( | float | cx, |
float | cy, | ||
float | x, | ||
float | y | ||
) |
A forward to nvgQuadTo. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ radialGradient()
Paint cv::v4d::nvg::radialGradient | ( | float | cx, |
float | cy, | ||
float | inr, | ||
float | outr, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
A forward to nvgRadialGradient. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ radToDeg()
float cv::v4d::nvg::radToDeg | ( | float | rad | ) |
A forward to nvgRadToDeg. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ rect()
void cv::v4d::nvg::rect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
A forward to nvgRect. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ reset()
void cv::v4d::nvg::reset | ( | ) |
A forward to nvgReset. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ resetScissor()
void cv::v4d::nvg::resetScissor | ( | ) |
A forward to nvgRresetScissor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ resetTransform()
void cv::v4d::nvg::resetTransform | ( | ) |
A forward to nvgResetTransform. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ restore()
void cv::v4d::nvg::restore | ( | ) |
A forward to nvgRestore. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ rotate()
void cv::v4d::nvg::rotate | ( | float | angle | ) |
A forward to nvgRotate. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ roundedRect()
void cv::v4d::nvg::roundedRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | r | ||
) |
A forward to nvgRoundedRect. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ roundedRectVarying()
void cv::v4d::nvg::roundedRectVarying | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | radTopLeft, | ||
float | radTopRight, | ||
float | radBottomRight, | ||
float | radBottomLeft | ||
) |
A forward to nvgRoundedRectVarying. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ save()
void cv::v4d::nvg::save | ( | ) |
A forward to nvgSave. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ scale()
void cv::v4d::nvg::scale | ( | float | x, |
float | y | ||
) |
A forward to nvgScale. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ scissor()
void cv::v4d::nvg::scissor | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
A forward to nvgScissor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ skewX()
void cv::v4d::nvg::skewX | ( | float | angle | ) |
A forward to nvgSkewX. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ skewY()
void cv::v4d::nvg::skewY | ( | float | angle | ) |
A forward to nvgSkewY. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ stroke()
void cv::v4d::nvg::stroke | ( | ) |
A forward to nvgStroke. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ strokeColor()
void cv::v4d::nvg::strokeColor | ( | const cv::Scalar & | bgra | ) |
A forward to nvgShapeAntiAlias. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h ‍/
CV_EXPORTS void shapeAntiAlias(int enabled); /*! A forward to nvgStrokeColor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ strokePaint()
void cv::v4d::nvg::strokePaint | ( | Paint | paint | ) |
A forward to nvgStrokePaint. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ strokeWidth()
void cv::v4d::nvg::strokeWidth | ( | float | size | ) |
A forward to nvgStrokeWidth. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ text()
float cv::v4d::nvg::text | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end | ||
) |
A forward to nvgText. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textAlign()
void cv::v4d::nvg::textAlign | ( | int | align | ) |
A forward to nvgTextAlign. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textBounds()
float cv::v4d::nvg::textBounds | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end, | ||
float * | bounds | ||
) |
A forward to nvgTextBounds. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textBox()
void cv::v4d::nvg::textBox | ( | float | x, |
float | y, | ||
float | breakRowWidth, | ||
const char * | string, | ||
const char * | end | ||
) |
A forward to nvgTextBox. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textBoxBounds()
void cv::v4d::nvg::textBoxBounds | ( | float | x, |
float | y, | ||
float | breakRowWidth, | ||
const char * | string, | ||
const char * | end, | ||
float * | bounds | ||
) |
A forward to nvgTextBoxBounds. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textBreakLines()
int cv::v4d::nvg::textBreakLines | ( | const char * | string, |
const char * | end, | ||
float | breakRowWidth, | ||
TextRow * | rows, | ||
int | maxRows | ||
) |
A forward to nvgTextBreakLines. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textGlyphPositions()
int cv::v4d::nvg::textGlyphPositions | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end, | ||
GlyphPosition * | positions, | ||
int | maxPositions | ||
) |
A forward to nvgTextGlyphPositions. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textLetterSpacing()
void cv::v4d::nvg::textLetterSpacing | ( | float | spacing | ) |
A forward to nvgTextLetterSpacing. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textLineHeight()
void cv::v4d::nvg::textLineHeight | ( | float | lineHeight | ) |
A forward to nvgTextLineHeight. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ textMetrics()
void cv::v4d::nvg::textMetrics | ( | float * | ascender, |
float * | descender, | ||
float * | lineh | ||
) |
A forward to nvgTextMetrics. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transform()
void cv::v4d::nvg::transform | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | e, | ||
float | f | ||
) |
A forward to nvgTransform. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformIdentity()
void cv::v4d::nvg::transformIdentity | ( | float * | dst | ) |
A forward to nvgTransformIdentity. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformInverse()
int cv::v4d::nvg::transformInverse | ( | float * | dst, |
const float * | src | ||
) |
A forward to nvgTransformInverse. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformMultiply()
void cv::v4d::nvg::transformMultiply | ( | float * | dst, |
const float * | src | ||
) |
A forward to nvgTransformMultiply. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformPoint()
void cv::v4d::nvg::transformPoint | ( | float * | dstx, |
float * | dsty, | ||
const float * | xform, | ||
float | srcx, | ||
float | srcy | ||
) |
A forward to nvgTransformPoint. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformPremultiply()
void cv::v4d::nvg::transformPremultiply | ( | float * | dst, |
const float * | src | ||
) |
A forward to nvgTransformPremultiply. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformRotate()
void cv::v4d::nvg::transformRotate | ( | float * | dst, |
float | a | ||
) |
A forward to nvgTransformRotate. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformScale()
void cv::v4d::nvg::transformScale | ( | float * | dst, |
float | sx, | ||
float | sy | ||
) |
A forward to nvgTransformScale. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformSkewX()
void cv::v4d::nvg::transformSkewX | ( | float * | dst, |
float | a | ||
) |
A forward to nvgTransformSkewX. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformSkewY()
void cv::v4d::nvg::transformSkewY | ( | float * | dst, |
float | a | ||
) |
A forward to nvgTransformSkewY. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ transformTranslate()
void cv::v4d::nvg::transformTranslate | ( | float * | dst, |
float | tx, | ||
float | ty | ||
) |
A forward to nvgTransformTranslate. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ translate()
void cv::v4d::nvg::translate | ( | float | x, |
float | y | ||
) |
A forward to nvgTranslate. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
◆ updateImage()
void cv::v4d::nvg::updateImage | ( | int | image, |
const unsigned char * | data | ||
) |