@girs/meta-6 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/meta-6.d.ts +202 -0
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Meta-6, generated from library version 3.36.6 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Meta-6, generated from library version 3.36.6 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/meta-6
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Meta from '@girs/meta-6';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/meta-6` or `@girs/meta-6/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/meta-6'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Meta from 'gi://Meta?version=6';
|
|
@@ -50,7 +50,7 @@ import Meta from 'gi://Meta?version=6';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/meta-6` or `@girs/meta-6/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/meta-6'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Meta = imports.gi.Meta;
|
|
@@ -77,7 +77,7 @@ const Meta = imports.gi.Meta;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/meta-6.d.ts
CHANGED
|
@@ -2462,6 +2462,7 @@ export namespace Meta {
|
|
|
2462
2462
|
* instance.
|
|
2463
2463
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2464
2464
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
2465
|
+
* @since 2.22
|
|
2465
2466
|
*/
|
|
2466
2467
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
2467
2468
|
|
|
@@ -2505,6 +2506,7 @@ export namespace Meta {
|
|
|
2505
2506
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
2506
2507
|
* instance.
|
|
2507
2508
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2509
|
+
* @since 2.22
|
|
2508
2510
|
* @virtual
|
|
2509
2511
|
*/
|
|
2510
2512
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -2840,6 +2842,7 @@ export namespace Meta {
|
|
|
2840
2842
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
2841
2843
|
* @param property_name the name of the animatable property to find
|
|
2842
2844
|
* @returns The {@link GObject.ParamSpec} for the given property or `null`
|
|
2845
|
+
* @since 1.4
|
|
2843
2846
|
*/
|
|
2844
2847
|
find_property(property_name: string): GObject.ParamSpec;
|
|
2845
2848
|
|
|
@@ -2847,6 +2850,7 @@ export namespace Meta {
|
|
|
2847
2850
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
2848
2851
|
* @param property_name the name of the animatable property to retrieve
|
|
2849
2852
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
2853
|
+
* @since 1.4
|
|
2850
2854
|
*/
|
|
2851
2855
|
get_initial_state(property_name: string, value: GObject.Value | any): void;
|
|
2852
2856
|
|
|
@@ -2864,6 +2868,7 @@ export namespace Meta {
|
|
|
2864
2868
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
2865
2869
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
2866
2870
|
* @returns `true` if the interpolation was successful, and `false` otherwise
|
|
2871
|
+
* @since 1.8
|
|
2867
2872
|
*/
|
|
2868
2873
|
interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, unknown];
|
|
2869
2874
|
|
|
@@ -2871,6 +2876,7 @@ export namespace Meta {
|
|
|
2871
2876
|
* Sets the current state of `property_name` to `value`
|
|
2872
2877
|
* @param property_name the name of the animatable property to set
|
|
2873
2878
|
* @param value the value of the animatable property to set
|
|
2879
|
+
* @since 1.4
|
|
2874
2880
|
*/
|
|
2875
2881
|
set_final_state(property_name: string, value: GObject.Value | any): void;
|
|
2876
2882
|
|
|
@@ -2888,6 +2894,7 @@ export namespace Meta {
|
|
|
2888
2894
|
/**
|
|
2889
2895
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
2890
2896
|
* @param property_name the name of the animatable property to find
|
|
2897
|
+
* @since 1.4
|
|
2891
2898
|
* @virtual
|
|
2892
2899
|
*/
|
|
2893
2900
|
vfunc_find_property(property_name: string): GObject.ParamSpec;
|
|
@@ -2896,6 +2903,7 @@ export namespace Meta {
|
|
|
2896
2903
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
2897
2904
|
* @param property_name the name of the animatable property to retrieve
|
|
2898
2905
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
2906
|
+
* @since 1.4
|
|
2899
2907
|
* @virtual
|
|
2900
2908
|
*/
|
|
2901
2909
|
vfunc_get_initial_state(property_name: string, value: unknown): void;
|
|
@@ -2913,6 +2921,7 @@ export namespace Meta {
|
|
|
2913
2921
|
* @param property_name the name of the property to interpolate
|
|
2914
2922
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
2915
2923
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
2924
|
+
* @since 1.8
|
|
2916
2925
|
* @virtual
|
|
2917
2926
|
*/
|
|
2918
2927
|
vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value | any];
|
|
@@ -2921,6 +2930,7 @@ export namespace Meta {
|
|
|
2921
2930
|
* Sets the current state of `property_name` to `value`
|
|
2922
2931
|
* @param property_name the name of the animatable property to set
|
|
2923
2932
|
* @param value the value of the animatable property to set
|
|
2933
|
+
* @since 1.4
|
|
2924
2934
|
* @virtual
|
|
2925
2935
|
*/
|
|
2926
2936
|
vfunc_set_final_state(property_name: string, value: unknown): void;
|
|
@@ -2935,6 +2945,8 @@ export namespace Meta {
|
|
|
2935
2945
|
* deprecated virtual function. The default implementation will
|
|
2936
2946
|
* call `clutter_actor_add_child()`.
|
|
2937
2947
|
* @param actor the first {@link Clutter.Actor} to add
|
|
2948
|
+
* @since 0.4
|
|
2949
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
2938
2950
|
*/
|
|
2939
2951
|
add_actor(actor: Clutter.Actor): void;
|
|
2940
2952
|
|
|
@@ -2949,6 +2961,7 @@ export namespace Meta {
|
|
|
2949
2961
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
2950
2962
|
* @param property the name of the property to set.
|
|
2951
2963
|
* @param value the value.
|
|
2964
|
+
* @since 0.8
|
|
2952
2965
|
*/
|
|
2953
2966
|
child_get_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
2954
2967
|
|
|
@@ -2958,6 +2971,7 @@ export namespace Meta {
|
|
|
2958
2971
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
2959
2972
|
* @param child a {@link Clutter.Actor}
|
|
2960
2973
|
* @param pspec a {@link GObject.ParamSpec}
|
|
2974
|
+
* @since 1.6
|
|
2961
2975
|
*/
|
|
2962
2976
|
child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
2963
2977
|
|
|
@@ -2966,6 +2980,7 @@ export namespace Meta {
|
|
|
2966
2980
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
2967
2981
|
* @param property the name of the property to set.
|
|
2968
2982
|
* @param value the value.
|
|
2983
|
+
* @since 0.8
|
|
2969
2984
|
*/
|
|
2970
2985
|
child_set_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
2971
2986
|
|
|
@@ -2980,6 +2995,7 @@ export namespace Meta {
|
|
|
2980
2995
|
*
|
|
2981
2996
|
* Applications should not call this function.
|
|
2982
2997
|
* @param actor a {@link Clutter.Actor}
|
|
2998
|
+
* @since 1.2
|
|
2983
2999
|
*/
|
|
2984
3000
|
create_child_meta(actor: Clutter.Actor): void;
|
|
2985
3001
|
|
|
@@ -2993,6 +3009,7 @@ export namespace Meta {
|
|
|
2993
3009
|
*
|
|
2994
3010
|
* Applications should not call this function.
|
|
2995
3011
|
* @param actor a {@link Clutter.Actor}
|
|
3012
|
+
* @since 1.2
|
|
2996
3013
|
*/
|
|
2997
3014
|
destroy_child_meta(actor: Clutter.Actor): void;
|
|
2998
3015
|
|
|
@@ -3001,6 +3018,7 @@ export namespace Meta {
|
|
|
3001
3018
|
* into any child container.
|
|
3002
3019
|
* @param child_name the name of the requested child.
|
|
3003
3020
|
* @returns The child actor with the requested name, or `null` if no actor with that name was found.
|
|
3021
|
+
* @since 0.6
|
|
3004
3022
|
*/
|
|
3005
3023
|
find_child_by_name(child_name: string): Clutter.Actor;
|
|
3006
3024
|
|
|
@@ -3009,12 +3027,15 @@ export namespace Meta {
|
|
|
3009
3027
|
* `container` specific state for `actor`.
|
|
3010
3028
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
3011
3029
|
* @returns the {@link Clutter.ChildMeta} for the `actor` child of `container` or `null` if the specifiec actor does not exist or the container is not configured to provide {@link Clutter.ChildMeta}<!-- -->s
|
|
3030
|
+
* @since 0.8
|
|
3012
3031
|
*/
|
|
3013
3032
|
get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
3014
3033
|
|
|
3015
3034
|
/**
|
|
3016
3035
|
* Retrieves all the children of `container`.
|
|
3017
3036
|
* @returns a list of {@link Clutter.Actor}<!-- -->s. Use `g_list_free()` on the returned list when done.
|
|
3037
|
+
* @since 0.4
|
|
3038
|
+
* @deprecated since 1.10: Use `clutter_actor_get_children()` instead.
|
|
3018
3039
|
*/
|
|
3019
3040
|
get_children(): Clutter.Actor[];
|
|
3020
3041
|
|
|
@@ -3026,6 +3047,8 @@ export namespace Meta {
|
|
|
3026
3047
|
* `clutter_actor_set_child_below_sibling()`.
|
|
3027
3048
|
* @param actor the actor to raise
|
|
3028
3049
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
3050
|
+
* @since 0.6
|
|
3051
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
3029
3052
|
*/
|
|
3030
3053
|
lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
3031
3054
|
|
|
@@ -3037,6 +3060,8 @@ export namespace Meta {
|
|
|
3037
3060
|
* `clutter_actor_set_child_above_sibling()`.
|
|
3038
3061
|
* @param actor the actor to raise
|
|
3039
3062
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
3063
|
+
* @since 0.6
|
|
3064
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
3040
3065
|
*/
|
|
3041
3066
|
raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
3042
3067
|
|
|
@@ -3050,12 +3075,16 @@ export namespace Meta {
|
|
|
3050
3075
|
* deprecated virtual function. The default implementation will call
|
|
3051
3076
|
* `clutter_actor_remove_child()`.
|
|
3052
3077
|
* @param actor a {@link Clutter.Actor}
|
|
3078
|
+
* @since 0.4
|
|
3079
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3053
3080
|
*/
|
|
3054
3081
|
remove_actor(actor: Clutter.Actor): void;
|
|
3055
3082
|
|
|
3056
3083
|
/**
|
|
3057
3084
|
* Sorts a container's children using their depth. This function should not
|
|
3058
3085
|
* be normally used by applications.
|
|
3086
|
+
* @since 0.6
|
|
3087
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
3059
3088
|
*/
|
|
3060
3089
|
sort_depth_order(): void;
|
|
3061
3090
|
|
|
@@ -3081,6 +3110,8 @@ export namespace Meta {
|
|
|
3081
3110
|
* deprecated virtual function. The default implementation will
|
|
3082
3111
|
* call `clutter_actor_add_child()`.
|
|
3083
3112
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3113
|
+
* @since 0.4
|
|
3114
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3084
3115
|
* @virtual
|
|
3085
3116
|
*/
|
|
3086
3117
|
vfunc_add(actor: Clutter.Actor): void;
|
|
@@ -3091,6 +3122,7 @@ export namespace Meta {
|
|
|
3091
3122
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
3092
3123
|
* @param child a {@link Clutter.Actor}
|
|
3093
3124
|
* @param pspec a {@link GObject.ParamSpec}
|
|
3125
|
+
* @since 1.6
|
|
3094
3126
|
* @virtual
|
|
3095
3127
|
*/
|
|
3096
3128
|
vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
@@ -3106,6 +3138,7 @@ export namespace Meta {
|
|
|
3106
3138
|
*
|
|
3107
3139
|
* Applications should not call this function.
|
|
3108
3140
|
* @param actor a {@link Clutter.Actor}
|
|
3141
|
+
* @since 1.2
|
|
3109
3142
|
* @virtual
|
|
3110
3143
|
*/
|
|
3111
3144
|
vfunc_create_child_meta(actor: Clutter.Actor): void;
|
|
@@ -3120,6 +3153,7 @@ export namespace Meta {
|
|
|
3120
3153
|
*
|
|
3121
3154
|
* Applications should not call this function.
|
|
3122
3155
|
* @param actor a {@link Clutter.Actor}
|
|
3156
|
+
* @since 1.2
|
|
3123
3157
|
* @virtual
|
|
3124
3158
|
*/
|
|
3125
3159
|
vfunc_destroy_child_meta(actor: Clutter.Actor): void;
|
|
@@ -3128,6 +3162,7 @@ export namespace Meta {
|
|
|
3128
3162
|
* Retrieves the {@link Clutter.ChildMeta} which contains the data about the
|
|
3129
3163
|
* `container` specific state for `actor`.
|
|
3130
3164
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
3165
|
+
* @since 0.8
|
|
3131
3166
|
* @virtual
|
|
3132
3167
|
*/
|
|
3133
3168
|
vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
@@ -3140,6 +3175,8 @@ export namespace Meta {
|
|
|
3140
3175
|
* `clutter_actor_set_child_below_sibling()`.
|
|
3141
3176
|
* @param actor the actor to raise
|
|
3142
3177
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
3178
|
+
* @since 0.6
|
|
3179
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
3143
3180
|
* @virtual
|
|
3144
3181
|
*/
|
|
3145
3182
|
vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -3152,6 +3189,8 @@ export namespace Meta {
|
|
|
3152
3189
|
* `clutter_actor_set_child_above_sibling()`.
|
|
3153
3190
|
* @param actor the actor to raise
|
|
3154
3191
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
3192
|
+
* @since 0.6
|
|
3193
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
3155
3194
|
* @virtual
|
|
3156
3195
|
*/
|
|
3157
3196
|
vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -3166,6 +3205,8 @@ export namespace Meta {
|
|
|
3166
3205
|
* deprecated virtual function. The default implementation will call
|
|
3167
3206
|
* `clutter_actor_remove_child()`.
|
|
3168
3207
|
* @param actor a {@link Clutter.Actor}
|
|
3208
|
+
* @since 0.4
|
|
3209
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3169
3210
|
* @virtual
|
|
3170
3211
|
*/
|
|
3171
3212
|
vfunc_remove(actor: Clutter.Actor): void;
|
|
@@ -3173,6 +3214,8 @@ export namespace Meta {
|
|
|
3173
3214
|
/**
|
|
3174
3215
|
* Sorts a container's children using their depth. This function should not
|
|
3175
3216
|
* be normally used by applications.
|
|
3217
|
+
* @since 0.6
|
|
3218
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
3176
3219
|
* @virtual
|
|
3177
3220
|
*/
|
|
3178
3221
|
vfunc_sort_depth_order(): void;
|
|
@@ -3180,6 +3223,7 @@ export namespace Meta {
|
|
|
3180
3223
|
/**
|
|
3181
3224
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
3182
3225
|
* @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
|
|
3226
|
+
* @since 0.6
|
|
3183
3227
|
*/
|
|
3184
3228
|
get_id(): string;
|
|
3185
3229
|
|
|
@@ -3191,6 +3235,7 @@ export namespace Meta {
|
|
|
3191
3235
|
* @param name the name of the node
|
|
3192
3236
|
* @param node the JSON node to be parsed
|
|
3193
3237
|
* @returns `true` if the node was successfully parsed, `false` otherwise.
|
|
3238
|
+
* @since 0.6
|
|
3194
3239
|
*/
|
|
3195
3240
|
parse_custom_node(script: Clutter.Script, value: GObject.Value | any, name: string, node: Json.Node): boolean;
|
|
3196
3241
|
|
|
@@ -3200,6 +3245,7 @@ export namespace Meta {
|
|
|
3200
3245
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
3201
3246
|
* @param name the name of the property
|
|
3202
3247
|
* @param value the value of the property
|
|
3248
|
+
* @since 0.6
|
|
3203
3249
|
*/
|
|
3204
3250
|
set_custom_property(script: Clutter.Script, name: string, value: GObject.Value | any): void;
|
|
3205
3251
|
|
|
@@ -3211,11 +3257,13 @@ export namespace Meta {
|
|
|
3211
3257
|
* define a unique name for an object constructable using the UI
|
|
3212
3258
|
* definition language parsed by {@link Clutter.Script}.
|
|
3213
3259
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
3260
|
+
* @since 0.6
|
|
3214
3261
|
*/
|
|
3215
3262
|
set_id(id_: string): void;
|
|
3216
3263
|
|
|
3217
3264
|
/**
|
|
3218
3265
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
3266
|
+
* @since 0.6
|
|
3219
3267
|
* @virtual
|
|
3220
3268
|
*/
|
|
3221
3269
|
vfunc_get_id(): string;
|
|
@@ -3227,6 +3275,7 @@ export namespace Meta {
|
|
|
3227
3275
|
* @param value the generic value to be set
|
|
3228
3276
|
* @param name the name of the node
|
|
3229
3277
|
* @param node the JSON node to be parsed
|
|
3278
|
+
* @since 0.6
|
|
3230
3279
|
* @virtual
|
|
3231
3280
|
*/
|
|
3232
3281
|
vfunc_parse_custom_node(script: Clutter.Script, value: unknown, name: string, node: Json.Node): boolean;
|
|
@@ -3237,6 +3286,7 @@ export namespace Meta {
|
|
|
3237
3286
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
3238
3287
|
* @param name the name of the property
|
|
3239
3288
|
* @param value the value of the property
|
|
3289
|
+
* @since 0.6
|
|
3240
3290
|
* @virtual
|
|
3241
3291
|
*/
|
|
3242
3292
|
vfunc_set_custom_property(script: Clutter.Script, name: string, value: unknown): void;
|
|
@@ -3249,6 +3299,7 @@ export namespace Meta {
|
|
|
3249
3299
|
* define a unique name for an object constructable using the UI
|
|
3250
3300
|
* definition language parsed by {@link Clutter.Script}.
|
|
3251
3301
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
3302
|
+
* @since 0.6
|
|
3252
3303
|
* @virtual
|
|
3253
3304
|
*/
|
|
3254
3305
|
vfunc_set_id(id_: string): void;
|
|
@@ -3384,6 +3435,7 @@ export namespace Meta {
|
|
|
3384
3435
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
3385
3436
|
* @param property_name the name of the animatable property to find
|
|
3386
3437
|
* @returns The {@link GObject.ParamSpec} for the given property or `null`
|
|
3438
|
+
* @since 1.4
|
|
3387
3439
|
*/
|
|
3388
3440
|
find_property(property_name: string): GObject.ParamSpec;
|
|
3389
3441
|
|
|
@@ -3391,6 +3443,7 @@ export namespace Meta {
|
|
|
3391
3443
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
3392
3444
|
* @param property_name the name of the animatable property to retrieve
|
|
3393
3445
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
3446
|
+
* @since 1.4
|
|
3394
3447
|
*/
|
|
3395
3448
|
get_initial_state(property_name: string, value: GObject.Value | any): void;
|
|
3396
3449
|
|
|
@@ -3408,6 +3461,7 @@ export namespace Meta {
|
|
|
3408
3461
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
3409
3462
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
3410
3463
|
* @returns `true` if the interpolation was successful, and `false` otherwise
|
|
3464
|
+
* @since 1.8
|
|
3411
3465
|
*/
|
|
3412
3466
|
interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, unknown];
|
|
3413
3467
|
|
|
@@ -3415,6 +3469,7 @@ export namespace Meta {
|
|
|
3415
3469
|
* Sets the current state of `property_name` to `value`
|
|
3416
3470
|
* @param property_name the name of the animatable property to set
|
|
3417
3471
|
* @param value the value of the animatable property to set
|
|
3472
|
+
* @since 1.4
|
|
3418
3473
|
*/
|
|
3419
3474
|
set_final_state(property_name: string, value: GObject.Value | any): void;
|
|
3420
3475
|
|
|
@@ -3432,6 +3487,7 @@ export namespace Meta {
|
|
|
3432
3487
|
/**
|
|
3433
3488
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
3434
3489
|
* @param property_name the name of the animatable property to find
|
|
3490
|
+
* @since 1.4
|
|
3435
3491
|
* @virtual
|
|
3436
3492
|
*/
|
|
3437
3493
|
vfunc_find_property(property_name: string): GObject.ParamSpec;
|
|
@@ -3440,6 +3496,7 @@ export namespace Meta {
|
|
|
3440
3496
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
3441
3497
|
* @param property_name the name of the animatable property to retrieve
|
|
3442
3498
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
3499
|
+
* @since 1.4
|
|
3443
3500
|
* @virtual
|
|
3444
3501
|
*/
|
|
3445
3502
|
vfunc_get_initial_state(property_name: string, value: unknown): void;
|
|
@@ -3457,6 +3514,7 @@ export namespace Meta {
|
|
|
3457
3514
|
* @param property_name the name of the property to interpolate
|
|
3458
3515
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
3459
3516
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
3517
|
+
* @since 1.8
|
|
3460
3518
|
* @virtual
|
|
3461
3519
|
*/
|
|
3462
3520
|
vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value | any];
|
|
@@ -3465,6 +3523,7 @@ export namespace Meta {
|
|
|
3465
3523
|
* Sets the current state of `property_name` to `value`
|
|
3466
3524
|
* @param property_name the name of the animatable property to set
|
|
3467
3525
|
* @param value the value of the animatable property to set
|
|
3526
|
+
* @since 1.4
|
|
3468
3527
|
* @virtual
|
|
3469
3528
|
*/
|
|
3470
3529
|
vfunc_set_final_state(property_name: string, value: unknown): void;
|
|
@@ -3479,6 +3538,8 @@ export namespace Meta {
|
|
|
3479
3538
|
* deprecated virtual function. The default implementation will
|
|
3480
3539
|
* call `clutter_actor_add_child()`.
|
|
3481
3540
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3541
|
+
* @since 0.4
|
|
3542
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3482
3543
|
*/
|
|
3483
3544
|
add_actor(actor: Clutter.Actor): void;
|
|
3484
3545
|
|
|
@@ -3493,6 +3554,7 @@ export namespace Meta {
|
|
|
3493
3554
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
3494
3555
|
* @param property the name of the property to set.
|
|
3495
3556
|
* @param value the value.
|
|
3557
|
+
* @since 0.8
|
|
3496
3558
|
*/
|
|
3497
3559
|
child_get_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
3498
3560
|
|
|
@@ -3502,6 +3564,7 @@ export namespace Meta {
|
|
|
3502
3564
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
3503
3565
|
* @param child a {@link Clutter.Actor}
|
|
3504
3566
|
* @param pspec a {@link GObject.ParamSpec}
|
|
3567
|
+
* @since 1.6
|
|
3505
3568
|
*/
|
|
3506
3569
|
child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
3507
3570
|
|
|
@@ -3510,6 +3573,7 @@ export namespace Meta {
|
|
|
3510
3573
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
3511
3574
|
* @param property the name of the property to set.
|
|
3512
3575
|
* @param value the value.
|
|
3576
|
+
* @since 0.8
|
|
3513
3577
|
*/
|
|
3514
3578
|
child_set_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
3515
3579
|
|
|
@@ -3524,6 +3588,7 @@ export namespace Meta {
|
|
|
3524
3588
|
*
|
|
3525
3589
|
* Applications should not call this function.
|
|
3526
3590
|
* @param actor a {@link Clutter.Actor}
|
|
3591
|
+
* @since 1.2
|
|
3527
3592
|
*/
|
|
3528
3593
|
create_child_meta(actor: Clutter.Actor): void;
|
|
3529
3594
|
|
|
@@ -3537,6 +3602,7 @@ export namespace Meta {
|
|
|
3537
3602
|
*
|
|
3538
3603
|
* Applications should not call this function.
|
|
3539
3604
|
* @param actor a {@link Clutter.Actor}
|
|
3605
|
+
* @since 1.2
|
|
3540
3606
|
*/
|
|
3541
3607
|
destroy_child_meta(actor: Clutter.Actor): void;
|
|
3542
3608
|
|
|
@@ -3545,6 +3611,7 @@ export namespace Meta {
|
|
|
3545
3611
|
* into any child container.
|
|
3546
3612
|
* @param child_name the name of the requested child.
|
|
3547
3613
|
* @returns The child actor with the requested name, or `null` if no actor with that name was found.
|
|
3614
|
+
* @since 0.6
|
|
3548
3615
|
*/
|
|
3549
3616
|
find_child_by_name(child_name: string): Clutter.Actor;
|
|
3550
3617
|
|
|
@@ -3553,12 +3620,15 @@ export namespace Meta {
|
|
|
3553
3620
|
* `container` specific state for `actor`.
|
|
3554
3621
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
3555
3622
|
* @returns the {@link Clutter.ChildMeta} for the `actor` child of `container` or `null` if the specifiec actor does not exist or the container is not configured to provide {@link Clutter.ChildMeta}<!-- -->s
|
|
3623
|
+
* @since 0.8
|
|
3556
3624
|
*/
|
|
3557
3625
|
get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
3558
3626
|
|
|
3559
3627
|
/**
|
|
3560
3628
|
* Retrieves all the children of `container`.
|
|
3561
3629
|
* @returns a list of {@link Clutter.Actor}<!-- -->s. Use `g_list_free()` on the returned list when done.
|
|
3630
|
+
* @since 0.4
|
|
3631
|
+
* @deprecated since 1.10: Use `clutter_actor_get_children()` instead.
|
|
3562
3632
|
*/
|
|
3563
3633
|
get_children(): Clutter.Actor[];
|
|
3564
3634
|
|
|
@@ -3570,6 +3640,8 @@ export namespace Meta {
|
|
|
3570
3640
|
* `clutter_actor_set_child_below_sibling()`.
|
|
3571
3641
|
* @param actor the actor to raise
|
|
3572
3642
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
3643
|
+
* @since 0.6
|
|
3644
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
3573
3645
|
*/
|
|
3574
3646
|
lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
3575
3647
|
|
|
@@ -3581,6 +3653,8 @@ export namespace Meta {
|
|
|
3581
3653
|
* `clutter_actor_set_child_above_sibling()`.
|
|
3582
3654
|
* @param actor the actor to raise
|
|
3583
3655
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
3656
|
+
* @since 0.6
|
|
3657
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
3584
3658
|
*/
|
|
3585
3659
|
raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
3586
3660
|
|
|
@@ -3594,12 +3668,16 @@ export namespace Meta {
|
|
|
3594
3668
|
* deprecated virtual function. The default implementation will call
|
|
3595
3669
|
* `clutter_actor_remove_child()`.
|
|
3596
3670
|
* @param actor a {@link Clutter.Actor}
|
|
3671
|
+
* @since 0.4
|
|
3672
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3597
3673
|
*/
|
|
3598
3674
|
remove_actor(actor: Clutter.Actor): void;
|
|
3599
3675
|
|
|
3600
3676
|
/**
|
|
3601
3677
|
* Sorts a container's children using their depth. This function should not
|
|
3602
3678
|
* be normally used by applications.
|
|
3679
|
+
* @since 0.6
|
|
3680
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
3603
3681
|
*/
|
|
3604
3682
|
sort_depth_order(): void;
|
|
3605
3683
|
|
|
@@ -3625,6 +3703,8 @@ export namespace Meta {
|
|
|
3625
3703
|
* deprecated virtual function. The default implementation will
|
|
3626
3704
|
* call `clutter_actor_add_child()`.
|
|
3627
3705
|
* @param actor the first {@link Clutter.Actor} to add
|
|
3706
|
+
* @since 0.4
|
|
3707
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
3628
3708
|
* @virtual
|
|
3629
3709
|
*/
|
|
3630
3710
|
vfunc_add(actor: Clutter.Actor): void;
|
|
@@ -3635,6 +3715,7 @@ export namespace Meta {
|
|
|
3635
3715
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
3636
3716
|
* @param child a {@link Clutter.Actor}
|
|
3637
3717
|
* @param pspec a {@link GObject.ParamSpec}
|
|
3718
|
+
* @since 1.6
|
|
3638
3719
|
* @virtual
|
|
3639
3720
|
*/
|
|
3640
3721
|
vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
@@ -3650,6 +3731,7 @@ export namespace Meta {
|
|
|
3650
3731
|
*
|
|
3651
3732
|
* Applications should not call this function.
|
|
3652
3733
|
* @param actor a {@link Clutter.Actor}
|
|
3734
|
+
* @since 1.2
|
|
3653
3735
|
* @virtual
|
|
3654
3736
|
*/
|
|
3655
3737
|
vfunc_create_child_meta(actor: Clutter.Actor): void;
|
|
@@ -3664,6 +3746,7 @@ export namespace Meta {
|
|
|
3664
3746
|
*
|
|
3665
3747
|
* Applications should not call this function.
|
|
3666
3748
|
* @param actor a {@link Clutter.Actor}
|
|
3749
|
+
* @since 1.2
|
|
3667
3750
|
* @virtual
|
|
3668
3751
|
*/
|
|
3669
3752
|
vfunc_destroy_child_meta(actor: Clutter.Actor): void;
|
|
@@ -3672,6 +3755,7 @@ export namespace Meta {
|
|
|
3672
3755
|
* Retrieves the {@link Clutter.ChildMeta} which contains the data about the
|
|
3673
3756
|
* `container` specific state for `actor`.
|
|
3674
3757
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
3758
|
+
* @since 0.8
|
|
3675
3759
|
* @virtual
|
|
3676
3760
|
*/
|
|
3677
3761
|
vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
@@ -3684,6 +3768,8 @@ export namespace Meta {
|
|
|
3684
3768
|
* `clutter_actor_set_child_below_sibling()`.
|
|
3685
3769
|
* @param actor the actor to raise
|
|
3686
3770
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
3771
|
+
* @since 0.6
|
|
3772
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
3687
3773
|
* @virtual
|
|
3688
3774
|
*/
|
|
3689
3775
|
vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -3696,6 +3782,8 @@ export namespace Meta {
|
|
|
3696
3782
|
* `clutter_actor_set_child_above_sibling()`.
|
|
3697
3783
|
* @param actor the actor to raise
|
|
3698
3784
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
3785
|
+
* @since 0.6
|
|
3786
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
3699
3787
|
* @virtual
|
|
3700
3788
|
*/
|
|
3701
3789
|
vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -3710,6 +3798,8 @@ export namespace Meta {
|
|
|
3710
3798
|
* deprecated virtual function. The default implementation will call
|
|
3711
3799
|
* `clutter_actor_remove_child()`.
|
|
3712
3800
|
* @param actor a {@link Clutter.Actor}
|
|
3801
|
+
* @since 0.4
|
|
3802
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
3713
3803
|
* @virtual
|
|
3714
3804
|
*/
|
|
3715
3805
|
vfunc_remove(actor: Clutter.Actor): void;
|
|
@@ -3717,6 +3807,8 @@ export namespace Meta {
|
|
|
3717
3807
|
/**
|
|
3718
3808
|
* Sorts a container's children using their depth. This function should not
|
|
3719
3809
|
* be normally used by applications.
|
|
3810
|
+
* @since 0.6
|
|
3811
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
3720
3812
|
* @virtual
|
|
3721
3813
|
*/
|
|
3722
3814
|
vfunc_sort_depth_order(): void;
|
|
@@ -3724,6 +3816,7 @@ export namespace Meta {
|
|
|
3724
3816
|
/**
|
|
3725
3817
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
3726
3818
|
* @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
|
|
3819
|
+
* @since 0.6
|
|
3727
3820
|
*/
|
|
3728
3821
|
get_id(): string;
|
|
3729
3822
|
|
|
@@ -3735,6 +3828,7 @@ export namespace Meta {
|
|
|
3735
3828
|
* @param name the name of the node
|
|
3736
3829
|
* @param node the JSON node to be parsed
|
|
3737
3830
|
* @returns `true` if the node was successfully parsed, `false` otherwise.
|
|
3831
|
+
* @since 0.6
|
|
3738
3832
|
*/
|
|
3739
3833
|
parse_custom_node(script: Clutter.Script, value: GObject.Value | any, name: string, node: Json.Node): boolean;
|
|
3740
3834
|
|
|
@@ -3744,6 +3838,7 @@ export namespace Meta {
|
|
|
3744
3838
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
3745
3839
|
* @param name the name of the property
|
|
3746
3840
|
* @param value the value of the property
|
|
3841
|
+
* @since 0.6
|
|
3747
3842
|
*/
|
|
3748
3843
|
set_custom_property(script: Clutter.Script, name: string, value: GObject.Value | any): void;
|
|
3749
3844
|
|
|
@@ -3755,11 +3850,13 @@ export namespace Meta {
|
|
|
3755
3850
|
* define a unique name for an object constructable using the UI
|
|
3756
3851
|
* definition language parsed by {@link Clutter.Script}.
|
|
3757
3852
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
3853
|
+
* @since 0.6
|
|
3758
3854
|
*/
|
|
3759
3855
|
set_id(id_: string): void;
|
|
3760
3856
|
|
|
3761
3857
|
/**
|
|
3762
3858
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
3859
|
+
* @since 0.6
|
|
3763
3860
|
* @virtual
|
|
3764
3861
|
*/
|
|
3765
3862
|
vfunc_get_id(): string;
|
|
@@ -3771,6 +3868,7 @@ export namespace Meta {
|
|
|
3771
3868
|
* @param value the generic value to be set
|
|
3772
3869
|
* @param name the name of the node
|
|
3773
3870
|
* @param node the JSON node to be parsed
|
|
3871
|
+
* @since 0.6
|
|
3774
3872
|
* @virtual
|
|
3775
3873
|
*/
|
|
3776
3874
|
vfunc_parse_custom_node(script: Clutter.Script, value: unknown, name: string, node: Json.Node): boolean;
|
|
@@ -3781,6 +3879,7 @@ export namespace Meta {
|
|
|
3781
3879
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
3782
3880
|
* @param name the name of the property
|
|
3783
3881
|
* @param value the value of the property
|
|
3882
|
+
* @since 0.6
|
|
3784
3883
|
* @virtual
|
|
3785
3884
|
*/
|
|
3786
3885
|
vfunc_set_custom_property(script: Clutter.Script, name: string, value: unknown): void;
|
|
@@ -3793,6 +3892,7 @@ export namespace Meta {
|
|
|
3793
3892
|
* define a unique name for an object constructable using the UI
|
|
3794
3893
|
* definition language parsed by {@link Clutter.Script}.
|
|
3795
3894
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
3895
|
+
* @since 0.6
|
|
3796
3896
|
* @virtual
|
|
3797
3897
|
*/
|
|
3798
3898
|
vfunc_set_id(id_: string): void;
|
|
@@ -5828,6 +5928,7 @@ export namespace Meta {
|
|
|
5828
5928
|
* would have regardless of the allocation of the actor that is painting it,
|
|
5829
5929
|
* for instance the size of an image data.
|
|
5830
5930
|
* @returns `true` if the content has a preferred size, and `false` otherwise
|
|
5931
|
+
* @since 1.10
|
|
5831
5932
|
*/
|
|
5832
5933
|
get_preferred_size(): [boolean, number, number];
|
|
5833
5934
|
|
|
@@ -5837,6 +5938,7 @@ export namespace Meta {
|
|
|
5837
5938
|
* This function should be called by {@link Clutter.Content} implementations when
|
|
5838
5939
|
* they change the way a the content should be painted regardless of the
|
|
5839
5940
|
* actor state.
|
|
5941
|
+
* @since 1.10
|
|
5840
5942
|
*/
|
|
5841
5943
|
invalidate(): void;
|
|
5842
5944
|
|
|
@@ -5867,6 +5969,7 @@ export namespace Meta {
|
|
|
5867
5969
|
* The natural size of a {@link Clutter.Content} is defined as the size the content
|
|
5868
5970
|
* would have regardless of the allocation of the actor that is painting it,
|
|
5869
5971
|
* for instance the size of an image data.
|
|
5972
|
+
* @since 1.10
|
|
5870
5973
|
* @virtual
|
|
5871
5974
|
*/
|
|
5872
5975
|
vfunc_get_preferred_size(): [boolean, number, number];
|
|
@@ -5877,6 +5980,7 @@ export namespace Meta {
|
|
|
5877
5980
|
* This function should be called by {@link Clutter.Content} implementations when
|
|
5878
5981
|
* they change the way a the content should be painted regardless of the
|
|
5879
5982
|
* actor state.
|
|
5983
|
+
* @since 1.10
|
|
5880
5984
|
* @virtual
|
|
5881
5985
|
*/
|
|
5882
5986
|
vfunc_invalidate(): void;
|
|
@@ -7406,6 +7510,7 @@ export namespace Meta {
|
|
|
7406
7510
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
7407
7511
|
* @param property_name the name of the animatable property to find
|
|
7408
7512
|
* @returns The {@link GObject.ParamSpec} for the given property or `null`
|
|
7513
|
+
* @since 1.4
|
|
7409
7514
|
*/
|
|
7410
7515
|
find_property(property_name: string): GObject.ParamSpec;
|
|
7411
7516
|
|
|
@@ -7413,6 +7518,7 @@ export namespace Meta {
|
|
|
7413
7518
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
7414
7519
|
* @param property_name the name of the animatable property to retrieve
|
|
7415
7520
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
7521
|
+
* @since 1.4
|
|
7416
7522
|
*/
|
|
7417
7523
|
get_initial_state(property_name: string, value: GObject.Value | any): void;
|
|
7418
7524
|
|
|
@@ -7430,6 +7536,7 @@ export namespace Meta {
|
|
|
7430
7536
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
7431
7537
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
7432
7538
|
* @returns `true` if the interpolation was successful, and `false` otherwise
|
|
7539
|
+
* @since 1.8
|
|
7433
7540
|
*/
|
|
7434
7541
|
interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, unknown];
|
|
7435
7542
|
|
|
@@ -7437,6 +7544,7 @@ export namespace Meta {
|
|
|
7437
7544
|
* Sets the current state of `property_name` to `value`
|
|
7438
7545
|
* @param property_name the name of the animatable property to set
|
|
7439
7546
|
* @param value the value of the animatable property to set
|
|
7547
|
+
* @since 1.4
|
|
7440
7548
|
*/
|
|
7441
7549
|
set_final_state(property_name: string, value: GObject.Value | any): void;
|
|
7442
7550
|
|
|
@@ -7454,6 +7562,7 @@ export namespace Meta {
|
|
|
7454
7562
|
/**
|
|
7455
7563
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
7456
7564
|
* @param property_name the name of the animatable property to find
|
|
7565
|
+
* @since 1.4
|
|
7457
7566
|
* @virtual
|
|
7458
7567
|
*/
|
|
7459
7568
|
vfunc_find_property(property_name: string): GObject.ParamSpec;
|
|
@@ -7462,6 +7571,7 @@ export namespace Meta {
|
|
|
7462
7571
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
7463
7572
|
* @param property_name the name of the animatable property to retrieve
|
|
7464
7573
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
7574
|
+
* @since 1.4
|
|
7465
7575
|
* @virtual
|
|
7466
7576
|
*/
|
|
7467
7577
|
vfunc_get_initial_state(property_name: string, value: unknown): void;
|
|
@@ -7479,6 +7589,7 @@ export namespace Meta {
|
|
|
7479
7589
|
* @param property_name the name of the property to interpolate
|
|
7480
7590
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
7481
7591
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
7592
|
+
* @since 1.8
|
|
7482
7593
|
* @virtual
|
|
7483
7594
|
*/
|
|
7484
7595
|
vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value | any];
|
|
@@ -7487,6 +7598,7 @@ export namespace Meta {
|
|
|
7487
7598
|
* Sets the current state of `property_name` to `value`
|
|
7488
7599
|
* @param property_name the name of the animatable property to set
|
|
7489
7600
|
* @param value the value of the animatable property to set
|
|
7601
|
+
* @since 1.4
|
|
7490
7602
|
* @virtual
|
|
7491
7603
|
*/
|
|
7492
7604
|
vfunc_set_final_state(property_name: string, value: unknown): void;
|
|
@@ -7501,6 +7613,8 @@ export namespace Meta {
|
|
|
7501
7613
|
* deprecated virtual function. The default implementation will
|
|
7502
7614
|
* call `clutter_actor_add_child()`.
|
|
7503
7615
|
* @param actor the first {@link Clutter.Actor} to add
|
|
7616
|
+
* @since 0.4
|
|
7617
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
7504
7618
|
*/
|
|
7505
7619
|
add_actor(actor: Clutter.Actor): void;
|
|
7506
7620
|
|
|
@@ -7515,6 +7629,7 @@ export namespace Meta {
|
|
|
7515
7629
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
7516
7630
|
* @param property the name of the property to set.
|
|
7517
7631
|
* @param value the value.
|
|
7632
|
+
* @since 0.8
|
|
7518
7633
|
*/
|
|
7519
7634
|
child_get_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
7520
7635
|
|
|
@@ -7524,6 +7639,7 @@ export namespace Meta {
|
|
|
7524
7639
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
7525
7640
|
* @param child a {@link Clutter.Actor}
|
|
7526
7641
|
* @param pspec a {@link GObject.ParamSpec}
|
|
7642
|
+
* @since 1.6
|
|
7527
7643
|
*/
|
|
7528
7644
|
child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
7529
7645
|
|
|
@@ -7532,6 +7648,7 @@ export namespace Meta {
|
|
|
7532
7648
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
7533
7649
|
* @param property the name of the property to set.
|
|
7534
7650
|
* @param value the value.
|
|
7651
|
+
* @since 0.8
|
|
7535
7652
|
*/
|
|
7536
7653
|
child_set_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
7537
7654
|
|
|
@@ -7546,6 +7663,7 @@ export namespace Meta {
|
|
|
7546
7663
|
*
|
|
7547
7664
|
* Applications should not call this function.
|
|
7548
7665
|
* @param actor a {@link Clutter.Actor}
|
|
7666
|
+
* @since 1.2
|
|
7549
7667
|
*/
|
|
7550
7668
|
create_child_meta(actor: Clutter.Actor): void;
|
|
7551
7669
|
|
|
@@ -7559,6 +7677,7 @@ export namespace Meta {
|
|
|
7559
7677
|
*
|
|
7560
7678
|
* Applications should not call this function.
|
|
7561
7679
|
* @param actor a {@link Clutter.Actor}
|
|
7680
|
+
* @since 1.2
|
|
7562
7681
|
*/
|
|
7563
7682
|
destroy_child_meta(actor: Clutter.Actor): void;
|
|
7564
7683
|
|
|
@@ -7567,6 +7686,7 @@ export namespace Meta {
|
|
|
7567
7686
|
* into any child container.
|
|
7568
7687
|
* @param child_name the name of the requested child.
|
|
7569
7688
|
* @returns The child actor with the requested name, or `null` if no actor with that name was found.
|
|
7689
|
+
* @since 0.6
|
|
7570
7690
|
*/
|
|
7571
7691
|
find_child_by_name(child_name: string): Clutter.Actor;
|
|
7572
7692
|
|
|
@@ -7575,12 +7695,15 @@ export namespace Meta {
|
|
|
7575
7695
|
* `container` specific state for `actor`.
|
|
7576
7696
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
7577
7697
|
* @returns the {@link Clutter.ChildMeta} for the `actor` child of `container` or `null` if the specifiec actor does not exist or the container is not configured to provide {@link Clutter.ChildMeta}<!-- -->s
|
|
7698
|
+
* @since 0.8
|
|
7578
7699
|
*/
|
|
7579
7700
|
get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
7580
7701
|
|
|
7581
7702
|
/**
|
|
7582
7703
|
* Retrieves all the children of `container`.
|
|
7583
7704
|
* @returns a list of {@link Clutter.Actor}<!-- -->s. Use `g_list_free()` on the returned list when done.
|
|
7705
|
+
* @since 0.4
|
|
7706
|
+
* @deprecated since 1.10: Use `clutter_actor_get_children()` instead.
|
|
7584
7707
|
*/
|
|
7585
7708
|
get_children(): Clutter.Actor[];
|
|
7586
7709
|
|
|
@@ -7592,6 +7715,8 @@ export namespace Meta {
|
|
|
7592
7715
|
* `clutter_actor_set_child_below_sibling()`.
|
|
7593
7716
|
* @param actor the actor to raise
|
|
7594
7717
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
7718
|
+
* @since 0.6
|
|
7719
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
7595
7720
|
*/
|
|
7596
7721
|
lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
7597
7722
|
|
|
@@ -7603,6 +7728,8 @@ export namespace Meta {
|
|
|
7603
7728
|
* `clutter_actor_set_child_above_sibling()`.
|
|
7604
7729
|
* @param actor the actor to raise
|
|
7605
7730
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
7731
|
+
* @since 0.6
|
|
7732
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
7606
7733
|
*/
|
|
7607
7734
|
raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
7608
7735
|
|
|
@@ -7616,12 +7743,16 @@ export namespace Meta {
|
|
|
7616
7743
|
* deprecated virtual function. The default implementation will call
|
|
7617
7744
|
* `clutter_actor_remove_child()`.
|
|
7618
7745
|
* @param actor a {@link Clutter.Actor}
|
|
7746
|
+
* @since 0.4
|
|
7747
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
7619
7748
|
*/
|
|
7620
7749
|
remove_actor(actor: Clutter.Actor): void;
|
|
7621
7750
|
|
|
7622
7751
|
/**
|
|
7623
7752
|
* Sorts a container's children using their depth. This function should not
|
|
7624
7753
|
* be normally used by applications.
|
|
7754
|
+
* @since 0.6
|
|
7755
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
7625
7756
|
*/
|
|
7626
7757
|
sort_depth_order(): void;
|
|
7627
7758
|
|
|
@@ -7647,6 +7778,8 @@ export namespace Meta {
|
|
|
7647
7778
|
* deprecated virtual function. The default implementation will
|
|
7648
7779
|
* call `clutter_actor_add_child()`.
|
|
7649
7780
|
* @param actor the first {@link Clutter.Actor} to add
|
|
7781
|
+
* @since 0.4
|
|
7782
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
7650
7783
|
* @virtual
|
|
7651
7784
|
*/
|
|
7652
7785
|
vfunc_add(actor: Clutter.Actor): void;
|
|
@@ -7657,6 +7790,7 @@ export namespace Meta {
|
|
|
7657
7790
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
7658
7791
|
* @param child a {@link Clutter.Actor}
|
|
7659
7792
|
* @param pspec a {@link GObject.ParamSpec}
|
|
7793
|
+
* @since 1.6
|
|
7660
7794
|
* @virtual
|
|
7661
7795
|
*/
|
|
7662
7796
|
vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
@@ -7672,6 +7806,7 @@ export namespace Meta {
|
|
|
7672
7806
|
*
|
|
7673
7807
|
* Applications should not call this function.
|
|
7674
7808
|
* @param actor a {@link Clutter.Actor}
|
|
7809
|
+
* @since 1.2
|
|
7675
7810
|
* @virtual
|
|
7676
7811
|
*/
|
|
7677
7812
|
vfunc_create_child_meta(actor: Clutter.Actor): void;
|
|
@@ -7686,6 +7821,7 @@ export namespace Meta {
|
|
|
7686
7821
|
*
|
|
7687
7822
|
* Applications should not call this function.
|
|
7688
7823
|
* @param actor a {@link Clutter.Actor}
|
|
7824
|
+
* @since 1.2
|
|
7689
7825
|
* @virtual
|
|
7690
7826
|
*/
|
|
7691
7827
|
vfunc_destroy_child_meta(actor: Clutter.Actor): void;
|
|
@@ -7694,6 +7830,7 @@ export namespace Meta {
|
|
|
7694
7830
|
* Retrieves the {@link Clutter.ChildMeta} which contains the data about the
|
|
7695
7831
|
* `container` specific state for `actor`.
|
|
7696
7832
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
7833
|
+
* @since 0.8
|
|
7697
7834
|
* @virtual
|
|
7698
7835
|
*/
|
|
7699
7836
|
vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
@@ -7706,6 +7843,8 @@ export namespace Meta {
|
|
|
7706
7843
|
* `clutter_actor_set_child_below_sibling()`.
|
|
7707
7844
|
* @param actor the actor to raise
|
|
7708
7845
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
7846
|
+
* @since 0.6
|
|
7847
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
7709
7848
|
* @virtual
|
|
7710
7849
|
*/
|
|
7711
7850
|
vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -7718,6 +7857,8 @@ export namespace Meta {
|
|
|
7718
7857
|
* `clutter_actor_set_child_above_sibling()`.
|
|
7719
7858
|
* @param actor the actor to raise
|
|
7720
7859
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
7860
|
+
* @since 0.6
|
|
7861
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
7721
7862
|
* @virtual
|
|
7722
7863
|
*/
|
|
7723
7864
|
vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -7732,6 +7873,8 @@ export namespace Meta {
|
|
|
7732
7873
|
* deprecated virtual function. The default implementation will call
|
|
7733
7874
|
* `clutter_actor_remove_child()`.
|
|
7734
7875
|
* @param actor a {@link Clutter.Actor}
|
|
7876
|
+
* @since 0.4
|
|
7877
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
7735
7878
|
* @virtual
|
|
7736
7879
|
*/
|
|
7737
7880
|
vfunc_remove(actor: Clutter.Actor): void;
|
|
@@ -7739,6 +7882,8 @@ export namespace Meta {
|
|
|
7739
7882
|
/**
|
|
7740
7883
|
* Sorts a container's children using their depth. This function should not
|
|
7741
7884
|
* be normally used by applications.
|
|
7885
|
+
* @since 0.6
|
|
7886
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
7742
7887
|
* @virtual
|
|
7743
7888
|
*/
|
|
7744
7889
|
vfunc_sort_depth_order(): void;
|
|
@@ -7746,6 +7891,7 @@ export namespace Meta {
|
|
|
7746
7891
|
/**
|
|
7747
7892
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
7748
7893
|
* @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
|
|
7894
|
+
* @since 0.6
|
|
7749
7895
|
*/
|
|
7750
7896
|
get_id(): string;
|
|
7751
7897
|
|
|
@@ -7757,6 +7903,7 @@ export namespace Meta {
|
|
|
7757
7903
|
* @param name the name of the node
|
|
7758
7904
|
* @param node the JSON node to be parsed
|
|
7759
7905
|
* @returns `true` if the node was successfully parsed, `false` otherwise.
|
|
7906
|
+
* @since 0.6
|
|
7760
7907
|
*/
|
|
7761
7908
|
parse_custom_node(script: Clutter.Script, value: GObject.Value | any, name: string, node: Json.Node): boolean;
|
|
7762
7909
|
|
|
@@ -7766,6 +7913,7 @@ export namespace Meta {
|
|
|
7766
7913
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
7767
7914
|
* @param name the name of the property
|
|
7768
7915
|
* @param value the value of the property
|
|
7916
|
+
* @since 0.6
|
|
7769
7917
|
*/
|
|
7770
7918
|
set_custom_property(script: Clutter.Script, name: string, value: GObject.Value | any): void;
|
|
7771
7919
|
|
|
@@ -7777,11 +7925,13 @@ export namespace Meta {
|
|
|
7777
7925
|
* define a unique name for an object constructable using the UI
|
|
7778
7926
|
* definition language parsed by {@link Clutter.Script}.
|
|
7779
7927
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
7928
|
+
* @since 0.6
|
|
7780
7929
|
*/
|
|
7781
7930
|
set_id(id_: string): void;
|
|
7782
7931
|
|
|
7783
7932
|
/**
|
|
7784
7933
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
7934
|
+
* @since 0.6
|
|
7785
7935
|
* @virtual
|
|
7786
7936
|
*/
|
|
7787
7937
|
vfunc_get_id(): string;
|
|
@@ -7793,6 +7943,7 @@ export namespace Meta {
|
|
|
7793
7943
|
* @param value the generic value to be set
|
|
7794
7944
|
* @param name the name of the node
|
|
7795
7945
|
* @param node the JSON node to be parsed
|
|
7946
|
+
* @since 0.6
|
|
7796
7947
|
* @virtual
|
|
7797
7948
|
*/
|
|
7798
7949
|
vfunc_parse_custom_node(script: Clutter.Script, value: unknown, name: string, node: Json.Node): boolean;
|
|
@@ -7803,6 +7954,7 @@ export namespace Meta {
|
|
|
7803
7954
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
7804
7955
|
* @param name the name of the property
|
|
7805
7956
|
* @param value the value of the property
|
|
7957
|
+
* @since 0.6
|
|
7806
7958
|
* @virtual
|
|
7807
7959
|
*/
|
|
7808
7960
|
vfunc_set_custom_property(script: Clutter.Script, name: string, value: unknown): void;
|
|
@@ -7815,6 +7967,7 @@ export namespace Meta {
|
|
|
7815
7967
|
* define a unique name for an object constructable using the UI
|
|
7816
7968
|
* definition language parsed by {@link Clutter.Script}.
|
|
7817
7969
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
7970
|
+
* @since 0.6
|
|
7818
7971
|
* @virtual
|
|
7819
7972
|
*/
|
|
7820
7973
|
vfunc_set_id(id_: string): void;
|
|
@@ -7948,6 +8101,7 @@ export namespace Meta {
|
|
|
7948
8101
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
7949
8102
|
* @param property_name the name of the animatable property to find
|
|
7950
8103
|
* @returns The {@link GObject.ParamSpec} for the given property or `null`
|
|
8104
|
+
* @since 1.4
|
|
7951
8105
|
*/
|
|
7952
8106
|
find_property(property_name: string): GObject.ParamSpec;
|
|
7953
8107
|
|
|
@@ -7955,6 +8109,7 @@ export namespace Meta {
|
|
|
7955
8109
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
7956
8110
|
* @param property_name the name of the animatable property to retrieve
|
|
7957
8111
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
8112
|
+
* @since 1.4
|
|
7958
8113
|
*/
|
|
7959
8114
|
get_initial_state(property_name: string, value: GObject.Value | any): void;
|
|
7960
8115
|
|
|
@@ -7972,6 +8127,7 @@ export namespace Meta {
|
|
|
7972
8127
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
7973
8128
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
7974
8129
|
* @returns `true` if the interpolation was successful, and `false` otherwise
|
|
8130
|
+
* @since 1.8
|
|
7975
8131
|
*/
|
|
7976
8132
|
interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, unknown];
|
|
7977
8133
|
|
|
@@ -7979,6 +8135,7 @@ export namespace Meta {
|
|
|
7979
8135
|
* Sets the current state of `property_name` to `value`
|
|
7980
8136
|
* @param property_name the name of the animatable property to set
|
|
7981
8137
|
* @param value the value of the animatable property to set
|
|
8138
|
+
* @since 1.4
|
|
7982
8139
|
*/
|
|
7983
8140
|
set_final_state(property_name: string, value: GObject.Value | any): void;
|
|
7984
8141
|
|
|
@@ -7996,6 +8153,7 @@ export namespace Meta {
|
|
|
7996
8153
|
/**
|
|
7997
8154
|
* Finds the {@link GObject.ParamSpec} for `property_name`
|
|
7998
8155
|
* @param property_name the name of the animatable property to find
|
|
8156
|
+
* @since 1.4
|
|
7999
8157
|
* @virtual
|
|
8000
8158
|
*/
|
|
8001
8159
|
vfunc_find_property(property_name: string): GObject.ParamSpec;
|
|
@@ -8004,6 +8162,7 @@ export namespace Meta {
|
|
|
8004
8162
|
* Retrieves the current state of `property_name` and sets `value` with it
|
|
8005
8163
|
* @param property_name the name of the animatable property to retrieve
|
|
8006
8164
|
* @param value a {@link GObject.Value} initialized to the type of the property to retrieve
|
|
8165
|
+
* @since 1.4
|
|
8007
8166
|
* @virtual
|
|
8008
8167
|
*/
|
|
8009
8168
|
vfunc_get_initial_state(property_name: string, value: unknown): void;
|
|
@@ -8021,6 +8180,7 @@ export namespace Meta {
|
|
|
8021
8180
|
* @param property_name the name of the property to interpolate
|
|
8022
8181
|
* @param interval a {@link Clutter.Interval} with the animation range
|
|
8023
8182
|
* @param progress the progress to use to interpolate between the initial and final values of the `interval`
|
|
8183
|
+
* @since 1.8
|
|
8024
8184
|
* @virtual
|
|
8025
8185
|
*/
|
|
8026
8186
|
vfunc_interpolate_value(property_name: string, interval: Clutter.Interval, progress: number): [boolean, GObject.Value | any];
|
|
@@ -8029,6 +8189,7 @@ export namespace Meta {
|
|
|
8029
8189
|
* Sets the current state of `property_name` to `value`
|
|
8030
8190
|
* @param property_name the name of the animatable property to set
|
|
8031
8191
|
* @param value the value of the animatable property to set
|
|
8192
|
+
* @since 1.4
|
|
8032
8193
|
* @virtual
|
|
8033
8194
|
*/
|
|
8034
8195
|
vfunc_set_final_state(property_name: string, value: unknown): void;
|
|
@@ -8043,6 +8204,8 @@ export namespace Meta {
|
|
|
8043
8204
|
* deprecated virtual function. The default implementation will
|
|
8044
8205
|
* call `clutter_actor_add_child()`.
|
|
8045
8206
|
* @param actor the first {@link Clutter.Actor} to add
|
|
8207
|
+
* @since 0.4
|
|
8208
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
8046
8209
|
*/
|
|
8047
8210
|
add_actor(actor: Clutter.Actor): void;
|
|
8048
8211
|
|
|
@@ -8057,6 +8220,7 @@ export namespace Meta {
|
|
|
8057
8220
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
8058
8221
|
* @param property the name of the property to set.
|
|
8059
8222
|
* @param value the value.
|
|
8223
|
+
* @since 0.8
|
|
8060
8224
|
*/
|
|
8061
8225
|
child_get_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
8062
8226
|
|
|
@@ -8066,6 +8230,7 @@ export namespace Meta {
|
|
|
8066
8230
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
8067
8231
|
* @param child a {@link Clutter.Actor}
|
|
8068
8232
|
* @param pspec a {@link GObject.ParamSpec}
|
|
8233
|
+
* @since 1.6
|
|
8069
8234
|
*/
|
|
8070
8235
|
child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
8071
8236
|
|
|
@@ -8074,6 +8239,7 @@ export namespace Meta {
|
|
|
8074
8239
|
* @param child a {@link Clutter.Actor} that is a child of `container`.
|
|
8075
8240
|
* @param property the name of the property to set.
|
|
8076
8241
|
* @param value the value.
|
|
8242
|
+
* @since 0.8
|
|
8077
8243
|
*/
|
|
8078
8244
|
child_set_property(child: Clutter.Actor, property: string, value: GObject.Value | any): void;
|
|
8079
8245
|
|
|
@@ -8088,6 +8254,7 @@ export namespace Meta {
|
|
|
8088
8254
|
*
|
|
8089
8255
|
* Applications should not call this function.
|
|
8090
8256
|
* @param actor a {@link Clutter.Actor}
|
|
8257
|
+
* @since 1.2
|
|
8091
8258
|
*/
|
|
8092
8259
|
create_child_meta(actor: Clutter.Actor): void;
|
|
8093
8260
|
|
|
@@ -8101,6 +8268,7 @@ export namespace Meta {
|
|
|
8101
8268
|
*
|
|
8102
8269
|
* Applications should not call this function.
|
|
8103
8270
|
* @param actor a {@link Clutter.Actor}
|
|
8271
|
+
* @since 1.2
|
|
8104
8272
|
*/
|
|
8105
8273
|
destroy_child_meta(actor: Clutter.Actor): void;
|
|
8106
8274
|
|
|
@@ -8109,6 +8277,7 @@ export namespace Meta {
|
|
|
8109
8277
|
* into any child container.
|
|
8110
8278
|
* @param child_name the name of the requested child.
|
|
8111
8279
|
* @returns The child actor with the requested name, or `null` if no actor with that name was found.
|
|
8280
|
+
* @since 0.6
|
|
8112
8281
|
*/
|
|
8113
8282
|
find_child_by_name(child_name: string): Clutter.Actor;
|
|
8114
8283
|
|
|
@@ -8117,12 +8286,15 @@ export namespace Meta {
|
|
|
8117
8286
|
* `container` specific state for `actor`.
|
|
8118
8287
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
8119
8288
|
* @returns the {@link Clutter.ChildMeta} for the `actor` child of `container` or `null` if the specifiec actor does not exist or the container is not configured to provide {@link Clutter.ChildMeta}<!-- -->s
|
|
8289
|
+
* @since 0.8
|
|
8120
8290
|
*/
|
|
8121
8291
|
get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
8122
8292
|
|
|
8123
8293
|
/**
|
|
8124
8294
|
* Retrieves all the children of `container`.
|
|
8125
8295
|
* @returns a list of {@link Clutter.Actor}<!-- -->s. Use `g_list_free()` on the returned list when done.
|
|
8296
|
+
* @since 0.4
|
|
8297
|
+
* @deprecated since 1.10: Use `clutter_actor_get_children()` instead.
|
|
8126
8298
|
*/
|
|
8127
8299
|
get_children(): Clutter.Actor[];
|
|
8128
8300
|
|
|
@@ -8134,6 +8306,8 @@ export namespace Meta {
|
|
|
8134
8306
|
* `clutter_actor_set_child_below_sibling()`.
|
|
8135
8307
|
* @param actor the actor to raise
|
|
8136
8308
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
8309
|
+
* @since 0.6
|
|
8310
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
8137
8311
|
*/
|
|
8138
8312
|
lower_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
8139
8313
|
|
|
@@ -8145,6 +8319,8 @@ export namespace Meta {
|
|
|
8145
8319
|
* `clutter_actor_set_child_above_sibling()`.
|
|
8146
8320
|
* @param actor the actor to raise
|
|
8147
8321
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
8322
|
+
* @since 0.6
|
|
8323
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
8148
8324
|
*/
|
|
8149
8325
|
raise_child(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
8150
8326
|
|
|
@@ -8158,12 +8334,16 @@ export namespace Meta {
|
|
|
8158
8334
|
* deprecated virtual function. The default implementation will call
|
|
8159
8335
|
* `clutter_actor_remove_child()`.
|
|
8160
8336
|
* @param actor a {@link Clutter.Actor}
|
|
8337
|
+
* @since 0.4
|
|
8338
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
8161
8339
|
*/
|
|
8162
8340
|
remove_actor(actor: Clutter.Actor): void;
|
|
8163
8341
|
|
|
8164
8342
|
/**
|
|
8165
8343
|
* Sorts a container's children using their depth. This function should not
|
|
8166
8344
|
* be normally used by applications.
|
|
8345
|
+
* @since 0.6
|
|
8346
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
8167
8347
|
*/
|
|
8168
8348
|
sort_depth_order(): void;
|
|
8169
8349
|
|
|
@@ -8189,6 +8369,8 @@ export namespace Meta {
|
|
|
8189
8369
|
* deprecated virtual function. The default implementation will
|
|
8190
8370
|
* call `clutter_actor_add_child()`.
|
|
8191
8371
|
* @param actor the first {@link Clutter.Actor} to add
|
|
8372
|
+
* @since 0.4
|
|
8373
|
+
* @deprecated since 1.10: Use `clutter_actor_add_child()` instead.
|
|
8192
8374
|
* @virtual
|
|
8193
8375
|
*/
|
|
8194
8376
|
vfunc_add(actor: Clutter.Actor): void;
|
|
@@ -8199,6 +8381,7 @@ export namespace Meta {
|
|
|
8199
8381
|
* {@link Clutter.Container.SignalSignatures.child_notify | Clutter.Container::child-notify} signal.
|
|
8200
8382
|
* @param child a {@link Clutter.Actor}
|
|
8201
8383
|
* @param pspec a {@link GObject.ParamSpec}
|
|
8384
|
+
* @since 1.6
|
|
8202
8385
|
* @virtual
|
|
8203
8386
|
*/
|
|
8204
8387
|
vfunc_child_notify(child: Clutter.Actor, pspec: GObject.ParamSpec): void;
|
|
@@ -8214,6 +8397,7 @@ export namespace Meta {
|
|
|
8214
8397
|
*
|
|
8215
8398
|
* Applications should not call this function.
|
|
8216
8399
|
* @param actor a {@link Clutter.Actor}
|
|
8400
|
+
* @since 1.2
|
|
8217
8401
|
* @virtual
|
|
8218
8402
|
*/
|
|
8219
8403
|
vfunc_create_child_meta(actor: Clutter.Actor): void;
|
|
@@ -8228,6 +8412,7 @@ export namespace Meta {
|
|
|
8228
8412
|
*
|
|
8229
8413
|
* Applications should not call this function.
|
|
8230
8414
|
* @param actor a {@link Clutter.Actor}
|
|
8415
|
+
* @since 1.2
|
|
8231
8416
|
* @virtual
|
|
8232
8417
|
*/
|
|
8233
8418
|
vfunc_destroy_child_meta(actor: Clutter.Actor): void;
|
|
@@ -8236,6 +8421,7 @@ export namespace Meta {
|
|
|
8236
8421
|
* Retrieves the {@link Clutter.ChildMeta} which contains the data about the
|
|
8237
8422
|
* `container` specific state for `actor`.
|
|
8238
8423
|
* @param actor a {@link Clutter.Actor} that is a child of `container`.
|
|
8424
|
+
* @since 0.8
|
|
8239
8425
|
* @virtual
|
|
8240
8426
|
*/
|
|
8241
8427
|
vfunc_get_child_meta(actor: Clutter.Actor): Clutter.ChildMeta;
|
|
@@ -8248,6 +8434,8 @@ export namespace Meta {
|
|
|
8248
8434
|
* `clutter_actor_set_child_below_sibling()`.
|
|
8249
8435
|
* @param actor the actor to raise
|
|
8250
8436
|
* @param sibling the sibling to lower to, or `null` to lower to the bottom
|
|
8437
|
+
* @since 0.6
|
|
8438
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_below_sibling()` instead.
|
|
8251
8439
|
* @virtual
|
|
8252
8440
|
*/
|
|
8253
8441
|
vfunc_lower(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -8260,6 +8448,8 @@ export namespace Meta {
|
|
|
8260
8448
|
* `clutter_actor_set_child_above_sibling()`.
|
|
8261
8449
|
* @param actor the actor to raise
|
|
8262
8450
|
* @param sibling the sibling to raise to, or `null` to raise to the top
|
|
8451
|
+
* @since 0.6
|
|
8452
|
+
* @deprecated since 1.10: Use `clutter_actor_set_child_above_sibling()` instead.
|
|
8263
8453
|
* @virtual
|
|
8264
8454
|
*/
|
|
8265
8455
|
vfunc_raise(actor: Clutter.Actor, sibling: Clutter.Actor | null): void;
|
|
@@ -8274,6 +8464,8 @@ export namespace Meta {
|
|
|
8274
8464
|
* deprecated virtual function. The default implementation will call
|
|
8275
8465
|
* `clutter_actor_remove_child()`.
|
|
8276
8466
|
* @param actor a {@link Clutter.Actor}
|
|
8467
|
+
* @since 0.4
|
|
8468
|
+
* @deprecated since 1.10: Use `clutter_actor_remove_child()` instead.
|
|
8277
8469
|
* @virtual
|
|
8278
8470
|
*/
|
|
8279
8471
|
vfunc_remove(actor: Clutter.Actor): void;
|
|
@@ -8281,6 +8473,8 @@ export namespace Meta {
|
|
|
8281
8473
|
/**
|
|
8282
8474
|
* Sorts a container's children using their depth. This function should not
|
|
8283
8475
|
* be normally used by applications.
|
|
8476
|
+
* @since 0.6
|
|
8477
|
+
* @deprecated since 1.10: The {@link Clutter.ContainerIface}.sort_depth_order() virtual function should not be used any more; the default implementation in {@link Clutter.Container} does not do anything.
|
|
8284
8478
|
* @virtual
|
|
8285
8479
|
*/
|
|
8286
8480
|
vfunc_sort_depth_order(): void;
|
|
@@ -8288,6 +8482,7 @@ export namespace Meta {
|
|
|
8288
8482
|
/**
|
|
8289
8483
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
8290
8484
|
* @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
|
|
8485
|
+
* @since 0.6
|
|
8291
8486
|
*/
|
|
8292
8487
|
get_id(): string;
|
|
8293
8488
|
|
|
@@ -8299,6 +8494,7 @@ export namespace Meta {
|
|
|
8299
8494
|
* @param name the name of the node
|
|
8300
8495
|
* @param node the JSON node to be parsed
|
|
8301
8496
|
* @returns `true` if the node was successfully parsed, `false` otherwise.
|
|
8497
|
+
* @since 0.6
|
|
8302
8498
|
*/
|
|
8303
8499
|
parse_custom_node(script: Clutter.Script, value: GObject.Value | any, name: string, node: Json.Node): boolean;
|
|
8304
8500
|
|
|
@@ -8308,6 +8504,7 @@ export namespace Meta {
|
|
|
8308
8504
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
8309
8505
|
* @param name the name of the property
|
|
8310
8506
|
* @param value the value of the property
|
|
8507
|
+
* @since 0.6
|
|
8311
8508
|
*/
|
|
8312
8509
|
set_custom_property(script: Clutter.Script, name: string, value: GObject.Value | any): void;
|
|
8313
8510
|
|
|
@@ -8319,11 +8516,13 @@ export namespace Meta {
|
|
|
8319
8516
|
* define a unique name for an object constructable using the UI
|
|
8320
8517
|
* definition language parsed by {@link Clutter.Script}.
|
|
8321
8518
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
8519
|
+
* @since 0.6
|
|
8322
8520
|
*/
|
|
8323
8521
|
set_id(id_: string): void;
|
|
8324
8522
|
|
|
8325
8523
|
/**
|
|
8326
8524
|
* Retrieves the id of `scriptable` set using `clutter_scriptable_set_id()`.
|
|
8525
|
+
* @since 0.6
|
|
8327
8526
|
* @virtual
|
|
8328
8527
|
*/
|
|
8329
8528
|
vfunc_get_id(): string;
|
|
@@ -8335,6 +8534,7 @@ export namespace Meta {
|
|
|
8335
8534
|
* @param value the generic value to be set
|
|
8336
8535
|
* @param name the name of the node
|
|
8337
8536
|
* @param node the JSON node to be parsed
|
|
8537
|
+
* @since 0.6
|
|
8338
8538
|
* @virtual
|
|
8339
8539
|
*/
|
|
8340
8540
|
vfunc_parse_custom_node(script: Clutter.Script, value: unknown, name: string, node: Json.Node): boolean;
|
|
@@ -8345,6 +8545,7 @@ export namespace Meta {
|
|
|
8345
8545
|
* @param script the {@link Clutter.Script} creating the scriptable instance
|
|
8346
8546
|
* @param name the name of the property
|
|
8347
8547
|
* @param value the value of the property
|
|
8548
|
+
* @since 0.6
|
|
8348
8549
|
* @virtual
|
|
8349
8550
|
*/
|
|
8350
8551
|
vfunc_set_custom_property(script: Clutter.Script, name: string, value: unknown): void;
|
|
@@ -8357,6 +8558,7 @@ export namespace Meta {
|
|
|
8357
8558
|
* define a unique name for an object constructable using the UI
|
|
8358
8559
|
* definition language parsed by {@link Clutter.Script}.
|
|
8359
8560
|
* @param id_ the {@link Clutter.Script} id of the object
|
|
8561
|
+
* @since 0.6
|
|
8360
8562
|
* @virtual
|
|
8361
8563
|
*/
|
|
8362
8564
|
vfunc_set_id(id_: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/meta-6",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"libraryVersion": "3.36.6",
|
|
5
5
|
"description": "GJS TypeScript type definitions for Meta-6, generated from library version 3.36.6",
|
|
6
6
|
"type": "module",
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
"test": "tsc --project tsconfig.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@girs/gjs": "^4.
|
|
36
|
-
"@girs/xlib-2.0": "^4.
|
|
37
|
-
"@girs/xfixes-4.0": "^4.
|
|
38
|
-
"@girs/gtk-3.0": "^4.
|
|
39
|
-
"@girs/gdk-3.0": "^4.
|
|
40
|
-
"@girs/cairo-1.0": "^4.
|
|
41
|
-
"@girs/gobject-2.0": "^4.
|
|
42
|
-
"@girs/glib-2.0": "^4.
|
|
43
|
-
"@girs/pango-1.0": "^4.
|
|
44
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
45
|
-
"@girs/freetype2-2.0": "^4.
|
|
46
|
-
"@girs/gio-2.0": "^4.
|
|
47
|
-
"@girs/gmodule-2.0": "^4.
|
|
48
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
49
|
-
"@girs/atk-1.0": "^4.
|
|
50
|
-
"@girs/gdesktopenums-3.0": "^4.
|
|
51
|
-
"@girs/coglpango-6": "^4.
|
|
52
|
-
"@girs/pangocairo-1.0": "^4.
|
|
53
|
-
"@girs/cogl-6": "^4.
|
|
54
|
-
"@girs/graphene-1.0": "^4.
|
|
55
|
-
"@girs/gl-1.0": "^4.
|
|
56
|
-
"@girs/clutter-6": "^4.
|
|
57
|
-
"@girs/json-1.0": "^4.
|
|
35
|
+
"@girs/gjs": "^4.4.0",
|
|
36
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
37
|
+
"@girs/xfixes-4.0": "^4.4.0",
|
|
38
|
+
"@girs/gtk-3.0": "^4.4.0",
|
|
39
|
+
"@girs/gdk-3.0": "^4.4.0",
|
|
40
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
41
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
42
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
43
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
44
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
45
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
46
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
47
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
48
|
+
"@girs/gdkpixbuf-2.0": "^4.4.0",
|
|
49
|
+
"@girs/atk-1.0": "^4.4.0",
|
|
50
|
+
"@girs/gdesktopenums-3.0": "^4.4.0",
|
|
51
|
+
"@girs/coglpango-6": "^4.4.0",
|
|
52
|
+
"@girs/pangocairo-1.0": "^4.4.0",
|
|
53
|
+
"@girs/cogl-6": "^4.4.0",
|
|
54
|
+
"@girs/graphene-1.0": "^4.4.0",
|
|
55
|
+
"@girs/gl-1.0": "^4.4.0",
|
|
56
|
+
"@girs/clutter-6": "^4.4.0",
|
|
57
|
+
"@girs/json-1.0": "^4.4.0" },
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"typescript": "*"
|
|
60
60
|
},
|