/** Creates a {@code STBIEOFCallback} instance that delegates to the specified {@code STBIEOFCallbackI} instance. */ public static STBIEOFCallback create(STBIEOFCallbackI instance) { return instance instanceof STBIEOFCallback ? (STBIEOFCallback)instance : new Container(instance.address(), instance); }
/** Creates a {@code STBISkipCallback} instance that delegates to the specified {@code STBISkipCallbackI} instance. */ public static STBISkipCallback create(STBISkipCallbackI instance) { return instance instanceof STBISkipCallback ? (STBISkipCallback)instance : new Container(instance.address(), instance); }
/** Creates a {@code STBIReadCallback} instance that delegates to the specified {@code STBIReadCallbackI} instance. */ public static STBIReadCallback create(STBIReadCallbackI instance) { return instance instanceof STBIReadCallback ? (STBIReadCallback)instance : new Container(instance.address(), instance); }
/** * See {@link #stbtt_PackFontRangesGatherRects PackFontRangesGatherRects}. * * @param spc an {@link STBTTPackContext} struct * @param rects an array of {@link STBRPRect} structs */ public static void stbtt_PackFontRangesPackRects(@NativeType("stbtt_pack_context *") STBTTPackContext spc, @NativeType("stbrp_rect *") STBRPRect.Buffer rects) { nstbtt_PackFontRangesPackRects(spc.address(), rects.address(), rects.remaining()); }
/** Returns the value of the {@code num_nodes} field. */ public int num_nodes() { return STBRPContext.nnum_nodes(address()); } /** Returns a {@link STBRPNode} view of the struct pointed to by the {@code active_head} field. */
/** Sets the specified value to the {@code first_unicode_codepoint_in_range} field. */ public STBTTPackRange.Buffer first_unicode_codepoint_in_range(int value) { STBTTPackRange.nfirst_unicode_codepoint_in_range(address(), value); return this; } /** Sets the address of the specified {@link IntBuffer} to the {@code array_of_unicode_codepoints} field. */
/** Creates a {@code STBIWriteCallback} instance that delegates to the specified {@code STBIWriteCallbackI} instance. */ public static STBIWriteCallback create(STBIWriteCallbackI instance) { return instance instanceof STBIWriteCallback ? (STBIWriteCallback)instance : new Container(instance.address(), instance); }
/** Creates a {@code STBIZlibCompress} instance that delegates to the specified {@code STBIZlibCompressI} instance. */ public static STBIZlibCompress create(STBIZlibCompressI instance) { return instance instanceof STBIZlibCompress ? (STBIZlibCompress)instance : new Container(instance.address(), instance); }