nanogui.common

Public Imports

arsd.nanovega
public import arsd.nanovega;
Undocumented in source.

Members

Aliases

Color
alias Color = vec4f
Undocumented in source.
Vector2f
alias Vector2f = vec2f
Undocumented in source.
Vector2i
alias Vector2i = vec2i
Undocumented in source.
Vector3f
alias Vector3f = vec3f
Undocumented in source.
Vector4i
alias Vector4i = vec4i
Undocumented in source.

Enums

Cursor
enum Cursor

Cursor shapes available to use in nanogui. Shape of actual cursor determined by Operating System.

Key
enum Key
Undocumented in source.
KeyAction
enum KeyAction
Undocumented in source.
KeyMod
enum KeyMod
Undocumented in source.
MouseAction
enum MouseAction
Undocumented in source.
MouseButton
enum MouseButton
Undocumented in source.

Functions

boxGradient
NVGPaint boxGradient(NanoContext ctx, float x, float y, float w, float h, float r, float f, Color icol, Color ocol)

Creates and returns a box gradient. Box gradient is a feathered rounded rectangle, it is useful for rendering drop shadows or highlights for boxes. Parameters (x, y) define the top-left corner of the rectangle, (w, h) define the size of the rectangle, r defines the corner radius, and f feather. Feather defines how blurry the border of the rectangle is. Parameter icol specifies the inner color and ocol the outer color of the gradient. The gradient is transformed by the current transform when it is passed to fillPaint or strokePaint.

fillColor
void fillColor(NanoContext ctx, Color color)

Sets current fill style to a solid color.

linearGradient
NVGPaint linearGradient(NanoContext ctx, float sx, float sy, float ex, float ey, Color icol, Color ocol)

Creates and returns a linear gradient. Parameters (sx, sy) (ex, ey) specify the start and end coordinates of the linear gradient, icol specifies the start color and ocol the end color. The gradient is transformed by the current transform when it is passed to fillPaint or strokePaint.

radialGradient
NVGPaint radialGradient(NanoContext ctx, float cx, float cy, float inr, float outr, Color icol, Color ocol)

Creates and returns a radial gradient. Parameters (cx, cy) specify the center, inr and outr specify the inner and outer radius of the gradient, icol specifies the start color and ocol the end color. The gradient is transformed by the current transform when it is passed to fillPaint or strokePaint.

strokeColor
void strokeColor(NanoContext ctx, Color color)

Sets current stroke style to a solid color.

Structs

NanoContext
struct NanoContext
Undocumented in source.

Meta