@girs/st-13 13.0.0-3.2.6 → 13.0.0-3.2.7
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 +1 -1
- package/package.json +25 -25
- package/st-13.d.cts +64 -64
- package/st-13.d.ts +64 -64
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for St-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for St-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/st-13",
|
|
3
|
-
"version": "13.0.0-3.2.
|
|
3
|
+
"version": "13.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for St-13, generated from library version 13.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "st-13.js",
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit st-13.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/cally-13": "^13.0.0-3.2.
|
|
31
|
-
"@girs/clutter-13": "^13.0.0-3.2.
|
|
32
|
-
"@girs/cogl-13": "^13.0.0-3.2.
|
|
33
|
-
"@girs/coglpango-13": "^13.0.0-3.2.
|
|
34
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
35
|
-
"@girs/gdesktopenums-3.0": "^3.0.0-3.2.
|
|
36
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gjs": "^3.2.
|
|
39
|
-
"@girs/gl-1.0": "^1.0.0-3.2.
|
|
40
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
41
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
42
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
43
|
-
"@girs/graphene-1.0": "^1.0.0-3.2.
|
|
44
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
45
|
-
"@girs/json-1.0": "^1.7.1-3.2.
|
|
46
|
-
"@girs/meta-13": "^13.0.0-3.2.
|
|
47
|
-
"@girs/mtk-13": "^13.0.0-3.2.
|
|
48
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
49
|
-
"@girs/pangocairo-1.0": "^1.0.0-3.2.
|
|
50
|
-
"@girs/xfixes-4.0": "^4.0.0-3.2.
|
|
51
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.7",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.7",
|
|
30
|
+
"@girs/cally-13": "^13.0.0-3.2.7",
|
|
31
|
+
"@girs/clutter-13": "^13.0.0-3.2.7",
|
|
32
|
+
"@girs/cogl-13": "^13.0.0-3.2.7",
|
|
33
|
+
"@girs/coglpango-13": "^13.0.0-3.2.7",
|
|
34
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.7",
|
|
35
|
+
"@girs/gdesktopenums-3.0": "^3.0.0-3.2.7",
|
|
36
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
|
|
37
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
38
|
+
"@girs/gjs": "^3.2.7",
|
|
39
|
+
"@girs/gl-1.0": "^1.0.0-3.2.7",
|
|
40
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
41
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
42
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
43
|
+
"@girs/graphene-1.0": "^1.0.0-3.2.7",
|
|
44
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
|
|
45
|
+
"@girs/json-1.0": "^1.7.1-3.2.7",
|
|
46
|
+
"@girs/meta-13": "^13.0.0-3.2.7",
|
|
47
|
+
"@girs/mtk-13": "^13.0.0-3.2.7",
|
|
48
|
+
"@girs/pango-1.0": "^1.51.0-3.2.7",
|
|
49
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.2.7",
|
|
50
|
+
"@girs/xfixes-4.0": "^4.0.0-3.2.7",
|
|
51
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
package/st-13.d.cts
CHANGED
|
@@ -308,7 +308,7 @@ export function icon_theme_error_quark(): GLib.Quark
|
|
|
308
308
|
* @param text text from the clipboard
|
|
309
309
|
*/
|
|
310
310
|
export interface ClipboardCallbackFunc {
|
|
311
|
-
(clipboard: Clipboard, text: string
|
|
311
|
+
(clipboard: Clipboard, text: string): void
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* Callback function called when content is retrieved from the clipboard.
|
|
@@ -626,7 +626,7 @@ export interface Adjustment extends Clutter.Animatable {
|
|
|
626
626
|
* @param name a unique name for the transition
|
|
627
627
|
* @param transition a #ClutterTransition
|
|
628
628
|
*/
|
|
629
|
-
add_transition(name: string
|
|
629
|
+
add_transition(name: string, transition: Clutter.Transition): void
|
|
630
630
|
/**
|
|
631
631
|
* Adjusts the adjustment using delta values from a scroll event.
|
|
632
632
|
* You should use this instead of using st_adjustment_set_value()
|
|
@@ -649,7 +649,7 @@ export interface Adjustment extends Clutter.Animatable {
|
|
|
649
649
|
* @param name a transition name
|
|
650
650
|
* @returns a #ClutterTransition
|
|
651
651
|
*/
|
|
652
|
-
get_transition(name: string
|
|
652
|
+
get_transition(name: string): Clutter.Transition | null
|
|
653
653
|
/**
|
|
654
654
|
* Gets the current value of the adjustment. See st_adjustment_set_value().
|
|
655
655
|
* @returns The current value of the adjustment
|
|
@@ -659,7 +659,7 @@ export interface Adjustment extends Clutter.Animatable {
|
|
|
659
659
|
* Gets all of `adjustment'`s values at once.
|
|
660
660
|
*/
|
|
661
661
|
get_values(): [ /* value */ number, /* lower */ number, /* upper */ number, /* step_increment */ number, /* page_increment */ number, /* page_size */ number ]
|
|
662
|
-
remove_transition(name: string
|
|
662
|
+
remove_transition(name: string): void
|
|
663
663
|
/**
|
|
664
664
|
* Sets the #StAdjustment value. The value is clamped to lie between
|
|
665
665
|
* #StAdjustment:lower and #StAdjustment:upper - #StAdjustment:page-size.
|
|
@@ -671,8 +671,8 @@ export interface Adjustment extends Clutter.Animatable {
|
|
|
671
671
|
*
|
|
672
672
|
* Use this function to avoid multiple emissions of the #GObject::notify and
|
|
673
673
|
* #StAdjustment::changed signals. See st_adjustment_set_lower() for an
|
|
674
|
-
* alternative way of compressing multiple emissions of #GObject::notify
|
|
675
|
-
* one.
|
|
674
|
+
* alternative way of compressing multiple emissions of #GObject::notify and
|
|
675
|
+
* #StAdjustmet::changed into one of each.
|
|
676
676
|
* @param value the new value
|
|
677
677
|
* @param lower the new minimum value
|
|
678
678
|
* @param upper the new maximum value
|
|
@@ -1677,7 +1677,7 @@ export interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
1677
1677
|
* will be returned instead of %NULL.
|
|
1678
1678
|
* @returns the text for the button
|
|
1679
1679
|
*/
|
|
1680
|
-
get_label(): string
|
|
1680
|
+
get_label(): string
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Get the toggle mode status of the button.
|
|
1683
1683
|
* @returns %TRUE if toggle mode is set, otherwise %FALSE
|
|
@@ -1701,7 +1701,7 @@ export interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
1701
1701
|
* be removed and replaced with the icon.
|
|
1702
1702
|
* @param icon_name an icon name
|
|
1703
1703
|
*/
|
|
1704
|
-
set_icon_name(icon_name: string
|
|
1704
|
+
set_icon_name(icon_name: string): void
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Sets the text displayed on the button.
|
|
1707
1707
|
* @param text text to set the label to
|
|
@@ -2040,7 +2040,7 @@ export class Button extends Bin {
|
|
|
2040
2040
|
* @param text text to set the label to
|
|
2041
2041
|
* @returns a new #StButton
|
|
2042
2042
|
*/
|
|
2043
|
-
static new_with_label(text: string
|
|
2043
|
+
static new_with_label(text: string): Button
|
|
2044
2044
|
_init(config?: Button.ConstructorProperties): void
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
@@ -2064,7 +2064,7 @@ export interface Clipboard {
|
|
|
2064
2064
|
* @param mimetype The mimetype to get content for
|
|
2065
2065
|
* @param callback function to be called when the type is retrieved
|
|
2066
2066
|
*/
|
|
2067
|
-
get_content(type: ClipboardType, mimetype: string
|
|
2067
|
+
get_content(type: ClipboardType, mimetype: string, callback: ClipboardContentCallbackFunc): void
|
|
2068
2068
|
/**
|
|
2069
2069
|
* Gets a list of the mimetypes supported by the default #StClipboard.
|
|
2070
2070
|
* @param type
|
|
@@ -2086,13 +2086,13 @@ export interface Clipboard {
|
|
|
2086
2086
|
* @param mimetype content mimetype
|
|
2087
2087
|
* @param bytes content data
|
|
2088
2088
|
*/
|
|
2089
|
-
set_content(type: ClipboardType, mimetype: string
|
|
2089
|
+
set_content(type: ClipboardType, mimetype: string, bytes: GLib.Bytes): void
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Sets text as the current contents of the clipboard.
|
|
2092
2092
|
* @param type The type of clipboard that you want to set
|
|
2093
2093
|
* @param text text to copy to the clipboard
|
|
2094
2094
|
*/
|
|
2095
|
-
set_text(type: ClipboardType, text: string
|
|
2095
|
+
set_text(type: ClipboardType, text: string): void
|
|
2096
2096
|
|
|
2097
2097
|
// Class property signals of St-13.St.Clipboard
|
|
2098
2098
|
|
|
@@ -2679,7 +2679,7 @@ export interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter
|
|
|
2679
2679
|
* be returned instead of %NULL.
|
|
2680
2680
|
* @returns the text for the entry
|
|
2681
2681
|
*/
|
|
2682
|
-
get_text(): string
|
|
2682
|
+
get_text(): string
|
|
2683
2683
|
/**
|
|
2684
2684
|
* Set the hint actor of the entry to `hint_actor`.
|
|
2685
2685
|
* @param hint_actor a #ClutterActor
|
|
@@ -3186,7 +3186,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3186
3186
|
* Gets the accessible description of the accessible.
|
|
3187
3187
|
* @returns a character string representing the accessible description of the accessible.
|
|
3188
3188
|
*/
|
|
3189
|
-
get_description(): string
|
|
3189
|
+
get_description(): string
|
|
3190
3190
|
/**
|
|
3191
3191
|
* Returns a non-localized string naming the specified action of the
|
|
3192
3192
|
* object. This name is generally not descriptive of the end result
|
|
@@ -3210,14 +3210,14 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3210
3210
|
* Gets the accessible name of the accessible.
|
|
3211
3211
|
* @returns a character string representing the accessible name of the object.
|
|
3212
3212
|
*/
|
|
3213
|
-
get_name(): string
|
|
3213
|
+
get_name(): string
|
|
3214
3214
|
/**
|
|
3215
3215
|
* Sets a description of the specified action of the object.
|
|
3216
3216
|
* @param i the action index corresponding to the action to be performed
|
|
3217
3217
|
* @param desc the description to be assigned to this action
|
|
3218
3218
|
* @returns a gboolean representing if the description was successfully set;
|
|
3219
3219
|
*/
|
|
3220
|
-
set_description(i: number, desc: string
|
|
3220
|
+
set_description(i: number, desc: string): boolean
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Sets the accessible description of the accessible. You can't set
|
|
3223
3223
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -3225,7 +3225,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3225
3225
|
* the name to a empty value you can use "".
|
|
3226
3226
|
* @param description a character string to be set as the accessible description
|
|
3227
3227
|
*/
|
|
3228
|
-
set_description(description: string
|
|
3228
|
+
set_description(description: string): void
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Returns a description of the specified action of the object.
|
|
3231
3231
|
* @virtual
|
|
@@ -3238,7 +3238,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3238
3238
|
* @virtual
|
|
3239
3239
|
* @returns a character string representing the accessible description of the accessible.
|
|
3240
3240
|
*/
|
|
3241
|
-
vfunc_get_description(): string
|
|
3241
|
+
vfunc_get_description(): string
|
|
3242
3242
|
/**
|
|
3243
3243
|
* Returns a non-localized string naming the specified action of the
|
|
3244
3244
|
* object. This name is generally not descriptive of the end result
|
|
@@ -3264,7 +3264,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3264
3264
|
* @virtual
|
|
3265
3265
|
* @returns a character string representing the accessible name of the object.
|
|
3266
3266
|
*/
|
|
3267
|
-
vfunc_get_name(): string
|
|
3267
|
+
vfunc_get_name(): string
|
|
3268
3268
|
/**
|
|
3269
3269
|
* Sets a description of the specified action of the object.
|
|
3270
3270
|
* @virtual
|
|
@@ -3272,7 +3272,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3272
3272
|
* @param desc the description to be assigned to this action
|
|
3273
3273
|
* @returns a gboolean representing if the description was successfully set;
|
|
3274
3274
|
*/
|
|
3275
|
-
vfunc_set_description(i: number, desc: string
|
|
3275
|
+
vfunc_set_description(i: number, desc: string): boolean
|
|
3276
3276
|
/**
|
|
3277
3277
|
* Sets the accessible description of the accessible. You can't set
|
|
3278
3278
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -3281,7 +3281,7 @@ export interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value
|
|
|
3281
3281
|
* @virtual
|
|
3282
3282
|
* @param description a character string to be set as the accessible description
|
|
3283
3283
|
*/
|
|
3284
|
-
vfunc_set_description(description: string
|
|
3284
|
+
vfunc_set_description(description: string): void
|
|
3285
3285
|
|
|
3286
3286
|
// Own signals of St-13.St.GenericAccessible
|
|
3287
3287
|
|
|
@@ -3485,7 +3485,7 @@ export interface Icon extends Atk.ImplementorIface, Clutter.Animatable, Clutter.
|
|
|
3485
3485
|
* #GThemedIcon that is currently set.
|
|
3486
3486
|
* @returns The name of the icon or %NULL if no icon is set
|
|
3487
3487
|
*/
|
|
3488
|
-
get_fallback_icon_name(): string
|
|
3488
|
+
get_fallback_icon_name(): string
|
|
3489
3489
|
/**
|
|
3490
3490
|
* Gets the current #GIcon in use.
|
|
3491
3491
|
* @returns The current #GIcon, if set, otherwise %NULL
|
|
@@ -4047,7 +4047,7 @@ export interface IconTheme {
|
|
|
4047
4047
|
* of a subdirectory are also considered as ultimate fallback.
|
|
4048
4048
|
* @param path a resource path
|
|
4049
4049
|
*/
|
|
4050
|
-
add_resource_path(path: string
|
|
4050
|
+
add_resource_path(path: string): void
|
|
4051
4051
|
/**
|
|
4052
4052
|
* Appends a directory to the search path.
|
|
4053
4053
|
* See st_icon_theme_set_search_path().
|
|
@@ -4095,7 +4095,7 @@ export interface IconTheme {
|
|
|
4095
4095
|
* @param icon_name the name of an icon
|
|
4096
4096
|
* @returns An newly allocated array describing the sizes at which the icon is available. The array should be freed with g_free() when it is no longer needed.
|
|
4097
4097
|
*/
|
|
4098
|
-
get_icon_sizes(icon_name: string
|
|
4098
|
+
get_icon_sizes(icon_name: string): number[]
|
|
4099
4099
|
/**
|
|
4100
4100
|
* Gets the current search path. See st_icon_theme_set_search_path().
|
|
4101
4101
|
*/
|
|
@@ -4106,7 +4106,7 @@ export interface IconTheme {
|
|
|
4106
4106
|
* @param icon_name the name of an icon
|
|
4107
4107
|
* @returns %TRUE if @icon_theme includes an icon for @icon_name.
|
|
4108
4108
|
*/
|
|
4109
|
-
has_icon(icon_name: string
|
|
4109
|
+
has_icon(icon_name: string): boolean
|
|
4110
4110
|
/**
|
|
4111
4111
|
* Gets the list of contexts available within the current
|
|
4112
4112
|
* hierarchy of icon themes.
|
|
@@ -4146,7 +4146,7 @@ export interface IconTheme {
|
|
|
4146
4146
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4147
4147
|
* @returns the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found.
|
|
4148
4148
|
*/
|
|
4149
|
-
load_icon(icon_name: string
|
|
4149
|
+
load_icon(icon_name: string, size: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null
|
|
4150
4150
|
/**
|
|
4151
4151
|
* Looks up an icon in an icon theme for a particular window scale,
|
|
4152
4152
|
* scales it to the given size and renders it into a pixbuf. This is a
|
|
@@ -4167,7 +4167,7 @@ export interface IconTheme {
|
|
|
4167
4167
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4168
4168
|
* @returns the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found.
|
|
4169
4169
|
*/
|
|
4170
|
-
load_icon_for_scale(icon_name: string
|
|
4170
|
+
load_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null
|
|
4171
4171
|
/**
|
|
4172
4172
|
* Looks up an icon and returns a #StIconInfo containing information
|
|
4173
4173
|
* such as the filename of the icon. The icon can then be rendered
|
|
@@ -4212,7 +4212,7 @@ export interface IconTheme {
|
|
|
4212
4212
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4213
4213
|
* @returns a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found.
|
|
4214
4214
|
*/
|
|
4215
|
-
lookup_icon(icon_name: string
|
|
4215
|
+
lookup_icon(icon_name: string, size: number, flags: IconLookupFlags): IconInfo | null
|
|
4216
4216
|
/**
|
|
4217
4217
|
* Looks up a named icon for a particular window scale and returns a
|
|
4218
4218
|
* #StIconInfo containing information such as the filename of the
|
|
@@ -4225,7 +4225,7 @@ export interface IconTheme {
|
|
|
4225
4225
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4226
4226
|
* @returns a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found.
|
|
4227
4227
|
*/
|
|
4228
|
-
lookup_icon_for_scale(icon_name: string
|
|
4228
|
+
lookup_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): IconInfo | null
|
|
4229
4229
|
/**
|
|
4230
4230
|
* Prepends a directory to the search path.
|
|
4231
4231
|
* See st_icon_theme_set_search_path().
|
|
@@ -4399,7 +4399,7 @@ export interface ImageContent extends Clutter.Content, Gio.Icon, Gio.LoadableIco
|
|
|
4399
4399
|
* @param key name of the key
|
|
4400
4400
|
* @param data data to associate with that key
|
|
4401
4401
|
*/
|
|
4402
|
-
set_data(key: string
|
|
4402
|
+
set_data(key: string, data: any | null): void
|
|
4403
4403
|
/**
|
|
4404
4404
|
* Each object carries around a table of associations from
|
|
4405
4405
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4414,7 +4414,7 @@ export interface ImageContent extends Clutter.Content, Gio.Icon, Gio.LoadableIco
|
|
|
4414
4414
|
* @param key name of the key
|
|
4415
4415
|
* @param data data to associate with that key
|
|
4416
4416
|
*/
|
|
4417
|
-
set_data(key: string
|
|
4417
|
+
set_data(key: string, data: any | null): void
|
|
4418
4418
|
|
|
4419
4419
|
// Class property signals of St-13.St.ImageContent
|
|
4420
4420
|
|
|
@@ -4498,7 +4498,7 @@ export interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter
|
|
|
4498
4498
|
* Get the text displayed on the label.
|
|
4499
4499
|
* @returns the text for the label. This must not be freed by the application
|
|
4500
4500
|
*/
|
|
4501
|
-
get_text(): string
|
|
4501
|
+
get_text(): string
|
|
4502
4502
|
/**
|
|
4503
4503
|
* Sets the text displayed by the label.
|
|
4504
4504
|
* @param text text to set the label to
|
|
@@ -6409,7 +6409,7 @@ export interface TextureCache {
|
|
|
6409
6409
|
* @param property_name Name of a property
|
|
6410
6410
|
* @returns A new #GIcon
|
|
6411
6411
|
*/
|
|
6412
|
-
bind_cairo_surface_property(object: GObject.Object, property_name: string
|
|
6412
|
+
bind_cairo_surface_property(object: GObject.Object, property_name: string): Gio.Icon
|
|
6413
6413
|
/**
|
|
6414
6414
|
* Create a #GIcon from `surface`.
|
|
6415
6415
|
* @param surface A #cairo_surface_t
|
|
@@ -6927,7 +6927,7 @@ export interface ThemeNode {
|
|
|
6927
6927
|
* indicated color.
|
|
6928
6928
|
* @param property_name The name of the color property
|
|
6929
6929
|
*/
|
|
6930
|
-
get_color(property_name: string
|
|
6930
|
+
get_color(property_name: string): /* color */ Clutter.Color
|
|
6931
6931
|
/**
|
|
6932
6932
|
* Gets the box within an actor's allocation that contents the content
|
|
6933
6933
|
* of an actor (excluding borders and padding). This is a convenience function
|
|
@@ -6946,7 +6946,7 @@ export interface ThemeNode {
|
|
|
6946
6946
|
* @param property_name The name of the numeric property
|
|
6947
6947
|
* @returns the value found. If @property_name is not found, a warning will be logged and 0 will be returned.
|
|
6948
6948
|
*/
|
|
6949
|
-
get_double(property_name: string
|
|
6949
|
+
get_double(property_name: string): number
|
|
6950
6950
|
/**
|
|
6951
6951
|
* Get the list of element classes for `node`.
|
|
6952
6952
|
* @returns the element's classes
|
|
@@ -6956,7 +6956,7 @@ export interface ThemeNode {
|
|
|
6956
6956
|
* Get the unique element ID for `node`.
|
|
6957
6957
|
* @returns the element's ID
|
|
6958
6958
|
*/
|
|
6959
|
-
get_element_id(): string
|
|
6959
|
+
get_element_id(): string
|
|
6960
6960
|
/**
|
|
6961
6961
|
* Get the element #GType for `node`.
|
|
6962
6962
|
* @returns the element type
|
|
@@ -7013,7 +7013,7 @@ export interface ThemeNode {
|
|
|
7013
7013
|
* @param property_name The name of the length property
|
|
7014
7014
|
* @returns the length, in pixels, or 0 if the property was not found.
|
|
7015
7015
|
*/
|
|
7016
|
-
get_length(property_name: string
|
|
7016
|
+
get_length(property_name: string): number
|
|
7017
7017
|
/**
|
|
7018
7018
|
* Gets the value for the letter-spacing style property, in physical pixels.
|
|
7019
7019
|
* @returns the value of the letter-spacing property, if found, or zero if such property has not been found.
|
|
@@ -7093,7 +7093,7 @@ export interface ThemeNode {
|
|
|
7093
7093
|
* @param property_name The name of the shadow property
|
|
7094
7094
|
* @returns the shadow, or %NULL if the property was not found.
|
|
7095
7095
|
*/
|
|
7096
|
-
get_shadow(property_name: string
|
|
7096
|
+
get_shadow(property_name: string): Shadow | null
|
|
7097
7097
|
/**
|
|
7098
7098
|
* Get the text alignment of `node`.
|
|
7099
7099
|
* @returns the alignment of text for @node
|
|
@@ -7130,7 +7130,7 @@ export interface ThemeNode {
|
|
|
7130
7130
|
* @param property_name The name of the string property
|
|
7131
7131
|
* @returns the newly allocated value if found. If @property_name is not found, a warning will be logged and %NULL will be returned.
|
|
7132
7132
|
*/
|
|
7133
|
-
get_url(property_name: string
|
|
7133
|
+
get_url(property_name: string): Gio.File | null
|
|
7134
7134
|
/**
|
|
7135
7135
|
* Gets the total vertical padding (top + bottom padding), in physical pixels.
|
|
7136
7136
|
* @returns the total vertical padding in physical pixels
|
|
@@ -7159,7 +7159,7 @@ export interface ThemeNode {
|
|
|
7159
7159
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7160
7160
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7161
7161
|
*/
|
|
7162
|
-
lookup_color(property_name: string
|
|
7162
|
+
lookup_color(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* color */ Clutter.Color ]
|
|
7163
7163
|
/**
|
|
7164
7164
|
* Generically looks up a property containing a single numeric value
|
|
7165
7165
|
* without units.
|
|
@@ -7169,7 +7169,7 @@ export interface ThemeNode {
|
|
|
7169
7169
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7170
7170
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7171
7171
|
*/
|
|
7172
|
-
lookup_double(property_name: string
|
|
7172
|
+
lookup_double(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* value */ number ]
|
|
7173
7173
|
/**
|
|
7174
7174
|
* Generically looks up a property containing a single length value. When
|
|
7175
7175
|
* specific getters (like st_theme_node_get_border_width()) exist, they
|
|
@@ -7181,7 +7181,7 @@ export interface ThemeNode {
|
|
|
7181
7181
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7182
7182
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7183
7183
|
*/
|
|
7184
|
-
lookup_length(property_name: string
|
|
7184
|
+
lookup_length(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* length */ number ]
|
|
7185
7185
|
/**
|
|
7186
7186
|
* If the property is not found, the value in the shadow variable will not
|
|
7187
7187
|
* be changed.
|
|
@@ -7196,7 +7196,7 @@ export interface ThemeNode {
|
|
|
7196
7196
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7197
7197
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.), %FALSE if the property was not found, or was explicitly set to 'none'.
|
|
7198
7198
|
*/
|
|
7199
|
-
lookup_shadow(property_name: string
|
|
7199
|
+
lookup_shadow(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* shadow */ Shadow ]
|
|
7200
7200
|
/**
|
|
7201
7201
|
* Generically looks up a property containing a single time value,
|
|
7202
7202
|
* which is converted to milliseconds.
|
|
@@ -7204,7 +7204,7 @@ export interface ThemeNode {
|
|
|
7204
7204
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7205
7205
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7206
7206
|
*/
|
|
7207
|
-
lookup_time(property_name: string
|
|
7207
|
+
lookup_time(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* value */ number ]
|
|
7208
7208
|
/**
|
|
7209
7209
|
* Looks up a property containing a single URL value.
|
|
7210
7210
|
*
|
|
@@ -7213,7 +7213,7 @@ export interface ThemeNode {
|
|
|
7213
7213
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7214
7214
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7215
7215
|
*/
|
|
7216
|
-
lookup_url(property_name: string
|
|
7216
|
+
lookup_url(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* file */ Gio.File ]
|
|
7217
7217
|
/**
|
|
7218
7218
|
* Check if st_theme_node_paint() will paint identically for `node` as it does
|
|
7219
7219
|
* for `other`. Note that in some cases this function may return %TRUE even
|
|
@@ -7262,7 +7262,7 @@ export class ThemeNode extends GObject.Object {
|
|
|
7262
7262
|
* @param inline_style
|
|
7263
7263
|
* @returns a new #StThemeNode
|
|
7264
7264
|
*/
|
|
7265
|
-
constructor(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string
|
|
7265
|
+
constructor(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string)
|
|
7266
7266
|
/**
|
|
7267
7267
|
* Creates a new #StThemeNode. Once created, a node is immutable. If any
|
|
7268
7268
|
* of the attributes of the node (like the `element_class)` change the node
|
|
@@ -7278,7 +7278,7 @@ export class ThemeNode extends GObject.Object {
|
|
|
7278
7278
|
* @param inline_style
|
|
7279
7279
|
* @returns a new #StThemeNode
|
|
7280
7280
|
*/
|
|
7281
|
-
static new(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string
|
|
7281
|
+
static new(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string): ThemeNode
|
|
7282
7282
|
_init(config?: ThemeNode.ConstructorProperties): void
|
|
7283
7283
|
}
|
|
7284
7284
|
|
|
@@ -7792,13 +7792,13 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7792
7792
|
* already present.
|
|
7793
7793
|
* @param style_class a style class name string
|
|
7794
7794
|
*/
|
|
7795
|
-
add_style_class_name(style_class: string
|
|
7795
|
+
add_style_class_name(style_class: string): void
|
|
7796
7796
|
/**
|
|
7797
7797
|
* Adds `pseudo_class` to `actor'`s pseudo class list, if it is not
|
|
7798
7798
|
* already present.
|
|
7799
7799
|
* @param pseudo_class a pseudo class string
|
|
7800
7800
|
*/
|
|
7801
|
-
add_style_pseudo_class(pseudo_class: string
|
|
7801
|
+
add_style_pseudo_class(pseudo_class: string): void
|
|
7802
7802
|
/**
|
|
7803
7803
|
* Ensures that `widget` has read its style information and propagated any
|
|
7804
7804
|
* changes to its children.
|
|
@@ -7809,7 +7809,7 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7809
7809
|
* st_widget_set_accessible_name() for more information.
|
|
7810
7810
|
* @returns a character string representing the accessible name of the widget.
|
|
7811
7811
|
*/
|
|
7812
|
-
get_accessible_name(): string
|
|
7812
|
+
get_accessible_name(): string
|
|
7813
7813
|
/**
|
|
7814
7814
|
* Gets the #AtkRole for this widget. See
|
|
7815
7815
|
* st_widget_set_accessible_role() for more information.
|
|
@@ -7849,7 +7849,7 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7849
7849
|
* Get the current style class name
|
|
7850
7850
|
* @returns the class name string. The string is owned by the #StWidget and should not be modified or freed.
|
|
7851
7851
|
*/
|
|
7852
|
-
get_style_class_name(): string
|
|
7852
|
+
get_style_class_name(): string
|
|
7853
7853
|
/**
|
|
7854
7854
|
* Get the current style pseudo class list.
|
|
7855
7855
|
*
|
|
@@ -7858,7 +7858,7 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7858
7858
|
* st_widget_has_style_pseudo_class().
|
|
7859
7859
|
* @returns the pseudo class list string. The string is owned by the #StWidget and should not be modified or freed.
|
|
7860
7860
|
*/
|
|
7861
|
-
get_style_pseudo_class(): string
|
|
7861
|
+
get_style_pseudo_class(): string
|
|
7862
7862
|
/**
|
|
7863
7863
|
* Gets the theme node holding style information for the widget.
|
|
7864
7864
|
* The theme node is used to access standard and custom CSS
|
|
@@ -7880,13 +7880,13 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7880
7880
|
* @param style_class a style class string
|
|
7881
7881
|
* @returns whether or not @actor's style class list includes @style_class.
|
|
7882
7882
|
*/
|
|
7883
|
-
has_style_class_name(style_class: string
|
|
7883
|
+
has_style_class_name(style_class: string): boolean
|
|
7884
7884
|
/**
|
|
7885
7885
|
* Tests if `actor'`s pseudo class list includes `pseudo_class`.
|
|
7886
7886
|
* @param pseudo_class a pseudo class string
|
|
7887
7887
|
* @returns whether or not @actor's pseudo class list includes @pseudo_class.
|
|
7888
7888
|
*/
|
|
7889
|
-
has_style_pseudo_class(pseudo_class: string
|
|
7889
|
+
has_style_pseudo_class(pseudo_class: string): boolean
|
|
7890
7890
|
/**
|
|
7891
7891
|
* Tries to update the keyboard focus within `widget` in response to a
|
|
7892
7892
|
* keyboard event.
|
|
@@ -7950,12 +7950,12 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
|
|
|
7950
7950
|
* present.
|
|
7951
7951
|
* @param style_class a style class name string
|
|
7952
7952
|
*/
|
|
7953
|
-
remove_style_class_name(style_class: string
|
|
7953
|
+
remove_style_class_name(style_class: string): void
|
|
7954
7954
|
/**
|
|
7955
7955
|
* Removes `pseudo_class` from `actor'`s pseudo class, if it is present.
|
|
7956
7956
|
* @param pseudo_class a pseudo class string
|
|
7957
7957
|
*/
|
|
7958
|
-
remove_style_pseudo_class(pseudo_class: string
|
|
7958
|
+
remove_style_pseudo_class(pseudo_class: string): void
|
|
7959
7959
|
/**
|
|
7960
7960
|
* This method allows to set a customly created accessible object to
|
|
7961
7961
|
* this widget. For example if you define a new subclass of
|
|
@@ -8389,7 +8389,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8389
8389
|
* Gets the accessible description of the accessible.
|
|
8390
8390
|
* @returns a character string representing the accessible description of the accessible.
|
|
8391
8391
|
*/
|
|
8392
|
-
get_description(): string
|
|
8392
|
+
get_description(): string
|
|
8393
8393
|
/**
|
|
8394
8394
|
* Returns a non-localized string naming the specified action of the
|
|
8395
8395
|
* object. This name is generally not descriptive of the end result
|
|
@@ -8413,14 +8413,14 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8413
8413
|
* Gets the accessible name of the accessible.
|
|
8414
8414
|
* @returns a character string representing the accessible name of the object.
|
|
8415
8415
|
*/
|
|
8416
|
-
get_name(): string
|
|
8416
|
+
get_name(): string
|
|
8417
8417
|
/**
|
|
8418
8418
|
* Sets a description of the specified action of the object.
|
|
8419
8419
|
* @param i the action index corresponding to the action to be performed
|
|
8420
8420
|
* @param desc the description to be assigned to this action
|
|
8421
8421
|
* @returns a gboolean representing if the description was successfully set;
|
|
8422
8422
|
*/
|
|
8423
|
-
set_description(i: number, desc: string
|
|
8423
|
+
set_description(i: number, desc: string): boolean
|
|
8424
8424
|
/**
|
|
8425
8425
|
* Sets the accessible description of the accessible. You can't set
|
|
8426
8426
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -8428,7 +8428,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8428
8428
|
* the name to a empty value you can use "".
|
|
8429
8429
|
* @param description a character string to be set as the accessible description
|
|
8430
8430
|
*/
|
|
8431
|
-
set_description(description: string
|
|
8431
|
+
set_description(description: string): void
|
|
8432
8432
|
/**
|
|
8433
8433
|
* Returns a description of the specified action of the object.
|
|
8434
8434
|
* @virtual
|
|
@@ -8441,7 +8441,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8441
8441
|
* @virtual
|
|
8442
8442
|
* @returns a character string representing the accessible description of the accessible.
|
|
8443
8443
|
*/
|
|
8444
|
-
vfunc_get_description(): string
|
|
8444
|
+
vfunc_get_description(): string
|
|
8445
8445
|
/**
|
|
8446
8446
|
* Returns a non-localized string naming the specified action of the
|
|
8447
8447
|
* object. This name is generally not descriptive of the end result
|
|
@@ -8467,7 +8467,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8467
8467
|
* @virtual
|
|
8468
8468
|
* @returns a character string representing the accessible name of the object.
|
|
8469
8469
|
*/
|
|
8470
|
-
vfunc_get_name(): string
|
|
8470
|
+
vfunc_get_name(): string
|
|
8471
8471
|
/**
|
|
8472
8472
|
* Sets a description of the specified action of the object.
|
|
8473
8473
|
* @virtual
|
|
@@ -8475,7 +8475,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8475
8475
|
* @param desc the description to be assigned to this action
|
|
8476
8476
|
* @returns a gboolean representing if the description was successfully set;
|
|
8477
8477
|
*/
|
|
8478
|
-
vfunc_set_description(i: number, desc: string
|
|
8478
|
+
vfunc_set_description(i: number, desc: string): boolean
|
|
8479
8479
|
/**
|
|
8480
8480
|
* Sets the accessible description of the accessible. You can't set
|
|
8481
8481
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -8484,7 +8484,7 @@ export interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8484
8484
|
* @virtual
|
|
8485
8485
|
* @param description a character string to be set as the accessible description
|
|
8486
8486
|
*/
|
|
8487
|
-
vfunc_set_description(description: string
|
|
8487
|
+
vfunc_set_description(description: string): void
|
|
8488
8488
|
|
|
8489
8489
|
// Class property signals of St-13.St.WidgetAccessible
|
|
8490
8490
|
|
package/st-13.d.ts
CHANGED
|
@@ -310,7 +310,7 @@ function icon_theme_error_quark(): GLib.Quark
|
|
|
310
310
|
* @param text text from the clipboard
|
|
311
311
|
*/
|
|
312
312
|
interface ClipboardCallbackFunc {
|
|
313
|
-
(clipboard: Clipboard, text: string
|
|
313
|
+
(clipboard: Clipboard, text: string): void
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
316
316
|
* Callback function called when content is retrieved from the clipboard.
|
|
@@ -628,7 +628,7 @@ interface Adjustment extends Clutter.Animatable {
|
|
|
628
628
|
* @param name a unique name for the transition
|
|
629
629
|
* @param transition a #ClutterTransition
|
|
630
630
|
*/
|
|
631
|
-
add_transition(name: string
|
|
631
|
+
add_transition(name: string, transition: Clutter.Transition): void
|
|
632
632
|
/**
|
|
633
633
|
* Adjusts the adjustment using delta values from a scroll event.
|
|
634
634
|
* You should use this instead of using st_adjustment_set_value()
|
|
@@ -651,7 +651,7 @@ interface Adjustment extends Clutter.Animatable {
|
|
|
651
651
|
* @param name a transition name
|
|
652
652
|
* @returns a #ClutterTransition
|
|
653
653
|
*/
|
|
654
|
-
get_transition(name: string
|
|
654
|
+
get_transition(name: string): Clutter.Transition | null
|
|
655
655
|
/**
|
|
656
656
|
* Gets the current value of the adjustment. See st_adjustment_set_value().
|
|
657
657
|
* @returns The current value of the adjustment
|
|
@@ -661,7 +661,7 @@ interface Adjustment extends Clutter.Animatable {
|
|
|
661
661
|
* Gets all of `adjustment'`s values at once.
|
|
662
662
|
*/
|
|
663
663
|
get_values(): [ /* value */ number, /* lower */ number, /* upper */ number, /* step_increment */ number, /* page_increment */ number, /* page_size */ number ]
|
|
664
|
-
remove_transition(name: string
|
|
664
|
+
remove_transition(name: string): void
|
|
665
665
|
/**
|
|
666
666
|
* Sets the #StAdjustment value. The value is clamped to lie between
|
|
667
667
|
* #StAdjustment:lower and #StAdjustment:upper - #StAdjustment:page-size.
|
|
@@ -673,8 +673,8 @@ interface Adjustment extends Clutter.Animatable {
|
|
|
673
673
|
*
|
|
674
674
|
* Use this function to avoid multiple emissions of the #GObject::notify and
|
|
675
675
|
* #StAdjustment::changed signals. See st_adjustment_set_lower() for an
|
|
676
|
-
* alternative way of compressing multiple emissions of #GObject::notify
|
|
677
|
-
* one.
|
|
676
|
+
* alternative way of compressing multiple emissions of #GObject::notify and
|
|
677
|
+
* #StAdjustmet::changed into one of each.
|
|
678
678
|
* @param value the new value
|
|
679
679
|
* @param lower the new minimum value
|
|
680
680
|
* @param upper the new maximum value
|
|
@@ -1679,7 +1679,7 @@ interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
1679
1679
|
* will be returned instead of %NULL.
|
|
1680
1680
|
* @returns the text for the button
|
|
1681
1681
|
*/
|
|
1682
|
-
get_label(): string
|
|
1682
|
+
get_label(): string
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Get the toggle mode status of the button.
|
|
1685
1685
|
* @returns %TRUE if toggle mode is set, otherwise %FALSE
|
|
@@ -1703,7 +1703,7 @@ interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
1703
1703
|
* be removed and replaced with the icon.
|
|
1704
1704
|
* @param icon_name an icon name
|
|
1705
1705
|
*/
|
|
1706
|
-
set_icon_name(icon_name: string
|
|
1706
|
+
set_icon_name(icon_name: string): void
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Sets the text displayed on the button.
|
|
1709
1709
|
* @param text text to set the label to
|
|
@@ -2042,7 +2042,7 @@ class Button extends Bin {
|
|
|
2042
2042
|
* @param text text to set the label to
|
|
2043
2043
|
* @returns a new #StButton
|
|
2044
2044
|
*/
|
|
2045
|
-
static new_with_label(text: string
|
|
2045
|
+
static new_with_label(text: string): Button
|
|
2046
2046
|
_init(config?: Button.ConstructorProperties): void
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
@@ -2066,7 +2066,7 @@ interface Clipboard {
|
|
|
2066
2066
|
* @param mimetype The mimetype to get content for
|
|
2067
2067
|
* @param callback function to be called when the type is retrieved
|
|
2068
2068
|
*/
|
|
2069
|
-
get_content(type: ClipboardType, mimetype: string
|
|
2069
|
+
get_content(type: ClipboardType, mimetype: string, callback: ClipboardContentCallbackFunc): void
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Gets a list of the mimetypes supported by the default #StClipboard.
|
|
2072
2072
|
* @param type
|
|
@@ -2088,13 +2088,13 @@ interface Clipboard {
|
|
|
2088
2088
|
* @param mimetype content mimetype
|
|
2089
2089
|
* @param bytes content data
|
|
2090
2090
|
*/
|
|
2091
|
-
set_content(type: ClipboardType, mimetype: string
|
|
2091
|
+
set_content(type: ClipboardType, mimetype: string, bytes: GLib.Bytes): void
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Sets text as the current contents of the clipboard.
|
|
2094
2094
|
* @param type The type of clipboard that you want to set
|
|
2095
2095
|
* @param text text to copy to the clipboard
|
|
2096
2096
|
*/
|
|
2097
|
-
set_text(type: ClipboardType, text: string
|
|
2097
|
+
set_text(type: ClipboardType, text: string): void
|
|
2098
2098
|
|
|
2099
2099
|
// Class property signals of St-13.St.Clipboard
|
|
2100
2100
|
|
|
@@ -2681,7 +2681,7 @@ interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
|
|
|
2681
2681
|
* be returned instead of %NULL.
|
|
2682
2682
|
* @returns the text for the entry
|
|
2683
2683
|
*/
|
|
2684
|
-
get_text(): string
|
|
2684
|
+
get_text(): string
|
|
2685
2685
|
/**
|
|
2686
2686
|
* Set the hint actor of the entry to `hint_actor`.
|
|
2687
2687
|
* @param hint_actor a #ClutterActor
|
|
@@ -3188,7 +3188,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3188
3188
|
* Gets the accessible description of the accessible.
|
|
3189
3189
|
* @returns a character string representing the accessible description of the accessible.
|
|
3190
3190
|
*/
|
|
3191
|
-
get_description(): string
|
|
3191
|
+
get_description(): string
|
|
3192
3192
|
/**
|
|
3193
3193
|
* Returns a non-localized string naming the specified action of the
|
|
3194
3194
|
* object. This name is generally not descriptive of the end result
|
|
@@ -3212,14 +3212,14 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3212
3212
|
* Gets the accessible name of the accessible.
|
|
3213
3213
|
* @returns a character string representing the accessible name of the object.
|
|
3214
3214
|
*/
|
|
3215
|
-
get_name(): string
|
|
3215
|
+
get_name(): string
|
|
3216
3216
|
/**
|
|
3217
3217
|
* Sets a description of the specified action of the object.
|
|
3218
3218
|
* @param i the action index corresponding to the action to be performed
|
|
3219
3219
|
* @param desc the description to be assigned to this action
|
|
3220
3220
|
* @returns a gboolean representing if the description was successfully set;
|
|
3221
3221
|
*/
|
|
3222
|
-
set_description(i: number, desc: string
|
|
3222
|
+
set_description(i: number, desc: string): boolean
|
|
3223
3223
|
/**
|
|
3224
3224
|
* Sets the accessible description of the accessible. You can't set
|
|
3225
3225
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -3227,7 +3227,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3227
3227
|
* the name to a empty value you can use "".
|
|
3228
3228
|
* @param description a character string to be set as the accessible description
|
|
3229
3229
|
*/
|
|
3230
|
-
set_description(description: string
|
|
3230
|
+
set_description(description: string): void
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Returns a description of the specified action of the object.
|
|
3233
3233
|
* @virtual
|
|
@@ -3240,7 +3240,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3240
3240
|
* @virtual
|
|
3241
3241
|
* @returns a character string representing the accessible description of the accessible.
|
|
3242
3242
|
*/
|
|
3243
|
-
vfunc_get_description(): string
|
|
3243
|
+
vfunc_get_description(): string
|
|
3244
3244
|
/**
|
|
3245
3245
|
* Returns a non-localized string naming the specified action of the
|
|
3246
3246
|
* object. This name is generally not descriptive of the end result
|
|
@@ -3266,7 +3266,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3266
3266
|
* @virtual
|
|
3267
3267
|
* @returns a character string representing the accessible name of the object.
|
|
3268
3268
|
*/
|
|
3269
|
-
vfunc_get_name(): string
|
|
3269
|
+
vfunc_get_name(): string
|
|
3270
3270
|
/**
|
|
3271
3271
|
* Sets a description of the specified action of the object.
|
|
3272
3272
|
* @virtual
|
|
@@ -3274,7 +3274,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3274
3274
|
* @param desc the description to be assigned to this action
|
|
3275
3275
|
* @returns a gboolean representing if the description was successfully set;
|
|
3276
3276
|
*/
|
|
3277
|
-
vfunc_set_description(i: number, desc: string
|
|
3277
|
+
vfunc_set_description(i: number, desc: string): boolean
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Sets the accessible description of the accessible. You can't set
|
|
3280
3280
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -3283,7 +3283,7 @@ interface GenericAccessible extends Atk.Action, Atk.Component, Atk.Value {
|
|
|
3283
3283
|
* @virtual
|
|
3284
3284
|
* @param description a character string to be set as the accessible description
|
|
3285
3285
|
*/
|
|
3286
|
-
vfunc_set_description(description: string
|
|
3286
|
+
vfunc_set_description(description: string): void
|
|
3287
3287
|
|
|
3288
3288
|
// Own signals of St-13.St.GenericAccessible
|
|
3289
3289
|
|
|
@@ -3487,7 +3487,7 @@ interface Icon extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contain
|
|
|
3487
3487
|
* #GThemedIcon that is currently set.
|
|
3488
3488
|
* @returns The name of the icon or %NULL if no icon is set
|
|
3489
3489
|
*/
|
|
3490
|
-
get_fallback_icon_name(): string
|
|
3490
|
+
get_fallback_icon_name(): string
|
|
3491
3491
|
/**
|
|
3492
3492
|
* Gets the current #GIcon in use.
|
|
3493
3493
|
* @returns The current #GIcon, if set, otherwise %NULL
|
|
@@ -4049,7 +4049,7 @@ interface IconTheme {
|
|
|
4049
4049
|
* of a subdirectory are also considered as ultimate fallback.
|
|
4050
4050
|
* @param path a resource path
|
|
4051
4051
|
*/
|
|
4052
|
-
add_resource_path(path: string
|
|
4052
|
+
add_resource_path(path: string): void
|
|
4053
4053
|
/**
|
|
4054
4054
|
* Appends a directory to the search path.
|
|
4055
4055
|
* See st_icon_theme_set_search_path().
|
|
@@ -4097,7 +4097,7 @@ interface IconTheme {
|
|
|
4097
4097
|
* @param icon_name the name of an icon
|
|
4098
4098
|
* @returns An newly allocated array describing the sizes at which the icon is available. The array should be freed with g_free() when it is no longer needed.
|
|
4099
4099
|
*/
|
|
4100
|
-
get_icon_sizes(icon_name: string
|
|
4100
|
+
get_icon_sizes(icon_name: string): number[]
|
|
4101
4101
|
/**
|
|
4102
4102
|
* Gets the current search path. See st_icon_theme_set_search_path().
|
|
4103
4103
|
*/
|
|
@@ -4108,7 +4108,7 @@ interface IconTheme {
|
|
|
4108
4108
|
* @param icon_name the name of an icon
|
|
4109
4109
|
* @returns %TRUE if @icon_theme includes an icon for @icon_name.
|
|
4110
4110
|
*/
|
|
4111
|
-
has_icon(icon_name: string
|
|
4111
|
+
has_icon(icon_name: string): boolean
|
|
4112
4112
|
/**
|
|
4113
4113
|
* Gets the list of contexts available within the current
|
|
4114
4114
|
* hierarchy of icon themes.
|
|
@@ -4148,7 +4148,7 @@ interface IconTheme {
|
|
|
4148
4148
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4149
4149
|
* @returns the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found.
|
|
4150
4150
|
*/
|
|
4151
|
-
load_icon(icon_name: string
|
|
4151
|
+
load_icon(icon_name: string, size: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null
|
|
4152
4152
|
/**
|
|
4153
4153
|
* Looks up an icon in an icon theme for a particular window scale,
|
|
4154
4154
|
* scales it to the given size and renders it into a pixbuf. This is a
|
|
@@ -4169,7 +4169,7 @@ interface IconTheme {
|
|
|
4169
4169
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4170
4170
|
* @returns the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found.
|
|
4171
4171
|
*/
|
|
4172
|
-
load_icon_for_scale(icon_name: string
|
|
4172
|
+
load_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): GdkPixbuf.Pixbuf | null
|
|
4173
4173
|
/**
|
|
4174
4174
|
* Looks up an icon and returns a #StIconInfo containing information
|
|
4175
4175
|
* such as the filename of the icon. The icon can then be rendered
|
|
@@ -4214,7 +4214,7 @@ interface IconTheme {
|
|
|
4214
4214
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4215
4215
|
* @returns a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found.
|
|
4216
4216
|
*/
|
|
4217
|
-
lookup_icon(icon_name: string
|
|
4217
|
+
lookup_icon(icon_name: string, size: number, flags: IconLookupFlags): IconInfo | null
|
|
4218
4218
|
/**
|
|
4219
4219
|
* Looks up a named icon for a particular window scale and returns a
|
|
4220
4220
|
* #StIconInfo containing information such as the filename of the
|
|
@@ -4227,7 +4227,7 @@ interface IconTheme {
|
|
|
4227
4227
|
* @param flags flags modifying the behavior of the icon lookup
|
|
4228
4228
|
* @returns a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found.
|
|
4229
4229
|
*/
|
|
4230
|
-
lookup_icon_for_scale(icon_name: string
|
|
4230
|
+
lookup_icon_for_scale(icon_name: string, size: number, scale: number, flags: IconLookupFlags): IconInfo | null
|
|
4231
4231
|
/**
|
|
4232
4232
|
* Prepends a directory to the search path.
|
|
4233
4233
|
* See st_icon_theme_set_search_path().
|
|
@@ -4401,7 +4401,7 @@ interface ImageContent extends Clutter.Content, Gio.Icon, Gio.LoadableIcon {
|
|
|
4401
4401
|
* @param key name of the key
|
|
4402
4402
|
* @param data data to associate with that key
|
|
4403
4403
|
*/
|
|
4404
|
-
set_data(key: string
|
|
4404
|
+
set_data(key: string, data: any | null): void
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Each object carries around a table of associations from
|
|
4407
4407
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4416,7 +4416,7 @@ interface ImageContent extends Clutter.Content, Gio.Icon, Gio.LoadableIcon {
|
|
|
4416
4416
|
* @param key name of the key
|
|
4417
4417
|
* @param data data to associate with that key
|
|
4418
4418
|
*/
|
|
4419
|
-
set_data(key: string
|
|
4419
|
+
set_data(key: string, data: any | null): void
|
|
4420
4420
|
|
|
4421
4421
|
// Class property signals of St-13.St.ImageContent
|
|
4422
4422
|
|
|
@@ -4500,7 +4500,7 @@ interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
|
|
|
4500
4500
|
* Get the text displayed on the label.
|
|
4501
4501
|
* @returns the text for the label. This must not be freed by the application
|
|
4502
4502
|
*/
|
|
4503
|
-
get_text(): string
|
|
4503
|
+
get_text(): string
|
|
4504
4504
|
/**
|
|
4505
4505
|
* Sets the text displayed by the label.
|
|
4506
4506
|
* @param text text to set the label to
|
|
@@ -6411,7 +6411,7 @@ interface TextureCache {
|
|
|
6411
6411
|
* @param property_name Name of a property
|
|
6412
6412
|
* @returns A new #GIcon
|
|
6413
6413
|
*/
|
|
6414
|
-
bind_cairo_surface_property(object: GObject.Object, property_name: string
|
|
6414
|
+
bind_cairo_surface_property(object: GObject.Object, property_name: string): Gio.Icon
|
|
6415
6415
|
/**
|
|
6416
6416
|
* Create a #GIcon from `surface`.
|
|
6417
6417
|
* @param surface A #cairo_surface_t
|
|
@@ -6929,7 +6929,7 @@ interface ThemeNode {
|
|
|
6929
6929
|
* indicated color.
|
|
6930
6930
|
* @param property_name The name of the color property
|
|
6931
6931
|
*/
|
|
6932
|
-
get_color(property_name: string
|
|
6932
|
+
get_color(property_name: string): /* color */ Clutter.Color
|
|
6933
6933
|
/**
|
|
6934
6934
|
* Gets the box within an actor's allocation that contents the content
|
|
6935
6935
|
* of an actor (excluding borders and padding). This is a convenience function
|
|
@@ -6948,7 +6948,7 @@ interface ThemeNode {
|
|
|
6948
6948
|
* @param property_name The name of the numeric property
|
|
6949
6949
|
* @returns the value found. If @property_name is not found, a warning will be logged and 0 will be returned.
|
|
6950
6950
|
*/
|
|
6951
|
-
get_double(property_name: string
|
|
6951
|
+
get_double(property_name: string): number
|
|
6952
6952
|
/**
|
|
6953
6953
|
* Get the list of element classes for `node`.
|
|
6954
6954
|
* @returns the element's classes
|
|
@@ -6958,7 +6958,7 @@ interface ThemeNode {
|
|
|
6958
6958
|
* Get the unique element ID for `node`.
|
|
6959
6959
|
* @returns the element's ID
|
|
6960
6960
|
*/
|
|
6961
|
-
get_element_id(): string
|
|
6961
|
+
get_element_id(): string
|
|
6962
6962
|
/**
|
|
6963
6963
|
* Get the element #GType for `node`.
|
|
6964
6964
|
* @returns the element type
|
|
@@ -7015,7 +7015,7 @@ interface ThemeNode {
|
|
|
7015
7015
|
* @param property_name The name of the length property
|
|
7016
7016
|
* @returns the length, in pixels, or 0 if the property was not found.
|
|
7017
7017
|
*/
|
|
7018
|
-
get_length(property_name: string
|
|
7018
|
+
get_length(property_name: string): number
|
|
7019
7019
|
/**
|
|
7020
7020
|
* Gets the value for the letter-spacing style property, in physical pixels.
|
|
7021
7021
|
* @returns the value of the letter-spacing property, if found, or zero if such property has not been found.
|
|
@@ -7095,7 +7095,7 @@ interface ThemeNode {
|
|
|
7095
7095
|
* @param property_name The name of the shadow property
|
|
7096
7096
|
* @returns the shadow, or %NULL if the property was not found.
|
|
7097
7097
|
*/
|
|
7098
|
-
get_shadow(property_name: string
|
|
7098
|
+
get_shadow(property_name: string): Shadow | null
|
|
7099
7099
|
/**
|
|
7100
7100
|
* Get the text alignment of `node`.
|
|
7101
7101
|
* @returns the alignment of text for @node
|
|
@@ -7132,7 +7132,7 @@ interface ThemeNode {
|
|
|
7132
7132
|
* @param property_name The name of the string property
|
|
7133
7133
|
* @returns the newly allocated value if found. If @property_name is not found, a warning will be logged and %NULL will be returned.
|
|
7134
7134
|
*/
|
|
7135
|
-
get_url(property_name: string
|
|
7135
|
+
get_url(property_name: string): Gio.File | null
|
|
7136
7136
|
/**
|
|
7137
7137
|
* Gets the total vertical padding (top + bottom padding), in physical pixels.
|
|
7138
7138
|
* @returns the total vertical padding in physical pixels
|
|
@@ -7161,7 +7161,7 @@ interface ThemeNode {
|
|
|
7161
7161
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7162
7162
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7163
7163
|
*/
|
|
7164
|
-
lookup_color(property_name: string
|
|
7164
|
+
lookup_color(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* color */ Clutter.Color ]
|
|
7165
7165
|
/**
|
|
7166
7166
|
* Generically looks up a property containing a single numeric value
|
|
7167
7167
|
* without units.
|
|
@@ -7171,7 +7171,7 @@ interface ThemeNode {
|
|
|
7171
7171
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7172
7172
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7173
7173
|
*/
|
|
7174
|
-
lookup_double(property_name: string
|
|
7174
|
+
lookup_double(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* value */ number ]
|
|
7175
7175
|
/**
|
|
7176
7176
|
* Generically looks up a property containing a single length value. When
|
|
7177
7177
|
* specific getters (like st_theme_node_get_border_width()) exist, they
|
|
@@ -7183,7 +7183,7 @@ interface ThemeNode {
|
|
|
7183
7183
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7184
7184
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7185
7185
|
*/
|
|
7186
|
-
lookup_length(property_name: string
|
|
7186
|
+
lookup_length(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* length */ number ]
|
|
7187
7187
|
/**
|
|
7188
7188
|
* If the property is not found, the value in the shadow variable will not
|
|
7189
7189
|
* be changed.
|
|
@@ -7198,7 +7198,7 @@ interface ThemeNode {
|
|
|
7198
7198
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7199
7199
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.), %FALSE if the property was not found, or was explicitly set to 'none'.
|
|
7200
7200
|
*/
|
|
7201
|
-
lookup_shadow(property_name: string
|
|
7201
|
+
lookup_shadow(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* shadow */ Shadow ]
|
|
7202
7202
|
/**
|
|
7203
7203
|
* Generically looks up a property containing a single time value,
|
|
7204
7204
|
* which is converted to milliseconds.
|
|
@@ -7206,7 +7206,7 @@ interface ThemeNode {
|
|
|
7206
7206
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7207
7207
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7208
7208
|
*/
|
|
7209
|
-
lookup_time(property_name: string
|
|
7209
|
+
lookup_time(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* value */ number ]
|
|
7210
7210
|
/**
|
|
7211
7211
|
* Looks up a property containing a single URL value.
|
|
7212
7212
|
*
|
|
@@ -7215,7 +7215,7 @@ interface ThemeNode {
|
|
|
7215
7215
|
* @param inherit if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for `inherit;` this only affects the default behavior for inheritance.
|
|
7216
7216
|
* @returns %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.)
|
|
7217
7217
|
*/
|
|
7218
|
-
lookup_url(property_name: string
|
|
7218
|
+
lookup_url(property_name: string, inherit: boolean): [ /* returnType */ boolean, /* file */ Gio.File ]
|
|
7219
7219
|
/**
|
|
7220
7220
|
* Check if st_theme_node_paint() will paint identically for `node` as it does
|
|
7221
7221
|
* for `other`. Note that in some cases this function may return %TRUE even
|
|
@@ -7264,7 +7264,7 @@ class ThemeNode extends GObject.Object {
|
|
|
7264
7264
|
* @param inline_style
|
|
7265
7265
|
* @returns a new #StThemeNode
|
|
7266
7266
|
*/
|
|
7267
|
-
constructor(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string
|
|
7267
|
+
constructor(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string)
|
|
7268
7268
|
/**
|
|
7269
7269
|
* Creates a new #StThemeNode. Once created, a node is immutable. If any
|
|
7270
7270
|
* of the attributes of the node (like the `element_class)` change the node
|
|
@@ -7280,7 +7280,7 @@ class ThemeNode extends GObject.Object {
|
|
|
7280
7280
|
* @param inline_style
|
|
7281
7281
|
* @returns a new #StThemeNode
|
|
7282
7282
|
*/
|
|
7283
|
-
static new(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string
|
|
7283
|
+
static new(context: ThemeContext, parent_node: ThemeNode | null, theme: Theme | null, element_type: GObject.GType, element_id: string | null, element_class: string | null, pseudo_class: string | null, inline_style: string): ThemeNode
|
|
7284
7284
|
_init(config?: ThemeNode.ConstructorProperties): void
|
|
7285
7285
|
}
|
|
7286
7286
|
|
|
@@ -7794,13 +7794,13 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7794
7794
|
* already present.
|
|
7795
7795
|
* @param style_class a style class name string
|
|
7796
7796
|
*/
|
|
7797
|
-
add_style_class_name(style_class: string
|
|
7797
|
+
add_style_class_name(style_class: string): void
|
|
7798
7798
|
/**
|
|
7799
7799
|
* Adds `pseudo_class` to `actor'`s pseudo class list, if it is not
|
|
7800
7800
|
* already present.
|
|
7801
7801
|
* @param pseudo_class a pseudo class string
|
|
7802
7802
|
*/
|
|
7803
|
-
add_style_pseudo_class(pseudo_class: string
|
|
7803
|
+
add_style_pseudo_class(pseudo_class: string): void
|
|
7804
7804
|
/**
|
|
7805
7805
|
* Ensures that `widget` has read its style information and propagated any
|
|
7806
7806
|
* changes to its children.
|
|
@@ -7811,7 +7811,7 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7811
7811
|
* st_widget_set_accessible_name() for more information.
|
|
7812
7812
|
* @returns a character string representing the accessible name of the widget.
|
|
7813
7813
|
*/
|
|
7814
|
-
get_accessible_name(): string
|
|
7814
|
+
get_accessible_name(): string
|
|
7815
7815
|
/**
|
|
7816
7816
|
* Gets the #AtkRole for this widget. See
|
|
7817
7817
|
* st_widget_set_accessible_role() for more information.
|
|
@@ -7851,7 +7851,7 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7851
7851
|
* Get the current style class name
|
|
7852
7852
|
* @returns the class name string. The string is owned by the #StWidget and should not be modified or freed.
|
|
7853
7853
|
*/
|
|
7854
|
-
get_style_class_name(): string
|
|
7854
|
+
get_style_class_name(): string
|
|
7855
7855
|
/**
|
|
7856
7856
|
* Get the current style pseudo class list.
|
|
7857
7857
|
*
|
|
@@ -7860,7 +7860,7 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7860
7860
|
* st_widget_has_style_pseudo_class().
|
|
7861
7861
|
* @returns the pseudo class list string. The string is owned by the #StWidget and should not be modified or freed.
|
|
7862
7862
|
*/
|
|
7863
|
-
get_style_pseudo_class(): string
|
|
7863
|
+
get_style_pseudo_class(): string
|
|
7864
7864
|
/**
|
|
7865
7865
|
* Gets the theme node holding style information for the widget.
|
|
7866
7866
|
* The theme node is used to access standard and custom CSS
|
|
@@ -7882,13 +7882,13 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7882
7882
|
* @param style_class a style class string
|
|
7883
7883
|
* @returns whether or not @actor's style class list includes @style_class.
|
|
7884
7884
|
*/
|
|
7885
|
-
has_style_class_name(style_class: string
|
|
7885
|
+
has_style_class_name(style_class: string): boolean
|
|
7886
7886
|
/**
|
|
7887
7887
|
* Tests if `actor'`s pseudo class list includes `pseudo_class`.
|
|
7888
7888
|
* @param pseudo_class a pseudo class string
|
|
7889
7889
|
* @returns whether or not @actor's pseudo class list includes @pseudo_class.
|
|
7890
7890
|
*/
|
|
7891
|
-
has_style_pseudo_class(pseudo_class: string
|
|
7891
|
+
has_style_pseudo_class(pseudo_class: string): boolean
|
|
7892
7892
|
/**
|
|
7893
7893
|
* Tries to update the keyboard focus within `widget` in response to a
|
|
7894
7894
|
* keyboard event.
|
|
@@ -7952,12 +7952,12 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
|
|
|
7952
7952
|
* present.
|
|
7953
7953
|
* @param style_class a style class name string
|
|
7954
7954
|
*/
|
|
7955
|
-
remove_style_class_name(style_class: string
|
|
7955
|
+
remove_style_class_name(style_class: string): void
|
|
7956
7956
|
/**
|
|
7957
7957
|
* Removes `pseudo_class` from `actor'`s pseudo class, if it is present.
|
|
7958
7958
|
* @param pseudo_class a pseudo class string
|
|
7959
7959
|
*/
|
|
7960
|
-
remove_style_pseudo_class(pseudo_class: string
|
|
7960
|
+
remove_style_pseudo_class(pseudo_class: string): void
|
|
7961
7961
|
/**
|
|
7962
7962
|
* This method allows to set a customly created accessible object to
|
|
7963
7963
|
* this widget. For example if you define a new subclass of
|
|
@@ -8391,7 +8391,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8391
8391
|
* Gets the accessible description of the accessible.
|
|
8392
8392
|
* @returns a character string representing the accessible description of the accessible.
|
|
8393
8393
|
*/
|
|
8394
|
-
get_description(): string
|
|
8394
|
+
get_description(): string
|
|
8395
8395
|
/**
|
|
8396
8396
|
* Returns a non-localized string naming the specified action of the
|
|
8397
8397
|
* object. This name is generally not descriptive of the end result
|
|
@@ -8415,14 +8415,14 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8415
8415
|
* Gets the accessible name of the accessible.
|
|
8416
8416
|
* @returns a character string representing the accessible name of the object.
|
|
8417
8417
|
*/
|
|
8418
|
-
get_name(): string
|
|
8418
|
+
get_name(): string
|
|
8419
8419
|
/**
|
|
8420
8420
|
* Sets a description of the specified action of the object.
|
|
8421
8421
|
* @param i the action index corresponding to the action to be performed
|
|
8422
8422
|
* @param desc the description to be assigned to this action
|
|
8423
8423
|
* @returns a gboolean representing if the description was successfully set;
|
|
8424
8424
|
*/
|
|
8425
|
-
set_description(i: number, desc: string
|
|
8425
|
+
set_description(i: number, desc: string): boolean
|
|
8426
8426
|
/**
|
|
8427
8427
|
* Sets the accessible description of the accessible. You can't set
|
|
8428
8428
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -8430,7 +8430,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8430
8430
|
* the name to a empty value you can use "".
|
|
8431
8431
|
* @param description a character string to be set as the accessible description
|
|
8432
8432
|
*/
|
|
8433
|
-
set_description(description: string
|
|
8433
|
+
set_description(description: string): void
|
|
8434
8434
|
/**
|
|
8435
8435
|
* Returns a description of the specified action of the object.
|
|
8436
8436
|
* @virtual
|
|
@@ -8443,7 +8443,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8443
8443
|
* @virtual
|
|
8444
8444
|
* @returns a character string representing the accessible description of the accessible.
|
|
8445
8445
|
*/
|
|
8446
|
-
vfunc_get_description(): string
|
|
8446
|
+
vfunc_get_description(): string
|
|
8447
8447
|
/**
|
|
8448
8448
|
* Returns a non-localized string naming the specified action of the
|
|
8449
8449
|
* object. This name is generally not descriptive of the end result
|
|
@@ -8469,7 +8469,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8469
8469
|
* @virtual
|
|
8470
8470
|
* @returns a character string representing the accessible name of the object.
|
|
8471
8471
|
*/
|
|
8472
|
-
vfunc_get_name(): string
|
|
8472
|
+
vfunc_get_name(): string
|
|
8473
8473
|
/**
|
|
8474
8474
|
* Sets a description of the specified action of the object.
|
|
8475
8475
|
* @virtual
|
|
@@ -8477,7 +8477,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8477
8477
|
* @param desc the description to be assigned to this action
|
|
8478
8478
|
* @returns a gboolean representing if the description was successfully set;
|
|
8479
8479
|
*/
|
|
8480
|
-
vfunc_set_description(i: number, desc: string
|
|
8480
|
+
vfunc_set_description(i: number, desc: string): boolean
|
|
8481
8481
|
/**
|
|
8482
8482
|
* Sets the accessible description of the accessible. You can't set
|
|
8483
8483
|
* the description to NULL. This is reserved for the initial value. In
|
|
@@ -8486,7 +8486,7 @@ interface WidgetAccessible extends Atk.Action, Atk.Component {
|
|
|
8486
8486
|
* @virtual
|
|
8487
8487
|
* @param description a character string to be set as the accessible description
|
|
8488
8488
|
*/
|
|
8489
|
-
vfunc_set_description(description: string
|
|
8489
|
+
vfunc_set_description(description: string): void
|
|
8490
8490
|
|
|
8491
8491
|
// Class property signals of St-13.St.WidgetAccessible
|
|
8492
8492
|
|