@gjsify/adwaita-nativescript 0.64.1 → 0.64.2-next.254
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/adw.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-alert-dialog.js +1 -1
- package/lib/esm/widgets/adw-application-window.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-toast-overlay.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/construct-props.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 +2 -2
- package/lib/types/namespace/adw.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/namespace/gtk.d.ts +1 -0
- 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 +34 -2
- package/lib/types/widgets/adw-action-row.d.ts +10 -1
- package/lib/types/widgets/adw-alert-dialog.d.ts +37 -13
- package/lib/types/widgets/adw-application-window.d.ts +0 -3
- package/lib/types/widgets/adw-avatar.d.ts +10 -1
- package/lib/types/widgets/adw-banner.d.ts +10 -1
- package/lib/types/widgets/adw-bottom-sheet.d.ts +10 -1
- package/lib/types/widgets/adw-button-content.d.ts +10 -1
- package/lib/types/widgets/adw-carousel.d.ts +24 -3
- package/lib/types/widgets/adw-clamp.d.ts +10 -1
- package/lib/types/widgets/adw-combo-row.d.ts +4 -0
- package/lib/types/widgets/adw-data-grid.d.ts +10 -1
- package/lib/types/widgets/adw-header-bar.d.ts +10 -1
- package/lib/types/widgets/adw-image-button.d.ts +13 -2
- package/lib/types/widgets/adw-navigation-page.d.ts +10 -1
- package/lib/types/widgets/adw-navigation-view.d.ts +10 -1
- package/lib/types/widgets/adw-preferences-dialog.d.ts +10 -1
- package/lib/types/widgets/adw-preferences-group.d.ts +10 -1
- package/lib/types/widgets/adw-preferences-page.d.ts +10 -1
- package/lib/types/widgets/adw-shortcut-label.d.ts +10 -1
- package/lib/types/widgets/adw-sidebar.d.ts +10 -1
- package/lib/types/widgets/adw-slider-row.d.ts +10 -1
- package/lib/types/widgets/adw-spinner.d.ts +10 -1
- package/lib/types/widgets/adw-split-button.d.ts +10 -1
- package/lib/types/widgets/adw-status-page.d.ts +10 -1
- package/lib/types/widgets/adw-switch-row.d.ts +2 -0
- package/lib/types/widgets/adw-tab-view.d.ts +10 -1
- package/lib/types/widgets/adw-toast-overlay.d.ts +21 -17
- package/lib/types/widgets/adw-toggle-group.d.ts +10 -1
- package/lib/types/widgets/adw-toggle.d.ts +10 -1
- package/lib/types/widgets/adw-toolbar-view.d.ts +10 -1
- package/lib/types/widgets/adw-view-stack.d.ts +10 -1
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +10 -1
- package/lib/types/widgets/adw-window-title.d.ts +10 -1
- package/lib/types/widgets/adw-wrap-box.d.ts +10 -1
- package/lib/types/widgets/application.d.ts +2 -1
- package/lib/types/widgets/carousel-indicator-base.d.ts +10 -1
- package/lib/types/widgets/construct-props.d.ts +11 -2
- package/lib/types/widgets/gtk-action-bar.d.ts +10 -1
- package/lib/types/widgets/gtk-button.d.ts +13 -2
- package/lib/types/widgets/gtk-check-button.d.ts +10 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +10 -1
- package/lib/types/widgets/gtk-entry.d.ts +10 -1
- package/lib/types/widgets/gtk-image.d.ts +13 -2
- package/lib/types/widgets/gtk-label.d.ts +10 -1
- package/lib/types/widgets/gtk-popover-menu.d.ts +10 -1
- package/lib/types/widgets/gtk-stack.d.ts +10 -1
- package/lib/types/widgets/gtk-text-view.d.ts +10 -1
- package/lib/types/widgets/gtk-window.d.ts +5 -0
- 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 +4 -4
- package/lib/types/widgets/signals.d.ts +16 -1
- package/lib/types/widgets/split-view-base.d.ts +10 -1
- package/lib/types/widgets/stack-page.d.ts +10 -1
- package/lib/types/widgets/styled-layout-base.d.ts +10 -1
- package/lib/types/widgets/view-stack-page.d.ts +10 -1
- package/lib/types/widgets/view-switcher-base.d.ts +10 -1
- package/lib/types/widgets/widget-layout.d.ts +14 -0
- package/lib/types/widgets/widget-mapping.d.ts +9 -0
- package/package.json +14 -13
- package/src/testing/ns-core.mts +147 -18
- package/src/theme/adwaita.css +13 -2
|
@@ -46,20 +46,26 @@ export interface TouchGestureEventData extends EventData {
|
|
|
46
46
|
getX(): number;
|
|
47
47
|
getY(): number;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* `ui/styling/style/index.ts`'s `Style` is an `Observable`, and a CSS property's setter notifies
|
|
51
|
+
* `<name>Change` on it (`CssProperty`, `ui/core/properties/index.ts`) — never on the view.
|
|
52
|
+
*/
|
|
53
|
+
export declare class Style extends Observable {
|
|
54
|
+
#private;
|
|
55
|
+
direction?: 'ltr' | 'rtl' | null;
|
|
56
|
+
readonly viewRef: WeakRef<View>;
|
|
57
|
+
constructor(view: View);
|
|
58
|
+
get visibility(): string;
|
|
59
|
+
set visibility(value: string);
|
|
60
|
+
}
|
|
49
61
|
export declare class View extends Observable {
|
|
50
62
|
/**
|
|
51
63
|
* `View` keeps its `Style` in `_style` and answers it from `style`: a subclass field of that
|
|
52
64
|
* name replaces it, and every inherited-CSS pass then reads `viewRef` off the wrong object
|
|
53
65
|
* (`Cannot read properties of undefined (reading 'get')`, measured on a device).
|
|
54
66
|
*/
|
|
55
|
-
_style:
|
|
56
|
-
|
|
57
|
-
viewRef: WeakRef<View>;
|
|
58
|
-
};
|
|
59
|
-
get style(): {
|
|
60
|
-
direction?: 'ltr' | 'rtl' | null;
|
|
61
|
-
viewRef: WeakRef<View>;
|
|
62
|
-
};
|
|
67
|
+
_style: Style;
|
|
68
|
+
get style(): Style;
|
|
63
69
|
/**
|
|
64
70
|
* UNSET, NOT EMPTY — a view nobody has written a class onto reads `undefined`.
|
|
65
71
|
*
|
|
@@ -111,8 +117,12 @@ export declare class View extends Observable {
|
|
|
111
117
|
marginBottom: number;
|
|
112
118
|
marginLeft: number;
|
|
113
119
|
marginRight: number;
|
|
114
|
-
/**
|
|
115
|
-
|
|
120
|
+
/**
|
|
121
|
+
* `'visible' | 'hidden' | 'collapse'` — NativeScript's own default is `'visible'`. A CSS
|
|
122
|
+
* property, so `View` reads and writes it on its {@link Style}, which notifies the change.
|
|
123
|
+
*/
|
|
124
|
+
get visibility(): string;
|
|
125
|
+
set visibility(value: string);
|
|
116
126
|
/** `isEnabledProperty` registers `defaultValue: true`. */
|
|
117
127
|
isEnabled: boolean;
|
|
118
128
|
/**
|
|
@@ -148,11 +158,22 @@ export declare class View extends Observable {
|
|
|
148
158
|
isUserInteractionEnabled: boolean;
|
|
149
159
|
translateX: number;
|
|
150
160
|
translateY: number;
|
|
151
|
-
/**
|
|
152
|
-
|
|
153
|
-
|
|
161
|
+
/**
|
|
162
|
+
* Loaded once something calls {@link onLoaded}: nothing mounts a view into a page without a
|
|
163
|
+
* platform, so a spec calls it to stand in for the platform's. Read from {@link LOADED} and
|
|
164
|
+
* not from this getter by the lifecycle, as upstream reads `_isLoaded`: a spec may pin the
|
|
165
|
+
* getter with `Object.defineProperty`.
|
|
166
|
+
*/
|
|
167
|
+
get isLoaded(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* `ViewBase.onLoaded` (`ui/core/view-base/index.ts`): loads the children BEFORE it emits
|
|
170
|
+
* `loaded` on itself, and a second call does nothing.
|
|
171
|
+
*/
|
|
154
172
|
onLoaded(): void;
|
|
173
|
+
/** `ViewBase.onUnloaded`: unloads the children before it emits `unloaded` on itself. */
|
|
155
174
|
onUnloaded(): void;
|
|
175
|
+
callLoaded(): void;
|
|
176
|
+
callUnloaded(): void;
|
|
156
177
|
androidOverflowEdge: string;
|
|
157
178
|
accessibilityRole: string | undefined;
|
|
158
179
|
accessibilityState: string | undefined;
|
|
@@ -196,6 +217,7 @@ export declare class Page extends View {
|
|
|
196
217
|
}
|
|
197
218
|
export declare class LayoutBase extends View {
|
|
198
219
|
#private;
|
|
220
|
+
/** `_addViewCore` loads a child added to a loaded parent; `_removeView` unloads it first. */
|
|
199
221
|
addChild(view: View): void;
|
|
200
222
|
insertChild(view: View, atIndex: number): void;
|
|
201
223
|
/** `_removeView` refuses a view that is not this parent's; a silent no-op would hide it. */
|
|
@@ -313,8 +335,16 @@ export declare class ScrollView extends View {
|
|
|
313
335
|
scrollToVerticalOffset(_value: number, _animated: boolean): void;
|
|
314
336
|
eachChildView(callback: (child: View) => boolean): void;
|
|
315
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Upstream's `content` setter (`ui/content-view/index.ts`) `_removeView`s the old view and
|
|
340
|
+
* `_addView`s the new one, and `eachChildView` answers that one view — so the tree members see
|
|
341
|
+
* through it and a view already parented elsewhere is refused, as on a device.
|
|
342
|
+
*/
|
|
316
343
|
export declare class ContentView extends LayoutBase {
|
|
317
|
-
|
|
344
|
+
#private;
|
|
345
|
+
get content(): View | null;
|
|
346
|
+
set content(value: View | null);
|
|
347
|
+
eachChildView(callback: (child: View) => boolean): void;
|
|
318
348
|
}
|
|
319
349
|
export declare class WrapLayout extends LayoutBase {
|
|
320
350
|
orientation: 'horizontal' | 'vertical';
|
|
@@ -353,12 +383,23 @@ export declare class ImageSource {
|
|
|
353
383
|
readonly height: number;
|
|
354
384
|
readonly nativeSource?: unknown;
|
|
355
385
|
constructor(nativeSource?: unknown);
|
|
386
|
+
/** Decodes nothing: the source keeps the base64 it was given, for a spec to read back. */
|
|
387
|
+
static fromBase64Sync(source: string): ImageSource;
|
|
356
388
|
}
|
|
357
389
|
export declare class Image extends View {
|
|
358
390
|
src: string | ImageSource | undefined;
|
|
359
391
|
imageSource: ImageSource | undefined;
|
|
360
392
|
stretch: string;
|
|
393
|
+
tintColor: string | undefined;
|
|
361
394
|
}
|
|
395
|
+
/** One screen at scale 1, the density the port's own sizes are written in. */
|
|
396
|
+
export declare const Screen: {
|
|
397
|
+
mainScreen: {
|
|
398
|
+
scale: number;
|
|
399
|
+
widthDIPs: number;
|
|
400
|
+
heightDIPs: number;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
362
403
|
export declare class SegmentedBarItem extends Observable {
|
|
363
404
|
title: string;
|
|
364
405
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdwWidgetMapNsTest: () => Promise<void>;
|
|
@@ -3,7 +3,7 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
3
3
|
import type { View } from '@nativescript/core';
|
|
4
4
|
/** Event name emitted when the dialog is closed. */
|
|
5
5
|
export declare const CLOSED = "closed";
|
|
6
|
-
declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
|
|
6
|
+
declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
|
|
7
7
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
8
8
|
disconnect(handlerId: number): void;
|
|
9
9
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -29,10 +29,17 @@ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
|
|
|
29
29
|
set name(value: string | null);
|
|
30
30
|
get tooltipText(): string;
|
|
31
31
|
set tooltipText(value: string);
|
|
32
|
+
get tooltip_text(): string;
|
|
33
|
+
set tooltip_text(value: string);
|
|
32
34
|
get widthRequest(): number;
|
|
33
35
|
set widthRequest(value: number | string);
|
|
34
36
|
get heightRequest(): number;
|
|
35
37
|
set heightRequest(value: number | string);
|
|
38
|
+
get_visible(): boolean;
|
|
39
|
+
set_visible(visible: boolean): void;
|
|
40
|
+
get_mapped(): boolean;
|
|
41
|
+
get_tooltip_text(): string;
|
|
42
|
+
set_tooltip_text(text: string): void;
|
|
36
43
|
set_direction(direction: number): void;
|
|
37
44
|
get_direction(): number;
|
|
38
45
|
get_first_child(): object | null;
|
|
@@ -51,6 +58,8 @@ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
|
|
|
51
58
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
52
59
|
set(name: string, value: unknown): void;
|
|
53
60
|
get(name: string): unknown;
|
|
61
|
+
}) & {
|
|
62
|
+
readonly emittedSignals: readonly string[];
|
|
54
63
|
}) & typeof GridLayout;
|
|
55
64
|
export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
56
65
|
static readonly GTypeName: string;
|
|
@@ -62,6 +71,9 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
62
71
|
protected readonly _commentsLabel: Label;
|
|
63
72
|
protected readonly _websiteLabel: Label;
|
|
64
73
|
protected readonly _copyrightLabel: Label;
|
|
74
|
+
protected readonly _releaseNotesLabel: Label;
|
|
75
|
+
protected readonly _linksLabel: Label;
|
|
76
|
+
protected readonly _debugInfoLabel: Label;
|
|
65
77
|
private _applicationName;
|
|
66
78
|
private _applicationIcon;
|
|
67
79
|
private _developerName;
|
|
@@ -69,6 +81,12 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
69
81
|
private _comments;
|
|
70
82
|
private _website;
|
|
71
83
|
private _copyright;
|
|
84
|
+
private _releaseNotes;
|
|
85
|
+
private _releaseNotesVersion;
|
|
86
|
+
private _debugInfo;
|
|
87
|
+
private _links;
|
|
88
|
+
/** The What's New buffer; `version` alone never rebuilds it. */
|
|
89
|
+
private _releaseNotesSegments;
|
|
72
90
|
/** The window `present (parent)` mounted this in, so closing can take it back out. */
|
|
73
91
|
private _host;
|
|
74
92
|
constructor(props?: ConstructProps<AdwAboutDialog>);
|
|
@@ -94,8 +112,22 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
94
112
|
/** The copyright line. */
|
|
95
113
|
get copyright(): string;
|
|
96
114
|
set copyright(value: string);
|
|
115
|
+
/** AppStream release-notes markup, shown as the What's New text. */
|
|
116
|
+
get releaseNotes(): string;
|
|
117
|
+
set releaseNotes(value: string);
|
|
118
|
+
/** The version the release-notes heading names, else `version`. */
|
|
119
|
+
get releaseNotesVersion(): string;
|
|
120
|
+
set releaseNotesVersion(value: string);
|
|
121
|
+
/** Debugging information, shown verbatim. */
|
|
122
|
+
get debugInfo(): string;
|
|
123
|
+
set debugInfo(value: string);
|
|
124
|
+
/** `adw_about_dialog_add_link`: an extra link; `_` marks a mnemonic. */
|
|
125
|
+
add_link(title: string, url: string): void;
|
|
126
|
+
/** `adw_about_dialog_new_from_appdata`, refused by name. */
|
|
127
|
+
static new_from_appdata(_resourcePath: string, _releaseNotesVersion?: string | null): never;
|
|
128
|
+
private _updateReleaseNotes;
|
|
97
129
|
/**
|
|
98
|
-
* Push the
|
|
130
|
+
* Push the ten strings onto their labels, and COLLAPSE the ones with nothing
|
|
99
131
|
* to say.
|
|
100
132
|
*
|
|
101
133
|
* Every label used to be unconditionally visible, so an about dialog without a
|
|
@@ -4,7 +4,7 @@ import { ActionRowState } from './row-state.js';
|
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
/** Event name emitted when the row is activated. Mirrors `Adw.ActionRow::activated`. */
|
|
6
6
|
export declare const ACTIVATED = "activated";
|
|
7
|
-
declare const AdwActionRow_base: (abstract new (...args: any[]) => {
|
|
7
|
+
declare const AdwActionRow_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,10 +30,17 @@ declare const AdwActionRow_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);
|
|
39
|
+
get_visible(): boolean;
|
|
40
|
+
set_visible(visible: boolean): void;
|
|
41
|
+
get_mapped(): boolean;
|
|
42
|
+
get_tooltip_text(): string;
|
|
43
|
+
set_tooltip_text(text: string): void;
|
|
37
44
|
set_direction(direction: number): void;
|
|
38
45
|
get_direction(): number;
|
|
39
46
|
get_first_child(): object | null;
|
|
@@ -52,6 +59,8 @@ declare const AdwActionRow_base: (abstract new (...args: any[]) => {
|
|
|
52
59
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
53
60
|
set(name: string, value: unknown): void;
|
|
54
61
|
get(name: string): unknown;
|
|
62
|
+
}) & {
|
|
63
|
+
readonly emittedSignals: readonly string[];
|
|
55
64
|
}) & typeof GridLayout;
|
|
56
65
|
export declare class AdwActionRow extends AdwActionRow_base {
|
|
57
66
|
static readonly GTypeName: string;
|
|
@@ -4,14 +4,7 @@ import type { AdwResponseAppearance, AdwResponseOptions } from '@gjsify/adwaita-
|
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
export { AdwAlertResponses } from '@gjsify/adwaita-core';
|
|
6
6
|
export type { AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, } from '@gjsify/adwaita-core';
|
|
7
|
-
|
|
8
|
-
export declare const NOTIFY_RESPONSE = "notify::response";
|
|
9
|
-
/** Payload of the `notify::response` event. */
|
|
10
|
-
export interface NotifyResponseEventData extends EventData {
|
|
11
|
-
/** The chosen response id. */
|
|
12
|
-
response: string;
|
|
13
|
-
}
|
|
14
|
-
declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
|
|
7
|
+
declare const AdwAlertDialog_base: ((abstract new (...args: any[]) => {
|
|
15
8
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
16
9
|
disconnect(handlerId: number): void;
|
|
17
10
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -37,10 +30,17 @@ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
|
|
|
37
30
|
set name(value: string | null);
|
|
38
31
|
get tooltipText(): string;
|
|
39
32
|
set tooltipText(value: string);
|
|
33
|
+
get tooltip_text(): string;
|
|
34
|
+
set tooltip_text(value: string);
|
|
40
35
|
get widthRequest(): number;
|
|
41
36
|
set widthRequest(value: number | string);
|
|
42
37
|
get heightRequest(): number;
|
|
43
38
|
set heightRequest(value: number | string);
|
|
39
|
+
get_visible(): boolean;
|
|
40
|
+
set_visible(visible: boolean): void;
|
|
41
|
+
get_mapped(): boolean;
|
|
42
|
+
get_tooltip_text(): string;
|
|
43
|
+
set_tooltip_text(text: string): void;
|
|
44
44
|
set_direction(direction: number): void;
|
|
45
45
|
get_direction(): number;
|
|
46
46
|
get_first_child(): object | null;
|
|
@@ -59,6 +59,8 @@ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
|
|
|
59
59
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
60
60
|
set(name: string, value: unknown): void;
|
|
61
61
|
get(name: string): unknown;
|
|
62
|
+
}) & {
|
|
63
|
+
readonly emittedSignals: readonly string[];
|
|
62
64
|
}) & typeof Observable;
|
|
63
65
|
export declare class AdwAlertDialog extends AdwAlertDialog_base {
|
|
64
66
|
static readonly GTypeName: string;
|
|
@@ -76,7 +78,13 @@ export declare class AdwAlertDialog extends AdwAlertDialog_base {
|
|
|
76
78
|
/** The dialog body text. */
|
|
77
79
|
get body(): string;
|
|
78
80
|
set body(value: string);
|
|
79
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* `AdwAlertDialog::response` hands its handler the chosen id, `(dialog, response)`; every other
|
|
83
|
+
* signal keeps the mixin's `(self, data)` shape.
|
|
84
|
+
*/
|
|
85
|
+
connect(eventName: string, callback: (self: this, data: EventData) => unknown): number;
|
|
86
|
+
connect(eventName: 'response', callback: (self: this, response: string) => unknown): number;
|
|
87
|
+
/** Register a response button — `adw_alert_dialog_add_response`; `id` is what the `response` signal carries. */
|
|
80
88
|
add_response(id: string, label: string, options?: AdwResponseOptions): void;
|
|
81
89
|
/**
|
|
82
90
|
* Register many responses at once (`id, label, id, label, …`).
|
|
@@ -85,6 +93,12 @@ export declare class AdwAlertDialog extends AdwAlertDialog_base {
|
|
|
85
93
|
* which introspection skips, so no GJS caller has a spelling of it to converge on.
|
|
86
94
|
*/
|
|
87
95
|
addResponses(...idLabelPairs: string[]): void;
|
|
96
|
+
/** `adw_alert_dialog_has_response`. */
|
|
97
|
+
has_response(id: string): boolean;
|
|
98
|
+
/** `adw_alert_dialog_get_response_label`; `null` for an unknown id. */
|
|
99
|
+
get_response_label(id: string): string | null;
|
|
100
|
+
/** `adw_alert_dialog_set_response_label`; an unknown id is warned about and ignored, as libadwaita does. */
|
|
101
|
+
set_response_label(id: string, label: string): void;
|
|
88
102
|
/** Set a registered response's emphasis — `adw_alert_dialog_set_response_appearance`. */
|
|
89
103
|
set_response_appearance(id: string, appearance: AdwResponseAppearance): void;
|
|
90
104
|
/** A registered response's emphasis — `adw_alert_dialog_get_response_appearance`; `'default'` for an unknown id. */
|
|
@@ -96,17 +110,27 @@ export declare class AdwAlertDialog extends AdwAlertDialog_base {
|
|
|
96
110
|
/** The default (emphasised) response id, used as the OK button in `confirm()`. */
|
|
97
111
|
get defaultResponse(): string | null;
|
|
98
112
|
set defaultResponse(id: string | null);
|
|
113
|
+
/** `adw_alert_dialog_get_default_response`. */
|
|
114
|
+
get_default_response(): string | null;
|
|
115
|
+
/** `adw_alert_dialog_set_default_response`. */
|
|
116
|
+
set_default_response(id: string | null): void;
|
|
99
117
|
/** The response id used when the dialog is dismissed without a choice. */
|
|
100
118
|
get closeResponse(): string;
|
|
101
119
|
set closeResponse(id: string);
|
|
120
|
+
/** `adw_alert_dialog_get_close_response`. */
|
|
121
|
+
get_close_response(): string;
|
|
122
|
+
/** `adw_alert_dialog_set_close_response`. */
|
|
123
|
+
set_close_response(id: string): void;
|
|
102
124
|
/** The registered responses. */
|
|
103
125
|
get responses(): AdwAlertResponses['responses'];
|
|
104
126
|
/**
|
|
105
|
-
*
|
|
106
|
-
* on dismissal).
|
|
107
|
-
*
|
|
127
|
+
* `adw_dialog_present(dialog, parent)`: show the dialog and emit `response` with the
|
|
128
|
+
* chosen id (or {@link closeResponse} on dismissal). The native sheet is app-modal,
|
|
129
|
+
* so `parent` places nothing. Uses a native `confirm()` for ≤3 responses, else an
|
|
130
|
+
* `action()` sheet. Returns nothing, as `adw_dialog_present` does; the choice arrives
|
|
131
|
+
* through `response` alone.
|
|
108
132
|
*/
|
|
109
|
-
present():
|
|
133
|
+
present(_parent?: unknown): void;
|
|
110
134
|
private _presentConfirm;
|
|
111
135
|
private _presentAction;
|
|
112
136
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { type GtkApplication } from './application.js';
|
|
2
1
|
import { type ConstructProps } from './construct-props.js';
|
|
3
2
|
import { AdwWindowBase } from './window-base.js';
|
|
4
3
|
export declare class AdwApplicationWindow extends AdwWindowBase {
|
|
5
4
|
static readonly GTypeName: string;
|
|
6
|
-
/** `Gtk.Window:application`: setting it is `add_window` (ADR 0098), set by `defineWindowApplication`. */
|
|
7
|
-
application: GtkApplication | null;
|
|
8
5
|
constructor(props?: ConstructProps<AdwApplicationWindow>);
|
|
9
6
|
}
|
|
@@ -7,7 +7,7 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
7
7
|
export declare const DEFAULT_AVATAR_SIZE = 48;
|
|
8
8
|
export { avatarColor, avatarInitials };
|
|
9
9
|
export { AVATAR_DEFAULT_ICON };
|
|
10
|
-
declare const AdwAvatar_base: (abstract new (...args: any[]) => {
|
|
10
|
+
declare const AdwAvatar_base: ((abstract new (...args: any[]) => {
|
|
11
11
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
12
12
|
disconnect(handlerId: number): void;
|
|
13
13
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -33,10 +33,17 @@ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
|
|
|
33
33
|
set name(value: string | null);
|
|
34
34
|
get tooltipText(): string;
|
|
35
35
|
set tooltipText(value: string);
|
|
36
|
+
get tooltip_text(): string;
|
|
37
|
+
set tooltip_text(value: string);
|
|
36
38
|
get widthRequest(): number;
|
|
37
39
|
set widthRequest(value: number | string);
|
|
38
40
|
get heightRequest(): number;
|
|
39
41
|
set heightRequest(value: number | string);
|
|
42
|
+
get_visible(): boolean;
|
|
43
|
+
set_visible(visible: boolean): void;
|
|
44
|
+
get_mapped(): boolean;
|
|
45
|
+
get_tooltip_text(): string;
|
|
46
|
+
set_tooltip_text(text: string): void;
|
|
40
47
|
set_direction(direction: number): void;
|
|
41
48
|
get_direction(): number;
|
|
42
49
|
get_first_child(): object | null;
|
|
@@ -55,6 +62,8 @@ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
|
|
|
55
62
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
56
63
|
set(name: string, value: unknown): void;
|
|
57
64
|
get(name: string): unknown;
|
|
65
|
+
}) & {
|
|
66
|
+
readonly emittedSignals: readonly string[];
|
|
58
67
|
}) & typeof GridLayout;
|
|
59
68
|
export declare class AdwAvatar extends AdwAvatar_base {
|
|
60
69
|
static readonly GTypeName: string;
|
|
@@ -3,7 +3,7 @@ import type { AdwBannerButtonStyle } from '@gjsify/adwaita-core';
|
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
4
|
/** Event name emitted when the banner's action button is tapped. */
|
|
5
5
|
export declare const BUTTON_CLICKED = "buttonClicked";
|
|
6
|
-
declare const AdwBanner_base: (abstract new (...args: any[]) => {
|
|
6
|
+
declare const AdwBanner_base: ((abstract new (...args: any[]) => {
|
|
7
7
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
8
8
|
disconnect(handlerId: number): void;
|
|
9
9
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -29,10 +29,17 @@ declare const AdwBanner_base: (abstract new (...args: any[]) => {
|
|
|
29
29
|
set name(value: string | null);
|
|
30
30
|
get tooltipText(): string;
|
|
31
31
|
set tooltipText(value: string);
|
|
32
|
+
get tooltip_text(): string;
|
|
33
|
+
set tooltip_text(value: string);
|
|
32
34
|
get widthRequest(): number;
|
|
33
35
|
set widthRequest(value: number | string);
|
|
34
36
|
get heightRequest(): number;
|
|
35
37
|
set heightRequest(value: number | string);
|
|
38
|
+
get_visible(): boolean;
|
|
39
|
+
set_visible(visible: boolean): void;
|
|
40
|
+
get_mapped(): boolean;
|
|
41
|
+
get_tooltip_text(): string;
|
|
42
|
+
set_tooltip_text(text: string): void;
|
|
36
43
|
set_direction(direction: number): void;
|
|
37
44
|
get_direction(): number;
|
|
38
45
|
get_first_child(): object | null;
|
|
@@ -51,6 +58,8 @@ declare const AdwBanner_base: (abstract new (...args: any[]) => {
|
|
|
51
58
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
52
59
|
set(name: string, value: unknown): void;
|
|
53
60
|
get(name: string): unknown;
|
|
61
|
+
}) & {
|
|
62
|
+
readonly emittedSignals: readonly string[];
|
|
54
63
|
}) & typeof GridLayout;
|
|
55
64
|
export declare class AdwBanner extends AdwBanner_base {
|
|
56
65
|
static readonly GTypeName: string;
|
|
@@ -14,7 +14,7 @@ export declare const NOTIFY_MODAL = "notify::modal";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function bottomSheetPanel(sheet: AdwBottomSheet): View;
|
|
16
16
|
export type { NotifyOpenEventData };
|
|
17
|
-
declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
|
|
17
|
+
declare const AdwBottomSheet_base: ((abstract new (...args: any[]) => {
|
|
18
18
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
19
19
|
disconnect(handlerId: number): void;
|
|
20
20
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -40,10 +40,17 @@ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
set name(value: string | null);
|
|
41
41
|
get tooltipText(): string;
|
|
42
42
|
set tooltipText(value: string);
|
|
43
|
+
get tooltip_text(): string;
|
|
44
|
+
set tooltip_text(value: string);
|
|
43
45
|
get widthRequest(): number;
|
|
44
46
|
set widthRequest(value: number | string);
|
|
45
47
|
get heightRequest(): number;
|
|
46
48
|
set heightRequest(value: number | string);
|
|
49
|
+
get_visible(): boolean;
|
|
50
|
+
set_visible(visible: boolean): void;
|
|
51
|
+
get_mapped(): boolean;
|
|
52
|
+
get_tooltip_text(): string;
|
|
53
|
+
set_tooltip_text(text: string): void;
|
|
47
54
|
set_direction(direction: number): void;
|
|
48
55
|
get_direction(): number;
|
|
49
56
|
get_first_child(): object | null;
|
|
@@ -62,6 +69,8 @@ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
|
|
|
62
69
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
63
70
|
set(name: string, value: unknown): void;
|
|
64
71
|
get(name: string): unknown;
|
|
72
|
+
}) & {
|
|
73
|
+
readonly emittedSignals: readonly string[];
|
|
65
74
|
}) & typeof GridLayout;
|
|
66
75
|
export declare class AdwBottomSheet extends AdwBottomSheet_base {
|
|
67
76
|
static readonly GTypeName: string;
|
|
@@ -2,7 +2,7 @@ import { Label, StackLayout, type View } from '@nativescript/core';
|
|
|
2
2
|
import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
|
|
3
3
|
import { GtkImage } from './gtk-image.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
-
declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
|
|
5
|
+
declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
|
|
6
6
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
7
7
|
disconnect(handlerId: number): void;
|
|
8
8
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -28,10 +28,17 @@ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
|
|
|
28
28
|
set name(value: string | null);
|
|
29
29
|
get tooltipText(): string;
|
|
30
30
|
set tooltipText(value: string);
|
|
31
|
+
get tooltip_text(): string;
|
|
32
|
+
set tooltip_text(value: string);
|
|
31
33
|
get widthRequest(): number;
|
|
32
34
|
set widthRequest(value: number | string);
|
|
33
35
|
get heightRequest(): number;
|
|
34
36
|
set heightRequest(value: number | string);
|
|
37
|
+
get_visible(): boolean;
|
|
38
|
+
set_visible(visible: boolean): void;
|
|
39
|
+
get_mapped(): boolean;
|
|
40
|
+
get_tooltip_text(): string;
|
|
41
|
+
set_tooltip_text(text: string): void;
|
|
35
42
|
set_direction(direction: number): void;
|
|
36
43
|
get_direction(): number;
|
|
37
44
|
get_first_child(): object | null;
|
|
@@ -50,6 +57,8 @@ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
|
|
|
50
57
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
51
58
|
set(name: string, value: unknown): void;
|
|
52
59
|
get(name: string): unknown;
|
|
60
|
+
}) & {
|
|
61
|
+
readonly emittedSignals: readonly string[];
|
|
53
62
|
}) & typeof StackLayout;
|
|
54
63
|
export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
55
64
|
static readonly GTypeName: string;
|
|
@@ -17,7 +17,7 @@ export interface PageChangedEventData extends EventData {
|
|
|
17
17
|
/** The page the carousel came to rest on, `-1` when it has none. */
|
|
18
18
|
index: number;
|
|
19
19
|
}
|
|
20
|
-
declare const AdwCarousel_base: (abstract new (...args: any[]) => {
|
|
20
|
+
declare const AdwCarousel_base: ((abstract new (...args: any[]) => {
|
|
21
21
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
22
22
|
disconnect(handlerId: number): void;
|
|
23
23
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -43,10 +43,17 @@ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
|
|
|
43
43
|
set name(value: string | null);
|
|
44
44
|
get tooltipText(): string;
|
|
45
45
|
set tooltipText(value: string);
|
|
46
|
+
get tooltip_text(): string;
|
|
47
|
+
set tooltip_text(value: string);
|
|
46
48
|
get widthRequest(): number;
|
|
47
49
|
set widthRequest(value: number | string);
|
|
48
50
|
get heightRequest(): number;
|
|
49
51
|
set heightRequest(value: number | string);
|
|
52
|
+
get_visible(): boolean;
|
|
53
|
+
set_visible(visible: boolean): void;
|
|
54
|
+
get_mapped(): boolean;
|
|
55
|
+
get_tooltip_text(): string;
|
|
56
|
+
set_tooltip_text(text: string): void;
|
|
50
57
|
set_direction(direction: number): void;
|
|
51
58
|
get_direction(): number;
|
|
52
59
|
get_first_child(): object | null;
|
|
@@ -65,6 +72,8 @@ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
|
|
|
65
72
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
66
73
|
set(name: string, value: unknown): void;
|
|
67
74
|
get(name: string): unknown;
|
|
75
|
+
}) & {
|
|
76
|
+
readonly emittedSignals: readonly string[];
|
|
68
77
|
}) & typeof GridLayout;
|
|
69
78
|
export declare class AdwCarousel extends AdwCarousel_base {
|
|
70
79
|
static readonly GTypeName: string;
|
|
@@ -78,6 +87,8 @@ export declare class AdwCarousel extends AdwCarousel_base {
|
|
|
78
87
|
private readonly _views;
|
|
79
88
|
private _nextPageId;
|
|
80
89
|
private _pageWidth;
|
|
90
|
+
/** Whether the scroll now being issued glides — `scroll_to`'s `animate`. */
|
|
91
|
+
private _animateScroll;
|
|
81
92
|
constructor(props?: ConstructProps<AdwCarousel>);
|
|
82
93
|
/** Append a page — `adw_carousel_append` (adw-carousel.c:1348-1357). */
|
|
83
94
|
append(view: View): void;
|
|
@@ -106,9 +117,19 @@ export declare class AdwCarousel extends AdwCarousel_base {
|
|
|
106
117
|
* resolves it through the same `_idOf` they use; a view this carousel does not hold
|
|
107
118
|
* is refused, which is C's precondition — and it is what a bound indicator calls
|
|
108
119
|
* with `pages[i]` when a marker is tapped, as `adw-carousel-indicator-dots.c` does.
|
|
109
|
-
* The INDEX door is {@link position}.
|
|
120
|
+
* The INDEX door is {@link position}. The model lands at once either way; `animate`
|
|
121
|
+
* only decides whether the `ScrollView` glides there or jumps.
|
|
110
122
|
*/
|
|
111
|
-
scroll_to(page: View): void;
|
|
123
|
+
scroll_to(page: View, animate?: boolean): void;
|
|
124
|
+
/**
|
|
125
|
+
* `adw_carousel_get_nth_page` (adw-carousel.c:1610-1621) — the page at `n`. Past the
|
|
126
|
+
* last page C's precondition fails and returns NULL, so this returns `null`.
|
|
127
|
+
*/
|
|
128
|
+
get_nth_page(n: number): View | null;
|
|
129
|
+
/** `adw_carousel_get_n_pages` (adw-carousel.c:1632). */
|
|
130
|
+
get_n_pages(): number;
|
|
131
|
+
/** `adw_carousel_get_position` (adw-carousel.c:1661-1666) — the {@link position} property. */
|
|
132
|
+
get_position(): number;
|
|
112
133
|
/** One keynav step — `navigate_to_direction` (adw-carousel.c:475-508). */
|
|
113
134
|
navigate(direction: 'back' | 'forward'): boolean;
|
|
114
135
|
/** The pages on the track, in order — the read-back for `append`/`insert`. */
|
|
@@ -3,7 +3,7 @@ import { GridLayout } from '@nativescript/core';
|
|
|
3
3
|
import { DEFAULT_CLAMP_MAX_SIZE, DEFAULT_CLAMP_TIGHTENING_THRESHOLD } from './chrome.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
export { DEFAULT_CLAMP_MAX_SIZE, DEFAULT_CLAMP_TIGHTENING_THRESHOLD };
|
|
6
|
-
declare const AdwClamp_base: (abstract new (...args: any[]) => {
|
|
6
|
+
declare const AdwClamp_base: ((abstract new (...args: any[]) => {
|
|
7
7
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
8
8
|
disconnect(handlerId: number): void;
|
|
9
9
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -29,10 +29,17 @@ declare const AdwClamp_base: (abstract new (...args: any[]) => {
|
|
|
29
29
|
set name(value: string | null);
|
|
30
30
|
get tooltipText(): string;
|
|
31
31
|
set tooltipText(value: string);
|
|
32
|
+
get tooltip_text(): string;
|
|
33
|
+
set tooltip_text(value: string);
|
|
32
34
|
get widthRequest(): number;
|
|
33
35
|
set widthRequest(value: number | string);
|
|
34
36
|
get heightRequest(): number;
|
|
35
37
|
set heightRequest(value: number | string);
|
|
38
|
+
get_visible(): boolean;
|
|
39
|
+
set_visible(visible: boolean): void;
|
|
40
|
+
get_mapped(): boolean;
|
|
41
|
+
get_tooltip_text(): string;
|
|
42
|
+
set_tooltip_text(text: string): void;
|
|
36
43
|
set_direction(direction: number): void;
|
|
37
44
|
get_direction(): number;
|
|
38
45
|
get_first_child(): object | null;
|
|
@@ -51,6 +58,8 @@ declare const AdwClamp_base: (abstract new (...args: any[]) => {
|
|
|
51
58
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
52
59
|
set(name: string, value: unknown): void;
|
|
53
60
|
get(name: string): unknown;
|
|
61
|
+
}) & {
|
|
62
|
+
readonly emittedSignals: readonly string[];
|
|
54
63
|
}) & typeof GridLayout;
|
|
55
64
|
export declare class AdwClamp extends AdwClamp_base {
|
|
56
65
|
static readonly GTypeName: string;
|
|
@@ -50,6 +50,8 @@ export declare class AdwComboRow extends AdwActionRow {
|
|
|
50
50
|
/** The list model (`Adw.ComboRow:model`). Updates the inline value label. */
|
|
51
51
|
get model(): AdwComboOption[];
|
|
52
52
|
set model(value: AdwListModelInput);
|
|
53
|
+
/** `adw_combo_row_set_model`. */
|
|
54
|
+
set_model(model: AdwListModelInput | null): void;
|
|
53
55
|
/**
|
|
54
56
|
* XML inflation: a child at `model` is the row's list — a `Gtk.StringList` is already an
|
|
55
57
|
* `AdwListModelInput`, so it goes through the same setter as the property. Everything
|
|
@@ -59,6 +61,8 @@ export declare class AdwComboRow extends AdwActionRow {
|
|
|
59
61
|
/** The selected option index. Updates the inline value label. */
|
|
60
62
|
get selected(): number;
|
|
61
63
|
set selected(raw: number | string);
|
|
64
|
+
get_selected(): number;
|
|
65
|
+
set_selected(position: number): void;
|
|
62
66
|
/** The selected option's `value`, or `''` when out of range. */
|
|
63
67
|
get selectedValue(): string;
|
|
64
68
|
set selectedValue(value: string);
|
|
@@ -9,7 +9,7 @@ export interface RowActivatedEventData extends EventData {
|
|
|
9
9
|
index: number;
|
|
10
10
|
row: AdwDataGridRow;
|
|
11
11
|
}
|
|
12
|
-
declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
|
|
12
|
+
declare const AdwDataGrid_base: ((abstract new (...args: any[]) => {
|
|
13
13
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
14
14
|
disconnect(handlerId: number): void;
|
|
15
15
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -35,10 +35,17 @@ declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
|
|
|
35
35
|
set name(value: string | null);
|
|
36
36
|
get tooltipText(): string;
|
|
37
37
|
set tooltipText(value: string);
|
|
38
|
+
get tooltip_text(): string;
|
|
39
|
+
set tooltip_text(value: string);
|
|
38
40
|
get widthRequest(): number;
|
|
39
41
|
set widthRequest(value: number | string);
|
|
40
42
|
get heightRequest(): number;
|
|
41
43
|
set heightRequest(value: number | string);
|
|
44
|
+
get_visible(): boolean;
|
|
45
|
+
set_visible(visible: boolean): void;
|
|
46
|
+
get_mapped(): boolean;
|
|
47
|
+
get_tooltip_text(): string;
|
|
48
|
+
set_tooltip_text(text: string): void;
|
|
42
49
|
set_direction(direction: number): void;
|
|
43
50
|
get_direction(): number;
|
|
44
51
|
get_first_child(): object | null;
|
|
@@ -57,6 +64,8 @@ declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
|
|
|
57
64
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
58
65
|
set(name: string, value: unknown): void;
|
|
59
66
|
get(name: string): unknown;
|
|
67
|
+
}) & {
|
|
68
|
+
readonly emittedSignals: readonly string[];
|
|
60
69
|
}) & typeof GridLayout;
|
|
61
70
|
export declare class AdwDataGrid extends AdwDataGrid_base {
|
|
62
71
|
static readonly GTypeName: string;
|