All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.humbleui.skija.resources.DataURIResourceProviderProxy Maven / Gradle / Ivy

package io.github.humbleui.skija.resources;

import java.lang.ref.*;
import org.jetbrains.annotations.*;
import io.github.humbleui.skija.*;
import io.github.humbleui.skija.impl.*;

public class DataURIResourceProviderProxy extends ResourceProvider {
    static { Library.staticLoad(); }

    @ApiStatus.Internal
    public DataURIResourceProviderProxy(long ptr) {
        super(ptr);
    }

    @NotNull @Contract("_ -> new")
    public static DataURIResourceProviderProxy make(@NotNull ResourceProvider resourceProvider) {
        return make(resourceProvider, false);
    }

    @NotNull @Contract("_, _ -> new")
    public static DataURIResourceProviderProxy make(@NotNull ResourceProvider resourceProvider, boolean predecode) {
        assert resourceProvider != null : "Can’t DataURIResourceProviderProxy::make with resourceProvider == null";
        Stats.onNativeCall();
        return new DataURIResourceProviderProxy(_nMake(Native.getPtr(resourceProvider), predecode));
    }

    @ApiStatus.Internal public static native long _nMake(long resourceProviderPtr, boolean predecode);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy