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

js.web.cssom.Screen Maven / Gradle / Ivy

package js.web.cssom;

import js.lang.Any;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * A screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
 */
public interface Screen extends Any {
    @JSBody(script = "return Screen.prototype")
    static Screen prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new Screen()")
    static Screen create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    int getAvailHeight();

    @JSProperty
    int getAvailWidth();

    @JSProperty
    int getColorDepth();

    @JSProperty
    int getHeight();

    @JSProperty
    ScreenOrientation getOrientation();

    @JSProperty
    int getPixelDepth();

    @JSProperty
    int getWidth();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy