@gjsify/adwaita-nativescript 0.64.2-next.252 → 0.64.2-next.255
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/lib/esm/builder/index.js +1 -1
- package/lib/esm/builder/param-values.js +1 -0
- package/lib/esm/canvas2d/canvas2d-bridge.js +1 -1
- package/lib/esm/capabilities.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/gdk.js +1 -1
- package/lib/esm/namespace/gio.js +1 -1
- package/lib/esm/namespace/glib.js +1 -1
- package/lib/esm/namespace/gobject.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +2 -1
- package/lib/esm/widgets/adw-action-row.js +1 -1
- package/lib/esm/widgets/adw-avatar.js +1 -1
- package/lib/esm/widgets/adw-banner.js +1 -1
- package/lib/esm/widgets/adw-bottom-sheet.js +1 -1
- package/lib/esm/widgets/adw-button-content.js +1 -1
- package/lib/esm/widgets/adw-carousel.js +1 -1
- package/lib/esm/widgets/adw-combo-row.js +1 -1
- package/lib/esm/widgets/adw-data-grid.js +1 -1
- package/lib/esm/widgets/adw-dialog.js +1 -1
- package/lib/esm/widgets/adw-entry-row.js +1 -1
- package/lib/esm/widgets/adw-expander-row.js +1 -1
- package/lib/esm/widgets/adw-image-button.js +1 -1
- package/lib/esm/widgets/adw-navigation-page.js +1 -1
- package/lib/esm/widgets/adw-navigation-split-view.js +1 -1
- package/lib/esm/widgets/adw-navigation-view.js +1 -1
- package/lib/esm/widgets/adw-overlay-split-view.js +1 -1
- package/lib/esm/widgets/adw-password-entry-row.js +1 -1
- package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
- package/lib/esm/widgets/adw-preferences-page.js +1 -1
- package/lib/esm/widgets/adw-sidebar.js +1 -1
- package/lib/esm/widgets/adw-slider-row.js +1 -1
- package/lib/esm/widgets/adw-spin-row.js +1 -1
- package/lib/esm/widgets/adw-spinner.js +1 -1
- package/lib/esm/widgets/adw-split-button.js +1 -1
- package/lib/esm/widgets/adw-switch-row.js +1 -1
- package/lib/esm/widgets/adw-tab-view.js +1 -1
- package/lib/esm/widgets/adw-toggle-group.js +1 -1
- package/lib/esm/widgets/adw-toolbar-view.js +1 -1
- package/lib/esm/widgets/adw-view-switcher-bar.js +1 -1
- package/lib/esm/widgets/adw-wrap-box.js +1 -1
- package/lib/esm/widgets/application.js +1 -1
- package/lib/esm/widgets/gtk-action-bar.js +1 -1
- package/lib/esm/widgets/gtk-box.js +1 -1
- package/lib/esm/widgets/gtk-button.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/gtk-drawing-area.js +1 -1
- package/lib/esm/widgets/gtk-drop-down.js +1 -1
- package/lib/esm/widgets/gtk-entry.js +1 -1
- package/lib/esm/widgets/gtk-grid.js +1 -1
- package/lib/esm/widgets/gtk-image.js +1 -1
- package/lib/esm/widgets/gtk-label.js +1 -1
- package/lib/esm/widgets/gtk-list-box.js +1 -1
- package/lib/esm/widgets/gtk-menu-button.js +1 -1
- package/lib/esm/widgets/gtk-revealer.js +1 -1
- package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
- package/lib/esm/widgets/gtk-stack.js +1 -1
- package/lib/esm/widgets/gtk-text-view.js +1 -1
- package/lib/esm/widgets/gtk-toggle-button.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/icon-path.js +1 -1
- package/lib/esm/widgets/icon-render.js +1 -0
- package/lib/esm/widgets/icon-theme.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/signals.js +1 -1
- package/lib/esm/widgets/stack-page.js +1 -1
- package/lib/esm/widgets/view-stack-page.js +1 -1
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/esm/widgets/widget-mapping.js +1 -0
- package/lib/types/about-dialog-doors.spec.d.ts +1 -0
- package/lib/types/builder/index.d.ts +4 -0
- package/lib/types/builder/param-values.d.ts +21 -0
- package/lib/types/carousel-doors.spec.d.ts +1 -0
- package/lib/types/gio-resource.spec.d.ts +1 -0
- package/lib/types/gio.spec.d.ts +2 -0
- package/lib/types/icon-resources.spec.d.ts +2 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/namespace/gdk.d.ts +1 -0
- package/lib/types/namespace/gio.d.ts +2 -0
- package/lib/types/namespace/glib.d.ts +2 -1
- package/lib/types/param-values.spec.d.ts +1 -0
- package/lib/types/testing/ns-core.d.mts +55 -14
- package/lib/types/widget-map.spec.d.ts +1 -0
- package/lib/types/widgets/adw-about-dialog.d.ts +32 -2
- package/lib/types/widgets/adw-action-row.d.ts +8 -1
- package/lib/types/widgets/adw-alert-dialog.d.ts +8 -1
- package/lib/types/widgets/adw-avatar.d.ts +8 -1
- package/lib/types/widgets/adw-banner.d.ts +8 -1
- package/lib/types/widgets/adw-bottom-sheet.d.ts +8 -1
- package/lib/types/widgets/adw-button-content.d.ts +8 -1
- package/lib/types/widgets/adw-carousel.d.ts +22 -3
- package/lib/types/widgets/adw-clamp.d.ts +8 -1
- package/lib/types/widgets/adw-combo-row.d.ts +4 -0
- package/lib/types/widgets/adw-data-grid.d.ts +8 -1
- package/lib/types/widgets/adw-header-bar.d.ts +8 -1
- package/lib/types/widgets/adw-image-button.d.ts +11 -2
- package/lib/types/widgets/adw-navigation-page.d.ts +8 -1
- package/lib/types/widgets/adw-navigation-view.d.ts +8 -1
- package/lib/types/widgets/adw-preferences-dialog.d.ts +8 -1
- package/lib/types/widgets/adw-preferences-group.d.ts +8 -1
- package/lib/types/widgets/adw-preferences-page.d.ts +8 -1
- package/lib/types/widgets/adw-shortcut-label.d.ts +8 -1
- package/lib/types/widgets/adw-sidebar.d.ts +8 -1
- package/lib/types/widgets/adw-slider-row.d.ts +8 -1
- package/lib/types/widgets/adw-spinner.d.ts +8 -1
- package/lib/types/widgets/adw-split-button.d.ts +8 -1
- package/lib/types/widgets/adw-status-page.d.ts +8 -1
- package/lib/types/widgets/adw-switch-row.d.ts +2 -0
- package/lib/types/widgets/adw-tab-view.d.ts +8 -1
- package/lib/types/widgets/adw-toast-overlay.d.ts +8 -1
- package/lib/types/widgets/adw-toggle-group.d.ts +8 -1
- package/lib/types/widgets/adw-toggle.d.ts +8 -1
- package/lib/types/widgets/adw-toolbar-view.d.ts +8 -1
- package/lib/types/widgets/adw-view-stack.d.ts +8 -1
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +8 -1
- package/lib/types/widgets/adw-window-title.d.ts +8 -1
- package/lib/types/widgets/adw-wrap-box.d.ts +8 -1
- package/lib/types/widgets/carousel-indicator-base.d.ts +8 -1
- package/lib/types/widgets/gtk-action-bar.d.ts +8 -1
- package/lib/types/widgets/gtk-button.d.ts +11 -2
- package/lib/types/widgets/gtk-check-button.d.ts +10 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +8 -1
- package/lib/types/widgets/gtk-entry.d.ts +8 -1
- package/lib/types/widgets/gtk-image.d.ts +11 -2
- package/lib/types/widgets/gtk-label.d.ts +8 -1
- package/lib/types/widgets/gtk-popover-menu.d.ts +8 -1
- package/lib/types/widgets/gtk-stack.d.ts +8 -1
- package/lib/types/widgets/gtk-text-view.d.ts +8 -1
- package/lib/types/widgets/icon-path.d.ts +9 -0
- package/lib/types/widgets/icon-render.d.ts +9 -0
- package/lib/types/widgets/icon-theme.d.ts +43 -40
- package/lib/types/widgets/index.d.ts +1 -1
- package/lib/types/widgets/signals.d.ts +14 -1
- package/lib/types/widgets/split-view-base.d.ts +8 -1
- package/lib/types/widgets/stack-page.d.ts +8 -1
- package/lib/types/widgets/styled-layout-base.d.ts +8 -1
- package/lib/types/widgets/view-stack-page.d.ts +8 -1
- package/lib/types/widgets/view-switcher-base.d.ts +8 -1
- package/lib/types/widgets/widget-layout.d.ts +10 -0
- package/lib/types/widgets/widget-mapping.d.ts +9 -0
- package/package.json +13 -13
- package/src/testing/ns-core.mts +147 -18
- package/src/theme/adwaita.css +13 -2
|
@@ -6,7 +6,7 @@ export declare const GTK_BUTTON_CLICKED = "clicked";
|
|
|
6
6
|
export declare const GTK_BUTTON_IMAGE_CLASS = "image-button";
|
|
7
7
|
/** The class the button's own label carries, so the theme can give it Adwaita's type. */
|
|
8
8
|
export declare const GTK_BUTTON_LABEL_CLASS = "adw-button-label";
|
|
9
|
-
declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
9
|
+
declare const GtkButton_base: ((abstract new (...args: any[]) => {
|
|
10
10
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
11
11
|
disconnect(handlerId: number): void;
|
|
12
12
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -32,12 +32,17 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set name(value: string | null);
|
|
33
33
|
get tooltipText(): string;
|
|
34
34
|
set tooltipText(value: string);
|
|
35
|
+
get tooltip_text(): string;
|
|
36
|
+
set tooltip_text(value: string);
|
|
35
37
|
get widthRequest(): number;
|
|
36
38
|
set widthRequest(value: number | string);
|
|
37
39
|
get heightRequest(): number;
|
|
38
40
|
set heightRequest(value: number | string);
|
|
39
41
|
get_visible(): boolean;
|
|
40
42
|
set_visible(visible: boolean): void;
|
|
43
|
+
get_mapped(): boolean;
|
|
44
|
+
get_tooltip_text(): string;
|
|
45
|
+
set_tooltip_text(text: string): void;
|
|
41
46
|
set_direction(direction: number): void;
|
|
42
47
|
get_direction(): number;
|
|
43
48
|
get_first_child(): object | null;
|
|
@@ -56,6 +61,8 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
56
61
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
57
62
|
set(name: string, value: unknown): void;
|
|
58
63
|
get(name: string): unknown;
|
|
64
|
+
}) & {
|
|
65
|
+
readonly emittedSignals: readonly string[];
|
|
59
66
|
}) & typeof GridLayout;
|
|
60
67
|
export declare class GtkButton extends GtkButton_base {
|
|
61
68
|
static readonly GTypeName: string;
|
|
@@ -71,6 +78,7 @@ export declare class GtkButton extends GtkButton_base {
|
|
|
71
78
|
private _styleClasses;
|
|
72
79
|
private _label;
|
|
73
80
|
private _iconName;
|
|
81
|
+
private _tooltipText;
|
|
74
82
|
private _useUnderline;
|
|
75
83
|
private _slot;
|
|
76
84
|
/** The view currently in the single cell, whichever slot filled it. */
|
|
@@ -101,7 +109,8 @@ export declare class GtkButton extends GtkButton_base {
|
|
|
101
109
|
* `GtkWidget:tooltip-text`. GTK shows it on hover and hands it to assistive technology
|
|
102
110
|
* as the description: that half is `accessibilityHint`, and on Android the native view
|
|
103
111
|
* also gets `setTooltipText`, which shows it on long press (`./native-tooltip.ts`).
|
|
104
|
-
* An icon-only button is where a `.blp` writes one.
|
|
112
|
+
* An icon-only button is where a `.blp` writes one. It is the description only until an
|
|
113
|
+
* `accessibility { description }` writes its own, as GTK falls back to the tooltip.
|
|
105
114
|
*/
|
|
106
115
|
get tooltipText(): string;
|
|
107
116
|
set tooltipText(value: string);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type View } from '@nativescript/core';
|
|
2
2
|
import { type ConstructProps } from './construct-props.js';
|
|
3
|
+
import { type ViewId } from './id-reference.js';
|
|
3
4
|
import { AdwStyledLayoutBase } from './styled-layout-base.js';
|
|
4
5
|
/** Event name emitted when `active` changes. Mirrors `Gtk.CheckButton::toggled`. */
|
|
5
6
|
export declare const GTK_CHECK_BUTTON_TOGGLED = "toggled";
|
|
@@ -15,6 +16,8 @@ export declare class GtkCheckButton extends AdwStyledLayoutBase {
|
|
|
15
16
|
/** The GTK signals this widget emits through `connect` — read by the shared-tree builder (ADR 0093). */
|
|
16
17
|
static readonly emittedSignals: readonly string[];
|
|
17
18
|
static readonly builderSlots: readonly string[];
|
|
19
|
+
/** `group` names another check button of the same tree — see `./builder-slots.ts`. */
|
|
20
|
+
static readonly builderReferences: readonly string[];
|
|
18
21
|
private readonly _indicator;
|
|
19
22
|
private readonly _mark;
|
|
20
23
|
private readonly _text;
|
|
@@ -23,10 +26,17 @@ export declare class GtkCheckButton extends AdwStyledLayoutBase {
|
|
|
23
26
|
private _label;
|
|
24
27
|
private _useUnderline;
|
|
25
28
|
private _child;
|
|
29
|
+
/** A `group` written as an id before the button was in a loaded tree. */
|
|
30
|
+
private _groupId;
|
|
26
31
|
constructor(props?: ConstructProps<GtkCheckButton>);
|
|
27
32
|
/** `Gtk.CheckButton:active` — whether the box is ticked. Defaults to `false`. */
|
|
28
33
|
get active(): boolean;
|
|
29
34
|
set active(raw: boolean | string);
|
|
35
|
+
/** `Gtk.CheckButton:group` — WRITE-ONLY, as in GTK (`G_PARAM_WRITABLE`). */
|
|
36
|
+
set group(value: GtkCheckButton | ViewId | null);
|
|
37
|
+
/** `gtk_check_button_set_group`. */
|
|
38
|
+
set_group(group: GtkCheckButton | null): void;
|
|
39
|
+
private _resolveGroupId;
|
|
30
40
|
/** `Gtk.CheckButton:inconsistent` — the "partly on" dash. Defaults to `false`. */
|
|
31
41
|
get inconsistent(): boolean;
|
|
32
42
|
set inconsistent(raw: boolean | string);
|
|
@@ -15,7 +15,7 @@ export interface NotifyDropDownSelectedEventData extends EventData {
|
|
|
15
15
|
/** The newly-selected option's `label` — what the button now shows. */
|
|
16
16
|
label: string;
|
|
17
17
|
}
|
|
18
|
-
declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
18
|
+
declare const GtkDropDown_base: ((abstract new (...args: any[]) => {
|
|
19
19
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
20
20
|
disconnect(handlerId: number): void;
|
|
21
21
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -41,12 +41,17 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
set name(value: string | null);
|
|
42
42
|
get tooltipText(): string;
|
|
43
43
|
set tooltipText(value: string);
|
|
44
|
+
get tooltip_text(): string;
|
|
45
|
+
set tooltip_text(value: string);
|
|
44
46
|
get widthRequest(): number;
|
|
45
47
|
set widthRequest(value: number | string);
|
|
46
48
|
get heightRequest(): number;
|
|
47
49
|
set heightRequest(value: number | string);
|
|
48
50
|
get_visible(): boolean;
|
|
49
51
|
set_visible(visible: boolean): void;
|
|
52
|
+
get_mapped(): boolean;
|
|
53
|
+
get_tooltip_text(): string;
|
|
54
|
+
set_tooltip_text(text: string): void;
|
|
50
55
|
set_direction(direction: number): void;
|
|
51
56
|
get_direction(): number;
|
|
52
57
|
get_first_child(): object | null;
|
|
@@ -65,6 +70,8 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
65
70
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
66
71
|
set(name: string, value: unknown): void;
|
|
67
72
|
get(name: string): unknown;
|
|
73
|
+
}) & {
|
|
74
|
+
readonly emittedSignals: readonly string[];
|
|
68
75
|
}) & typeof StackLayout;
|
|
69
76
|
export declare class GtkDropDown extends GtkDropDown_base {
|
|
70
77
|
static readonly GTypeName: string;
|
|
@@ -13,7 +13,7 @@ export interface NotifyEntryTextEventData extends EventData {
|
|
|
13
13
|
/** The new number of CHARACTERS (not UTF-16 units). */
|
|
14
14
|
textLength: number;
|
|
15
15
|
}
|
|
16
|
-
declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
16
|
+
declare const GtkEntry_base: ((abstract new (...args: any[]) => {
|
|
17
17
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
18
18
|
disconnect(handlerId: number): void;
|
|
19
19
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -39,12 +39,17 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
set name(value: string | null);
|
|
40
40
|
get tooltipText(): string;
|
|
41
41
|
set tooltipText(value: string);
|
|
42
|
+
get tooltip_text(): string;
|
|
43
|
+
set tooltip_text(value: string);
|
|
42
44
|
get widthRequest(): number;
|
|
43
45
|
set widthRequest(value: number | string);
|
|
44
46
|
get heightRequest(): number;
|
|
45
47
|
set heightRequest(value: number | string);
|
|
46
48
|
get_visible(): boolean;
|
|
47
49
|
set_visible(visible: boolean): void;
|
|
50
|
+
get_mapped(): boolean;
|
|
51
|
+
get_tooltip_text(): string;
|
|
52
|
+
set_tooltip_text(text: string): void;
|
|
48
53
|
set_direction(direction: number): void;
|
|
49
54
|
get_direction(): number;
|
|
50
55
|
get_first_child(): object | null;
|
|
@@ -63,6 +68,8 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
63
68
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
64
69
|
set(name: string, value: unknown): void;
|
|
65
70
|
get(name: string): unknown;
|
|
71
|
+
}) & {
|
|
72
|
+
readonly emittedSignals: readonly string[];
|
|
66
73
|
}) & typeof GridLayout;
|
|
67
74
|
export declare class GtkEntry extends GtkEntry_base {
|
|
68
75
|
static readonly GTypeName: string;
|
|
@@ -11,7 +11,7 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
11
11
|
* to this same number.
|
|
12
12
|
*/
|
|
13
13
|
export declare const DEFAULT_GTK_IMAGE_SIZE: number;
|
|
14
|
-
declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
14
|
+
declare const GtkImage_base: ((abstract new (...args: any[]) => {
|
|
15
15
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
16
16
|
disconnect(handlerId: number): void;
|
|
17
17
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -37,12 +37,17 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
37
37
|
set name(value: string | null);
|
|
38
38
|
get tooltipText(): string;
|
|
39
39
|
set tooltipText(value: string);
|
|
40
|
+
get tooltip_text(): string;
|
|
41
|
+
set tooltip_text(value: string);
|
|
40
42
|
get widthRequest(): number;
|
|
41
43
|
set widthRequest(value: number | string);
|
|
42
44
|
get heightRequest(): number;
|
|
43
45
|
set heightRequest(value: number | string);
|
|
44
46
|
get_visible(): boolean;
|
|
45
47
|
set_visible(visible: boolean): void;
|
|
48
|
+
get_mapped(): boolean;
|
|
49
|
+
get_tooltip_text(): string;
|
|
50
|
+
set_tooltip_text(text: string): void;
|
|
46
51
|
set_direction(direction: number): void;
|
|
47
52
|
get_direction(): number;
|
|
48
53
|
get_first_child(): object | null;
|
|
@@ -61,6 +66,8 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
61
66
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
62
67
|
set(name: string, value: unknown): void;
|
|
63
68
|
get(name: string): unknown;
|
|
69
|
+
}) & {
|
|
70
|
+
readonly emittedSignals: readonly string[];
|
|
64
71
|
}) & typeof Image;
|
|
65
72
|
export declare class GtkImage extends GtkImage_base {
|
|
66
73
|
static readonly GTypeName: string;
|
|
@@ -70,6 +77,7 @@ export declare class GtkImage extends GtkImage_base {
|
|
|
70
77
|
private _iconSize;
|
|
71
78
|
private _pixelSize;
|
|
72
79
|
private _unsubScheme;
|
|
80
|
+
private _unsubIcons;
|
|
73
81
|
constructor(props?: ConstructProps<GtkImage>);
|
|
74
82
|
/** Adopt the active scheme's default fill (no-op if the caller pinned a colour). */
|
|
75
83
|
private _syncThemeColor;
|
|
@@ -81,7 +89,8 @@ export declare class GtkImage extends GtkImage_base {
|
|
|
81
89
|
/**
|
|
82
90
|
* The icon to render: an Adwaita icon NAME (`'list-add-symbolic'`) or an Adwaita
|
|
83
91
|
* symbolic SVG SOURCE string (e.g. `panDownSymbolic`). A name the compiled subset
|
|
84
|
-
* does not carry draws the `image-missing` glyph; `''` draws
|
|
92
|
+
* does not carry, and no resource path holds, draws the `image-missing` glyph; `''` draws
|
|
93
|
+
* nothing.
|
|
85
94
|
*/
|
|
86
95
|
get iconName(): string;
|
|
87
96
|
set iconName(value: string);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Label } from '@nativescript/core';
|
|
2
2
|
import { type LabelEllipsizeMode, type LabelJustification } from '@gjsify/adwaita-core';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
|
-
declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
4
|
+
declare const GtkLabel_base: ((abstract new (...args: any[]) => {
|
|
5
5
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
6
6
|
disconnect(handlerId: number): void;
|
|
7
7
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -27,12 +27,17 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
27
27
|
set name(value: string | null);
|
|
28
28
|
get tooltipText(): string;
|
|
29
29
|
set tooltipText(value: string);
|
|
30
|
+
get tooltip_text(): string;
|
|
31
|
+
set tooltip_text(value: string);
|
|
30
32
|
get widthRequest(): number;
|
|
31
33
|
set widthRequest(value: number | string);
|
|
32
34
|
get heightRequest(): number;
|
|
33
35
|
set heightRequest(value: number | string);
|
|
34
36
|
get_visible(): boolean;
|
|
35
37
|
set_visible(visible: boolean): void;
|
|
38
|
+
get_mapped(): boolean;
|
|
39
|
+
get_tooltip_text(): string;
|
|
40
|
+
set_tooltip_text(text: string): void;
|
|
36
41
|
set_direction(direction: number): void;
|
|
37
42
|
get_direction(): number;
|
|
38
43
|
get_first_child(): object | null;
|
|
@@ -51,6 +56,8 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
51
56
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
52
57
|
set(name: string, value: unknown): void;
|
|
53
58
|
get(name: string): unknown;
|
|
59
|
+
}) & {
|
|
60
|
+
readonly emittedSignals: readonly string[];
|
|
54
61
|
}) & typeof Label;
|
|
55
62
|
export declare class GtkLabel extends GtkLabel_base {
|
|
56
63
|
static readonly GTypeName: string;
|
|
@@ -4,7 +4,7 @@ import type { ActionHost } from './actions.js';
|
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
/** `GtkPopover::closed`, emitted when the menu goes away. */
|
|
6
6
|
export declare const CLOSED = "closed";
|
|
7
|
-
declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
7
|
+
declare const GtkPopoverMenu_base: ((abstract new (...args: any[]) => {
|
|
8
8
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
9
9
|
disconnect(handlerId: number): void;
|
|
10
10
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -30,12 +30,17 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
|
30
30
|
set name(value: string | null);
|
|
31
31
|
get tooltipText(): string;
|
|
32
32
|
set tooltipText(value: string);
|
|
33
|
+
get tooltip_text(): string;
|
|
34
|
+
set tooltip_text(value: string);
|
|
33
35
|
get widthRequest(): number;
|
|
34
36
|
set widthRequest(value: number | string);
|
|
35
37
|
get heightRequest(): number;
|
|
36
38
|
set heightRequest(value: number | string);
|
|
37
39
|
get_visible(): boolean;
|
|
38
40
|
set_visible(visible: boolean): void;
|
|
41
|
+
get_mapped(): boolean;
|
|
42
|
+
get_tooltip_text(): string;
|
|
43
|
+
set_tooltip_text(text: string): void;
|
|
39
44
|
set_direction(direction: number): void;
|
|
40
45
|
get_direction(): number;
|
|
41
46
|
get_first_child(): object | null;
|
|
@@ -54,6 +59,8 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
|
54
59
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
55
60
|
set(name: string, value: unknown): void;
|
|
56
61
|
get(name: string): unknown;
|
|
62
|
+
}) & {
|
|
63
|
+
readonly emittedSignals: readonly string[];
|
|
57
64
|
}) & typeof Observable;
|
|
58
65
|
export declare class GtkPopoverMenu extends GtkPopoverMenu_base {
|
|
59
66
|
static readonly GTypeName: string;
|
|
@@ -11,7 +11,7 @@ export declare const NOTIFY_STACK_VISIBLE_CHILD_NAME = "notify::visible-child-na
|
|
|
11
11
|
/** Payload of both events. `index` is `-1` and `name`/`title` are `''` when nothing is selected. */
|
|
12
12
|
export interface NotifyStackVisibleChildEventData extends EventData, ViewStackNotifyPayload {
|
|
13
13
|
}
|
|
14
|
-
declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
14
|
+
declare const GtkStack_base: ((abstract new (...args: any[]) => {
|
|
15
15
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
16
16
|
disconnect(handlerId: number): void;
|
|
17
17
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -37,12 +37,17 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
|
37
37
|
set name(value: string | null);
|
|
38
38
|
get tooltipText(): string;
|
|
39
39
|
set tooltipText(value: string);
|
|
40
|
+
get tooltip_text(): string;
|
|
41
|
+
set tooltip_text(value: string);
|
|
40
42
|
get widthRequest(): number;
|
|
41
43
|
set widthRequest(value: number | string);
|
|
42
44
|
get heightRequest(): number;
|
|
43
45
|
set heightRequest(value: number | string);
|
|
44
46
|
get_visible(): boolean;
|
|
45
47
|
set_visible(visible: boolean): void;
|
|
48
|
+
get_mapped(): boolean;
|
|
49
|
+
get_tooltip_text(): string;
|
|
50
|
+
set_tooltip_text(text: string): void;
|
|
46
51
|
set_direction(direction: number): void;
|
|
47
52
|
get_direction(): number;
|
|
48
53
|
get_first_child(): object | null;
|
|
@@ -61,6 +66,8 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
|
61
66
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
62
67
|
set(name: string, value: unknown): void;
|
|
63
68
|
get(name: string): unknown;
|
|
69
|
+
}) & {
|
|
70
|
+
readonly emittedSignals: readonly string[];
|
|
64
71
|
}) & typeof GridLayout;
|
|
65
72
|
export declare class GtkStack extends GtkStack_base {
|
|
66
73
|
static readonly GTypeName: string;
|
|
@@ -13,7 +13,7 @@ export interface GtkTextBufferSubset {
|
|
|
13
13
|
set_text(text: string, len?: number): void;
|
|
14
14
|
insert_at_cursor(text: string, len?: number): void;
|
|
15
15
|
}
|
|
16
|
-
declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
16
|
+
declare const GtkTextView_base: ((abstract new (...args: any[]) => {
|
|
17
17
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
18
18
|
disconnect(handlerId: number): void;
|
|
19
19
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -39,12 +39,17 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
set name(value: string | null);
|
|
40
40
|
get tooltipText(): string;
|
|
41
41
|
set tooltipText(value: string);
|
|
42
|
+
get tooltip_text(): string;
|
|
43
|
+
set tooltip_text(value: string);
|
|
42
44
|
get widthRequest(): number;
|
|
43
45
|
set widthRequest(value: number | string);
|
|
44
46
|
get heightRequest(): number;
|
|
45
47
|
set heightRequest(value: number | string);
|
|
46
48
|
get_visible(): boolean;
|
|
47
49
|
set_visible(visible: boolean): void;
|
|
50
|
+
get_mapped(): boolean;
|
|
51
|
+
get_tooltip_text(): string;
|
|
52
|
+
set_tooltip_text(text: string): void;
|
|
48
53
|
set_direction(direction: number): void;
|
|
49
54
|
get_direction(): number;
|
|
50
55
|
get_first_child(): object | null;
|
|
@@ -63,6 +68,8 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
|
63
68
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
64
69
|
set(name: string, value: unknown): void;
|
|
65
70
|
get(name: string): unknown;
|
|
71
|
+
}) & {
|
|
72
|
+
readonly emittedSignals: readonly string[];
|
|
66
73
|
}) & typeof GridLayout;
|
|
67
74
|
export declare class GtkTextView extends GtkTextView_base {
|
|
68
75
|
static readonly GTypeName: string;
|
|
@@ -131,3 +131,12 @@ export declare function parseHexColorOrNull(hex: string): IconColorComponents |
|
|
|
131
131
|
* icons use — a multi-digit rotation glued directly to the flags is not split.)
|
|
132
132
|
*/
|
|
133
133
|
export declare function normalizeArcFlags(d: string): string;
|
|
134
|
+
/**
|
|
135
|
+
* `svg` with its content mapped onto the {@link ADWAITA_ICON_GRID} the rasterisers draw on.
|
|
136
|
+
*
|
|
137
|
+
* A compiled glyph is authored on that grid; a symbolic file an application ships need not be.
|
|
138
|
+
* Its `viewBox`, else its `width` and `height`, is scaled to fit and centred, as GTK fits an SVG
|
|
139
|
+
* into the requested size. A document already on the grid, or one that names no size, is returned
|
|
140
|
+
* as it is.
|
|
141
|
+
*/
|
|
142
|
+
export declare function fitIconToGrid(svg: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Image } from '@nativescript/core';
|
|
2
|
+
/**
|
|
3
|
+
* Draw `value` into `image` at `size` DIPs. A symbolic drawing is filled with `color`, a
|
|
4
|
+
* `.symbolic.png` tinted with it, any other PNG drawn as it is. `''` leaves the image alone, and
|
|
5
|
+
* so does a glyph the platform cannot rasterise (off a device, `renderSymbolicIcon` draws nothing).
|
|
6
|
+
*/
|
|
7
|
+
export declare function drawIcon(image: Image, value: string, size: number, color: string): void;
|
|
8
|
+
/** Run `redraw` whenever the shared icon theme changes. Returns the unsubscribe function. */
|
|
9
|
+
export declare function onIconsChanged(redraw: () => void): () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type IconDirection, type IconTheme, type ResourceIconMatch } from '@gjsify/adwaita-core';
|
|
1
2
|
/**
|
|
2
3
|
* The name every unresolvable name resolves TO.
|
|
3
4
|
*
|
|
@@ -22,7 +23,7 @@ export type IconValueKind = 'empty' | 'name' | 'source';
|
|
|
22
23
|
*
|
|
23
24
|
* An SVG document is recognised by its FIRST non-space character being `<`, which admits
|
|
24
25
|
* an XML prolog and a DOCTYPE ahead of the root element (both legitimate in an icon read
|
|
25
|
-
* off a file
|
|
26
|
+
* off a file). An icon name is
|
|
26
27
|
* whatever `normalizeIconName` accepts: one CSS token once an optional `-symbolic` comes
|
|
27
28
|
* off. Nothing is both, so nothing has to be guessed.
|
|
28
29
|
*
|
|
@@ -36,49 +37,51 @@ export declare function iconValueKind(value: string | null | undefined): IconVal
|
|
|
36
37
|
export declare function isIconAvailable(name: string | null | undefined): boolean;
|
|
37
38
|
/** The subset's names, sorted — for a spec or a gate that has to enumerate them. */
|
|
38
39
|
export declare function compiledIconNames(): string[];
|
|
39
|
-
/** The names {@link registerIcon} has added, sorted. */
|
|
40
|
-
export declare function registeredIconNames(): string[];
|
|
41
|
-
/**
|
|
42
|
-
* Make `name` resolvable from an Adwaita symbolic SVG source (what
|
|
43
|
-
* `@gjsify/adwaita-icons` exports), for a glyph the compiled subset does not carry.
|
|
44
|
-
*
|
|
45
|
-
* import { registerIcon } from '@gjsify/adwaita-nativescript';
|
|
46
|
-
* import { dialogErrorSymbolic } from '@gjsify/adwaita-icons/status';
|
|
47
|
-
*
|
|
48
|
-
* registerIcon('dialog-error-symbolic', dialogErrorSymbolic);
|
|
49
|
-
* // …then anywhere: new Adw.StatusPage({ iconName: 'dialog-error-symbolic' })
|
|
50
|
-
*
|
|
51
|
-
* BOTH arguments are checked and a wrong one THROWS, the same verdict the web registry
|
|
52
|
-
* reaches for the same reason: this is an explicit call, and quietly registering
|
|
53
|
-
* something undrawable produces an icon strictly WORSE than an unregistered one — it
|
|
54
|
-
* beats the `image-missing` fallback and draws nothing, while {@link isIconAvailable}
|
|
55
|
-
* reports `true`.
|
|
56
|
-
*
|
|
57
|
-
* The SVG test is LEXICAL, not a parse, and that is a real limit rather than a shortcut:
|
|
58
|
-
* NativeScript has no `DOMParser`, and the rasterisers here read the document with
|
|
59
|
-
* `extractIconPaths`' own scanner. So a well-formed document with no `<svg>` root is
|
|
60
|
-
* refused, and a malformed one inside an `<svg>` is accepted and draws whatever
|
|
61
|
-
* `extractIconPaths` finds in it — which is the same thing it would have drawn had the
|
|
62
|
-
* caller passed it straight to the widget.
|
|
63
|
-
*
|
|
64
|
-
* Registering a name the subset already compiles REPLACES the glyph.
|
|
65
|
-
*/
|
|
66
|
-
export declare function registerIcon(name: string, svg: string): void;
|
|
67
|
-
/**
|
|
68
|
-
* {@link registerIcon} for a whole set — `{ 'move-to-window-symbolic': svg, … }`, the shape an
|
|
69
|
-
* app's generated icon module exports, so it registers on import and no app code has to
|
|
70
|
-
* loop. Validation is per entry and throws on the first bad one, after the good ones before
|
|
71
|
-
* it were registered.
|
|
72
|
-
*/
|
|
73
|
-
export declare function registerIcons(icons: Readonly<Record<string, string>>): void;
|
|
74
|
-
/** Drop a registration, so the name falls back to the compiled subset. Test seam. */
|
|
75
|
-
export declare function unregisterIcon(name: string): boolean;
|
|
76
40
|
/**
|
|
77
41
|
* A caller's icon value as the SVG document a rasteriser can read.
|
|
78
42
|
*
|
|
79
43
|
* The one function every icon property on this port goes through, so that a name means
|
|
80
44
|
* the same thing on all of them. `''` stays `''` — see {@link IconValueKind}. A source
|
|
81
|
-
* passes through untouched. A name resolves against the
|
|
82
|
-
*
|
|
45
|
+
* passes through untouched. A name resolves against the compiled subset, then
|
|
46
|
+
* {@link ICON_FALLBACK_NAME}.
|
|
83
47
|
*/
|
|
84
48
|
export declare function resolveIconSource(value: string | null | undefined): string;
|
|
49
|
+
/** What an icon value draws as on this port. */
|
|
50
|
+
export type IconDrawing =
|
|
51
|
+
/** An SVG document for `renderSymbolicIcon`, recoloured in the icon colour. */
|
|
52
|
+
{
|
|
53
|
+
readonly kind: 'svg';
|
|
54
|
+
readonly svg: string;
|
|
55
|
+
}
|
|
56
|
+
/** A PNG file as base64, for `ImageSource.fromBase64Sync`; a `symbolic` one is tinted. */
|
|
57
|
+
| {
|
|
58
|
+
readonly kind: 'png';
|
|
59
|
+
readonly base64: string;
|
|
60
|
+
readonly symbolic: boolean;
|
|
61
|
+
};
|
|
62
|
+
/** What an image hands its theme besides the name. */
|
|
63
|
+
export interface IconRequest {
|
|
64
|
+
/** In DIPs. */
|
|
65
|
+
readonly size: number;
|
|
66
|
+
/** The device scale; 1 when absent. */
|
|
67
|
+
readonly scale?: number;
|
|
68
|
+
readonly direction?: IconDirection;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Run `listener` after `theme`'s `changed` signal, once the cached resource drawings are gone —
|
|
72
|
+
* GTK's images redo their lookup then. Returns the unsubscribe function.
|
|
73
|
+
*/
|
|
74
|
+
export declare function onIconThemeChanged(theme: IconTheme, listener: () => void): () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Which file under `theme`'s resource paths answers the icon name `name`, or `'theme'`'s glyph
|
|
77
|
+
* when the current theme answers first; `null` when no resource takes part and the answer is
|
|
78
|
+
* {@link resolveIconSource}'s alone.
|
|
79
|
+
*/
|
|
80
|
+
export declare function lookupThemeIcon(theme: IconTheme, name: string, request: IconRequest): ResourceIconMatch | null;
|
|
81
|
+
/**
|
|
82
|
+
* A caller's icon value as what it draws, with `theme`'s resource paths taking part in the
|
|
83
|
+
* lookup the way `gtk_icon_theme_lookup_by_gicon` has them take part for a `GtkImage`. `null` for
|
|
84
|
+
* `''`, as {@link resolveIconSource} answers `''`. Without a resource holding the name the answer
|
|
85
|
+
* is {@link resolveIconSource}'s.
|
|
86
|
+
*/
|
|
87
|
+
export declare function resolveIconDrawing(theme: IconTheme, value: string | null | undefined, request: IconRequest): IconDrawing | null;
|
|
@@ -148,7 +148,7 @@ export { applyConstructProps, nsAlignment } from './construct-props.js';
|
|
|
148
148
|
export type { ConstructProps } from './construct-props.js';
|
|
149
149
|
export { GTK_ALIGN } from './gtk-align.js';
|
|
150
150
|
export { DEFAULT_ICON_PIXEL_SIZE, GTK_ICON_SIZE_NICKS, GTK_ICON_SIZE_PIXELS, type GtkIconSizeNick, isGtkIconSizeNick, PIXEL_SIZE_UNSET, } from './gtk-icon-size.js';
|
|
151
|
-
export { ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable,
|
|
151
|
+
export { ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, resolveIconSource, } from './icon-theme.js';
|
|
152
152
|
export type { IconValueKind } from './icon-theme.js';
|
|
153
153
|
export { ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, extractIconPaths, extractPathData, renderSymbolicIcon, } from './icons.js';
|
|
154
154
|
export type { IconPath, SymbolicIconOptions } from './icons.js';
|
|
@@ -21,6 +21,11 @@ export interface GObjectSignals {
|
|
|
21
21
|
/** `g_object_set_property`, routed the same way as {@link get_property}. */
|
|
22
22
|
set_property(name: string, value: unknown): void;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Every signal `ctor` emits: the own `emittedSignals` of each class up its chain, base first.
|
|
26
|
+
* A class declares only what it adds, so `GtkButton`'s `clicked` does not hide `map`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function emittedSignalsOf(ctor: unknown): readonly string[];
|
|
24
29
|
/**
|
|
25
30
|
* A constructor the mixin can wrap: anything that is an `Observable`, abstract or not.
|
|
26
31
|
*
|
|
@@ -37,7 +42,7 @@ export type ObservableConstructor = abstract new (...args: any[]) => Observable;
|
|
|
37
42
|
* — and never on a class whose base is already a widget of this package, which inherits
|
|
38
43
|
* the two methods and would otherwise carry a second, identical copy one prototype up.
|
|
39
44
|
*/
|
|
40
|
-
export declare function withSignals<TBase extends ObservableConstructor>(Base: TBase): (abstract new (...args: any[]) => {
|
|
45
|
+
export declare function withSignals<TBase extends ObservableConstructor>(Base: TBase): ((abstract new (...args: any[]) => {
|
|
41
46
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
42
47
|
disconnect(handlerId: number): void;
|
|
43
48
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -63,12 +68,17 @@ export declare function withSignals<TBase extends ObservableConstructor>(Base: T
|
|
|
63
68
|
set name(value: string | null);
|
|
64
69
|
get tooltipText(): string;
|
|
65
70
|
set tooltipText(value: string);
|
|
71
|
+
get tooltip_text(): string;
|
|
72
|
+
set tooltip_text(value: string);
|
|
66
73
|
get widthRequest(): number;
|
|
67
74
|
set widthRequest(value: number | string);
|
|
68
75
|
get heightRequest(): number;
|
|
69
76
|
set heightRequest(value: number | string);
|
|
70
77
|
get_visible(): boolean;
|
|
71
78
|
set_visible(visible: boolean): void;
|
|
79
|
+
get_mapped(): boolean;
|
|
80
|
+
get_tooltip_text(): string;
|
|
81
|
+
set_tooltip_text(text: string): void;
|
|
72
82
|
set_direction(direction: number): void;
|
|
73
83
|
get_direction(): number;
|
|
74
84
|
get_first_child(): object | null;
|
|
@@ -87,4 +97,7 @@ export declare function withSignals<TBase extends ObservableConstructor>(Base: T
|
|
|
87
97
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
88
98
|
set(name: string, value: unknown): void;
|
|
89
99
|
get(name: string): unknown;
|
|
100
|
+
}) & {
|
|
101
|
+
/** What every widget emits; a class's own list adds to it (`emittedSignalsOf`). */
|
|
102
|
+
readonly emittedSignals: readonly string[];
|
|
90
103
|
}) & TBase;
|
|
@@ -10,7 +10,7 @@ export interface NotifyShowSidebarEventData extends EventData {
|
|
|
10
10
|
/** Whether the view is in its collapsed (narrow) mode. */
|
|
11
11
|
collapsed: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const AdwSplitViewBase_base: (abstract new (...args: any[]) => {
|
|
13
|
+
declare const AdwSplitViewBase_base: ((abstract new (...args: any[]) => {
|
|
14
14
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
15
15
|
disconnect(handlerId: number): void;
|
|
16
16
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -36,12 +36,17 @@ declare const AdwSplitViewBase_base: (abstract new (...args: any[]) => {
|
|
|
36
36
|
set name(value: string | null);
|
|
37
37
|
get tooltipText(): string;
|
|
38
38
|
set tooltipText(value: string);
|
|
39
|
+
get tooltip_text(): string;
|
|
40
|
+
set tooltip_text(value: string);
|
|
39
41
|
get widthRequest(): number;
|
|
40
42
|
set widthRequest(value: number | string);
|
|
41
43
|
get heightRequest(): number;
|
|
42
44
|
set heightRequest(value: number | string);
|
|
43
45
|
get_visible(): boolean;
|
|
44
46
|
set_visible(visible: boolean): void;
|
|
47
|
+
get_mapped(): boolean;
|
|
48
|
+
get_tooltip_text(): string;
|
|
49
|
+
set_tooltip_text(text: string): void;
|
|
45
50
|
set_direction(direction: number): void;
|
|
46
51
|
get_direction(): number;
|
|
47
52
|
get_first_child(): object | null;
|
|
@@ -60,6 +65,8 @@ declare const AdwSplitViewBase_base: (abstract new (...args: any[]) => {
|
|
|
60
65
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
61
66
|
set(name: string, value: unknown): void;
|
|
62
67
|
get(name: string): unknown;
|
|
68
|
+
}) & {
|
|
69
|
+
readonly emittedSignals: readonly string[];
|
|
63
70
|
}) & typeof GridLayout;
|
|
64
71
|
export declare abstract class AdwSplitViewBase<TState extends NsSplitViewState = NsSplitViewState> extends AdwSplitViewBase_base {
|
|
65
72
|
/** Which widget's width rule applies — they differ once a pane has a minimum. */
|
|
@@ -8,7 +8,7 @@ interface AdoptingStack {
|
|
|
8
8
|
interface AwaitingStack {
|
|
9
9
|
_addChildFromBuilder(name: string, view: GtkStackPage): void;
|
|
10
10
|
}
|
|
11
|
-
declare const GtkStackPage_base: (abstract new (...args: any[]) => {
|
|
11
|
+
declare const GtkStackPage_base: ((abstract new (...args: any[]) => {
|
|
12
12
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
13
13
|
disconnect(handlerId: number): void;
|
|
14
14
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -34,12 +34,17 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
|
|
|
34
34
|
set name(value: string | null);
|
|
35
35
|
get tooltipText(): string;
|
|
36
36
|
set tooltipText(value: string);
|
|
37
|
+
get tooltip_text(): string;
|
|
38
|
+
set tooltip_text(value: string);
|
|
37
39
|
get widthRequest(): number;
|
|
38
40
|
set widthRequest(value: number | string);
|
|
39
41
|
get heightRequest(): number;
|
|
40
42
|
set heightRequest(value: number | string);
|
|
41
43
|
get_visible(): boolean;
|
|
42
44
|
set_visible(visible: boolean): void;
|
|
45
|
+
get_mapped(): boolean;
|
|
46
|
+
get_tooltip_text(): string;
|
|
47
|
+
set_tooltip_text(text: string): void;
|
|
43
48
|
set_direction(direction: number): void;
|
|
44
49
|
get_direction(): number;
|
|
45
50
|
get_first_child(): object | null;
|
|
@@ -58,6 +63,8 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
|
|
|
58
63
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
59
64
|
set(name: string, value: unknown): void;
|
|
60
65
|
get(name: string): unknown;
|
|
66
|
+
}) & {
|
|
67
|
+
readonly emittedSignals: readonly string[];
|
|
61
68
|
}) & typeof Observable;
|
|
62
69
|
export declare class GtkStackPage extends GtkStackPage_base {
|
|
63
70
|
static readonly GTypeName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridLayout } from '@nativescript/core';
|
|
2
2
|
import { type AdwStyleClassesInput } from './style-classes.js';
|
|
3
|
-
declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
|
|
3
|
+
declare const AdwStyledLayoutBase_base: ((abstract new (...args: any[]) => {
|
|
4
4
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
5
5
|
disconnect(handlerId: number): void;
|
|
6
6
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -26,12 +26,17 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
|
|
|
26
26
|
set name(value: string | null);
|
|
27
27
|
get tooltipText(): string;
|
|
28
28
|
set tooltipText(value: string);
|
|
29
|
+
get tooltip_text(): string;
|
|
30
|
+
set tooltip_text(value: string);
|
|
29
31
|
get widthRequest(): number;
|
|
30
32
|
set widthRequest(value: number | string);
|
|
31
33
|
get heightRequest(): number;
|
|
32
34
|
set heightRequest(value: number | string);
|
|
33
35
|
get_visible(): boolean;
|
|
34
36
|
set_visible(visible: boolean): void;
|
|
37
|
+
get_mapped(): boolean;
|
|
38
|
+
get_tooltip_text(): string;
|
|
39
|
+
set_tooltip_text(text: string): void;
|
|
35
40
|
set_direction(direction: number): void;
|
|
36
41
|
get_direction(): number;
|
|
37
42
|
get_first_child(): object | null;
|
|
@@ -50,6 +55,8 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
|
|
|
50
55
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
51
56
|
set(name: string, value: unknown): void;
|
|
52
57
|
get(name: string): unknown;
|
|
58
|
+
}) & {
|
|
59
|
+
readonly emittedSignals: readonly string[];
|
|
53
60
|
}) & typeof GridLayout;
|
|
54
61
|
export declare abstract class AdwStyledLayoutBase extends AdwStyledLayoutBase_base {
|
|
55
62
|
private readonly _classList;
|