| 1 |
/* |
| 2 |
* This file is a part of hildon |
| 3 |
* |
| 4 |
* Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved. |
| 5 |
* |
| 6 |
* Author: Kuisma Salonen <kuisma.salonen@nokia.com> |
| 7 |
* Contact: Rodrigo Novo <rodrigo.novo@nokia.com> |
| 8 |
* |
| 9 |
* This library is free software; you can redistribute it and/or |
| 10 |
* modify it under the terms of the GNU Lesser General Public License |
| 11 |
* as published by the Free Software Foundation; version 2.1 of |
| 12 |
* the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This library is distributed in the hope that it will be useful, but |
| 15 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* Lesser General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU Lesser General Public |
| 20 |
* License along with this library; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 22 |
* 02110-1301 USA |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef __HILDON_COLOR_CHOOSER_PRIVATE_H__ |
| 27 |
#define __HILDON_COLOR_CHOOSER_PRIVATE_H__ |
| 28 |
|
| 29 |
typedef struct _HildonColorChooserPrivate HildonColorChooserPrivate; |
| 30 |
|
| 31 |
#define HILDON_COLOR_CHOOSER_GET_PRIVATE(obj) \ |
| 32 |
(G_TYPE_INSTANCE_GET_PRIVATE ((obj),\ |
| 33 |
HILDON_TYPE_COLOR_CHOOSER, HildonColorChooserPrivate)); |
| 34 |
|
| 35 |
struct _HildonColorChooserPrivate |
| 36 |
{ |
| 37 |
HildonColorChooser parent; |
| 38 |
|
| 39 |
GtkAllocation hba; |
| 40 |
GtkAllocation spa; |
| 41 |
|
| 42 |
unsigned short currhue; |
| 43 |
unsigned short currsat; |
| 44 |
unsigned short currval; |
| 45 |
|
| 46 |
int mousestate; |
| 47 |
gboolean mousein; |
| 48 |
|
| 49 |
GdkWindow *event_window; |
| 50 |
|
| 51 |
GdkPixbuf *dimmed_plane; |
| 52 |
GdkPixbuf *dimmed_bar; |
| 53 |
|
| 54 |
struct { |
| 55 |
unsigned short last_expose_hue; |
| 56 |
|
| 57 |
GTimeVal last_expose_time; |
| 58 |
|
| 59 |
int expose_queued; |
| 60 |
} expose_info; |
| 61 |
}; |
| 62 |
|
| 63 |
#endif /* __HILDON_COLOR_CHOOSER_H__ */ |