src/main/java/com/spinyowl/legui/system/renderer/nvg/util/NvgShapes.java
public static void drawRectStroke(long nvg, Vector2fc position, Vector2fc size,
      Vector4fc rectStrokeColor, float strokeWidth, float radius) {
    if (rectStrokeColor.w() <= MIN_ALPHA) {
      return;
    }
    try (NVGColor strokeColor = NvgColorUtil.create(rectStrokeColor)) {
      nvgBeginPath(nvg);
      nvgStrokeColor(nvg, strokeColor);
      nvgStrokeWidth(nvg, strokeWidth);
      nvgRoundedRect(nvg, position.x(), position.y(), size.x(), size.y(), radius);
      nvgStroke(nvg);
    }
  }
/**
   * Used to draw rectangle stroke.
   *
   * @param nvg             nanovg context.
   * @param position        rectangle position.
   * @param size            rectangle size.
   * @param rectStrokeColor rectangle color.
   * @param radius          corner radius
   * @param strokeWidth     stroke width.
   */
Used to draw rectangle stroke.
@param nvg             nanovg context.
@param position        rectangle position.
@param size            rectangle size.
@param rectStrokeColor rectangle color.
@param radius          corner radius
@param strokeWidth     stroke width.
Used to draw rectangle stroke . @param nvg nanovg context . @param position rectangle position . @param size rectangle size . @param rectStrokeColor rectangle color . @param radius corner radius @param strokeWidth stroke width .
public static void drawRectStroke(long nvg, Vector2fc position, Vector2fc size,
      Vector4fc rectStrokeColor, float strokeWidth, float radius) {
    if (rectStrokeColor.w() <= MIN_ALPHA) {
      return;
    }
    try (NVGColor strokeColor = NvgColorUtil.create(rectStrokeColor)) {
      nvgBeginPath(nvg);
      nvgStrokeColor(nvg, strokeColor);
      nvgStrokeWidth(nvg, strokeWidth);
      nvgRoundedRect(nvg, position.x(), position.y(), size.x(), size.y(), radius);
      nvgStroke(nvg);
    }
  }
public static void drawRectStroke ( long nvg , Vector2fc position , Vector2fc size , Vector4fc rectStrokeColor , float strokeWidth , float radius ) { if ( rectStrokeColor . w ( ) <= MIN_ALPHA ) { return ; } try ( NVGColor strokeColor = NvgColorUtil . create ( rectStrokeColor ) ) { nvgBeginPath ( nvg ) ; nvgStrokeColor ( nvg , strokeColor ) ; nvgStrokeWidth ( nvg , strokeWidth ) ; nvgRoundedRect ( nvg , position . x ( ) , position . y ( ) , size . x ( ) , size . y ( ) , radius ) ; nvgStroke ( nvg ) ; } }
Used to draw rectangle stroke.
Used to draw rectangle stroke .