![JAR search and dependency download from the Maven repository](/logo.png)
io.github.humbleui.jwm.Screen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwm Show documentation
Show all versions of jwm Show documentation
Cross-platform window management and OS integration library for Java
// Generated by delombok at Fri Sep 24 21:34:45 CEST 2021
package io.github.humbleui.jwm;
import org.jetbrains.annotations.*;
import lombok.*;
public class Screen {
/**
* Application-wide platform-specific screen identifier.
*/
public final long _id;
/**
* Describes, if this screen is primary.
* Primary screen has top-left corner in general is global screen space origin.
*/
public final boolean _isPrimary;
/**
* Screen bounds in pixels in the global screen space coordinates.
*/
public final UIRect _bounds;
/**
* Area in absolute pixels of the screen excluding dock/menubar
*/
public final UIRect _workArea;
/**
* UI and text elements scale for display on this screen
*/
public final float _scale;
@java.lang.SuppressWarnings("all")
public Screen(final long id, final boolean isPrimary, final UIRect bounds, final UIRect workArea, final float scale) {
this._id = id;
this._isPrimary = isPrimary;
this._bounds = bounds;
this._workArea = workArea;
this._scale = scale;
}
/**
* Application-wide platform-specific screen identifier.
*/
@java.lang.SuppressWarnings("all")
public long getId() {
return this._id;
}
/**
* Describes, if this screen is primary.
* Primary screen has top-left corner in general is global screen space origin.
*/
@java.lang.SuppressWarnings("all")
public boolean isPrimary() {
return this._isPrimary;
}
/**
* Screen bounds in pixels in the global screen space coordinates.
*/
@java.lang.SuppressWarnings("all")
public UIRect getBounds() {
return this._bounds;
}
/**
* Area in absolute pixels of the screen excluding dock/menubar
*/
@java.lang.SuppressWarnings("all")
public UIRect getWorkArea() {
return this._workArea;
}
/**
* UI and text elements scale for display on this screen
*/
@java.lang.SuppressWarnings("all")
public float getScale() {
return this._scale;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Screen)) return false;
final Screen other = (Screen) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getId() != other.getId()) return false;
if (this.isPrimary() != other.isPrimary()) return false;
if (java.lang.Float.compare(this.getScale(), other.getScale()) != 0) return false;
final java.lang.Object this$_bounds = this.getBounds();
final java.lang.Object other$_bounds = other.getBounds();
if (this$_bounds == null ? other$_bounds != null : !this$_bounds.equals(other$_bounds)) return false;
final java.lang.Object this$_workArea = this.getWorkArea();
final java.lang.Object other$_workArea = other.getWorkArea();
if (this$_workArea == null ? other$_workArea != null : !this$_workArea.equals(other$_workArea)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Screen;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final long $_id = this.getId();
result = result * PRIME + (int) ($_id >>> 32 ^ $_id);
result = result * PRIME + (this.isPrimary() ? 79 : 97);
result = result * PRIME + java.lang.Float.floatToIntBits(this.getScale());
final java.lang.Object $_bounds = this.getBounds();
result = result * PRIME + ($_bounds == null ? 43 : $_bounds.hashCode());
final java.lang.Object $_workArea = this.getWorkArea();
result = result * PRIME + ($_workArea == null ? 43 : $_workArea.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Screen(_id=" + this.getId() + ", _isPrimary=" + this.isPrimary() + ", _bounds=" + this.getBounds() + ", _workArea=" + this.getWorkArea() + ", _scale=" + this.getScale() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy