Top Description Interfaces Classes
module lwjgl.nanovg

Package org.lwjgl.nanovg

Annotations
@NonnullDefault

Contains bindings to NanoVG, a small antialiased vector graphics rendering library for OpenGL. It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations.

Interface Summary

Modifier and TypeInterface and Description
public interface
UIHandlerI

Instances of this interface may be passed to the SetHandler method.

Class Summary

Modifier and TypeClass and Description
public class
Blendish

Blendish is a small collection of drawing functions for NanoVG, designed to replicate the look of the Blender 2.5+ User Interface.

public class
BNDnodeTheme

Describes the theme used to draw nodes.

public class
BNDtheme

Describes the theme used to draw widgets.

public class
BNDwidgetTheme

Describes the theme used to draw a single widget or widget box; these values correspond to the same values that can be retrieved from the Theme panel in the Blender preferences.

pack-priv class
LibNanoVG

Initializes the nanovg shared library.

public class
NanoSVG

NanoSVG is a simple stupid single-header-file SVG parse.

public class
NanoVG

NanoVG is a small antialiased vector graphics rendering library for OpenGL.

public class
NanoVGBGFX

Implementation of the NanoVG API using bgfx.

public class
NanoVGGL2

Implementation of the NanoVG API using OpenGL 2.0.

public class
NanoVGGL3

Implementation of the NanoVG API using OpenGL 3.0.

pack-priv class
public class
NanoVGGLES2

Implementation of the NanoVG API using OpenGL ES 2.0.

public class
NanoVGGLES3

Implementation of the NanoVG API using OpenGL ES 3.0.

public class
NSVGGradient

Layout


struct NSVGgradient {
    float xform[6];
    char spread;
    float fx;
    float fy;
    int nstops;
    NSVGgradientStop pstops[1];
}
public class
NSVGGradientStop

Layout


struct NSVGgradientStop {
    unsigned int color;
    float offset;
}
public class
NSVGImage

Layout


struct NSVGimage {
    float width;
    float height;
    NSVGshape * shapes;
}
public class
NSVGPaint

Layout


struct NSVGpaint {
    signed char type;
    union {
        unsigned int color;
        NSVGgradient * gradient;
    };
}
public class
NSVGPath

Layout


struct NSVGpath {
    float * pts;
    int npts;
    char closed;
    float bounds[4];
    NSVGpath * next;
}
public class
NSVGShape

Layout


struct NSVGshape {
    char id[64];
    NSVGpaint fill;
    NSVGpaint stroke;
    float opacity;
    float strokeWidth;
    float strokeDashOffset;
    float strokeDashArray[8];
    char strokeDashCount;
    char strokeLineJoin;
    char strokeLineCap;
    float miterLimit;
    char fillRule;
    unsigned char flags;
    float bounds[4];
    char fillGradient[64];
    char strokeGradient[64];
    float xform[6];
    NSVGpath * paths;
    NSVGshape * next;
}
public class
NVGColor

A NanoVG color.

public class
NVGGlyphPosition

A glyph position.

public class
NVGLUFramebuffer

A framebuffer object.

public class
NVGLUFramebufferBGFX

A framebuffer object.

public class
NVGPaint

A NanoVG paint.

public class
NVGTextRow

A text row.

public class
public abstract class
UIHandler

Instances of this class may be passed to the SetHandler method.

public class
UIRect

layout rectangle Layout


struct UIrect {
    union {
        int v[4];
        struct {
            int x;
            int y;
            int w;
            int h;
        };
    };
}
public class
UIVec2

for cursor positions, mainly Layout


struct UIvec2 {
    union {
        int v[2];
        struct {
            int x;
            int y;
        };
    };
}