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

io.github.humbleui.skija.resources.FileResourceProvider 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 FileResourceProvider extends ResourceProvider {
    static { Library.staticLoad(); }

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

    @NotNull @Contract("_ -> new")
    public static FileResourceProvider make(@NotNull String baseDir) {
        return make(baseDir, false);
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy