1
by Jo Shields
Import upstream version 1.0 |
1 |
/*
|
2 |
* Contact:
|
|
3 |
* Moonlight List (moonlight-list@lists.ximian.com)
|
|
4 |
*
|
|
5 |
* Copyright 2007 Novell, Inc. (http://www.novell.com)
|
|
6 |
*
|
|
7 |
* See the LICENSE file included with the distribution for details.
|
|
8 |
*
|
|
9 |
*/
|
|
10 |
||
11 |
#ifndef MOON_APPLIER_H
|
|
12 |
#define MOON_APPLIER_H
|
|
13 |
||
14 |
#include <glib.h> |
|
15 |
||
16 |
#include "trigger.h" |
|
17 |
#include "collection.h" |
|
18 |
#include "clock.h" |
|
19 |
#include "list.h" |
|
20 |
#include "point.h" |
|
21 |
||
22 |
#define APPLIER_PRECEDENCE_INSTANT 0
|
|
23 |
#define APPLIER_PRECEDENCE_ANIMATION 100
|
|
24 |
#define APPLIER_PRECEDENCE_ANIMATION_RESET APPLIER_PRECEDENCE_INSTANT
|
|
25 |
||
26 |
class Applier { |
|
27 |
||
28 |
private: |
|
29 |
GHashTable *objects; |
|
30 |
bool readonly; |
|
31 |
||
32 |
public: |
|
33 |
Applier (); |
|
34 |
~Applier (); |
|
35 |
||
36 |
void AddPropertyChange (DependencyObject *object, DependencyProperty *property, Value *v, int precedence); |
|
37 |
void Apply (); |
|
38 |
void Flush (); |
|
39 |
};
|
|
40 |
||
41 |
#endif /* MOON_APPLIER_H */ |