aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_method.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-02 04:43:20 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-02 04:43:20 +0200
commit9f0f3aa33d904cf284ce757b928db23928750657 (patch)
tree3f043828cdfa09c2bb0c69d903b30cebccb3314c /src/libgamma_method.py
parentadd alternative to the libgamma_crtc_set_gamma_ramps_f functions (diff)
downloadpylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.gz
pylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.bz2
pylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.xz
some of libgamma-facade
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libgamma_method.py35
1 files changed, 33 insertions, 2 deletions
diff --git a/src/libgamma_method.py b/src/libgamma_method.py
index b702151..67993f4 100644
--- a/src/libgamma_method.py
+++ b/src/libgamma_method.py
@@ -271,11 +271,42 @@ class CRTCInformation:
of an error identifier provided by this library.
'''
- def __init__(self):
+ def __init__(self, data):
'''
Constructor
+
+ @param data:list The value of each variable
'''
- pass
+ self.edid = data[0]
+ self.edid_error = data[1]
+ self.width_mm = data[2]
+ self.width_mm_error = data[3]
+ self.height_mm = data[4]
+ self.height_mm_error = data[5]
+ self.width_mm_edid = data[6]
+ self.width_mm_edid_error = data[7]
+ self.height_mm_edid = data[8]
+ self.height_mm_edid_error = data[9]
+ self.red_gamma_size = data[10]
+ self.green_gamma_size = data[11]
+ self.blue_gamma_size = data[12]
+ self.gamma_size_error = data[13]
+ self.gamma_depth = data[14]
+ self.gamma_depth_error = data[15]
+ self.gamma_support = data[16]
+ self.gamma_support_error = data[17]
+ self.subpixel_order = data[18]
+ self.subpixel_order_error = data[19]
+ self.active = data[20]
+ self.active_error = data[21]
+ self.connector_name = data[22]
+ self.connector_name_error = data[23]
+ self.connector_type = data[24]
+ self.connector_type_error = data[25]
+ self.gamma_red = data[26]
+ self.gamma_green = data[27]
+ self.gamma_blue = data[28]
+ self.gamma_error = data[29]
LIBGAMMA_CONNECTOR_TYPE_Unknown = 0