diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-04 06:44:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-04 06:44:14 +0200 |
commit | a3a96e8fdd7fd91c609972217b3ad971eb929c80 (patch) | |
tree | fd0a75ab020e2a5168f74b4158291c5db5b094de | |
parent | m (diff) | |
download | jlibgamma-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.java | 19 |
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.) |