aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-04 06:44:14 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-04 06:44:14 +0200
commita3a96e8fdd7fd91c609972217b3ad971eb929c80 (patch)
treefd0a75ab020e2a5168f74b4158291c5db5b094de
parentm (diff)
downloadjlibgamma-a3a96e8fdd7fd91c609972217b3ad971eb929c80.tar.gz
jlibgamma-a3a96e8fdd7fd91c609972217b3ad971eb929c80.tar.bz2
jlibgamma-a3a96e8fdd7fd91c609972217b3ad971eb929c80.tar.xz
add get_capabilities
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libgamma/AdjustmentMethod.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libgamma/AdjustmentMethod.java b/src/libgamma/AdjustmentMethod.java
index 0b6ed00..7b98377 100644
--- a/src/libgamma/AdjustmentMethod.java
+++ b/src/libgamma/AdjustmentMethod.java
@@ -153,6 +153,16 @@ public enum AdjustmentMethod
return libgamma_method_default_site_variable(this.value);
}
+ /**
+ * Return the capabilities of the adjustment method.
+ *
+ * @return The capabilities of the adjustment method.
+ */
+ public AdjustmentMethodCapabilities get_capabilities()
+ {
+ return new AdjustmentMethodCapabilities(libgamma_method_capabilities(this.value));
+ }
+
/**
@@ -202,6 +212,15 @@ public enum AdjustmentMethod
private static native int libgamma_is_method_available(int method);
/**
+ * Return the capabilities of an adjustment method.
+ *
+ * @param method The adjustment method (display server and protocol).
+ * @return Input parameter to the constructor of {@link AdjustmentMethodCapabilities}.
+ */
+ private static native long libgamma_method_capabilities(int method);
+
+
+ /**
* Return the default site for an adjustment method.
*
* @param method The adjustment method (display server and protocol.)