Class Blendish
- java.lang.Object
-
- org.lwjgl.nanovg.Blendish
-
public class Blendish extends java.lang.Object
Blendish is a small collection of drawing functions for NanoVG, designed to replicate the look of the Blender 2.5+ User Interface. You can use these functions to theme your UI library. Several metric constants for faithful reproduction are also included.Blendish supports the original Blender icon sheet; As the licensing of Blender's icons is unclear, they are not included in Blendish'es repository, but an SVG template, "icons_template.svg" is provided, which you can use to build your own icon sheet.
To use icons, you must first load the icon sheet using one of the
nvgCreateImage*()
functions and then pass the image handle toSetIconImage
; otherwise, no icons will be drawn. SeebndSetIconImage()
for more information.Blendish will not render text until a suitable UI font has been passed to
SetFont
has been called. SeebndSetFont()
for more information.Drawbacks
There is no support for varying dpi resolutions yet. The library is hardcoded to the equivalent of 72 dpi in the Blender system settings.
Support for label truncation is missing. Text rendering breaks when widgets are too short to contain their labels.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
BND_ICONID(int x, int y)
static void
bndArrow(long ctx, float x, float y, float s, NVGColor color)
Draws a horizontal arrow for a number field with its center at(x,y)
and sizes
.static void
bndBackground(long ctx, float x, float y, float w, float h)
Draws a flat panel without any decorations at position(x,y)
with size(w,h)
and fills it withbackgroundColor
.static void
bndBevel(long ctx, float x, float y, float w, float h)
Draws a beveled border at position(x,y)
with size(w,h)
shaded with lighter and darker versions ofbackgroundColor
.static void
bndBevelInset(long ctx, float x, float y, float w, float h, float cr2, float cr3)
Draws a lower inset for a rounded box at position(x,y)
with size(w,h)
that gives the impression the surface has been pushed in.static void
bndCheck(long ctx, float ox, float oy, NVGColor color)
Draws a checkmark for an option box with the given upper left coordinates(ox,oy)
with the specifiedcolor
.static void
bndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.lang.CharSequence label)
Draws a choice button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.nio.ByteBuffer label)
Draws a choice button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndColorButton(long ctx, float x, float y, float w, float h, int flags, NVGColor color)
Draws a color button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndColoredNodeWire(long ctx, float x0, float y0, float x1, float y1, NVGColor color0, NVGColor color1)
Draws a node wire originating at(x0,y0)
and floating to(x1,y1)
, with a colored gradient based on the two colorscolor0
andcolor1
.static void
bndDropShadow(long ctx, float x, float y, float w, float h, float r, float feather, float alpha)
Draws a drop shadow around the rounded box at(x,y)
with size(w,h)
and radiusr
, withfeather
as its maximum range in pixels.static BNDtheme
bndGetTheme()
Returns the currently set theme.static void
bndIcon(long ctx, float x, float y, int iconid)
Draws an icon with(x,y)
as its upper left coordinate.static void
bndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, float fontsize, java.lang.CharSequence label, NVGColor caretcolor, int cbegin, int cend)
Draws an optional icon specified byiconid
, an optional label and a caret with givenfontsize
andcolor
within a widget box.static void
bndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, float fontsize, java.nio.ByteBuffer label, NVGColor caretcolor, int cbegin, int cend)
Draws an optional icon specified byiconid
, an optional label and a caret with givenfontsize
andcolor
within a widget box.static int
bndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, java.lang.CharSequence label, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in aniconLabel
.static int
bndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, java.nio.ByteBuffer label, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in aniconLabel
.static void
bndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, int align, float fontsize, java.lang.CharSequence label, java.lang.CharSequence value)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a widget box.static void
bndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, int align, float fontsize, java.nio.ByteBuffer label, java.nio.ByteBuffer value)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a widget box.static void
bndInnerBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, NVGColor shade_top, NVGColor shade_down)
Draws the inner part of a widget box, with a gradient fromshade_top
toshade_down
.static void
bndInnerColors(NVGColor shade_top, NVGColor shade_down, BNDwidgetTheme theme, int state, boolean flipActive)
Computes the upper and lower gradient colors for the inner box from a widget theme and the widgets state.static void
bndJoinAreaOverlay(long ctx, float x, float y, float w, float h, boolean vertical, boolean mirror)
Draws the join area overlay stencil into the rectangle at origin(x,y)
and size(w,h)
.static void
bndLabel(long ctx, float x, float y, float w, float h, int iconid, java.lang.CharSequence label)
Draws a label with its lower left origin at(x,y)
and size of(w,h)
.static void
bndLabel(long ctx, float x, float y, float w, float h, int iconid, java.nio.ByteBuffer label)
Draws a label with its lower left origin at(x,y)
and size of(w,h)
.static float
bndLabelHeight(long ctx, int iconid, java.lang.CharSequence label, float width)
Returns the height for a label with given icon, text and width; this function is primarily useful in conjunction with multiline labels and textboxes.static float
bndLabelHeight(long ctx, int iconid, java.nio.ByteBuffer label, float width)
Returns the height for a label with given icon, text and width; this function is primarily useful in conjunction with multiline labels and textboxes.static float
bndLabelWidth(long ctx, int iconid, java.lang.CharSequence label)
Returns the ideal width for a label with given icon and textstatic float
bndLabelWidth(long ctx, int iconid, java.nio.ByteBuffer label)
Returns the ideal width for a label with given icon and textstatic void
bndMenuBackground(long ctx, float x, float y, float w, float h, int flags)
Draws a menu background with its lower left origin at(x,y)
and size of(w,h)
.static void
bndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, java.lang.CharSequence label)
Draws a menu item with its lower left origin at(x,y)
and size of(w,h)
.static void
bndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, java.nio.ByteBuffer label)
Draws a menu item with its lower left origin at(x,y)
and size of(w,h)
.static void
bndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, java.lang.CharSequence label)
Draws a menu label with its lower left origin at(x,y)
and size of(w,h)
.static void
bndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, java.nio.ByteBuffer label)
Draws a menu label with its lower left origin at(x,y)
and size of(w,h)
.static void
bndNodeArrowDown(long ctx, float x, float y, float s, NVGColor color)
Draws a node down-arrow with its tip at(x,y)
and sizes
static void
bndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, java.lang.CharSequence label, NVGColor titleColor)
Draws a node background with its upper left origin at(x,y)
and size of(w,h)
.static void
bndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, java.nio.ByteBuffer label, NVGColor titleColor)
Draws a node background with its upper left origin at(x,y)
and size of(w,h)
.static void
bndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, NVGColor shadowColor, int align, float fontsize, java.lang.CharSequence label)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a node title bar.static void
bndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, NVGColor shadowColor, int align, float fontsize, java.nio.ByteBuffer label)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a node title bar.static void
bndNodePort(long ctx, float x, float y, int state, NVGColor color)
Draws a node port at the given position filled with the given color.static void
bndNodeWire(long ctx, float x0, float y0, float x1, float y1, int state0, int state1)
static NVGColor
bndNodeWireColor(BNDnodeTheme theme, int state, NVGColor __result)
Returns the color of a node wire based on state.static void
bndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, java.lang.CharSequence label, java.lang.CharSequence value)
Draws a number field with its lower left origin at(x,y)
and size of(w,h)
.static void
bndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, java.nio.ByteBuffer label, java.nio.ByteBuffer value)
Draws a number field with its lower left origin at(x,y)
and size of(w,h)
.static NVGColor
bndOffsetColor(NVGColor color, int delta, NVGColor __result)
Offsets a color by a given integer delta.static void
bndOptionButton(long ctx, float x, float y, float w, float h, int state, java.lang.CharSequence label)
Draws an option button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndOptionButton(long ctx, float x, float y, float w, float h, int state, java.nio.ByteBuffer label)
Draws an option button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndOutlineBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, NVGColor color)
Draws the outline part of a widget box with the given color.static void
bndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.lang.CharSequence label)
Draws a radio button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.nio.ByteBuffer label)
Draws a radio button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndRoundedBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3)
Adds a rounded box path at position(x,y)
with size(w,h)
and a separate radius for each corner listed in clockwise order, so thatcr0
= top left,cr1
= top right,cr2
= bottom right,cr3
= bottom left; this is a low level drawing function: the path must be stroked or filled to become visible.static void
bndScrollBar(long ctx, float x, float y, float w, float h, int state, float offset, float size)
Draws scrollbar with its lower left origin at(x,y)
and size of(w,h)
.static void
bndScrollHandleRect(float[] x, float[] y, float[] w, float[] h, float offset, float size)
Array version of:ScrollHandleRect
static void
bndScrollHandleRect(java.nio.FloatBuffer x, java.nio.FloatBuffer y, java.nio.FloatBuffer w, java.nio.FloatBuffer h, float offset, float size)
Computes the bounds of the scrollbar handle from the scrollbar size and the handle's offset and size.static void
bndSelectCorners(float[] radiuses, float r, int flags)
Array version of:SelectCorners
static void
bndSelectCorners(java.nio.FloatBuffer radiuses, float r, int flags)
Assigns radiusr
to the four entries of arrayradiuses
depending on whether the corner is marked as sharp or not.static void
bndSetFont(int font)
Designates an image handle as returned bynvgCreateFont*()
as the themes' UI font.static void
bndSetIconImage(int image)
Designates an image handle as returned bynvgCreateImage*()
as the themes' icon sheet.static void
bndSetTheme(BNDtheme theme)
Sets the current theme all widgets will be drawn with.static void
bndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, java.lang.CharSequence label, java.lang.CharSequence value)
Draws slider control with its lower left origin at(x,y)
and size of(w,h)
.static void
bndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, java.nio.ByteBuffer label, java.nio.ByteBuffer value)
Draws slider control with its lower left origin at(x,y)
and size of(w,h)
.static void
bndSplitterWidgets(long ctx, float x, float y, float w, float h)
Draws a window with the upper right and lower left splitter widgets into the rectangle at origin(x,y)
and size(w, h)
.static NVGColor
bndTextColor(BNDwidgetTheme theme, int state, NVGColor __result)
Computes the text color for a widget label from a widget theme and the widgets state.static void
bndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.lang.CharSequence text, int cbegin, int cend)
Draws a text field with its lower left origin at(x,y)
and size of(w,h)
.static void
bndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.nio.ByteBuffer text, int cbegin, int cend)
Draws a text field with its lower left origin at(x,y)
and size of(w,h)
.static int
bndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, java.lang.CharSequence text, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in a text field.static int
bndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, java.nio.ByteBuffer text, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in a text field.static void
bndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.lang.CharSequence label)
Draws a tool button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, java.nio.ByteBuffer label)
Draws a tool button with its lower left origin at(x,y)
and size of(w,h)
.static void
bndTooltipBackground(long ctx, float x, float y, float w, float h)
Draws a tooltip background with its lower left origin at(x,y)
and size of(w,h)
.static NVGColor
bndTransparent(NVGColor color, NVGColor __result)
Makes color transparent using the default alpha value.static void
bndUpDownArrow(long ctx, float x, float y, float s, NVGColor color)
Draws an up/down arrow for a choice box with its center at(x,y)
and sizes
.static void
nbndArrow(long ctx, float x, float y, float s, long color)
Unsafe version of:Arrow
static void
nbndBackground(long ctx, float x, float y, float w, float h)
Unsafe version of:Background
static void
nbndBevel(long ctx, float x, float y, float w, float h)
Unsafe version of:Bevel
static void
nbndBevelInset(long ctx, float x, float y, float w, float h, float cr2, float cr3)
Unsafe version of:BevelInset
static void
nbndCheck(long ctx, float ox, float oy, long color)
Unsafe version of:Check
static void
nbndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:ChoiceButton
static void
nbndColorButton(long ctx, float x, float y, float w, float h, int flags, long color)
Unsafe version of:ColorButton
static void
nbndColoredNodeWire(long ctx, float x0, float y0, float x1, float y1, long color0, long color1)
Unsafe version of:ColoredNodeWire
static void
nbndDropShadow(long ctx, float x, float y, float w, float h, float r, float feather, float alpha)
Unsafe version of:DropShadow
static long
nbndGetTheme()
Unsafe version of:GetTheme
static void
nbndIcon(long ctx, float x, float y, int iconid)
Unsafe version of:Icon
static void
nbndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, long color, float fontsize, long label, long caretcolor, int cbegin, int cend)
Unsafe version of:IconLabelCaret
static int
nbndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, long label, int px, int py)
Unsafe version of:IconLabelTextPosition
static void
nbndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, long color, int align, float fontsize, long label, long value)
Unsafe version of:IconLabelValue
static void
nbndInnerBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, long shade_top, long shade_down)
Unsafe version of:InnerBox
static void
nbndInnerColors(long shade_top, long shade_down, long theme, int state, int flipActive)
Unsafe version of:InnerColors
static void
nbndJoinAreaOverlay(long ctx, float x, float y, float w, float h, int vertical, int mirror)
Unsafe version of:JoinAreaOverlay
static void
nbndLabel(long ctx, float x, float y, float w, float h, int iconid, long label)
Unsafe version of:Label
static float
nbndLabelHeight(long ctx, int iconid, long label, float width)
Unsafe version of:LabelHeight
static float
nbndLabelWidth(long ctx, int iconid, long label)
Unsafe version of:LabelWidth
static void
nbndMenuBackground(long ctx, float x, float y, float w, float h, int flags)
Unsafe version of:MenuBackground
static void
nbndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, long label)
Unsafe version of:MenuItem
static void
nbndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, long label)
Unsafe version of:MenuLabel
static void
nbndNodeArrowDown(long ctx, float x, float y, float s, long color)
Unsafe version of:NodeArrowDown
static void
nbndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, long label, long titleColor)
Unsafe version of:NodeBackground
static void
nbndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, long color, long shadowColor, int align, float fontsize, long label)
Unsafe version of:NodeIconLabel
static void
nbndNodePort(long ctx, float x, float y, int state, long color)
Unsafe version of:NodePort
static void
nbndNodeWire(long ctx, float x0, float y0, float x1, float y1, int state0, int state1)
Unsafe version of:NodeWire
static void
nbndNodeWireColor(long theme, int state, long __result)
Unsafe version of:NodeWireColor
static void
nbndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, long label, long value)
Unsafe version of:NumberField
static void
nbndOffsetColor(long color, int delta, long __result)
Unsafe version of:OffsetColor
static void
nbndOptionButton(long ctx, float x, float y, float w, float h, int state, long label)
Unsafe version of:OptionButton
static void
nbndOutlineBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, long color)
Unsafe version of:OutlineBox
static void
nbndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:RadioButton
static void
nbndRoundedBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3)
Unsafe version of:RoundedBox
static void
nbndScrollBar(long ctx, float x, float y, float w, float h, int state, float offset, float size)
Unsafe version of:ScrollBar
static void
nbndScrollHandleRect(float[] x, float[] y, float[] w, float[] h, float offset, float size)
Array version of:nbndScrollHandleRect(long, long, long, long, float, float)
static void
nbndScrollHandleRect(long x, long y, long w, long h, float offset, float size)
Unsafe version of:ScrollHandleRect
static void
nbndSelectCorners(float[] radiuses, float r, int flags)
Array version of:nbndSelectCorners(long, float, int)
static void
nbndSelectCorners(long radiuses, float r, int flags)
Unsafe version of:SelectCorners
static void
nbndSetTheme(long theme)
Unsafe version of:SetTheme
static void
nbndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, long label, long value)
Unsafe version of:Slider
static void
nbndSplitterWidgets(long ctx, float x, float y, float w, float h)
Unsafe version of:SplitterWidgets
static void
nbndTextColor(long theme, int state, long __result)
Unsafe version of:TextColor
static void
nbndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long text, int cbegin, int cend)
Unsafe version of:TextField
static int
nbndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, long text, int px, int py)
Unsafe version of:TextFieldTextPosition
static void
nbndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:ToolButton
static void
nbndTooltipBackground(long ctx, float x, float y, float w, float h)
Unsafe version of:TooltipBackground
static void
nbndTransparent(long color, long __result)
Unsafe version of:Transparent
static void
nbndUpDownArrow(long ctx, float x, float y, float s, long color)
Unsafe version of:UpDownArrow
-
-
-
Field Detail
-
BND_DISABLED_ALPHA
Alpha of disabled widget groups. Can be used in conjunction withGlobalAlpha
.
-
BND_CORNER_NONE, BND_CORNER_TOP_LEFT, BND_CORNER_TOP_RIGHT, BND_CORNER_DOWN_RIGHT, BND_CORNER_DOWN_LEFT, BND_CORNER_ALL, BND_CORNER_TOP, BND_CORNER_DOWN, BND_CORNER_LEFT, BND_CORNER_RIGHT
Flags indicating which corners are sharp (for grouping widgets). (BNDcornerFlags
)Enum values:
CORNER_NONE
- all corners are roundCORNER_TOP_LEFT
- sharp top left cornerCORNER_TOP_RIGHT
- sharp top right cornerCORNER_DOWN_RIGHT
- sharp bottom right cornerCORNER_DOWN_LEFT
- sharp bottom left cornerCORNER_ALL
- all corners are sharp; you can invert a set of flags using ^= BND_CORNER_ALLCORNER_TOP
- top border is sharpCORNER_DOWN
- bottom border is sharpCORNER_LEFT
- left border is sharpCORNER_RIGHT
- right border is sharp
-
BND_WIDGET_HEIGHT, BND_TOOL_WIDTH, BND_NODE_PORT_RADIUS, BND_NODE_MARGIN_TOP, BND_NODE_MARGIN_DOWN, BND_NODE_MARGIN_SIDE, BND_NODE_TITLE_HEIGHT, BND_NODE_ARROW_AREA_WIDTH, BND_SPLITTER_AREA_SIZE, BND_SCROLLBAR_WIDTH, BND_SCROLLBAR_HEIGHT, BND_VSPACING, BND_VSPACING_GROUP, BND_HSPACING
Enum values:
WIDGET_HEIGHT
- default widget heightTOOL_WIDTH
- default toolbutton width (if icon only)NODE_PORT_RADIUS
- default radius of node portsNODE_MARGIN_TOP
- top margin of node contentNODE_MARGIN_DOWN
- bottom margin of node contentNODE_MARGIN_SIDE
- left and right margin of node contentNODE_TITLE_HEIGHT
- height of node title barNODE_ARROW_AREA_WIDTH
- width of node title arrow click areaSPLITTER_AREA_SIZE
- size of splitter corner click areaSCROLLBAR_WIDTH
- width of vertical scrollbarSCROLLBAR_HEIGHT
- height of horizontal scrollbarVSPACING
- default vertical spacingVSPACING_GROUP
- default vertical spacing between groupsHSPACING
- default horizontal spacing
-
BND_ICON_NONE, BND_ICON_QUESTION, BND_ICON_ERROR, BND_ICON_CANCEL, BND_ICON_TRIA_RIGHT, BND_ICON_TRIA_DOWN, BND_ICON_TRIA_LEFT, BND_ICON_TRIA_UP, BND_ICON_ARROW_LEFTRIGHT, BND_ICON_PLUS, BND_ICON_DISCLOSURE_TRI_DOWN, BND_ICON_DISCLOSURE_TRI_RIGHT, BND_ICON_RADIOBUT_OFF, BND_ICON_RADIOBUT_ON, BND_ICON_MENU_PANEL, BND_ICON_BLENDER, BND_ICON_GRIP, BND_ICON_DOT, BND_ICON_COLLAPSEMENU, BND_ICON_X, BND_ICON_GO_LEFT, BND_ICON_PLUG, BND_ICON_UI, BND_ICON_NODE, BND_ICON_NODE_SEL, BND_ICON_FULLSCREEN, BND_ICON_SPLITSCREEN, BND_ICON_RIGHTARROW_THIN, BND_ICON_BORDERMOVE, BND_ICON_VIEWZOOM, BND_ICON_ZOOMIN, BND_ICON_ZOOMOUT, BND_ICON_PANEL_CLOSE, BND_ICON_COPY_ID, BND_ICON_EYEDROPPER, BND_ICON_LINK_AREA, BND_ICON_AUTO, BND_ICON_CHECKBOX_DEHLT, BND_ICON_CHECKBOX_HLT, BND_ICON_UNLOCKED, BND_ICON_LOCKED, BND_ICON_UNPINNED, BND_ICON_PINNED, BND_ICON_SCREEN_BACK, BND_ICON_RIGHTARROW, BND_ICON_DOWNARROW_HLT, BND_ICON_DOTSUP, BND_ICON_DOTSDOWN, BND_ICON_LINK, BND_ICON_INLINK, BND_ICON_PLUGIN, BND_ICON_HELP, BND_ICON_GHOST_ENABLED, BND_ICON_COLOR, BND_ICON_LINKED, BND_ICON_UNLINKED, BND_ICON_HAND, BND_ICON_ZOOM_ALL, BND_ICON_ZOOM_SELECTED, BND_ICON_ZOOM_PREVIOUS, BND_ICON_ZOOM_IN, BND_ICON_ZOOM_OUT, BND_ICON_RENDER_REGION, BND_ICON_BORDER_RECT, BND_ICON_BORDER_LASSO, BND_ICON_FREEZE, BND_ICON_STYLUS_PRESSURE, BND_ICON_GHOST_DISABLED, BND_ICON_NEW, BND_ICON_FILE_TICK, BND_ICON_QUIT, BND_ICON_URL, BND_ICON_RECOVER_LAST, BND_ICON_FULLSCREEN_ENTER, BND_ICON_FULLSCREEN_EXIT, BND_ICON_BLANK1, BND_ICON_LAMP, BND_ICON_MATERIAL, BND_ICON_TEXTURE, BND_ICON_ANIM, BND_ICON_WORLD, BND_ICON_SCENE, BND_ICON_EDIT, BND_ICON_GAME, BND_ICON_RADIO, BND_ICON_SCRIPT, BND_ICON_PARTICLES, BND_ICON_PHYSICS, BND_ICON_SPEAKER, BND_ICON_TEXTURE_SHADED, BND_ICON_VIEW3D, BND_ICON_IPO, BND_ICON_OOPS, BND_ICON_BUTS, BND_ICON_FILESEL, BND_ICON_IMAGE_COL, BND_ICON_INFO, BND_ICON_SEQUENCE, BND_ICON_TEXT, BND_ICON_IMASEL, BND_ICON_SOUND, BND_ICON_ACTION, BND_ICON_NLA, BND_ICON_SCRIPTWIN, BND_ICON_TIME, BND_ICON_NODETREE, BND_ICON_LOGIC, BND_ICON_CONSOLE, BND_ICON_PREFERENCES, BND_ICON_CLIP, BND_ICON_ASSET_MANAGER, BND_ICON_OBJECT_DATAMODE, BND_ICON_EDITMODE_HLT, BND_ICON_FACESEL_HLT, BND_ICON_VPAINT_HLT, BND_ICON_TPAINT_HLT, BND_ICON_WPAINT_HLT, BND_ICON_SCULPTMODE_HLT, BND_ICON_POSE_HLT, BND_ICON_PARTICLEMODE, BND_ICON_LIGHTPAINT, BND_ICON_SCENE_DATA, BND_ICON_RENDERLAYERS, BND_ICON_WORLD_DATA, BND_ICON_OBJECT_DATA, BND_ICON_MESH_DATA, BND_ICON_CURVE_DATA, BND_ICON_META_DATA, BND_ICON_LATTICE_DATA, BND_ICON_LAMP_DATA, BND_ICON_MATERIAL_DATA, BND_ICON_TEXTURE_DATA, BND_ICON_ANIM_DATA, BND_ICON_CAMERA_DATA, BND_ICON_PARTICLE_DATA, BND_ICON_LIBRARY_DATA_DIRECT, BND_ICON_GROUP, BND_ICON_ARMATURE_DATA, BND_ICON_POSE_DATA, BND_ICON_BONE_DATA, BND_ICON_CONSTRAINT, BND_ICON_SHAPEKEY_DATA, BND_ICON_CONSTRAINT_BONE, BND_ICON_CAMERA_STEREO, BND_ICON_PACKAGE, BND_ICON_UGLYPACKAGE, BND_ICON_BRUSH_DATA, BND_ICON_IMAGE_DATA, BND_ICON_FILE, BND_ICON_FCURVE, BND_ICON_FONT_DATA, BND_ICON_RENDER_RESULT, BND_ICON_SURFACE_DATA, BND_ICON_EMPTY_DATA, BND_ICON_SETTINGS, BND_ICON_RENDER_ANIMATION, BND_ICON_RENDER_STILL, BND_ICON_BOIDS, BND_ICON_STRANDS, BND_ICON_LIBRARY_DATA_INDIRECT, BND_ICON_GREASEPENCIL, BND_ICON_LINE_DATA, BND_ICON_GROUP_BONE, BND_ICON_GROUP_VERTEX, BND_ICON_GROUP_VCOL, BND_ICON_GROUP_UVS, BND_ICON_RNA, BND_ICON_RNA_ADD, BND_ICON_OUTLINER_OB_EMPTY, BND_ICON_OUTLINER_OB_MESH, BND_ICON_OUTLINER_OB_CURVE, BND_ICON_OUTLINER_OB_LATTICE, BND_ICON_OUTLINER_OB_META, BND_ICON_OUTLINER_OB_LAMP, BND_ICON_OUTLINER_OB_CAMERA, BND_ICON_OUTLINER_OB_ARMATURE, BND_ICON_OUTLINER_OB_FONT, BND_ICON_OUTLINER_OB_SURFACE, BND_ICON_OUTLINER_OB_SPEAKER, BND_ICON_RESTRICT_VIEW_OFF, BND_ICON_RESTRICT_VIEW_ON, BND_ICON_RESTRICT_SELECT_OFF, BND_ICON_RESTRICT_SELECT_ON, BND_ICON_RESTRICT_RENDER_OFF, BND_ICON_RESTRICT_RENDER_ON, BND_ICON_OUTLINER_DATA_EMPTY, BND_ICON_OUTLINER_DATA_MESH, BND_ICON_OUTLINER_DATA_CURVE, BND_ICON_OUTLINER_DATA_LATTICE, BND_ICON_OUTLINER_DATA_META, BND_ICON_OUTLINER_DATA_LAMP, BND_ICON_OUTLINER_DATA_CAMERA, BND_ICON_OUTLINER_DATA_ARMATURE, BND_ICON_OUTLINER_DATA_FONT, BND_ICON_OUTLINER_DATA_SURFACE, BND_ICON_OUTLINER_DATA_SPEAKER, BND_ICON_OUTLINER_DATA_POSE, BND_ICON_MESH_PLANE, BND_ICON_MESH_CUBE, BND_ICON_MESH_CIRCLE, BND_ICON_MESH_UVSPHERE, BND_ICON_MESH_ICOSPHERE, BND_ICON_MESH_GRID, BND_ICON_MESH_MONKEY, BND_ICON_MESH_CYLINDER, BND_ICON_MESH_TORUS, BND_ICON_MESH_CONE, BND_ICON_LAMP_POINT, BND_ICON_LAMP_SUN, BND_ICON_LAMP_SPOT, BND_ICON_LAMP_HEMI, BND_ICON_LAMP_AREA, BND_ICON_META_EMPTY, BND_ICON_META_PLANE, BND_ICON_META_CUBE, BND_ICON_META_BALL, BND_ICON_META_ELLIPSOID, BND_ICON_META_CAPSULE, BND_ICON_SURFACE_NCURVE, BND_ICON_SURFACE_NCIRCLE, BND_ICON_SURFACE_NSURFACE, BND_ICON_SURFACE_NCYLINDER, BND_ICON_SURFACE_NSPHERE, BND_ICON_SURFACE_NTORUS, BND_ICON_CURVE_BEZCURVE, BND_ICON_CURVE_BEZCIRCLE, BND_ICON_CURVE_NCURVE, BND_ICON_CURVE_NCIRCLE, BND_ICON_CURVE_PATH, BND_ICON_COLOR_RED, BND_ICON_COLOR_GREEN, BND_ICON_COLOR_BLUE, BND_ICON_FORCE_FORCE, BND_ICON_FORCE_WIND, BND_ICON_FORCE_VORTEX, BND_ICON_FORCE_MAGNETIC, BND_ICON_FORCE_HARMONIC, BND_ICON_FORCE_CHARGE, BND_ICON_FORCE_LENNARDJONES, BND_ICON_FORCE_TEXTURE, BND_ICON_FORCE_CURVE, BND_ICON_FORCE_BOID, BND_ICON_FORCE_TURBULENCE, BND_ICON_FORCE_DRAG, BND_ICON_FORCE_SMOKEFLOW, BND_ICON_MODIFIER, BND_ICON_MOD_WAVE, BND_ICON_MOD_BUILD, BND_ICON_MOD_DECIM, BND_ICON_MOD_MIRROR, BND_ICON_MOD_SOFT, BND_ICON_MOD_SUBSURF, BND_ICON_HOOK, BND_ICON_MOD_PHYSICS, BND_ICON_MOD_PARTICLES, BND_ICON_MOD_BOOLEAN, BND_ICON_MOD_EDGESPLIT, BND_ICON_MOD_ARRAY, BND_ICON_MOD_UVPROJECT, BND_ICON_MOD_DISPLACE, BND_ICON_MOD_CURVE, BND_ICON_MOD_LATTICE, BND_ICON_CONSTRAINT_DATA, BND_ICON_MOD_ARMATURE, BND_ICON_MOD_SHRINKWRAP, BND_ICON_MOD_CAST, BND_ICON_MOD_MESHDEFORM, BND_ICON_MOD_BEVEL, BND_ICON_MOD_SMOOTH, BND_ICON_MOD_SIMPLEDEFORM, BND_ICON_MOD_MASK, BND_ICON_MOD_CLOTH, BND_ICON_MOD_EXPLODE, BND_ICON_MOD_FLUIDSIM, BND_ICON_MOD_MULTIRES, BND_ICON_MOD_SMOKE, BND_ICON_MOD_SOLIDIFY, BND_ICON_MOD_SCREW, BND_ICON_MOD_VERTEX_WEIGHT, BND_ICON_MOD_DYNAMICPAINT, BND_ICON_MOD_REMESH, BND_ICON_MOD_OCEAN, BND_ICON_MOD_WARP, BND_ICON_MOD_SKIN, BND_ICON_MOD_TRIANGULATE, BND_ICON_MOD_WIREFRAME, BND_ICON_REC, BND_ICON_PLAY, BND_ICON_FF, BND_ICON_REW, BND_ICON_PAUSE, BND_ICON_PREV_KEYFRAME, BND_ICON_NEXT_KEYFRAME, BND_ICON_PLAY_AUDIO, BND_ICON_PLAY_REVERSE, BND_ICON_PREVIEW_RANGE, BND_ICON_ACTION_TWEAK, BND_ICON_PMARKER_ACT, BND_ICON_PMARKER_SEL, BND_ICON_PMARKER, BND_ICON_MARKER_HLT, BND_ICON_MARKER, BND_ICON_SPACE2, BND_ICON_SPACE3, BND_ICON_KEYINGSET, BND_ICON_KEY_DEHLT, BND_ICON_KEY_HLT, BND_ICON_MUTE_IPO_OFF, BND_ICON_MUTE_IPO_ON, BND_ICON_VISIBLE_IPO_OFF, BND_ICON_VISIBLE_IPO_ON, BND_ICON_DRIVER, BND_ICON_SOLO_OFF, BND_ICON_SOLO_ON, BND_ICON_FRAME_PREV, BND_ICON_FRAME_NEXT, BND_ICON_NLA_PUSHDOWN, BND_ICON_IPO_CONSTANT, BND_ICON_IPO_LINEAR, BND_ICON_IPO_BEZIER, BND_ICON_IPO_SINE, BND_ICON_IPO_QUAD, BND_ICON_IPO_CUBIC, BND_ICON_IPO_QUART, BND_ICON_IPO_QUINT, BND_ICON_IPO_EXPO, BND_ICON_IPO_CIRC, BND_ICON_IPO_BOUNCE, BND_ICON_IPO_ELASTIC, BND_ICON_IPO_BACK, BND_ICON_IPO_EASE_IN, BND_ICON_IPO_EASE_OUT, BND_ICON_IPO_EASE_IN_OUT, BND_ICON_VERTEXSEL, BND_ICON_EDGESEL, BND_ICON_FACESEL, BND_ICON_LOOPSEL, BND_ICON_ROTATE, BND_ICON_CURSOR, BND_ICON_ROTATECOLLECTION, BND_ICON_ROTATECENTER, BND_ICON_ROTACTIVE, BND_ICON_ALIGN, BND_ICON_SMOOTHCURVE, BND_ICON_SPHERECURVE, BND_ICON_ROOTCURVE, BND_ICON_SHARPCURVE, BND_ICON_LINCURVE, BND_ICON_NOCURVE, BND_ICON_RNDCURVE, BND_ICON_PROP_OFF, BND_ICON_PROP_ON, BND_ICON_PROP_CON, BND_ICON_SCULPT_DYNTOPO, BND_ICON_PARTICLE_POINT, BND_ICON_PARTICLE_TIP, BND_ICON_PARTICLE_PATH, BND_ICON_MAN_TRANS, BND_ICON_MAN_ROT, BND_ICON_MAN_SCALE, BND_ICON_MANIPUL, BND_ICON_SNAP_OFF, BND_ICON_SNAP_ON, BND_ICON_SNAP_NORMAL, BND_ICON_SNAP_INCREMENT, BND_ICON_SNAP_VERTEX, BND_ICON_SNAP_EDGE, BND_ICON_SNAP_FACE, BND_ICON_SNAP_VOLUME, BND_ICON_STICKY_UVS_LOC, BND_ICON_STICKY_UVS_DISABLE, BND_ICON_STICKY_UVS_VERT, BND_ICON_CLIPUV_DEHLT, BND_ICON_CLIPUV_HLT, BND_ICON_SNAP_PEEL_OBJECT, BND_ICON_GRID, BND_ICON_PASTEDOWN, BND_ICON_COPYDOWN, BND_ICON_PASTEFLIPUP, BND_ICON_PASTEFLIPDOWN, BND_ICON_SNAP_SURFACE, BND_ICON_AUTOMERGE_ON, BND_ICON_AUTOMERGE_OFF, BND_ICON_RETOPO, BND_ICON_UV_VERTEXSEL, BND_ICON_UV_EDGESEL, BND_ICON_UV_FACESEL, BND_ICON_UV_ISLANDSEL, BND_ICON_UV_SYNC_SELECT, BND_ICON_BBOX, BND_ICON_WIRE, BND_ICON_SOLID, BND_ICON_SMOOTH, BND_ICON_POTATO, BND_ICON_ORTHO, BND_ICON_LOCKVIEW_OFF, BND_ICON_LOCKVIEW_ON, BND_ICON_AXIS_SIDE, BND_ICON_AXIS_FRONT, BND_ICON_AXIS_TOP, BND_ICON_NDOF_DOM, BND_ICON_NDOF_TURN, BND_ICON_NDOF_FLY, BND_ICON_NDOF_TRANS, BND_ICON_LAYER_USED, BND_ICON_LAYER_ACTIVE, BND_ICON_SORTALPHA, BND_ICON_SORTBYEXT, BND_ICON_SORTTIME, BND_ICON_SORTSIZE, BND_ICON_LONGDISPLAY, BND_ICON_SHORTDISPLAY, BND_ICON_GHOST, BND_ICON_IMGDISPLAY, BND_ICON_SAVE_AS, BND_ICON_SAVE_COPY, BND_ICON_BOOKMARKS, BND_ICON_FONTPREVIEW, BND_ICON_FILTER, BND_ICON_NEWFOLDER, BND_ICON_OPEN_RECENT, BND_ICON_FILE_PARENT, BND_ICON_FILE_REFRESH, BND_ICON_FILE_FOLDER, BND_ICON_FILE_BLANK, BND_ICON_FILE_BLEND, BND_ICON_FILE_IMAGE, BND_ICON_FILE_MOVIE, BND_ICON_FILE_SCRIPT, BND_ICON_FILE_SOUND, BND_ICON_FILE_FONT, BND_ICON_FILE_TEXT, BND_ICON_RECOVER_AUTO, BND_ICON_SAVE_PREFS, BND_ICON_LINK_BLEND, BND_ICON_APPEND_BLEND, BND_ICON_IMPORT, BND_ICON_EXPORT, BND_ICON_EXTERNAL_DATA, BND_ICON_LOAD_FACTORY, BND_ICON_LOOP_BACK, BND_ICON_LOOP_FORWARDS, BND_ICON_BACK, BND_ICON_FORWARD, BND_ICON_FILE_BACKUP, BND_ICON_DISK_DRIVE, BND_ICON_MATPLANE, BND_ICON_MATSPHERE, BND_ICON_MATCUBE, BND_ICON_MONKEY, BND_ICON_HAIR, BND_ICON_ALIASED, BND_ICON_ANTIALIASED, BND_ICON_MAT_SPHERE_SKY, BND_ICON_WORDWRAP_OFF, BND_ICON_WORDWRAP_ON, BND_ICON_SYNTAX_OFF, BND_ICON_SYNTAX_ON, BND_ICON_LINENUMBERS_OFF, BND_ICON_LINENUMBERS_ON, BND_ICON_SCRIPTPLUGINS, BND_ICON_SEQ_SEQUENCER, BND_ICON_SEQ_PREVIEW, BND_ICON_SEQ_LUMA_WAVEFORM, BND_ICON_SEQ_CHROMA_SCOPE, BND_ICON_SEQ_HISTOGRAM, BND_ICON_SEQ_SPLITVIEW, BND_ICON_IMAGE_RGB, BND_ICON_IMAGE_RGB_ALPHA, BND_ICON_IMAGE_ALPHA, BND_ICON_IMAGE_ZDEPTH, BND_ICON_IMAGEFILE
BNDicon
Enum values:
ICON_NONE
ICON_QUESTION
ICON_ERROR
ICON_CANCEL
ICON_TRIA_RIGHT
ICON_TRIA_DOWN
ICON_TRIA_LEFT
ICON_TRIA_UP
ICON_ARROW_LEFTRIGHT
ICON_PLUS
ICON_DISCLOSURE_TRI_DOWN
ICON_DISCLOSURE_TRI_RIGHT
ICON_RADIOBUT_OFF
ICON_RADIOBUT_ON
ICON_MENU_PANEL
ICON_BLENDER
ICON_GRIP
ICON_DOT
ICON_COLLAPSEMENU
ICON_X
ICON_GO_LEFT
ICON_PLUG
ICON_UI
ICON_NODE
ICON_NODE_SEL
ICON_FULLSCREEN
ICON_SPLITSCREEN
ICON_RIGHTARROW_THIN
ICON_BORDERMOVE
ICON_VIEWZOOM
ICON_ZOOMIN
ICON_ZOOMOUT
ICON_PANEL_CLOSE
ICON_COPY_ID
ICON_EYEDROPPER
ICON_LINK_AREA
ICON_AUTO
ICON_CHECKBOX_DEHLT
ICON_CHECKBOX_HLT
ICON_UNLOCKED
ICON_LOCKED
ICON_UNPINNED
ICON_PINNED
ICON_SCREEN_BACK
ICON_RIGHTARROW
ICON_DOWNARROW_HLT
ICON_DOTSUP
ICON_DOTSDOWN
ICON_LINK
ICON_INLINK
ICON_PLUGIN
ICON_HELP
ICON_GHOST_ENABLED
ICON_COLOR
ICON_LINKED
ICON_UNLINKED
ICON_HAND
ICON_ZOOM_ALL
ICON_ZOOM_SELECTED
ICON_ZOOM_PREVIOUS
ICON_ZOOM_IN
ICON_ZOOM_OUT
ICON_RENDER_REGION
ICON_BORDER_RECT
ICON_BORDER_LASSO
ICON_FREEZE
ICON_STYLUS_PRESSURE
ICON_GHOST_DISABLED
ICON_NEW
ICON_FILE_TICK
ICON_QUIT
ICON_URL
ICON_RECOVER_LAST
ICON_FULLSCREEN_ENTER
ICON_FULLSCREEN_EXIT
ICON_BLANK1
ICON_LAMP
ICON_MATERIAL
ICON_TEXTURE
ICON_ANIM
ICON_WORLD
ICON_SCENE
ICON_EDIT
ICON_GAME
ICON_RADIO
ICON_SCRIPT
ICON_PARTICLES
ICON_PHYSICS
ICON_SPEAKER
ICON_TEXTURE_SHADED
ICON_VIEW3D
ICON_IPO
ICON_OOPS
ICON_BUTS
ICON_FILESEL
ICON_IMAGE_COL
ICON_INFO
ICON_SEQUENCE
ICON_TEXT
ICON_IMASEL
ICON_SOUND
ICON_ACTION
ICON_NLA
ICON_SCRIPTWIN
ICON_TIME
ICON_NODETREE
ICON_LOGIC
ICON_CONSOLE
ICON_PREFERENCES
ICON_CLIP
ICON_ASSET_MANAGER
ICON_OBJECT_DATAMODE
ICON_EDITMODE_HLT
ICON_FACESEL_HLT
ICON_VPAINT_HLT
ICON_TPAINT_HLT
ICON_WPAINT_HLT
ICON_SCULPTMODE_HLT
ICON_POSE_HLT
ICON_PARTICLEMODE
ICON_LIGHTPAINT
ICON_SCENE_DATA
ICON_RENDERLAYERS
ICON_WORLD_DATA
ICON_OBJECT_DATA
ICON_MESH_DATA
ICON_CURVE_DATA
ICON_META_DATA
ICON_LATTICE_DATA
ICON_LAMP_DATA
ICON_MATERIAL_DATA
ICON_TEXTURE_DATA
ICON_ANIM_DATA
ICON_CAMERA_DATA
ICON_PARTICLE_DATA
ICON_LIBRARY_DATA_DIRECT
ICON_GROUP
ICON_ARMATURE_DATA
ICON_POSE_DATA
ICON_BONE_DATA
ICON_CONSTRAINT
ICON_SHAPEKEY_DATA
ICON_CONSTRAINT_BONE
ICON_CAMERA_STEREO
ICON_PACKAGE
ICON_UGLYPACKAGE
ICON_BRUSH_DATA
ICON_IMAGE_DATA
ICON_FILE
ICON_FCURVE
ICON_FONT_DATA
ICON_RENDER_RESULT
ICON_SURFACE_DATA
ICON_EMPTY_DATA
ICON_SETTINGS
ICON_RENDER_ANIMATION
ICON_RENDER_STILL
ICON_BOIDS
ICON_STRANDS
ICON_LIBRARY_DATA_INDIRECT
ICON_GREASEPENCIL
ICON_LINE_DATA
ICON_GROUP_BONE
ICON_GROUP_VERTEX
ICON_GROUP_VCOL
ICON_GROUP_UVS
ICON_RNA
ICON_RNA_ADD
ICON_OUTLINER_OB_EMPTY
ICON_OUTLINER_OB_MESH
ICON_OUTLINER_OB_CURVE
ICON_OUTLINER_OB_LATTICE
ICON_OUTLINER_OB_META
ICON_OUTLINER_OB_LAMP
ICON_OUTLINER_OB_CAMERA
ICON_OUTLINER_OB_ARMATURE
ICON_OUTLINER_OB_FONT
ICON_OUTLINER_OB_SURFACE
ICON_OUTLINER_OB_SPEAKER
ICON_RESTRICT_VIEW_OFF
ICON_RESTRICT_VIEW_ON
ICON_RESTRICT_SELECT_OFF
ICON_RESTRICT_SELECT_ON
ICON_RESTRICT_RENDER_OFF
ICON_RESTRICT_RENDER_ON
ICON_OUTLINER_DATA_EMPTY
ICON_OUTLINER_DATA_MESH
ICON_OUTLINER_DATA_CURVE
ICON_OUTLINER_DATA_LATTICE
ICON_OUTLINER_DATA_META
ICON_OUTLINER_DATA_LAMP
ICON_OUTLINER_DATA_CAMERA
ICON_OUTLINER_DATA_ARMATURE
ICON_OUTLINER_DATA_FONT
ICON_OUTLINER_DATA_SURFACE
ICON_OUTLINER_DATA_SPEAKER
ICON_OUTLINER_DATA_POSE
ICON_MESH_PLANE
ICON_MESH_CUBE
ICON_MESH_CIRCLE
ICON_MESH_UVSPHERE
ICON_MESH_ICOSPHERE
ICON_MESH_GRID
ICON_MESH_MONKEY
ICON_MESH_CYLINDER
ICON_MESH_TORUS
ICON_MESH_CONE
ICON_LAMP_POINT
ICON_LAMP_SUN
ICON_LAMP_SPOT
ICON_LAMP_HEMI
ICON_LAMP_AREA
ICON_META_EMPTY
ICON_META_PLANE
ICON_META_CUBE
ICON_META_BALL
ICON_META_ELLIPSOID
ICON_META_CAPSULE
ICON_SURFACE_NCURVE
ICON_SURFACE_NCIRCLE
ICON_SURFACE_NSURFACE
ICON_SURFACE_NCYLINDER
ICON_SURFACE_NSPHERE
ICON_SURFACE_NTORUS
ICON_CURVE_BEZCURVE
ICON_CURVE_BEZCIRCLE
ICON_CURVE_NCURVE
ICON_CURVE_NCIRCLE
ICON_CURVE_PATH
ICON_COLOR_RED
ICON_COLOR_GREEN
ICON_COLOR_BLUE
ICON_FORCE_FORCE
ICON_FORCE_WIND
ICON_FORCE_VORTEX
ICON_FORCE_MAGNETIC
ICON_FORCE_HARMONIC
ICON_FORCE_CHARGE
ICON_FORCE_LENNARDJONES
ICON_FORCE_TEXTURE
ICON_FORCE_CURVE
ICON_FORCE_BOID
ICON_FORCE_TURBULENCE
ICON_FORCE_DRAG
ICON_FORCE_SMOKEFLOW
ICON_MODIFIER
ICON_MOD_WAVE
ICON_MOD_BUILD
ICON_MOD_DECIM
ICON_MOD_MIRROR
ICON_MOD_SOFT
ICON_MOD_SUBSURF
ICON_HOOK
ICON_MOD_PHYSICS
ICON_MOD_PARTICLES
ICON_MOD_BOOLEAN
ICON_MOD_EDGESPLIT
ICON_MOD_ARRAY
ICON_MOD_UVPROJECT
ICON_MOD_DISPLACE
ICON_MOD_CURVE
ICON_MOD_LATTICE
ICON_CONSTRAINT_DATA
ICON_MOD_ARMATURE
ICON_MOD_SHRINKWRAP
ICON_MOD_CAST
ICON_MOD_MESHDEFORM
ICON_MOD_BEVEL
ICON_MOD_SMOOTH
ICON_MOD_SIMPLEDEFORM
ICON_MOD_MASK
ICON_MOD_CLOTH
ICON_MOD_EXPLODE
ICON_MOD_FLUIDSIM
ICON_MOD_MULTIRES
ICON_MOD_SMOKE
ICON_MOD_SOLIDIFY
ICON_MOD_SCREW
ICON_MOD_VERTEX_WEIGHT
ICON_MOD_DYNAMICPAINT
ICON_MOD_REMESH
ICON_MOD_OCEAN
ICON_MOD_WARP
ICON_MOD_SKIN
ICON_MOD_TRIANGULATE
ICON_MOD_WIREFRAME
ICON_REC
ICON_PLAY
ICON_FF
ICON_REW
ICON_PAUSE
ICON_PREV_KEYFRAME
ICON_NEXT_KEYFRAME
ICON_PLAY_AUDIO
ICON_PLAY_REVERSE
ICON_PREVIEW_RANGE
ICON_ACTION_TWEAK
ICON_PMARKER_ACT
ICON_PMARKER_SEL
ICON_PMARKER
ICON_MARKER_HLT
ICON_MARKER
ICON_SPACE2
ICON_SPACE3
ICON_KEYINGSET
ICON_KEY_DEHLT
ICON_KEY_HLT
ICON_MUTE_IPO_OFF
ICON_MUTE_IPO_ON
ICON_VISIBLE_IPO_OFF
ICON_VISIBLE_IPO_ON
ICON_DRIVER
ICON_SOLO_OFF
ICON_SOLO_ON
ICON_FRAME_PREV
ICON_FRAME_NEXT
ICON_NLA_PUSHDOWN
ICON_IPO_CONSTANT
ICON_IPO_LINEAR
ICON_IPO_BEZIER
ICON_IPO_SINE
ICON_IPO_QUAD
ICON_IPO_CUBIC
ICON_IPO_QUART
ICON_IPO_QUINT
ICON_IPO_EXPO
ICON_IPO_CIRC
ICON_IPO_BOUNCE
ICON_IPO_ELASTIC
ICON_IPO_BACK
ICON_IPO_EASE_IN
ICON_IPO_EASE_OUT
ICON_IPO_EASE_IN_OUT
ICON_VERTEXSEL
ICON_EDGESEL
ICON_FACESEL
ICON_LOOPSEL
ICON_ROTATE
ICON_CURSOR
ICON_ROTATECOLLECTION
ICON_ROTATECENTER
ICON_ROTACTIVE
ICON_ALIGN
ICON_SMOOTHCURVE
ICON_SPHERECURVE
ICON_ROOTCURVE
ICON_SHARPCURVE
ICON_LINCURVE
ICON_NOCURVE
ICON_RNDCURVE
ICON_PROP_OFF
ICON_PROP_ON
ICON_PROP_CON
ICON_SCULPT_DYNTOPO
ICON_PARTICLE_POINT
ICON_PARTICLE_TIP
ICON_PARTICLE_PATH
ICON_MAN_TRANS
ICON_MAN_ROT
ICON_MAN_SCALE
ICON_MANIPUL
ICON_SNAP_OFF
ICON_SNAP_ON
ICON_SNAP_NORMAL
ICON_SNAP_INCREMENT
ICON_SNAP_VERTEX
ICON_SNAP_EDGE
ICON_SNAP_FACE
ICON_SNAP_VOLUME
ICON_STICKY_UVS_LOC
ICON_STICKY_UVS_DISABLE
ICON_STICKY_UVS_VERT
ICON_CLIPUV_DEHLT
ICON_CLIPUV_HLT
ICON_SNAP_PEEL_OBJECT
ICON_GRID
ICON_PASTEDOWN
ICON_COPYDOWN
ICON_PASTEFLIPUP
ICON_PASTEFLIPDOWN
ICON_SNAP_SURFACE
ICON_AUTOMERGE_ON
ICON_AUTOMERGE_OFF
ICON_RETOPO
ICON_UV_VERTEXSEL
ICON_UV_EDGESEL
ICON_UV_FACESEL
ICON_UV_ISLANDSEL
ICON_UV_SYNC_SELECT
ICON_BBOX
ICON_WIRE
ICON_SOLID
ICON_SMOOTH
ICON_POTATO
ICON_ORTHO
ICON_LOCKVIEW_OFF
ICON_LOCKVIEW_ON
ICON_AXIS_SIDE
ICON_AXIS_FRONT
ICON_AXIS_TOP
ICON_NDOF_DOM
ICON_NDOF_TURN
ICON_NDOF_FLY
ICON_NDOF_TRANS
ICON_LAYER_USED
ICON_LAYER_ACTIVE
ICON_SORTALPHA
ICON_SORTBYEXT
ICON_SORTTIME
ICON_SORTSIZE
ICON_LONGDISPLAY
ICON_SHORTDISPLAY
ICON_GHOST
ICON_IMGDISPLAY
ICON_SAVE_AS
ICON_SAVE_COPY
ICON_BOOKMARKS
ICON_FONTPREVIEW
ICON_FILTER
ICON_NEWFOLDER
ICON_OPEN_RECENT
ICON_FILE_PARENT
ICON_FILE_REFRESH
ICON_FILE_FOLDER
ICON_FILE_BLANK
ICON_FILE_BLEND
ICON_FILE_IMAGE
ICON_FILE_MOVIE
ICON_FILE_SCRIPT
ICON_FILE_SOUND
ICON_FILE_FONT
ICON_FILE_TEXT
ICON_RECOVER_AUTO
ICON_SAVE_PREFS
ICON_LINK_BLEND
ICON_APPEND_BLEND
ICON_IMPORT
ICON_EXPORT
ICON_EXTERNAL_DATA
ICON_LOAD_FACTORY
ICON_LOOP_BACK
ICON_LOOP_FORWARDS
ICON_BACK
ICON_FORWARD
ICON_FILE_BACKUP
ICON_DISK_DRIVE
ICON_MATPLANE
ICON_MATSPHERE
ICON_MATCUBE
ICON_MONKEY
ICON_HAIR
ICON_ALIASED
ICON_ANTIALIASED
ICON_MAT_SPHERE_SKY
ICON_WORDWRAP_OFF
ICON_WORDWRAP_ON
ICON_SYNTAX_OFF
ICON_SYNTAX_ON
ICON_LINENUMBERS_OFF
ICON_LINENUMBERS_ON
ICON_SCRIPTPLUGINS
ICON_SEQ_SEQUENCER
ICON_SEQ_PREVIEW
ICON_SEQ_LUMA_WAVEFORM
ICON_SEQ_CHROMA_SCOPE
ICON_SEQ_HISTOGRAM
ICON_SEQ_SPLITVIEW
ICON_IMAGE_RGB
ICON_IMAGE_RGB_ALPHA
ICON_IMAGE_ALPHA
ICON_IMAGE_ZDEPTH
ICON_IMAGEFILE
-
-
Method Detail
-
nbndSetTheme
public static void nbndSetTheme(long theme)
Unsafe version of:SetTheme
-
bndSetTheme
public static void bndSetTheme(BNDtheme theme)
Sets the current theme all widgets will be drawn with. The default Blender 2.6 theme is set by default.
-
nbndGetTheme
public static long nbndGetTheme()
Unsafe version of:GetTheme
-
bndGetTheme
@Nullable public static BNDtheme bndGetTheme()
Returns the currently set theme.
-
bndSetIconImage
public static void bndSetIconImage(int image)
Designates an image handle as returned bynvgCreateImage*()
as the themes' icon sheet.The icon sheet format must be compatible to Blender 2.6's icon sheet; the order of icons does not matter. A valid icon sheet is e.g. shown at how to add an icon.
-
bndSetFont
public static void bndSetFont(int font)
Designates an image handle as returned bynvgCreateFont*()
as the themes' UI font.Blender's original UI font Droid Sans is perfectly suited and available here.
-
nbndLabel
public static void nbndLabel(long ctx, float x, float y, float w, float h, int iconid, long label)
Unsafe version of:Label
-
bndLabel
public static void bndLabel(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndLabel(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.lang.CharSequence label)
Draws a label with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndToolButton
public static void nbndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:ToolButton
-
bndToolButton
public static void bndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndToolButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.lang.CharSequence label)
Draws a tool button with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndRadioButton
public static void nbndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:RadioButton
-
bndRadioButton
public static void bndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndRadioButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.lang.CharSequence label)
Draws a radio button with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndTextFieldTextPosition
public static int nbndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, long text, int px, int py)
Unsafe version of:TextFieldTextPosition
-
bndTextFieldTextPosition
public static int bndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.nio.ByteBuffer text, int px, int py) public static int bndTextFieldTextPosition(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.lang.CharSequence text, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in a text field. SeeTextField
for more info.- Parameters:
ctx
- the NanoVG contexticonid
- if ≥ 0, an icon will be added to the widgettext
- if notNULL
, text will be printed to the widget
-
nbndTextField
public static void nbndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long text, int cbegin, int cend)
Unsafe version of:TextField
-
bndTextField
public static void bndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.nio.ByteBuffer text, int cbegin, int cend) public static void bndTextField(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.lang.CharSequence text, int cbegin, int cend)
Draws a text field with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
iconid
- if ≥ 0, an icon will be added to the widgettext
- if notNULL
, text will be printed to the widgetcbegin
- must be ≥ 0 and ≤strlen(text)
and denotes the beginning of the caretcend
- must be ≥cbegin
and ≤strlen(text)
and denotes the end of the caret. Ifcend
<cbegin
, then no caret will be drawn.
-
nbndOptionButton
public static void nbndOptionButton(long ctx, float x, float y, float w, float h, int state, long label)
Unsafe version of:OptionButton
-
bndOptionButton
public static void bndOptionButton(long ctx, float x, float y, float w, float h, int state, @Nullable java.nio.ByteBuffer label) public static void bndOptionButton(long ctx, float x, float y, float w, float h, int state, @Nullable java.lang.CharSequence label)
Draws an option button with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
label
- if notNULL
, a label will be added to the widget
-
nbndChoiceButton
public static void nbndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, long label)
Unsafe version of:ChoiceButton
-
bndChoiceButton
public static void bndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndChoiceButton(long ctx, float x, float y, float w, float h, int flags, int state, int iconid, @Nullable java.lang.CharSequence label)
Draws a choice button with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndColorButton
public static void nbndColorButton(long ctx, float x, float y, float w, float h, int flags, long color)
Unsafe version of:ColorButton
-
bndColorButton
public static void bndColorButton(long ctx, float x, float y, float w, float h, int flags, NVGColor color)
Draws a color button with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
-
nbndNumberField
public static void nbndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, long label, long value)
Unsafe version of:NumberField
-
bndNumberField
public static void bndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, @Nullable java.nio.ByteBuffer label, @Nullable java.nio.ByteBuffer value) public static void bndNumberField(long ctx, float x, float y, float w, float h, int flags, int state, @Nullable java.lang.CharSequence label, @Nullable java.lang.CharSequence value)
Draws a number field with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
label
- if notNULL
, a label will be added to the widgetvalue
- if notNULL
, a value will be added to the widget along with a ":" separator
-
nbndSlider
public static void nbndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, long label, long value)
Unsafe version of:Slider
-
bndSlider
public static void bndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, @Nullable java.nio.ByteBuffer label, @Nullable java.nio.ByteBuffer value) public static void bndSlider(long ctx, float x, float y, float w, float h, int flags, int state, float progress, @Nullable java.lang.CharSequence label, @Nullable java.lang.CharSequence value)
Draws slider control with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
progress
- must be in the range0..1
and controls the size of the slider barlabel
- if notNULL
, a label will be added to the widgetvalue
- if notNULL
, a value will be added to the widget along with a ":" separator
-
nbndScrollBar
public static void nbndScrollBar(long ctx, float x, float y, float w, float h, int state, float offset, float size)
Unsafe version of:ScrollBar
-
bndScrollBar
public static void bndScrollBar(long ctx, float x, float y, float w, float h, int state, float offset, float size)
Draws scrollbar with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contextw
- vertical widget looks best when width isSCROLLBAR_WIDTH
h
- horizontal widget looks best when height isSCROLLBAR_HEIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
offset
- is in the range0..1
and controls the position of the scroll handlesize
- is in the range0..1
and controls the size of the scroll handle
-
nbndMenuBackground
public static void nbndMenuBackground(long ctx, float x, float y, float w, float h, int flags)
Unsafe version of:MenuBackground
-
bndMenuBackground
public static void bndMenuBackground(long ctx, float x, float y, float w, float h, int flags)
Draws a menu background with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contextflags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
-
nbndMenuLabel
public static void nbndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, long label)
Unsafe version of:MenuLabel
-
bndMenuLabel
public static void bndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndMenuLabel(long ctx, float x, float y, float w, float h, int iconid, @Nullable java.lang.CharSequence label)
Draws a menu label with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndMenuItem
public static void nbndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, long label)
Unsafe version of:MenuItem
-
bndMenuItem
public static void bndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, @Nullable java.nio.ByteBuffer label) public static void bndMenuItem(long ctx, float x, float y, float w, float h, int state, int iconid, @Nullable java.lang.CharSequence label)
Draws a menu item with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG contexth
- widget looks best when height isWIDGET_HEIGHT
state
- the current UI state. One of:DEFAULT
HOVER
ACTIVE
iconid
- if ≥ 0, an icon will be added to the widgetlabel
- if notNULL
, a label will be added to the widget
-
nbndTooltipBackground
public static void nbndTooltipBackground(long ctx, float x, float y, float w, float h)
Unsafe version of:TooltipBackground
-
bndTooltipBackground
public static void bndTooltipBackground(long ctx, float x, float y, float w, float h)
Draws a tooltip background with its lower left origin at(x,y)
and size of(w,h)
.- Parameters:
ctx
- the NanoVG context
-
nbndNodePort
public static void nbndNodePort(long ctx, float x, float y, int state, long color)
Unsafe version of:NodePort
-
bndNodePort
public static void bndNodePort(long ctx, float x, float y, int state, NVGColor color)
Draws a node port at the given position filled with the given color.
-
nbndNodeWire
public static void nbndNodeWire(long ctx, float x0, float y0, float x1, float y1, int state0, int state1)
Unsafe version of:NodeWire
-
bndNodeWire
public static void bndNodeWire(long ctx, float x0, float y0, float x1, float y1, int state0, int state1)
Draws a node wire originating at(x0,y0)
and floating to(x1,y1)
, with a colored gradient based on the statesstate0
andstate1
:
-
nbndColoredNodeWire
public static void nbndColoredNodeWire(long ctx, float x0, float y0, float x1, float y1, long color0, long color1)
Unsafe version of:ColoredNodeWire
-
bndColoredNodeWire
public static void bndColoredNodeWire(long ctx, float x0, float y0, float x1, float y1, NVGColor color0, NVGColor color1)
Draws a node wire originating at(x0,y0)
and floating to(x1,y1)
, with a colored gradient based on the two colorscolor0
andcolor1
.- Parameters:
ctx
- the NanoVG context
-
nbndNodeBackground
public static void nbndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, long label, long titleColor)
Unsafe version of:NodeBackground
-
bndNodeBackground
public static void bndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, @Nullable java.nio.ByteBuffer label, NVGColor titleColor) public static void bndNodeBackground(long ctx, float x, float y, float w, float h, int state, int iconid, @Nullable java.lang.CharSequence label, NVGColor titleColor)
Draws a node background with its upper left origin at(x,y)
and size of(w,h)
.
-
nbndSplitterWidgets
public static void nbndSplitterWidgets(long ctx, float x, float y, float w, float h)
Unsafe version of:SplitterWidgets
-
bndSplitterWidgets
public static void bndSplitterWidgets(long ctx, float x, float y, float w, float h)
Draws a window with the upper right and lower left splitter widgets into the rectangle at origin(x,y)
and size(w, h)
.- Parameters:
ctx
- the NanoVG context
-
nbndJoinAreaOverlay
public static void nbndJoinAreaOverlay(long ctx, float x, float y, float w, float h, int vertical, int mirror)
Unsafe version of:JoinAreaOverlay
-
bndJoinAreaOverlay
public static void bndJoinAreaOverlay(long ctx, float x, float y, float w, float h, boolean vertical, boolean mirror)
Draws the join area overlay stencil into the rectangle at origin(x,y)
and size(w,h)
.- Parameters:
ctx
- the NanoVG contextvertical
- is 0 or 1 and designates the arrow orientationmirror
- is 0 or 1 and flips the arrow side
-
nbndLabelWidth
public static float nbndLabelWidth(long ctx, int iconid, long label)
Unsafe version of:LabelWidth
-
bndLabelWidth
public static float bndLabelWidth(long ctx, int iconid, @Nullable java.nio.ByteBuffer label) public static float bndLabelWidth(long ctx, int iconid, @Nullable java.lang.CharSequence label)
Returns the ideal width for a label with given icon and text- Parameters:
ctx
- the NanoVG context
-
nbndLabelHeight
public static float nbndLabelHeight(long ctx, int iconid, long label, float width)
Unsafe version of:LabelHeight
-
bndLabelHeight
public static float bndLabelHeight(long ctx, int iconid, @Nullable java.nio.ByteBuffer label, float width) public static float bndLabelHeight(long ctx, int iconid, @Nullable java.lang.CharSequence label, float width)
Returns the height for a label with given icon, text and width; this function is primarily useful in conjunction with multiline labels and textboxes.- Parameters:
ctx
- the NanoVG context
-
nbndTransparent
public static void nbndTransparent(long color, long __result)
Unsafe version of:Transparent
-
bndTransparent
public static NVGColor bndTransparent(NVGColor color, NVGColor __result)
Makes color transparent using the default alpha value.
-
nbndOffsetColor
public static void nbndOffsetColor(long color, int delta, long __result)
Unsafe version of:OffsetColor
-
bndOffsetColor
public static NVGColor bndOffsetColor(NVGColor color, int delta, NVGColor __result)
Offsets a color by a given integer delta.- Parameters:
delta
- in the range -100 to 100
-
nbndSelectCorners
public static void nbndSelectCorners(long radiuses, float r, int flags)
Unsafe version of:SelectCorners
-
bndSelectCorners
public static void bndSelectCorners(java.nio.FloatBuffer radiuses, float r, int flags)
Assigns radiusr
to the four entries of arrayradiuses
depending on whether the corner is marked as sharp or not.- Parameters:
flags
- the corner flags. One of:CORNER_NONE
CORNER_TOP_LEFT
CORNER_TOP_RIGHT
CORNER_DOWN_RIGHT
CORNER_DOWN_LEFT
CORNER_ALL
CORNER_TOP
CORNER_DOWN
CORNER_LEFT
CORNER_RIGHT
-
nbndInnerColors
public static void nbndInnerColors(long shade_top, long shade_down, long theme, int state, int flipActive)
Unsafe version of:InnerColors
-
bndInnerColors
public static void bndInnerColors(NVGColor shade_top, NVGColor shade_down, BNDwidgetTheme theme, int state, boolean flipActive)
Computes the upper and lower gradient colors for the inner box from a widget theme and the widgets state.
-
nbndTextColor
public static void nbndTextColor(long theme, int state, long __result)
Unsafe version of:TextColor
-
bndTextColor
public static NVGColor bndTextColor(BNDwidgetTheme theme, int state, NVGColor __result)
Computes the text color for a widget label from a widget theme and the widgets state.
-
nbndScrollHandleRect
public static void nbndScrollHandleRect(long x, long y, long w, long h, float offset, float size)
Unsafe version of:ScrollHandleRect
-
bndScrollHandleRect
public static void bndScrollHandleRect(java.nio.FloatBuffer x, java.nio.FloatBuffer y, java.nio.FloatBuffer w, java.nio.FloatBuffer h, float offset, float size)
Computes the bounds of the scrollbar handle from the scrollbar size and the handle's offset and size.- Parameters:
offset
- is in the range0..1
and defines the position of the scroll handlesize
- is in the range0..1
and defines the size of the scroll handle
-
nbndRoundedBox
public static void nbndRoundedBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3)
Unsafe version of:RoundedBox
-
bndRoundedBox
public static void bndRoundedBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3)
Adds a rounded box path at position(x,y)
with size(w,h)
and a separate radius for each corner listed in clockwise order, so thatcr0
= top left,cr1
= top right,cr2
= bottom right,cr3
= bottom left; this is a low level drawing function: the path must be stroked or filled to become visible.- Parameters:
ctx
- the NanoVG context
-
nbndBackground
public static void nbndBackground(long ctx, float x, float y, float w, float h)
Unsafe version of:Background
-
bndBackground
public static void bndBackground(long ctx, float x, float y, float w, float h)
Draws a flat panel without any decorations at position(x,y)
with size(w,h)
and fills it withbackgroundColor
.- Parameters:
ctx
- the NanoVG context
-
nbndBevel
public static void nbndBevel(long ctx, float x, float y, float w, float h)
Unsafe version of:Bevel
-
bndBevel
public static void bndBevel(long ctx, float x, float y, float w, float h)
Draws a beveled border at position(x,y)
with size(w,h)
shaded with lighter and darker versions ofbackgroundColor
.- Parameters:
ctx
- the NanoVG context
-
nbndBevelInset
public static void nbndBevelInset(long ctx, float x, float y, float w, float h, float cr2, float cr3)
Unsafe version of:BevelInset
-
bndBevelInset
public static void bndBevelInset(long ctx, float x, float y, float w, float h, float cr2, float cr3)
Draws a lower inset for a rounded box at position(x,y)
with size(w,h)
that gives the impression the surface has been pushed in.cr2
andcr3
contain the radiuses of the bottom right and bottom left corners of the rounded box.- Parameters:
ctx
- the NanoVG context
-
nbndIcon
public static void nbndIcon(long ctx, float x, float y, int iconid)
Unsafe version of:Icon
-
bndIcon
public static void bndIcon(long ctx, float x, float y, int iconid)
Draws an icon with(x,y)
as its upper left coordinate.- Parameters:
ctx
- the NanoVG contexticonid
- selects the icon from the sheet. One of:
-
nbndDropShadow
public static void nbndDropShadow(long ctx, float x, float y, float w, float h, float r, float feather, float alpha)
Unsafe version of:DropShadow
-
bndDropShadow
public static void bndDropShadow(long ctx, float x, float y, float w, float h, float r, float feather, float alpha)
Draws a drop shadow around the rounded box at(x,y)
with size(w,h)
and radiusr
, withfeather
as its maximum range in pixels. No shadow will be painted inside the rounded box.- Parameters:
ctx
- the NanoVG context
-
nbndInnerBox
public static void nbndInnerBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, long shade_top, long shade_down)
Unsafe version of:InnerBox
-
bndInnerBox
public static void bndInnerBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, NVGColor shade_top, NVGColor shade_down)
Draws the inner part of a widget box, with a gradient fromshade_top
toshade_down
. Ifh>w
, the gradient will be horizontal instead of vertical.- Parameters:
ctx
- the NanoVG context
-
nbndOutlineBox
public static void nbndOutlineBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, long color)
Unsafe version of:OutlineBox
-
bndOutlineBox
public static void bndOutlineBox(long ctx, float x, float y, float w, float h, float cr0, float cr1, float cr2, float cr3, NVGColor color)
Draws the outline part of a widget box with the given color.- Parameters:
ctx
- the NanoVG context
-
nbndIconLabelValue
public static void nbndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, long color, int align, float fontsize, long label, long value)
Unsafe version of:IconLabelValue
-
bndIconLabelValue
public static void bndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, int align, float fontsize, @Nullable java.nio.ByteBuffer label, @Nullable java.nio.ByteBuffer value) public static void bndIconLabelValue(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, int align, float fontsize, @Nullable java.lang.CharSequence label, @Nullable java.lang.CharSequence value)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a widget box.- Parameters:
ctx
- the NanoVG contexticonid
- if ≥ 0, an icon will be drawn and the labels remaining space will be adjustedalign
- one of:LEFT
CENTER
label
- if notNULL
, it will be drawn with the specifiedalignment
,fontsize
andcolor
value
- if notNULL
,label
andvalue
will be drawn with a ":" separator inbetween
-
nbndNodeIconLabel
public static void nbndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, long color, long shadowColor, int align, float fontsize, long label)
Unsafe version of:NodeIconLabel
-
bndNodeIconLabel
public static void bndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, NVGColor shadowColor, int align, float fontsize, @Nullable java.nio.ByteBuffer label) public static void bndNodeIconLabel(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, NVGColor shadowColor, int align, float fontsize, @Nullable java.lang.CharSequence label)
Draws an optional icon specified byiconid
and an optional label with givenalignment
,fontsize
andcolor
within a node title bar.- Parameters:
ctx
- the NanoVG contexticonid
- if ≥ 0, an icon will be drawnlabel
- if notNULL
, it will be drawn with the specifiedalignment
,fontsize
andcolor
-
nbndIconLabelTextPosition
public static int nbndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, long label, int px, int py)
Unsafe version of:IconLabelTextPosition
-
bndIconLabelTextPosition
public static int bndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, @Nullable java.nio.ByteBuffer label, int px, int py) public static int bndIconLabelTextPosition(long ctx, float x, float y, float w, float h, int iconid, float fontsize, @Nullable java.lang.CharSequence label, int px, int py)
Calculates the corresponding text position for given coordinatespx/py
in aniconLabel
. SeeIconLabelCaret
for more info.- Parameters:
ctx
- the NanoVG context
-
nbndIconLabelCaret
public static void nbndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, long color, float fontsize, long label, long caretcolor, int cbegin, int cend)
Unsafe version of:IconLabelCaret
-
bndIconLabelCaret
public static void bndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, float fontsize, @Nullable java.nio.ByteBuffer label, NVGColor caretcolor, int cbegin, int cend) public static void bndIconLabelCaret(long ctx, float x, float y, float w, float h, int iconid, NVGColor color, float fontsize, @Nullable java.lang.CharSequence label, NVGColor caretcolor, int cbegin, int cend)
Draws an optional icon specified byiconid
, an optional label and a caret with givenfontsize
andcolor
within a widget box.- Parameters:
ctx
- the NanoVG contexticonid
- if ≥ 0, an icon will be drawn and the labels remaining space will be adjustedlabel
- if notNULL
, it will be drawn with the specifiedalignment
,fontsize
andcolor
cbegin
- must be ≥ 0 and ≤strlen(text)
and denotes the beginning of the caretcend
- must be ≥cbegin
and ≤strlen(text)
and denotes the end of the caret. Ifcend
<cbegin
, then no caret will be drawn.
-
nbndCheck
public static void nbndCheck(long ctx, float ox, float oy, long color)
Unsafe version of:Check
-
bndCheck
public static void bndCheck(long ctx, float ox, float oy, NVGColor color)
Draws a checkmark for an option box with the given upper left coordinates(ox,oy)
with the specifiedcolor
.- Parameters:
ctx
- the NanoVG context
-
nbndArrow
public static void nbndArrow(long ctx, float x, float y, float s, long color)
Unsafe version of:Arrow
-
bndArrow
public static void bndArrow(long ctx, float x, float y, float s, NVGColor color)
Draws a horizontal arrow for a number field with its center at(x,y)
and sizes
.- Parameters:
ctx
- the NanoVG contexts
- if negative, the arrow points to the left
-
nbndUpDownArrow
public static void nbndUpDownArrow(long ctx, float x, float y, float s, long color)
Unsafe version of:UpDownArrow
-
bndUpDownArrow
public static void bndUpDownArrow(long ctx, float x, float y, float s, NVGColor color)
Draws an up/down arrow for a choice box with its center at(x,y)
and sizes
.- Parameters:
ctx
- the NanoVG context
-
nbndNodeArrowDown
public static void nbndNodeArrowDown(long ctx, float x, float y, float s, long color)
Unsafe version of:NodeArrowDown
-
bndNodeArrowDown
public static void bndNodeArrowDown(long ctx, float x, float y, float s, NVGColor color)
Draws a node down-arrow with its tip at(x,y)
and sizes
- Parameters:
ctx
- the NanoVG context
-
nbndNodeWireColor
public static void nbndNodeWireColor(long theme, int state, long __result)
Unsafe version of:NodeWireColor
-
bndNodeWireColor
public static NVGColor bndNodeWireColor(BNDnodeTheme theme, int state, NVGColor __result)
Returns the color of a node wire based on state.
-
nbndSelectCorners
public static void nbndSelectCorners(float[] radiuses, float r, int flags)
Array version of:nbndSelectCorners(long, float, int)
-
bndSelectCorners
public static void bndSelectCorners(float[] radiuses, float r, int flags)
Array version of:SelectCorners
-
nbndScrollHandleRect
public static void nbndScrollHandleRect(float[] x, float[] y, float[] w, float[] h, float offset, float size)
Array version of:nbndScrollHandleRect(long, long, long, long, float, float)
-
bndScrollHandleRect
public static void bndScrollHandleRect(float[] x, float[] y, float[] w, float[] h, float offset, float size)
Array version of:ScrollHandleRect
-
BND_ICONID
public static int BND_ICONID(int x, int y)
-
-