@gjsify/adwaita-nativescript 0.62.0 → 0.63.1-next.235
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/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-bottom-sheet.js +1 -1
- package/lib/esm/widgets/adw-data-grid.js +1 -1
- package/lib/esm/widgets/adw-split-button.js +1 -1
- package/lib/esm/widgets/adw-toggle-group.js +1 -1
- package/lib/esm/widgets/adw-toggle.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-box.js +1 -1
- package/lib/esm/widgets/gtk-enums.js +1 -1
- package/lib/esm/widgets/gtk-grid.js +1 -1
- package/lib/esm/widgets/gtk-list-box.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/shadowed-properties.js +1 -0
- package/lib/esm/widgets/signals.js +1 -1
- package/lib/esm/widgets/window-base.js +1 -1
- package/lib/esm/window-host.js +1 -0
- package/lib/esm/window-source.android.js +1 -0
- package/lib/esm/window-source.ios.js +1 -0
- package/lib/esm/window-source.js +1 -0
- package/lib/types/canvas2d/canvas2d-bridge.d.ts +4 -42
- package/lib/types/index.d.ts +1 -1
- package/lib/types/namespace/gtk.d.ts +1 -1
- package/lib/types/shadowed-properties.spec.d.ts +1 -0
- package/lib/types/testing/ns-core.d.mts +6 -1
- package/lib/types/widgets/adw-about-dialog.d.ts +9 -7
- package/lib/types/widgets/adw-action-row.d.ts +9 -7
- package/lib/types/widgets/adw-alert-dialog.d.ts +9 -7
- package/lib/types/widgets/adw-avatar.d.ts +9 -7
- package/lib/types/widgets/adw-banner.d.ts +9 -7
- package/lib/types/widgets/adw-bottom-sheet.d.ts +30 -16
- package/lib/types/widgets/adw-button-content.d.ts +9 -7
- package/lib/types/widgets/adw-carousel.d.ts +9 -7
- package/lib/types/widgets/adw-clamp.d.ts +9 -7
- package/lib/types/widgets/adw-data-grid.d.ts +27 -13
- package/lib/types/widgets/adw-header-bar.d.ts +9 -7
- package/lib/types/widgets/adw-image-button.d.ts +9 -7
- package/lib/types/widgets/adw-navigation-page.d.ts +9 -7
- package/lib/types/widgets/adw-navigation-view.d.ts +9 -7
- package/lib/types/widgets/adw-preferences-dialog.d.ts +9 -7
- package/lib/types/widgets/adw-preferences-group.d.ts +9 -7
- package/lib/types/widgets/adw-preferences-page.d.ts +9 -7
- package/lib/types/widgets/adw-shortcut-label.d.ts +9 -7
- package/lib/types/widgets/adw-sidebar.d.ts +9 -7
- package/lib/types/widgets/adw-slider-row.d.ts +9 -7
- package/lib/types/widgets/adw-spinner.d.ts +9 -7
- package/lib/types/widgets/adw-split-button.d.ts +31 -11
- package/lib/types/widgets/adw-status-page.d.ts +9 -7
- package/lib/types/widgets/adw-tab-view.d.ts +9 -7
- package/lib/types/widgets/adw-toast-overlay.d.ts +9 -7
- package/lib/types/widgets/adw-toggle-group.d.ts +9 -7
- package/lib/types/widgets/adw-toggle.d.ts +17 -9
- package/lib/types/widgets/adw-toolbar-view.d.ts +9 -7
- package/lib/types/widgets/adw-view-stack.d.ts +9 -7
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +9 -7
- package/lib/types/widgets/adw-window-title.d.ts +9 -7
- package/lib/types/widgets/adw-wrap-box.d.ts +9 -7
- package/lib/types/widgets/carousel-indicator-base.d.ts +9 -7
- package/lib/types/widgets/construct-props.d.ts +9 -3
- package/lib/types/widgets/gtk-action-bar.d.ts +9 -7
- package/lib/types/widgets/gtk-box.d.ts +1 -1
- package/lib/types/widgets/gtk-button.d.ts +9 -7
- package/lib/types/widgets/gtk-drop-down.d.ts +9 -7
- package/lib/types/widgets/gtk-entry.d.ts +9 -7
- package/lib/types/widgets/gtk-enums.d.ts +8 -0
- package/lib/types/widgets/gtk-grid.d.ts +1 -1
- package/lib/types/widgets/gtk-image.d.ts +9 -7
- package/lib/types/widgets/gtk-label.d.ts +9 -7
- package/lib/types/widgets/gtk-list-box.d.ts +1 -1
- package/lib/types/widgets/gtk-popover-menu.d.ts +9 -7
- package/lib/types/widgets/gtk-stack.d.ts +9 -7
- package/lib/types/widgets/gtk-text-view.d.ts +9 -7
- package/lib/types/widgets/gtk-window.d.ts +45 -0
- package/lib/types/widgets/shadowed-properties.d.ts +99 -0
- package/lib/types/widgets/signals.d.ts +17 -8
- package/lib/types/widgets/split-view-base.d.ts +9 -7
- package/lib/types/widgets/stack-page.d.ts +9 -7
- package/lib/types/widgets/styled-layout-base.d.ts +9 -7
- package/lib/types/widgets/view-stack-page.d.ts +9 -7
- package/lib/types/widgets/view-switcher-base.d.ts +9 -7
- package/lib/types/widgets/widget-layout.d.ts +22 -19
- package/lib/types/widgets/window-base.d.ts +2 -0
- package/lib/types/window-host.d.ts +24 -0
- package/lib/types/window-members.spec.d.ts +1 -0
- package/lib/types/window-source.android.d.ts +8 -0
- package/lib/types/window-source.d.ts +13 -0
- package/lib/types/window-source.ios.d.ts +8 -0
- package/package.json +14 -13
- package/src/testing/ns-core.mts +13 -3
|
@@ -3,9 +3,11 @@ import { AdwViewStack } from './adw-view-stack.js';
|
|
|
3
3
|
import { type ViewId } from './id-reference.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
|
|
6
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
9
|
+
get_property(name: string): unknown;
|
|
10
|
+
set_property(name: string, value: unknown): void;
|
|
9
11
|
get halign(): string;
|
|
10
12
|
set halign(value: string | number);
|
|
11
13
|
get valign(): string;
|
|
@@ -24,6 +26,12 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
|
|
|
24
26
|
set sensitive(value: boolean | string);
|
|
25
27
|
get name(): string;
|
|
26
28
|
set name(value: string | null);
|
|
29
|
+
get tooltipText(): string;
|
|
30
|
+
set tooltipText(value: string);
|
|
31
|
+
get widthRequest(): number;
|
|
32
|
+
set widthRequest(value: number | string);
|
|
33
|
+
get heightRequest(): number;
|
|
34
|
+
set heightRequest(value: number | string);
|
|
27
35
|
set_direction(direction: number): void;
|
|
28
36
|
get_direction(): number;
|
|
29
37
|
get_first_child(): object | null;
|
|
@@ -32,12 +40,6 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
|
|
|
32
40
|
get_prev_sibling(): object | null;
|
|
33
41
|
get_parent(): object | null;
|
|
34
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
35
|
-
get tooltipText(): string;
|
|
36
|
-
set tooltipText(value: string);
|
|
37
|
-
get widthRequest(): number;
|
|
38
|
-
set widthRequest(value: number | string);
|
|
39
|
-
get heightRequest(): number;
|
|
40
|
-
set heightRequest(value: number | string);
|
|
41
43
|
_emit(eventName: string): void;
|
|
42
44
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
43
45
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -5,9 +5,11 @@ export declare const NOTIFY_TITLE = "notify::title";
|
|
|
5
5
|
/** Event name emitted when {@link AdwWindowTitle.subtitle} changes. */
|
|
6
6
|
export declare const NOTIFY_SUBTITLE = "notify::subtitle";
|
|
7
7
|
declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
|
|
8
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
11
|
+
get_property(name: string): unknown;
|
|
12
|
+
set_property(name: string, value: unknown): void;
|
|
11
13
|
get halign(): string;
|
|
12
14
|
set halign(value: string | number);
|
|
13
15
|
get valign(): string;
|
|
@@ -26,6 +28,12 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
|
|
|
26
28
|
set sensitive(value: boolean | string);
|
|
27
29
|
get name(): string;
|
|
28
30
|
set name(value: string | null);
|
|
31
|
+
get tooltipText(): string;
|
|
32
|
+
set tooltipText(value: string);
|
|
33
|
+
get widthRequest(): number;
|
|
34
|
+
set widthRequest(value: number | string);
|
|
35
|
+
get heightRequest(): number;
|
|
36
|
+
set heightRequest(value: number | string);
|
|
29
37
|
set_direction(direction: number): void;
|
|
30
38
|
get_direction(): number;
|
|
31
39
|
get_first_child(): object | null;
|
|
@@ -34,12 +42,6 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
|
|
|
34
42
|
get_prev_sibling(): object | null;
|
|
35
43
|
get_parent(): object | null;
|
|
36
44
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
37
|
-
get tooltipText(): string;
|
|
38
|
-
set tooltipText(value: string);
|
|
39
|
-
get widthRequest(): number;
|
|
40
|
-
set widthRequest(value: number | string);
|
|
41
|
-
get heightRequest(): number;
|
|
42
|
-
set heightRequest(value: number | string);
|
|
43
45
|
_emit(eventName: string): void;
|
|
44
46
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
47
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -4,9 +4,11 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
4
4
|
/** Every `notify::` an `Adw.WrapBox` emits (adw-wrap-box.c:284-497). */
|
|
5
5
|
export type AdwWrapBoxProperty = 'child-spacing' | 'child-spacing-unit' | 'pack-direction' | 'align' | 'justify' | 'justify-last-line' | 'line-spacing' | 'line-spacing-unit' | 'line-homogeneous' | 'natural-line-length' | 'natural-line-length-unit' | 'wrap-reverse' | 'wrap-policy' | 'orientation';
|
|
6
6
|
declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
|
|
7
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
10
|
+
get_property(name: string): unknown;
|
|
11
|
+
set_property(name: string, value: unknown): void;
|
|
10
12
|
get halign(): string;
|
|
11
13
|
set halign(value: string | number);
|
|
12
14
|
get valign(): string;
|
|
@@ -25,6 +27,12 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
|
|
|
25
27
|
set sensitive(value: boolean | string);
|
|
26
28
|
get name(): string;
|
|
27
29
|
set name(value: string | null);
|
|
30
|
+
get tooltipText(): string;
|
|
31
|
+
set tooltipText(value: string);
|
|
32
|
+
get widthRequest(): number;
|
|
33
|
+
set widthRequest(value: number | string);
|
|
34
|
+
get heightRequest(): number;
|
|
35
|
+
set heightRequest(value: number | string);
|
|
28
36
|
set_direction(direction: number): void;
|
|
29
37
|
get_direction(): number;
|
|
30
38
|
get_first_child(): object | null;
|
|
@@ -33,12 +41,6 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
|
|
|
33
41
|
get_prev_sibling(): object | null;
|
|
34
42
|
get_parent(): object | null;
|
|
35
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
36
|
-
get tooltipText(): string;
|
|
37
|
-
set tooltipText(value: string);
|
|
38
|
-
get widthRequest(): number;
|
|
39
|
-
set widthRequest(value: number | string);
|
|
40
|
-
get heightRequest(): number;
|
|
41
|
-
set heightRequest(value: number | string);
|
|
42
44
|
_emit(eventName: string): void;
|
|
43
45
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
44
46
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -2,9 +2,11 @@ import { GridLayout, StackLayout } from '@nativescript/core';
|
|
|
2
2
|
import { AdwCarousel } from './adw-carousel.js';
|
|
3
3
|
import { type ViewId } from './id-reference.js';
|
|
4
4
|
declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
|
|
5
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
8
|
+
get_property(name: string): unknown;
|
|
9
|
+
set_property(name: string, value: unknown): void;
|
|
8
10
|
get halign(): string;
|
|
9
11
|
set halign(value: string | number);
|
|
10
12
|
get valign(): string;
|
|
@@ -23,6 +25,12 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
|
|
|
23
25
|
set sensitive(value: boolean | string);
|
|
24
26
|
get name(): string;
|
|
25
27
|
set name(value: string | null);
|
|
28
|
+
get tooltipText(): string;
|
|
29
|
+
set tooltipText(value: string);
|
|
30
|
+
get widthRequest(): number;
|
|
31
|
+
set widthRequest(value: number | string);
|
|
32
|
+
get heightRequest(): number;
|
|
33
|
+
set heightRequest(value: number | string);
|
|
26
34
|
set_direction(direction: number): void;
|
|
27
35
|
get_direction(): number;
|
|
28
36
|
get_first_child(): object | null;
|
|
@@ -31,12 +39,6 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
|
|
|
31
39
|
get_prev_sibling(): object | null;
|
|
32
40
|
get_parent(): object | null;
|
|
33
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
34
|
-
get tooltipText(): string;
|
|
35
|
-
set tooltipText(value: string);
|
|
36
|
-
get widthRequest(): number;
|
|
37
|
-
set widthRequest(value: number | string);
|
|
38
|
-
get heightRequest(): number;
|
|
39
|
-
set heightRequest(value: number | string);
|
|
40
42
|
_emit(eventName: string): void;
|
|
41
43
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
42
44
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdwAdjustmentInput, AdwListModelInput } from '@gjsify/adwaita-core';
|
|
2
|
+
import { type ShadowedName } from './shadowed-properties.js';
|
|
2
3
|
/**
|
|
3
4
|
* The keys a widget's construct-props bag accepts, derived from the widget itself.
|
|
4
5
|
*
|
|
@@ -13,10 +14,15 @@ import type { AdwAdjustmentInput, AdwListModelInput } from '@gjsify/adwaita-core
|
|
|
13
14
|
* measured to drop `size` as well — a getter/setter pair with different types does not
|
|
14
15
|
* compare equal under it — and a type that silently loses real properties is worse than
|
|
15
16
|
* one that admits two impossible ones and says so when they arrive.
|
|
17
|
+
*
|
|
18
|
+
* A name a NativeScript base owns (`shadowed-properties.ts`) is dropped whatever `T` inherits
|
|
19
|
+
* under it — read off `T`, `direction` would be NativeScript's layout direction — and comes
|
|
20
|
+
* back only through `Shadowed`, typed as the class's own `set_<p>` takes it:
|
|
21
|
+
* `ConstructProps<AdwSplitButton, { direction: number }>`. The applier routes it to that verb.
|
|
16
22
|
*/
|
|
17
|
-
export type ConstructProps<T> = Partial<{
|
|
18
|
-
[K in keyof T as T[K] extends (...args: never[]) => unknown ? never : K]: K extends EnumProp ? T[K] | number : K extends ValueProp ? T[K] | ValueProps[K & ValueProp] : T[K];
|
|
19
|
-
}>;
|
|
23
|
+
export type ConstructProps<T, Shadowed extends object = object> = Partial<{
|
|
24
|
+
[K in keyof T as T[K] extends (...args: never[]) => unknown ? never : K extends ShadowedName | keyof Shadowed ? never : K]: K extends EnumProp ? T[K] | number : K extends ValueProp ? T[K] | ValueProps[K & ValueProp] : T[K];
|
|
25
|
+
} & Shadowed>;
|
|
20
26
|
/**
|
|
21
27
|
* The two properties whose SETTER takes a portable VALUE the getter does not hand back, and
|
|
22
28
|
* what each one accepts.
|
|
@@ -2,9 +2,11 @@ import type { View } from '@nativescript/core';
|
|
|
2
2
|
import { GridLayout, StackLayout } from '@nativescript/core';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
4
|
declare const GtkActionBar_base: (abstract new (...args: any[]) => {
|
|
5
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
8
|
+
get_property(name: string): unknown;
|
|
9
|
+
set_property(name: string, value: unknown): void;
|
|
8
10
|
get halign(): string;
|
|
9
11
|
set halign(value: string | number);
|
|
10
12
|
get valign(): string;
|
|
@@ -23,6 +25,12 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
|
|
|
23
25
|
set sensitive(value: boolean | string);
|
|
24
26
|
get name(): string;
|
|
25
27
|
set name(value: string | null);
|
|
28
|
+
get tooltipText(): string;
|
|
29
|
+
set tooltipText(value: string);
|
|
30
|
+
get widthRequest(): number;
|
|
31
|
+
set widthRequest(value: number | string);
|
|
32
|
+
get heightRequest(): number;
|
|
33
|
+
set heightRequest(value: number | string);
|
|
26
34
|
set_direction(direction: number): void;
|
|
27
35
|
get_direction(): number;
|
|
28
36
|
get_first_child(): object | null;
|
|
@@ -31,12 +39,6 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
|
|
|
31
39
|
get_prev_sibling(): object | null;
|
|
32
40
|
get_parent(): object | null;
|
|
33
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
34
|
-
get tooltipText(): string;
|
|
35
|
-
set tooltipText(value: string);
|
|
36
|
-
get widthRequest(): number;
|
|
37
|
-
set widthRequest(value: number | string);
|
|
38
|
-
get heightRequest(): number;
|
|
39
|
-
set heightRequest(value: number | string);
|
|
40
42
|
_emit(eventName: string): void;
|
|
41
43
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
42
44
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -25,7 +25,7 @@ export declare class GtkBox extends AdwStyledLayoutBase {
|
|
|
25
25
|
* spacing at all.
|
|
26
26
|
*/
|
|
27
27
|
addChild(view: View): void;
|
|
28
|
-
insertChild(child: View, atIndex: number):
|
|
28
|
+
insertChild(child: View, atIndex: number): boolean;
|
|
29
29
|
removeChild(view: View): void;
|
|
30
30
|
/**
|
|
31
31
|
* `gtk_box_insert_child_after`.
|
|
@@ -7,9 +7,11 @@ 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
9
|
declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
10
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
13
|
+
get_property(name: string): unknown;
|
|
14
|
+
set_property(name: string, value: unknown): void;
|
|
13
15
|
get halign(): string;
|
|
14
16
|
set halign(value: string | number);
|
|
15
17
|
get valign(): string;
|
|
@@ -28,6 +30,12 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
28
30
|
set sensitive(value: boolean | string);
|
|
29
31
|
get name(): string;
|
|
30
32
|
set name(value: string | null);
|
|
33
|
+
get tooltipText(): string;
|
|
34
|
+
set tooltipText(value: string);
|
|
35
|
+
get widthRequest(): number;
|
|
36
|
+
set widthRequest(value: number | string);
|
|
37
|
+
get heightRequest(): number;
|
|
38
|
+
set heightRequest(value: number | string);
|
|
31
39
|
set_direction(direction: number): void;
|
|
32
40
|
get_direction(): number;
|
|
33
41
|
get_first_child(): object | null;
|
|
@@ -36,12 +44,6 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
36
44
|
get_prev_sibling(): object | null;
|
|
37
45
|
get_parent(): object | null;
|
|
38
46
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
39
|
-
get tooltipText(): string;
|
|
40
|
-
set tooltipText(value: string);
|
|
41
|
-
get widthRequest(): number;
|
|
42
|
-
set widthRequest(value: number | string);
|
|
43
|
-
get heightRequest(): number;
|
|
44
|
-
set heightRequest(value: number | string);
|
|
45
47
|
_emit(eventName: string): void;
|
|
46
48
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
47
49
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -16,9 +16,11 @@ export interface NotifyDropDownSelectedEventData extends EventData {
|
|
|
16
16
|
label: string;
|
|
17
17
|
}
|
|
18
18
|
declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
19
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
22
|
+
get_property(name: string): unknown;
|
|
23
|
+
set_property(name: string, value: unknown): void;
|
|
22
24
|
get halign(): string;
|
|
23
25
|
set halign(value: string | number);
|
|
24
26
|
get valign(): string;
|
|
@@ -37,6 +39,12 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
37
39
|
set sensitive(value: boolean | string);
|
|
38
40
|
get name(): string;
|
|
39
41
|
set name(value: string | null);
|
|
42
|
+
get tooltipText(): string;
|
|
43
|
+
set tooltipText(value: string);
|
|
44
|
+
get widthRequest(): number;
|
|
45
|
+
set widthRequest(value: number | string);
|
|
46
|
+
get heightRequest(): number;
|
|
47
|
+
set heightRequest(value: number | string);
|
|
40
48
|
set_direction(direction: number): void;
|
|
41
49
|
get_direction(): number;
|
|
42
50
|
get_first_child(): object | null;
|
|
@@ -45,12 +53,6 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
45
53
|
get_prev_sibling(): object | null;
|
|
46
54
|
get_parent(): object | null;
|
|
47
55
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
48
|
-
get tooltipText(): string;
|
|
49
|
-
set tooltipText(value: string);
|
|
50
|
-
get widthRequest(): number;
|
|
51
|
-
set widthRequest(value: number | string);
|
|
52
|
-
get heightRequest(): number;
|
|
53
|
-
set heightRequest(value: number | string);
|
|
54
56
|
_emit(eventName: string): void;
|
|
55
57
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
56
58
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -14,9 +14,11 @@ export interface NotifyEntryTextEventData extends EventData {
|
|
|
14
14
|
textLength: number;
|
|
15
15
|
}
|
|
16
16
|
declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
17
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
20
|
+
get_property(name: string): unknown;
|
|
21
|
+
set_property(name: string, value: unknown): void;
|
|
20
22
|
get halign(): string;
|
|
21
23
|
set halign(value: string | number);
|
|
22
24
|
get valign(): string;
|
|
@@ -35,6 +37,12 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
35
37
|
set sensitive(value: boolean | string);
|
|
36
38
|
get name(): string;
|
|
37
39
|
set name(value: string | null);
|
|
40
|
+
get tooltipText(): string;
|
|
41
|
+
set tooltipText(value: string);
|
|
42
|
+
get widthRequest(): number;
|
|
43
|
+
set widthRequest(value: number | string);
|
|
44
|
+
get heightRequest(): number;
|
|
45
|
+
set heightRequest(value: number | string);
|
|
38
46
|
set_direction(direction: number): void;
|
|
39
47
|
get_direction(): number;
|
|
40
48
|
get_first_child(): object | null;
|
|
@@ -43,12 +51,6 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
43
51
|
get_prev_sibling(): object | null;
|
|
44
52
|
get_parent(): object | null;
|
|
45
53
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
46
|
-
get tooltipText(): string;
|
|
47
|
-
set tooltipText(value: string);
|
|
48
|
-
get widthRequest(): number;
|
|
49
|
-
set widthRequest(value: number | string);
|
|
50
|
-
get heightRequest(): number;
|
|
51
|
-
set heightRequest(value: number | string);
|
|
52
54
|
_emit(eventName: string): void;
|
|
53
55
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
56
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -5,6 +5,14 @@ export declare const PolicyType: Readonly<{
|
|
|
5
5
|
readonly NEVER: 2;
|
|
6
6
|
readonly EXTERNAL: 3;
|
|
7
7
|
}>;
|
|
8
|
+
/** `Gtk.ArrowType`: `UP` 0, `DOWN` 1, `LEFT` 2, `RIGHT` 3, `NONE` 4 — `Adw.SplitButton:direction`. */
|
|
9
|
+
export declare const ArrowType: Readonly<{
|
|
10
|
+
readonly UP: 0;
|
|
11
|
+
readonly DOWN: 1;
|
|
12
|
+
readonly LEFT: 2;
|
|
13
|
+
readonly RIGHT: 3;
|
|
14
|
+
readonly NONE: 4;
|
|
15
|
+
}>;
|
|
8
16
|
/** `Gtk.TextDirection`: `NONE` 0, `LTR` 1, `RTL` 2. */
|
|
9
17
|
export declare const TextDirection: Readonly<{
|
|
10
18
|
readonly NONE: 0;
|
|
@@ -27,7 +27,7 @@ export declare class GtkGrid extends AdwStyledLayoutBase {
|
|
|
27
27
|
* are derived here.
|
|
28
28
|
*/
|
|
29
29
|
addChild(view: View): void;
|
|
30
|
-
insertChild(child: View, atIndex: number):
|
|
30
|
+
insertChild(child: View, atIndex: number): boolean;
|
|
31
31
|
removeChild(view: View): void;
|
|
32
32
|
/** `Gtk.Grid:row-spacing` — the gap between rows, in DIPs. */
|
|
33
33
|
get rowSpacing(): number;
|
|
@@ -12,9 +12,11 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const DEFAULT_GTK_IMAGE_SIZE: number;
|
|
14
14
|
declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
15
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
18
|
+
get_property(name: string): unknown;
|
|
19
|
+
set_property(name: string, value: unknown): void;
|
|
18
20
|
get halign(): string;
|
|
19
21
|
set halign(value: string | number);
|
|
20
22
|
get valign(): string;
|
|
@@ -33,6 +35,12 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
33
35
|
set sensitive(value: boolean | string);
|
|
34
36
|
get name(): string;
|
|
35
37
|
set name(value: string | null);
|
|
38
|
+
get tooltipText(): string;
|
|
39
|
+
set tooltipText(value: string);
|
|
40
|
+
get widthRequest(): number;
|
|
41
|
+
set widthRequest(value: number | string);
|
|
42
|
+
get heightRequest(): number;
|
|
43
|
+
set heightRequest(value: number | string);
|
|
36
44
|
set_direction(direction: number): void;
|
|
37
45
|
get_direction(): number;
|
|
38
46
|
get_first_child(): object | null;
|
|
@@ -41,12 +49,6 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
41
49
|
get_prev_sibling(): object | null;
|
|
42
50
|
get_parent(): object | null;
|
|
43
51
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
-
get tooltipText(): string;
|
|
45
|
-
set tooltipText(value: string);
|
|
46
|
-
get widthRequest(): number;
|
|
47
|
-
set widthRequest(value: number | string);
|
|
48
|
-
get heightRequest(): number;
|
|
49
|
-
set heightRequest(value: number | string);
|
|
50
52
|
_emit(eventName: string): void;
|
|
51
53
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
52
54
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -2,9 +2,11 @@ import { Label } from '@nativescript/core';
|
|
|
2
2
|
import { type LabelEllipsizeMode } from '@gjsify/adwaita-core';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
4
|
declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
5
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) =>
|
|
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;
|
|
8
|
+
get_property(name: string): unknown;
|
|
9
|
+
set_property(name: string, value: unknown): void;
|
|
8
10
|
get halign(): string;
|
|
9
11
|
set halign(value: string | number);
|
|
10
12
|
get valign(): string;
|
|
@@ -23,6 +25,12 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
23
25
|
set sensitive(value: boolean | string);
|
|
24
26
|
get name(): string;
|
|
25
27
|
set name(value: string | null);
|
|
28
|
+
get tooltipText(): string;
|
|
29
|
+
set tooltipText(value: string);
|
|
30
|
+
get widthRequest(): number;
|
|
31
|
+
set widthRequest(value: number | string);
|
|
32
|
+
get heightRequest(): number;
|
|
33
|
+
set heightRequest(value: number | string);
|
|
26
34
|
set_direction(direction: number): void;
|
|
27
35
|
get_direction(): number;
|
|
28
36
|
get_first_child(): object | null;
|
|
@@ -31,12 +39,6 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
31
39
|
get_prev_sibling(): object | null;
|
|
32
40
|
get_parent(): object | null;
|
|
33
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
34
|
-
get tooltipText(): string;
|
|
35
|
-
set tooltipText(value: string);
|
|
36
|
-
get widthRequest(): number;
|
|
37
|
-
set widthRequest(value: number | string);
|
|
38
|
-
get heightRequest(): number;
|
|
39
|
-
set heightRequest(value: number | string);
|
|
40
42
|
_emit(eventName: string): void;
|
|
41
43
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
42
44
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -35,7 +35,7 @@ export declare class GtkListBox extends AdwStyledLayoutBase {
|
|
|
35
35
|
get_row_at_index(index: number): View | null;
|
|
36
36
|
/** Every path a row can enter by ends here, so the rows are numbered here. */
|
|
37
37
|
addChild(view: View): void;
|
|
38
|
-
insertChild(child: View, atIndex: number):
|
|
38
|
+
insertChild(child: View, atIndex: number): boolean;
|
|
39
39
|
removeChild(view: View): void;
|
|
40
40
|
/** XML inflation — every child is a row, whatever slot it names. */
|
|
41
41
|
_addChildFromBuilder(_name: string, view: View): void;
|
|
@@ -5,9 +5,11 @@ 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
7
|
declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
8
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
11
|
+
get_property(name: string): unknown;
|
|
12
|
+
set_property(name: string, value: unknown): void;
|
|
11
13
|
get halign(): string;
|
|
12
14
|
set halign(value: string | number);
|
|
13
15
|
get valign(): string;
|
|
@@ -26,6 +28,12 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
|
26
28
|
set sensitive(value: boolean | string);
|
|
27
29
|
get name(): string;
|
|
28
30
|
set name(value: string | null);
|
|
31
|
+
get tooltipText(): string;
|
|
32
|
+
set tooltipText(value: string);
|
|
33
|
+
get widthRequest(): number;
|
|
34
|
+
set widthRequest(value: number | string);
|
|
35
|
+
get heightRequest(): number;
|
|
36
|
+
set heightRequest(value: number | string);
|
|
29
37
|
set_direction(direction: number): void;
|
|
30
38
|
get_direction(): number;
|
|
31
39
|
get_first_child(): object | null;
|
|
@@ -34,12 +42,6 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
|
34
42
|
get_prev_sibling(): object | null;
|
|
35
43
|
get_parent(): object | null;
|
|
36
44
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
37
|
-
get tooltipText(): string;
|
|
38
|
-
set tooltipText(value: string);
|
|
39
|
-
get widthRequest(): number;
|
|
40
|
-
set widthRequest(value: number | string);
|
|
41
|
-
get heightRequest(): number;
|
|
42
|
-
set heightRequest(value: number | string);
|
|
43
45
|
_emit(eventName: string): void;
|
|
44
46
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
47
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -12,9 +12,11 @@ export declare const NOTIFY_STACK_VISIBLE_CHILD_NAME = "notify::visible-child-na
|
|
|
12
12
|
export interface NotifyStackVisibleChildEventData extends EventData, ViewStackNotifyPayload {
|
|
13
13
|
}
|
|
14
14
|
declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
15
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
18
|
+
get_property(name: string): unknown;
|
|
19
|
+
set_property(name: string, value: unknown): void;
|
|
18
20
|
get halign(): string;
|
|
19
21
|
set halign(value: string | number);
|
|
20
22
|
get valign(): string;
|
|
@@ -33,6 +35,12 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
|
33
35
|
set sensitive(value: boolean | string);
|
|
34
36
|
get name(): string;
|
|
35
37
|
set name(value: string | null);
|
|
38
|
+
get tooltipText(): string;
|
|
39
|
+
set tooltipText(value: string);
|
|
40
|
+
get widthRequest(): number;
|
|
41
|
+
set widthRequest(value: number | string);
|
|
42
|
+
get heightRequest(): number;
|
|
43
|
+
set heightRequest(value: number | string);
|
|
36
44
|
set_direction(direction: number): void;
|
|
37
45
|
get_direction(): number;
|
|
38
46
|
get_first_child(): object | null;
|
|
@@ -41,12 +49,6 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
|
41
49
|
get_prev_sibling(): object | null;
|
|
42
50
|
get_parent(): object | null;
|
|
43
51
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
-
get tooltipText(): string;
|
|
45
|
-
set tooltipText(value: string);
|
|
46
|
-
get widthRequest(): number;
|
|
47
|
-
set widthRequest(value: number | string);
|
|
48
|
-
get heightRequest(): number;
|
|
49
|
-
set heightRequest(value: number | string);
|
|
50
52
|
_emit(eventName: string): void;
|
|
51
53
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
52
54
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -14,9 +14,11 @@ export interface GtkTextBufferSubset {
|
|
|
14
14
|
insert_at_cursor(text: string, len?: number): void;
|
|
15
15
|
}
|
|
16
16
|
declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
17
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) =>
|
|
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;
|
|
20
|
+
get_property(name: string): unknown;
|
|
21
|
+
set_property(name: string, value: unknown): void;
|
|
20
22
|
get halign(): string;
|
|
21
23
|
set halign(value: string | number);
|
|
22
24
|
get valign(): string;
|
|
@@ -35,6 +37,12 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
|
35
37
|
set sensitive(value: boolean | string);
|
|
36
38
|
get name(): string;
|
|
37
39
|
set name(value: string | null);
|
|
40
|
+
get tooltipText(): string;
|
|
41
|
+
set tooltipText(value: string);
|
|
42
|
+
get widthRequest(): number;
|
|
43
|
+
set widthRequest(value: number | string);
|
|
44
|
+
get heightRequest(): number;
|
|
45
|
+
set heightRequest(value: number | string);
|
|
38
46
|
set_direction(direction: number): void;
|
|
39
47
|
get_direction(): number;
|
|
40
48
|
get_first_child(): object | null;
|
|
@@ -43,12 +51,6 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
|
43
51
|
get_prev_sibling(): object | null;
|
|
44
52
|
get_parent(): object | null;
|
|
45
53
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
46
|
-
get tooltipText(): string;
|
|
47
|
-
set tooltipText(value: string);
|
|
48
|
-
get widthRequest(): number;
|
|
49
|
-
set widthRequest(value: number | string);
|
|
50
|
-
get heightRequest(): number;
|
|
51
|
-
set heightRequest(value: number | string);
|
|
52
54
|
_emit(eventName: string): void;
|
|
53
55
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
56
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -1,11 +1,56 @@
|
|
|
1
|
+
import type { EventData, View } from '@nativescript/core';
|
|
1
2
|
import { type ConstructProps } from './construct-props.js';
|
|
2
3
|
import { AdwSingleChildBase } from './single-child-base.js';
|
|
4
|
+
export declare const NOTIFY_IS_ACTIVE = "notify::is-active";
|
|
5
|
+
export declare const NOTIFY_MAXIMIZED = "notify::maximized";
|
|
6
|
+
export declare const NOTIFY_FOCUS_WIDGET = "notify::focus-widget";
|
|
7
|
+
export declare const CLOSE_REQUEST = "close-request";
|
|
3
8
|
export declare class GtkWindow extends AdwSingleChildBase {
|
|
4
9
|
static readonly GTypeName: string;
|
|
5
10
|
private _title;
|
|
6
11
|
private _defaultWidth;
|
|
7
12
|
private _defaultHeight;
|
|
13
|
+
private readonly _members;
|
|
14
|
+
private readonly _closeRequest;
|
|
15
|
+
private _unwatchForeground;
|
|
16
|
+
private _unwatchBack;
|
|
8
17
|
constructor(props?: ConstructProps<GtkWindow>);
|
|
18
|
+
onLoaded(): void;
|
|
19
|
+
onUnloaded(): void;
|
|
20
|
+
/** `GtkWindow:is-active` (read-only): the application is in the foreground. */
|
|
21
|
+
get isActive(): boolean;
|
|
22
|
+
is_active(): boolean;
|
|
23
|
+
/** `GtkWindow:maximized`: always true here. Writing false throws; writing true is a no-op. */
|
|
24
|
+
get maximized(): boolean;
|
|
25
|
+
set maximized(value: boolean | string);
|
|
26
|
+
is_maximized(): boolean;
|
|
27
|
+
/** The window is the screen already: nothing to do, nothing to notify. */
|
|
28
|
+
maximize(): void;
|
|
29
|
+
unmaximize(): void;
|
|
30
|
+
/** The application's `activate` returns the root window, so it is presented already. */
|
|
31
|
+
present(): void;
|
|
32
|
+
/** `GtkWindow:focus-widget` (read-only): the view holding native focus, found live. */
|
|
33
|
+
get focusWidget(): View | null;
|
|
34
|
+
get_focus(): View | null;
|
|
35
|
+
/** Move native focus to a descendant, or clear it with `null`. */
|
|
36
|
+
set_focus(widget: View | null): void;
|
|
37
|
+
/**
|
|
38
|
+
* `gtk_window_close`: emit `close-request`; a handler returning true keeps the window, else
|
|
39
|
+
* it ends. Throws on iOS (no public API to end the root) before any handler runs.
|
|
40
|
+
*/
|
|
41
|
+
close(): void;
|
|
42
|
+
private _requestClose;
|
|
43
|
+
/**
|
|
44
|
+
* What the back button does, in order: the topmost dialog, the innermost navigation view, then
|
|
45
|
+
* `close-request`. Always consumes the press — the system's own back would `finish()` too, but
|
|
46
|
+
* without asking the handlers.
|
|
47
|
+
*/
|
|
48
|
+
private _handleBack;
|
|
49
|
+
/** A subclass that shows things over the window (dialogs) takes the press first; true = taken. */
|
|
50
|
+
protected _consumeBack(): boolean;
|
|
51
|
+
/** Only a window with no window above it owns the back button. */
|
|
52
|
+
private _isToplevel;
|
|
53
|
+
connect(eventName: string, callback: (self: this, data: EventData) => unknown): number;
|
|
9
54
|
/** `GtkWindow:title`. Held: a `Page` has no title bar of this window's to put it in. */
|
|
10
55
|
get title(): string;
|
|
11
56
|
set title(value: string | null);
|