aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma/AdjustmentMethodCapabilities.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-21 12:45:26 +0200
committerMattias Andrée <maandree@kth.se>2022-07-21 12:45:26 +0200
commitd2386fa0e3cc5e80fcfe51f07751d13676655d76 (patch)
tree5bb04bc188f3366fe2e50cca8e05020a8cf3cb6f /src/libgamma/AdjustmentMethodCapabilities.java
parentmissed to set JAVA_HOME (diff)
downloadjlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.gz
jlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.bz2
jlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.xz
Improve makefile, change license to ISC, change code style, remove dist/
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libgamma/AdjustmentMethodCapabilities.java167
1 files changed, 0 insertions, 167 deletions
diff --git a/src/libgamma/AdjustmentMethodCapabilities.java b/src/libgamma/AdjustmentMethodCapabilities.java
deleted file mode 100644
index 36cfbb9..0000000
--- a/src/libgamma/AdjustmentMethodCapabilities.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/**
- * jlibgamma — Display server abstraction layer for gamma ramp and Java
- * Copyright © 2014 Mattias Andrée (maandree@member.fsf.org)
- *
- * This library is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-package libgamma;
-
-
-/**
- * Capabilities of adjustment methods.
- */
-public class AdjustmentMethodCapabilities
-{
- /**
- * Type initialiser.
- */
- static
- {
- Libgamma.initialise();
- }
-
-
-
- /**
- * Constructor.
- *
- * @param data Low half: the value of {@link #crtc_information}.
- * High half: the values of the booleanic variables.
- */
- AdjustmentMethodCapabilities(long data)
- {
- this.crtc_information = (int)data;
-
- this.default_site_known = (data & (1L << 33L)) != 0;
- this.multiple_sites = (data & (1L << 34L)) != 0;
- this.multiple_partitions = (data & (1L << 35L)) != 0;
- this.multiple_crtcs = (data & (1L << 36L)) != 0;
- this.partitions_are_graphics_cards = (data & (1L << 37L)) != 0;
- this.site_restore = (data & (1L << 38L)) != 0;
- this.partition_restore = (data & (1L << 39L)) != 0;
- this.crtc_restore = (data & (1L << 40L)) != 0;
- this.identical_gamma_sizes = (data & (1L << 41L)) != 0;
- this.fixed_gamma_size = (data & (1L << 42L)) != 0;
- this.fixed_gamma_depth = (data & (1L << 43L)) != 0;
- this.real = (data & (1L << 44L)) != 0;
- this.fake = (data & (1L << 45L)) != 0;
- }
-
-
-
- /**
- * OR of the CRTC information fields in {@link CRTCInformation}
- * that may (but can fail) be read successfully.
- */
- public int crtc_information;
-
- /**
- * Whether the default site is known, if true the site is integrated
- * to the system or can be determined using environment variables.
- */
- public boolean default_site_known;
-
- /**
- * Whether the adjustment method supports multiple sites rather
- * than just the default site.
- */
- public boolean multiple_sites;
-
- /**
- * Whether the adjustment method supports multiple partitions
- * per site.
- */
- public boolean multiple_partitions;
-
- /**
- * Whether the adjustment method supports multiple CRTC:s
- * per partition per site.
- */
- public boolean multiple_crtcs;
-
- /**
- * Whether the partition to graphics card is a bijection.
- */
- public boolean partitions_are_graphics_cards;
-
- /**
- * Whether the adjustment method supports {@link Site#restore}.
- */
- public boolean site_restore;
-
- /**
- * Whether the adjustment method supports {@link Partition#restore}.
- */
- public boolean partition_restore;
-
- /**
- * Whether the adjustment method supports {@link CRTC#restore}.
- */
- public boolean crtc_restore;
-
- /**
- * Whether the {@link #red_gamma_size}, {@link #green_gamma_size} and
- * {@link #blue_gamma_size} fields in {@link CRTCInformation} will
- * always have the same values as each other for the adjustment method.
- */
- public boolean identical_gamma_sizes;
-
- /**
- * Whether the {@link #red_gamma_size}, {@link #green_gamma_size} and
- * {@link #blue_gamma_size} fields in {@link CRTCInformation} will
- * always be filled with the same value for the adjustment method.
- */
- public boolean fixed_gamma_size;
-
- /**
- * Whether the {@link #gamma_depth} field in {@link CRTCInformation}
- * will always be filled with the same value for the adjustment method.
- */
- public boolean fixed_gamma_depth;
-
- /**
- * Whether the adjustment method will actually perform adjustments.
- */
- public boolean real;
-
- /**
- * Whether the adjustment method is implement using a translation layer.
- */
- public boolean fake;
-
-
- /**
- * {@inheritDoc}
- */
- public String toString()
- {
- return "<AdjustmentMethodCapabilities: " +
- "information = " + Integer.toString(this.crtc_information) + ", " +
- "default_site_known = " + Boolean.toString(this.default_site_known) + ", " +
- "multiple_sites = " + Boolean.toString(this.multiple_sites) + ", " +
- "multiple_partitions = " + Boolean.toString(this.multiple_partitions) + ", " +
- "multiple_crtcs = " + Boolean.toString(this.multiple_crtcs) + ", " +
- "partitions_are_graphics_cards = " + Boolean.toString(this.partitions_are_graphics_cards) + ", " +
- "site_restore = " + Boolean.toString(this.site_restore) + ", " +
- "partition_restore = " + Boolean.toString(this.partition_restore) + ", " +
- "crtc_restore = " + Boolean.toString(this.crtc_restore) + ", " +
- "identical_gamma_sizes = " + Boolean.toString(this.identical_gamma_sizes) + ", " +
- "fixed_gamma_size = " + Boolean.toString(this.fixed_gamma_size) + ", " +
- "fixed_gamma_depth = " + Boolean.toString(this.fixed_gamma_depth) + ", " +
- "real = " + Boolean.toString(this.real) + ", " +
- "fake = " + Boolean.toString(this.fake) + ">";
- }
-
-}
-