src/main/java/com/spinyowl/legui/system/renderer/nvg/util/NvgShapes.java
public static void drawRectStroke(long nvg, Vector4fc rectangle, Vector4fc rectStrokeColor,
      float strokeWidth, Vector4f radius) {
    if (radius != null && !radius.equals(ZERO_CORNDERS)) {
      try (NVGColor strokeColor = NvgColorUtil.create(rectStrokeColor)) {
        nvgBeginPath(nvg);
        nvgStrokeColor(nvg, strokeColor);
        nvgStrokeWidth(nvg, strokeWidth);
        nvgRoundedRectVarying(nvg, rectangle.x(), rectangle.y(), rectangle.z(), rectangle.w(),
            radius.x, radius.y, radius.z, radius.w);
        nvgStroke(nvg);
      }
    } else {
      drawRectStroke(nvg, rectangle, rectStrokeColor, strokeWidth);
    }
  }
/**
   * Used to draw rectangle stroke.
   *
   * @param nvg             nanovg context
   * @param rectangle       rectangle size and position.
   * @param rectStrokeColor rectangle color.
   * @param strokeWidth     stroke width.
   * @param radius          radius vector.
   */
Used to draw rectangle stroke.
@param nvg             nanovg context
@param rectangle       rectangle size and position.
@param rectStrokeColor rectangle color.
@param strokeWidth     stroke width.
@param radius          radius vector.
Used to draw rectangle stroke . @param nvg nanovg context @param rectangle rectangle size and position . @param rectStrokeColor rectangle color . @param strokeWidth stroke width . @param radius radius vector .
public static void drawRectStroke(long nvg, Vector4fc rectangle, Vector4fc rectStrokeColor,
      float strokeWidth, Vector4f radius) {
    if (radius != null && !radius.equals(ZERO_CORNDERS)) {
      try (NVGColor strokeColor = NvgColorUtil.create(rectStrokeColor)) {
        nvgBeginPath(nvg);
        nvgStrokeColor(nvg, strokeColor);
        nvgStrokeWidth(nvg, strokeWidth);
        nvgRoundedRectVarying(nvg, rectangle.x(), rectangle.y(), rectangle.z(), rectangle.w(),
            radius.x, radius.y, radius.z, radius.w);
        nvgStroke(nvg);
      }
    } else {
      drawRectStroke(nvg, rectangle, rectStrokeColor, strokeWidth);
    }
  }
public static void drawRectStroke ( long nvg , Vector4fc rectangle , Vector4fc rectStrokeColor , float strokeWidth , Vector4f radius ) { if ( radius != null && ! radius . equals ( ZERO_CORNDERS ) ) { try ( NVGColor strokeColor = NvgColorUtil . create ( rectStrokeColor ) ) { nvgBeginPath ( nvg ) ; nvgStrokeColor ( nvg , strokeColor ) ; nvgStrokeWidth ( nvg , strokeWidth ) ; nvgRoundedRectVarying ( nvg , rectangle . x ( ) , rectangle . y ( ) , rectangle . z ( ) , rectangle . w ( ) , radius . x , radius . y , radius . z , radius . w ) ; nvgStroke ( nvg ) ; } } else { drawRectStroke ( nvg , rectangle , rectStrokeColor , strokeWidth ) ; } }
Used to draw rectangle stroke.
Used to draw rectangle stroke .