src/main/java/com/spinyowl/legui/system/renderer/nvg/NvgComponentRenderer.java
@Override
  public void renderComponent(C component, Context context) {
    long nanovgContext = (long) context.getContextData().get(NVG_CONTEXT);
    if (component.isVisible() && (component.keepRendering() || Utilites.visibleInParents(
        component))) {
      renderComponent(component, context, nanovgContext);
      if (context.isDebugEnabled()) {
        if (component.isFocused()) {
          debugBorderRenderer.renderBorder(debugFocusBorder, component, context);
        } else {
          debugBorderRenderer.renderBorder(debugBorder, component, context);
        }
      }
    } else {
      return;
    }
  }
/**
   * Used to render component.
   *
   * @param component component to render.
   * @param context   legui context.
   */
Used to render component.
@param component component to render.
@param context   legui context.
Used to render component . @param component component to render . @param context legui context .
@Override
  public void renderComponent(C component, Context context) {
    long nanovgContext = (long) context.getContextData().get(NVG_CONTEXT);
    if (component.isVisible() && (component.keepRendering() || Utilites.visibleInParents(
        component))) {
      renderComponent(component, context, nanovgContext);
      if (context.isDebugEnabled()) {
        if (component.isFocused()) {
          debugBorderRenderer.renderBorder(debugFocusBorder, component, context);
        } else {
          debugBorderRenderer.renderBorder(debugBorder, component, context);
        }
      }
    } else {
      return;
    }
  }
@ Override public void renderComponent ( C component , Context context ) { long nanovgContext = ( long ) context . getContextData ( ) . get ( NVG_CONTEXT ) ; if ( component . isVisible ( ) && ( component . keepRendering ( ) || Utilites . visibleInParents ( component ) ) ) { renderComponent ( component , context , nanovgContext ) ; if ( context . isDebugEnabled ( ) ) { if ( component . isFocused ( ) ) { debugBorderRenderer . renderBorder ( debugFocusBorder , component , context ) ; } else { debugBorderRenderer . renderBorder ( debugBorder , component , context ) ; } } } else { return ; } }
Used to render component.
Used to render component .