mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
actor: Fully deprecate the state access macros
Now that we can warn without breaking the build, we should deprecate the state access macros for ClutterActor.
This commit is contained in:
parent
9bd3c8d2e6
commit
a722cbebef
@ -60,7 +60,9 @@ G_BEGIN_DECLS
|
|||||||
* newly written code. #ClutterActor will take care of setting the
|
* newly written code. #ClutterActor will take care of setting the
|
||||||
* internal state.
|
* internal state.
|
||||||
*/
|
*/
|
||||||
#define CLUTTER_ACTOR_SET_FLAGS(a,f) (((ClutterActor*)(a))->flags |= (f))
|
#define CLUTTER_ACTOR_SET_FLAGS(a,f) \
|
||||||
|
CLUTTER_MACRO_DEPRECATED_IN_1_24 \
|
||||||
|
(((ClutterActor*)(a))->flags |= (f))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CLUTTER_ACTOR_UNSET_FLAGS:
|
* CLUTTER_ACTOR_UNSET_FLAGS:
|
||||||
@ -73,12 +75,25 @@ G_BEGIN_DECLS
|
|||||||
* newly written code. #ClutterActor will take care of unsetting the
|
* newly written code. #ClutterActor will take care of unsetting the
|
||||||
* internal state.
|
* internal state.
|
||||||
*/
|
*/
|
||||||
#define CLUTTER_ACTOR_UNSET_FLAGS(a,f) (((ClutterActor*)(a))->flags &= ~(f))
|
#define CLUTTER_ACTOR_UNSET_FLAGS(a,f) \
|
||||||
|
CLUTTER_MACRO_DEPRECATED_IN_1_24 \
|
||||||
|
(((ClutterActor*)(a))->flags &= ~(f))
|
||||||
|
|
||||||
#define CLUTTER_ACTOR_IS_MAPPED(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_MAPPED) != FALSE)
|
#define CLUTTER_ACTOR_IS_MAPPED(a) \
|
||||||
#define CLUTTER_ACTOR_IS_REALIZED(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REALIZED) != FALSE)
|
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_mapped instead") \
|
||||||
#define CLUTTER_ACTOR_IS_VISIBLE(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_VISIBLE) != FALSE)
|
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_MAPPED) != FALSE)
|
||||||
#define CLUTTER_ACTOR_IS_REACTIVE(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REACTIVE) != FALSE)
|
|
||||||
|
#define CLUTTER_ACTOR_IS_REALIZED(a) \
|
||||||
|
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_realized instead") \
|
||||||
|
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REALIZED) != FALSE)
|
||||||
|
|
||||||
|
#define CLUTTER_ACTOR_IS_VISIBLE(a) \
|
||||||
|
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_is_visible instead") \
|
||||||
|
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_VISIBLE) != FALSE)
|
||||||
|
|
||||||
|
#define CLUTTER_ACTOR_IS_REACTIVE(a) \
|
||||||
|
CLUTTER_MACRO_DEPRECATED_IN_1_24_FOR ("Deprecated macro. Use clutter_actor_get_reactive instead") \
|
||||||
|
((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REACTIVE) != FALSE)
|
||||||
|
|
||||||
typedef struct _ClutterActorClass ClutterActorClass;
|
typedef struct _ClutterActorClass ClutterActorClass;
|
||||||
typedef struct _ClutterActorPrivate ClutterActorPrivate;
|
typedef struct _ClutterActorPrivate ClutterActorPrivate;
|
||||||
|
Loading…
Reference in New Issue
Block a user