| 1 |
/** |
| 2 |
* This file is a part of the Cairo-Dock project |
| 3 |
* |
| 4 |
* Copyright : (C) see the 'copyright' file. |
| 5 |
* E-mail : see the 'copyright' file. |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU General Public License |
| 9 |
* as published by the Free Software Foundation; either version 3 |
| 10 |
* of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* You should have received a copy of the GNU General Public License |
| 17 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef __APPLET_XGAMMA__ |
| 21 |
#define __APPLET_XGAMMA__ |
| 22 |
|
| 23 |
#include <stdio.h> |
| 24 |
#include <errno.h> |
| 25 |
#include <X11/Xos.h> |
| 26 |
#include <X11/Xlib.h> |
| 27 |
#include <X11/Xutil.h> |
| 28 |
#include <X11/extensions/xf86vmode.h> |
| 29 |
#include <ctype.h> |
| 30 |
#include <stdlib.h> |
| 31 |
|
| 32 |
|
| 33 |
void xgamma_add_gamma (XF86VidModeGamma *pGamma, gint iNbSteps); |
| 34 |
|
| 35 |
double xgamma_get_gamma (XF86VidModeGamma *pGamma); |
| 36 |
|
| 37 |
void xgamma_set_gamma (XF86VidModeGamma *pGamma); |
| 38 |
|
| 39 |
|
| 40 |
void xgamma_create_scales_widget (double fGamma, XF86VidModeGamma *pGamma); |
| 41 |
|
| 42 |
|
| 43 |
CairoDialog *xgamma_build_dialog (void); |
| 44 |
void xgamma_build_and_show_widget (void); |
| 45 |
|
| 46 |
|
| 47 |
CairoDialog *xgamma_build_dialog_simple (void); |
| 48 |
|
| 49 |
|
| 50 |
void cd_gamma_display_gamma_on_label (double fGamma); |
| 51 |
|
| 52 |
|
| 53 |
#endif |