~ubuntu-branches/ubuntu/lucid/gtk2-engines-murrine/lucid

« back to all changes in this revision

Viewing changes to src/murrine_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche, Didier Roche, Khashayar Naderehvandi
  • Date: 2009-03-18 21:48:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090318214808-0n7qxpyukzd2ru8r
Tags: 0.90.2-0ubuntu1
[Didier Roche]
* New upstream release (LP: #344154)
  - High roundness values are now correctly limited.
  - Use focus_color in draw_entry if the theme uses it.
  - Removed shadows from GtkCombo and GtkComboBoxEntry.
  - Code polishing and bugfixing.
  - Fixed a crash when using focus_color.
  - Now focus_color and scrollbar_color accept symbolic colors.
* debian/control:
  - add Vcs-Bzr tag
  - bump libgtk2.0-dev to 2.12.0
  - update Homepage field
* Rewrite debian/watch to get murrine from its new location

[Khashayar Naderehvandi]
* debian/control: remove quilt dependency
* debian/rules: remove "patch: patch-stamp" and all patch related stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Murrine theme engine
2
 
 * Copyright (C) 2007 Andrea Cimitan
 
2
 * Copyright (C) 2006-2007-2008-2009 Andrea Cimitan
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU Library General Public
27
27
 
28
28
typedef enum
29
29
{
 
30
        MRN_PROFILE_MURRINE = 0,
 
31
        MRN_PROFILE_NODOKA = 1,
 
32
        MRN_PROFILE_MIST = 2,
 
33
        MRN_PROFILE_CANDIDO = 3,
 
34
        MRN_PROFILE_CLEARLOOKS = 4,
 
35
        MRN_NUM_PROFILES = 5
 
36
} MurrineProfiles;
 
37
 
 
38
typedef enum
 
39
{
30
40
        MRN_STYLE_MURRINE = 0,
31
 
        MRN_STYLE_NODOKA = 1,
32
 
        MRN_STYLE_MIST = 2,
33
 
        MRN_STYLE_CANDIDO = 3,
34
 
        MRN_STYLE_CLEARLOOKS = 4,
35
 
        MRN_NUM_STYLES = 5
 
41
        MRN_STYLE_RGBA = 1,
 
42
        MRN_NUM_DRAW_STYLES = 2
36
43
} MurrineStyles;
37
44
 
38
45
typedef enum
39
46
{
40
 
        MRN_DRAW_STYLE_MURRINE = 0,
41
 
        MRN_DRAW_STYLE_RGBA = 1,
42
 
        MRN_NUM_DRAW_STYLES = 2
43
 
} MurrineDrawStyles;
44
 
 
45
 
typedef enum
46
 
{
47
47
        MRN_STATE_NORMAL,
48
48
        MRN_STATE_ACTIVE,
49
49
        MRN_STATE_SELECTED,
69
69
 
70
70
typedef enum
71
71
{
 
72
        MRN_CONT_NONE          = 0,
 
73
        MRN_CONT_LEFT          = 1 << 0,
 
74
        MRN_CONT_RIGHT         = 1 << 1
 
75
} MurrineContinue;
 
76
 
 
77
typedef enum
 
78
{
72
79
        MRN_STEPPER_UNKNOWN    = 0,
73
80
        MRN_STEPPER_A          = 1,
74
81
        MRN_STEPPER_B          = 2,
78
85
 
79
86
typedef enum
80
87
{
81
 
        MRN_ORDER_FIRST,
82
 
        MRN_ORDER_MIDDLE,
83
 
        MRN_ORDER_LAST
 
88
        MRN_ORDER_FIRST = 1 << 0,
 
89
        MRN_ORDER_LAST = 1 << 1
84
90
} MurrineOrder;
85
91
 
86
92
typedef enum
123
129
 
124
130
typedef enum
125
131
{
 
132
        MRN_FOCUS_BUTTON,
 
133
        MRN_FOCUS_BUTTON_FLAT,
 
134
        MRN_FOCUS_LABEL,
 
135
        MRN_FOCUS_TREEVIEW,
 
136
        MRN_FOCUS_TREEVIEW_HEADER,
 
137
        MRN_FOCUS_TREEVIEW_ROW,
 
138
        MRN_FOCUS_TREEVIEW_DND,
 
139
        MRN_FOCUS_SCALE,
 
140
        MRN_FOCUS_TAB,
 
141
        MRN_FOCUS_COLOR_WHEEL_DARK,
 
142
        MRN_FOCUS_COLOR_WHEEL_LIGHT,
 
143
        MRN_FOCUS_ICONVIEW,
 
144
        MRN_FOCUS_UNKNOWN
 
145
} MurrineFocusType;
 
146
 
 
147
typedef enum
 
148
{
126
149
        MRN_DIRECTION_UP,
127
150
        MRN_DIRECTION_DOWN,
128
151
        MRN_DIRECTION_LEFT,
131
154
 
132
155
typedef enum
133
156
{
134
 
        MRN_PROGRESSBAR_CONTINUOUS,
135
 
        MRN_PROGRESSBAR_DISCRETE
136
 
} MurrineProgressBarStyle;
137
 
 
138
 
typedef enum
139
 
{
140
157
        MRN_WINDOW_EDGE_NORTH_WEST,
141
158
        MRN_WINDOW_EDGE_NORTH,
142
159
        MRN_WINDOW_EDGE_NORTH_EAST,
198
215
 
199
216
        /* Style */
200
217
        int glazestyle;
 
218
        int glowstyle;
201
219
        int lightborderstyle;
202
220
        int reliefstyle;
203
221
        int roundness;
204
 
        double highlight_ratio;
205
 
        double lightborder_ratio;
 
222
        double glow_shade;
 
223
        double highlight_shade;
 
224
        double lightborder_shade;
206
225
        MurrineGradients mrn_gradient;
207
226
 
208
 
        MurrineDrawStyles drawstyle;
 
227
        MurrineStyles style;
209
228
        MurrineStyleFunctions *style_functions;
210
229
} WidgetParameters;
211
230
 
212
231
typedef struct
213
232
{
214
 
        boolean inverted;
215
 
        int     fill_size;
 
233
        MurrineFocusType    type;
 
234
        MurrineContinue     continue_side;
 
235
        MurrineRGB          color;
 
236
        boolean             has_color;
 
237
        gint                line_width;
 
238
        gint                padding;
 
239
        guint8*             dash_list;
 
240
        boolean             interior;
 
241
} FocusParameters;
 
242
 
 
243
typedef struct
 
244
{
 
245
        boolean lower;
216
246
        boolean horizontal;
 
247
        boolean fill_level;
217
248
} SliderParameters;
218
249
 
219
250
typedef struct
220
251
{
221
252
        MurrineOrientation orientation;
222
 
        MurrineProgressBarStyle style;
 
253
        int style;
223
254
} ProgressBarParameters;
224
255
 
225
256
typedef struct
226
257
{
 
258
        /* The maximum size of the fill. Calcualted from the entries allocation,
 
259
         * and other information. Relative to the drawn position.
 
260
         */
 
261
        GdkRectangle max_size;
 
262
        gboolean max_size_known;
 
263
        /* The border around the bar. This can be used for radius calculations.
 
264
         */
 
265
        GtkBorder border;
 
266
} EntryProgressParameters;
 
267
 
 
268
typedef struct
 
269
{
227
270
        int linepos;
228
271
} OptionMenuParameters;
229
272
 
341
384
        void (*draw_entry) (cairo_t *cr,
342
385
                            const MurrineColors    *colors,
343
386
                            const WidgetParameters *widget,
 
387
                            const FocusParameters  *focus,
344
388
                            int x, int y, int width, int height);
345
389
 
 
390
        void (*draw_entry_progress)   (cairo_t *cr,
 
391
                                       const MurrineColors    *colors,
 
392
                                       const WidgetParameters *widget,
 
393
                                       const EntryProgressParameters *progress,
 
394
                                       int x, int y, int width, int height);
 
395
 
346
396
        void (*draw_spinbutton) (cairo_t *cr,
347
397
                                 const MurrineColors    *colors,
348
398
                                 const WidgetParameters *widget,
477
527
                                  const WidgetParameters     *widget,
478
528
                                  const ResizeGripParameters *grip,
479
529
                                  int x, int y, int width, int height);
 
530
 
 
531
        void (*draw_focus) (cairo_t *cr,
 
532
                            const MurrineColors    *colors,
 
533
                            const WidgetParameters *widget,
 
534
                            const FocusParameters  *focus,
 
535
                            int x, int y, int width, int height);
480
536
};
481
537
 
482
538
#define MURRINE_RECTANGLE_SET(rect, _x, _y, _w, _h) rect.x      = _x; \