summaryrefslogtreecommitdiffstats
path: root/krandr/libkrandr.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-25 00:35:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-25 00:35:24 +0000
commit7d5dd09ee26381b6a41d01fbe7ab04e9b5bddc2a (patch)
treeae358b258db3074b40460908a26d02960d2b4072 /krandr/libkrandr.h
parent4fba67867725a9c869f48e1d98355867ff23cbde (diff)
downloadtdelibs-7d5dd09ee26381b6a41d01fbe7ab04e9b5bddc2a.tar.gz
tdelibs-7d5dd09ee26381b6a41d01fbe7ab04e9b5bddc2a.zip
Add gamma support to libkrandr
Fix primary display detect Fix memory leak git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1249376 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krandr/libkrandr.h')
-rw-r--r--krandr/libkrandr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/krandr/libkrandr.h b/krandr/libkrandr.h
index a56f46daa..6ef7a4b8d 100644
--- a/krandr/libkrandr.h
+++ b/krandr/libkrandr.h
@@ -84,10 +84,16 @@ class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay
/**
* Reads current screen information.
+ * NOTE: The caller is responsible for calling freeScreenInfoStructure() when done
*/
ScreenInfo* read_screen_info(Display *display);
/**
+ * Frees the ScreenInfo structure
+ */
+ void freeScreenInfoStructure(ScreenInfo* screen_info);
+
+ /**
* Sets the screen size.
*/
int set_screen_size (ScreenInfo *screen_info);
@@ -191,6 +197,11 @@ class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay
bool applySystemwideDisplayConfiguration(TQPtrList<SingleScreenData> screenInfoArray, bool test=TRUE);
/**
+ * Applies the gamma contained within the systemwide display configuration screenInfoArray to the hardware
+ */
+ void applySystemwideDisplayGamma(TQPtrList<SingleScreenData> screenInfoArray);
+
+ /**
* Destroys a screen information object
*/
void destroyScreenInformationObject(TQPtrList<SingleScreenData> screenInfoArray);