@gjsify/adwaita-nativescript 0.64.1-next.240 → 0.64.1-next.243
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/canvas2d/canvas2d-bridge.js +1 -1
- package/lib/esm/canvas2d/native-canvas.ios.js +1 -1
- package/lib/esm/canvas2d/native-canvas.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +1 -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-button-row.js +1 -1
- package/lib/esm/widgets/adw-combo-row.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-navigation-view.js +1 -1
- package/lib/esm/widgets/adw-status-page.js +1 -1
- package/lib/esm/widgets/adw-switch-row.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-label.js +2 -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-stack.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/native-tooltip.js +1 -1
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/canvas2d/native-canvas.d.ts +2 -1
- package/lib/types/canvas2d/native-canvas.ios.d.ts +2 -1
- package/lib/types/widgets/adw-about-dialog.d.ts +14 -3
- package/lib/types/widgets/adw-action-row.d.ts +10 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-avatar.d.ts +3 -0
- package/lib/types/widgets/adw-banner.d.ts +3 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
- package/lib/types/widgets/adw-button-content.d.ts +3 -0
- package/lib/types/widgets/adw-carousel.d.ts +3 -0
- package/lib/types/widgets/adw-clamp.d.ts +3 -0
- package/lib/types/widgets/adw-data-grid.d.ts +3 -0
- package/lib/types/widgets/adw-header-bar.d.ts +3 -0
- package/lib/types/widgets/adw-image-button.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +5 -0
- package/lib/types/widgets/adw-preferences-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
- package/lib/types/widgets/adw-sidebar.d.ts +3 -0
- package/lib/types/widgets/adw-slider-row.d.ts +3 -0
- package/lib/types/widgets/adw-spinner.d.ts +3 -0
- package/lib/types/widgets/adw-split-button.d.ts +3 -0
- package/lib/types/widgets/adw-status-page.d.ts +3 -0
- package/lib/types/widgets/adw-switch-row.d.ts +2 -0
- package/lib/types/widgets/adw-tab-view.d.ts +3 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
- package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
- package/lib/types/widgets/adw-toggle.d.ts +3 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
- package/lib/types/widgets/adw-view-stack.d.ts +3 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
- package/lib/types/widgets/adw-window-title.d.ts +3 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
- package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
- package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
- package/lib/types/widgets/gtk-button.d.ts +3 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +3 -0
- package/lib/types/widgets/gtk-entry.d.ts +3 -0
- package/lib/types/widgets/gtk-image.d.ts +3 -0
- package/lib/types/widgets/gtk-label.d.ts +24 -1
- package/lib/types/widgets/gtk-menu-button.d.ts +7 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
- package/lib/types/widgets/gtk-stack.d.ts +3 -0
- package/lib/types/widgets/gtk-text-view.d.ts +3 -0
- package/lib/types/widgets/native-tooltip.d.ts +2 -0
- package/lib/types/widgets/signals.d.ts +3 -0
- package/lib/types/widgets/split-view-base.d.ts +3 -0
- package/lib/types/widgets/stack-page.d.ts +3 -0
- package/lib/types/widgets/styled-layout-base.d.ts +3 -0
- package/lib/types/widgets/view-stack-page.d.ts +3 -0
- package/lib/types/widgets/view-switcher-base.d.ts +3 -0
- package/lib/types/widgets/widget-layout.d.ts +4 -0
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{xmlBoolean as t}from"./xml-values.js";import{GTK_ALIGN as n,NS_HORIZONTAL_ALIGNMENT as r,NS_VERTICAL_ALIGNMENT as i}from"./gtk-align.js";import{nsAlignment as a}from"./construct-props.js";import{lengthValue as o}from"./ns-length.js";import{insertActionGroup as s}from"./actions.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{xmlBoolean as t}from"./xml-values.js";import{GTK_ALIGN as n,NS_HORIZONTAL_ALIGNMENT as r,NS_VERTICAL_ALIGNMENT as i}from"./gtk-align.js";import{nsAlignment as a}from"./construct-props.js";import{lengthValue as o}from"./ns-length.js";import{insertActionGroup as s}from"./actions.js";import{focusView as c,isViewFocused as l}from"../window-source.js";import{applyNativeTooltip as u}from"./native-tooltip.js";const d=`notify::hexpand`,f=`notify::vexpand`,p=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const m=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,t){if(typeof e==`string`&&Object.hasOwn(n,e))return e;if(typeof e==`number`){let t=Object.keys(n).find(t=>n[t]===e);if(t!==void 0)return t}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${t}'. The members are ${Object.keys(n).join(`, `)}; NativeScript's own alignment words go to ${t===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=p)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${p}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=o(e);return t!==null&&t>0?Math.round(t):-1}const h=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap;function expandOf(e){let t=v.get(e);return t===void 0&&(t={h:!1,v:!1},v.set(e,t)),t}function withGtkWidgetLayout(n){class WithGtkWidgetLayout extends n{get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,r,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=a(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,i,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=a(alignNick(e,`valign`),`vertical`)}get hexpand(){return v.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let n=expandOf(this),r=t(e,n.h);r!==n.h&&(n.h=r,this.notify({eventName:d,object:this}))}get vexpand(){return v.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let n=expandOf(this),r=t(e,n.v);r!==n.v&&(n.v=r,this.notify({eventName:f,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:o(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:o(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let n=laidOut(this,`visible`);n.visibility=t(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let n=laidOut(this,`sensitive`);n.isEnabled=t(e,this.sensitive)}get name(){return h.get(this)??e(this)}set name(e){let t=laidOut(this,`name`),n=h.get(this),r=e??``;r===``?h.delete(this):h.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}set_direction(e){if(!m.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}insert_action_group(e,t){s(this,e,t)}get focusable(){return _.get(this)??!1}set focusable(e){let n=laidOut(this,`focusable`),r=t(e,_.get(this)??!1);_.set(this,r),n.nativeViewProtected?.setFocusable?.(r)}grab_focus(){let e=laidOut(this,`grab_focus`);return c(e),l(e)}get tooltipText(){return g.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;g.set(this,n),t.accessibilityHint=n,u(this,n)}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}}return WithGtkWidgetLayout}export{d as NOTIFY_HEXPAND,f as NOTIFY_VEXPAND,withGtkWidgetLayout};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type NativeCanvasDriver } from './native-driver.js';
|
|
1
2
|
export type { NativeCanvasDriver } from './native-driver.js';
|
|
2
|
-
export
|
|
3
|
+
export declare function createNativeCanvasDriver(): NativeCanvasDriver;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type NativeCanvasDriver } from './native-driver.js';
|
|
1
2
|
export type { NativeCanvasDriver } from './native-driver.js';
|
|
2
|
-
export
|
|
3
|
+
export declare function createNativeCanvasDriver(): NativeCanvasDriver;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
|
|
2
2
|
import { type ConstructProps } from './construct-props.js';
|
|
3
|
+
import type { View } from '@nativescript/core';
|
|
3
4
|
/** Event name emitted when the dialog is closed. */
|
|
4
5
|
export declare const CLOSED = "closed";
|
|
5
6
|
declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
|
|
@@ -40,6 +41,9 @@ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
|
|
|
40
41
|
get_prev_sibling(): object | null;
|
|
41
42
|
get_parent(): object | null;
|
|
42
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
+
get focusable(): boolean;
|
|
45
|
+
set focusable(value: boolean | string);
|
|
46
|
+
grab_focus(): boolean;
|
|
43
47
|
_emit(eventName: string): void;
|
|
44
48
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
49
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -65,6 +69,8 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
65
69
|
private _comments;
|
|
66
70
|
private _website;
|
|
67
71
|
private _copyright;
|
|
72
|
+
/** The window `present (parent)` mounted this in, so closing can take it back out. */
|
|
73
|
+
private _host;
|
|
68
74
|
constructor(props?: ConstructProps<AdwAboutDialog>);
|
|
69
75
|
private _addCardLabel;
|
|
70
76
|
/** The application name (bold, centered). */
|
|
@@ -106,9 +112,14 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
|
|
|
106
112
|
* `websiteRow`, which is the flat-card equivalent here.
|
|
107
113
|
*/
|
|
108
114
|
private _render;
|
|
109
|
-
/**
|
|
110
|
-
|
|
111
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Reveal the about overlay — `adw_dialog_present`.
|
|
117
|
+
*
|
|
118
|
+
* With a `parent` it is hosted in that widget's window like every other AdwDialog, so the
|
|
119
|
+
* window's back handling closes it first. Without one it must already sit in a layout.
|
|
120
|
+
*/
|
|
121
|
+
present(parent?: View | null): void;
|
|
122
|
+
/** Hide the about overlay, take it out of its window and emit `closed`. */
|
|
112
123
|
close(): void;
|
|
113
124
|
/** Whether the dialog is currently shown. */
|
|
114
125
|
get open(): boolean;
|
|
@@ -42,6 +42,9 @@ declare const AdwActionRow_base: (abstract new (...args: any[]) => {
|
|
|
42
42
|
get_prev_sibling(): object | null;
|
|
43
43
|
get_parent(): object | null;
|
|
44
44
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
45
|
+
get focusable(): boolean;
|
|
46
|
+
set focusable(value: boolean | string);
|
|
47
|
+
grab_focus(): boolean;
|
|
45
48
|
_emit(eventName: string): void;
|
|
46
49
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
47
50
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -72,6 +75,7 @@ export declare class AdwActionRow extends AdwActionRow_base {
|
|
|
72
75
|
/** The headless labels + activatable-widget coupling (ADR 0004). */
|
|
73
76
|
protected readonly _rowState: ActionRowState<View>;
|
|
74
77
|
private _prefix;
|
|
78
|
+
private _iconImage;
|
|
75
79
|
private _suffix;
|
|
76
80
|
constructor(props?: ConstructProps<AdwActionRow>);
|
|
77
81
|
/**
|
|
@@ -92,6 +96,12 @@ export declare class AdwActionRow extends AdwActionRow_base {
|
|
|
92
96
|
* this is the third renderer joining it.
|
|
93
97
|
*/
|
|
94
98
|
add_prefix(view: View): void;
|
|
99
|
+
/**
|
|
100
|
+
* `AdwActionRow:icon-name` — an icon in the prefix slot, before the title. It takes that slot,
|
|
101
|
+
* so a row whose prefix was set with {@link add_prefix} refuses it rather than replace it.
|
|
102
|
+
*/
|
|
103
|
+
get iconName(): string;
|
|
104
|
+
set iconName(value: string | null);
|
|
95
105
|
get prefix(): View | null;
|
|
96
106
|
/** The row title (column 1, top line). */
|
|
97
107
|
get title(): string;
|
|
@@ -49,6 +49,9 @@ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
|
|
|
49
49
|
get_prev_sibling(): object | null;
|
|
50
50
|
get_parent(): object | null;
|
|
51
51
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
52
|
+
get focusable(): boolean;
|
|
53
|
+
set focusable(value: boolean | string);
|
|
54
|
+
grab_focus(): boolean;
|
|
52
55
|
_emit(eventName: string): void;
|
|
53
56
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
57
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -45,6 +45,9 @@ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
|
|
|
45
45
|
get_prev_sibling(): object | null;
|
|
46
46
|
get_parent(): object | null;
|
|
47
47
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
48
|
+
get focusable(): boolean;
|
|
49
|
+
set focusable(value: boolean | string);
|
|
50
|
+
grab_focus(): boolean;
|
|
48
51
|
_emit(eventName: string): void;
|
|
49
52
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
50
53
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -41,6 +41,9 @@ declare const AdwBanner_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
get_prev_sibling(): object | null;
|
|
42
42
|
get_parent(): object | null;
|
|
43
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
+
get focusable(): boolean;
|
|
45
|
+
set focusable(value: boolean | string);
|
|
46
|
+
grab_focus(): boolean;
|
|
44
47
|
_emit(eventName: string): void;
|
|
45
48
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
46
49
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -52,6 +52,9 @@ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
|
|
|
52
52
|
get_prev_sibling(): object | null;
|
|
53
53
|
get_parent(): object | null;
|
|
54
54
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
55
|
+
get focusable(): boolean;
|
|
56
|
+
set focusable(value: boolean | string);
|
|
57
|
+
grab_focus(): boolean;
|
|
55
58
|
_emit(eventName: string): void;
|
|
56
59
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
57
60
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -55,6 +55,9 @@ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
|
|
|
55
55
|
get_prev_sibling(): object | null;
|
|
56
56
|
get_parent(): object | null;
|
|
57
57
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
58
|
+
get focusable(): boolean;
|
|
59
|
+
set focusable(value: boolean | string);
|
|
60
|
+
grab_focus(): boolean;
|
|
58
61
|
_emit(eventName: string): void;
|
|
59
62
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
60
63
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -41,6 +41,9 @@ declare const AdwClamp_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
get_prev_sibling(): object | null;
|
|
42
42
|
get_parent(): object | null;
|
|
43
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
+
get focusable(): boolean;
|
|
45
|
+
set focusable(value: boolean | string);
|
|
46
|
+
grab_focus(): boolean;
|
|
44
47
|
_emit(eventName: string): void;
|
|
45
48
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
46
49
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -47,6 +47,9 @@ declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
|
|
|
47
47
|
get_prev_sibling(): object | null;
|
|
48
48
|
get_parent(): object | null;
|
|
49
49
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
50
|
+
get focusable(): boolean;
|
|
51
|
+
set focusable(value: boolean | string);
|
|
52
|
+
grab_focus(): boolean;
|
|
50
53
|
_emit(eventName: string): void;
|
|
51
54
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
52
55
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -39,6 +39,9 @@ declare const AdwHeaderBar_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
get_prev_sibling(): object | null;
|
|
40
40
|
get_parent(): object | null;
|
|
41
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
42
|
+
get focusable(): boolean;
|
|
43
|
+
set focusable(value: boolean | string);
|
|
44
|
+
grab_focus(): boolean;
|
|
42
45
|
_emit(eventName: string): void;
|
|
43
46
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
44
47
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -49,6 +49,9 @@ declare const AdwImageButton_base: (abstract new (...args: any[]) => {
|
|
|
49
49
|
get_prev_sibling(): object | null;
|
|
50
50
|
get_parent(): object | null;
|
|
51
51
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
52
|
+
get focusable(): boolean;
|
|
53
|
+
set focusable(value: boolean | string);
|
|
54
|
+
grab_focus(): boolean;
|
|
52
55
|
_emit(eventName: string): void;
|
|
53
56
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
57
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -45,6 +45,9 @@ declare const AdwNavigationPage_base: (abstract new (...args: any[]) => {
|
|
|
45
45
|
get_prev_sibling(): object | null;
|
|
46
46
|
get_parent(): object | null;
|
|
47
47
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
48
|
+
get focusable(): boolean;
|
|
49
|
+
set focusable(value: boolean | string);
|
|
50
|
+
grab_focus(): boolean;
|
|
48
51
|
_emit(eventName: string): void;
|
|
49
52
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
50
53
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -52,6 +52,9 @@ declare const AdwNavigationView_base: (abstract new (...args: any[]) => {
|
|
|
52
52
|
get_prev_sibling(): object | null;
|
|
53
53
|
get_parent(): object | null;
|
|
54
54
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
55
|
+
get focusable(): boolean;
|
|
56
|
+
set focusable(value: boolean | string);
|
|
57
|
+
grab_focus(): boolean;
|
|
55
58
|
_emit(eventName: string): void;
|
|
56
59
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
57
60
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -136,6 +139,8 @@ export declare class AdwNavigationView extends AdwNavigationView_base {
|
|
|
136
139
|
get visiblePage(): View | null;
|
|
137
140
|
/** The currently-visible page tag, or `null`. */
|
|
138
141
|
get visiblePageTag(): string | null;
|
|
142
|
+
/** `adw_navigation_view_get_visible_page_tag`. */
|
|
143
|
+
get_visible_page_tag(): string | null;
|
|
139
144
|
/** The current navigation stack depth. */
|
|
140
145
|
get depth(): number;
|
|
141
146
|
/** The navigation stack, bottom-first. */
|
|
@@ -43,6 +43,9 @@ declare const AdwPreferencesDialog_base: (abstract new (...args: any[]) => {
|
|
|
43
43
|
get_prev_sibling(): object | null;
|
|
44
44
|
get_parent(): object | null;
|
|
45
45
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
46
|
+
get focusable(): boolean;
|
|
47
|
+
set focusable(value: boolean | string);
|
|
48
|
+
grab_focus(): boolean;
|
|
46
49
|
_emit(eventName: string): void;
|
|
47
50
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
48
51
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwPreferencesGroup_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwPreferencesPage_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -38,6 +38,9 @@ declare const AdwShortcutLabel_base: (abstract new (...args: any[]) => {
|
|
|
38
38
|
get_prev_sibling(): object | null;
|
|
39
39
|
get_parent(): object | null;
|
|
40
40
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
41
|
+
get focusable(): boolean;
|
|
42
|
+
set focusable(value: boolean | string);
|
|
43
|
+
grab_focus(): boolean;
|
|
41
44
|
_emit(eventName: string): void;
|
|
42
45
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
43
46
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -64,6 +64,9 @@ declare const AdwSidebar_base: (abstract new (...args: any[]) => {
|
|
|
64
64
|
get_prev_sibling(): object | null;
|
|
65
65
|
get_parent(): object | null;
|
|
66
66
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
67
|
+
get focusable(): boolean;
|
|
68
|
+
set focusable(value: boolean | string);
|
|
69
|
+
grab_focus(): boolean;
|
|
67
70
|
_emit(eventName: string): void;
|
|
68
71
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
69
72
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -46,6 +46,9 @@ declare const AdwSliderRow_base: (abstract new (...args: any[]) => {
|
|
|
46
46
|
get_prev_sibling(): object | null;
|
|
47
47
|
get_parent(): object | null;
|
|
48
48
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
49
|
+
get focusable(): boolean;
|
|
50
|
+
set focusable(value: boolean | string);
|
|
51
|
+
grab_focus(): boolean;
|
|
49
52
|
_emit(eventName: string): void;
|
|
50
53
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
51
54
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwSpinner_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -61,6 +61,9 @@ declare const AdwSplitButton_base: (abstract new (...args: any[]) => {
|
|
|
61
61
|
get_prev_sibling(): object | null;
|
|
62
62
|
get_parent(): object | null;
|
|
63
63
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
64
|
+
get focusable(): boolean;
|
|
65
|
+
set focusable(value: boolean | string);
|
|
66
|
+
grab_focus(): boolean;
|
|
64
67
|
_emit(eventName: string): void;
|
|
65
68
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
66
69
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwStatusPage_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -10,6 +10,8 @@ export interface NotifyActiveEventData extends EventData {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class AdwSwitchRow extends AdwActionRow {
|
|
12
12
|
static readonly GTypeName: string;
|
|
13
|
+
/** What the builder checks before it binds to `active`, one way or both. */
|
|
14
|
+
static readonly emittedSignals: readonly string[];
|
|
13
15
|
/** The suffix Switch control. */
|
|
14
16
|
protected readonly _switch: Switch;
|
|
15
17
|
/** The headless active flag + its notify rule (ADR 0004). */
|
|
@@ -61,6 +61,9 @@ declare const AdwTabView_base: (abstract new (...args: any[]) => {
|
|
|
61
61
|
get_prev_sibling(): object | null;
|
|
62
62
|
get_parent(): object | null;
|
|
63
63
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
64
|
+
get focusable(): boolean;
|
|
65
|
+
set focusable(value: boolean | string);
|
|
66
|
+
grab_focus(): boolean;
|
|
64
67
|
_emit(eventName: string): void;
|
|
65
68
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
66
69
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -45,6 +45,9 @@ declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
|
|
|
45
45
|
get_prev_sibling(): object | null;
|
|
46
46
|
get_parent(): object | null;
|
|
47
47
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
48
|
+
get focusable(): boolean;
|
|
49
|
+
set focusable(value: boolean | string);
|
|
50
|
+
grab_focus(): boolean;
|
|
48
51
|
_emit(eventName: string): void;
|
|
49
52
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
50
53
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -59,6 +59,9 @@ declare const AdwToggleGroup_base: (abstract new (...args: any[]) => {
|
|
|
59
59
|
get_prev_sibling(): object | null;
|
|
60
60
|
get_parent(): object | null;
|
|
61
61
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
62
|
+
get focusable(): boolean;
|
|
63
|
+
set focusable(value: boolean | string);
|
|
64
|
+
grab_focus(): boolean;
|
|
62
65
|
_emit(eventName: string): void;
|
|
63
66
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
64
67
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -38,6 +38,9 @@ declare const AdwToggle_base: (abstract new (...args: any[]) => {
|
|
|
38
38
|
get_prev_sibling(): object | null;
|
|
39
39
|
get_parent(): object | null;
|
|
40
40
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
41
|
+
get focusable(): boolean;
|
|
42
|
+
set focusable(value: boolean | string);
|
|
43
|
+
grab_focus(): boolean;
|
|
41
44
|
_emit(eventName: string): void;
|
|
42
45
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
43
46
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -41,6 +41,9 @@ declare const AdwToolbarView_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
get_prev_sibling(): object | null;
|
|
42
42
|
get_parent(): object | null;
|
|
43
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
+
get focusable(): boolean;
|
|
45
|
+
set focusable(value: boolean | string);
|
|
46
|
+
grab_focus(): boolean;
|
|
44
47
|
_emit(eventName: string): void;
|
|
45
48
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
46
49
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -53,6 +53,9 @@ declare const AdwViewStack_base: (abstract new (...args: any[]) => {
|
|
|
53
53
|
get_prev_sibling(): object | null;
|
|
54
54
|
get_parent(): object | null;
|
|
55
55
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
56
|
+
get focusable(): boolean;
|
|
57
|
+
set focusable(value: boolean | string);
|
|
58
|
+
grab_focus(): boolean;
|
|
56
59
|
_emit(eventName: string): void;
|
|
57
60
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
58
61
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -40,6 +40,9 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
get_prev_sibling(): object | null;
|
|
41
41
|
get_parent(): object | null;
|
|
42
42
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
43
|
+
get focusable(): boolean;
|
|
44
|
+
set focusable(value: boolean | string);
|
|
45
|
+
grab_focus(): boolean;
|
|
43
46
|
_emit(eventName: string): void;
|
|
44
47
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
45
48
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -42,6 +42,9 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
|
|
|
42
42
|
get_prev_sibling(): object | null;
|
|
43
43
|
get_parent(): object | null;
|
|
44
44
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
45
|
+
get focusable(): boolean;
|
|
46
|
+
set focusable(value: boolean | string);
|
|
47
|
+
grab_focus(): boolean;
|
|
45
48
|
_emit(eventName: string): void;
|
|
46
49
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
47
50
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -41,6 +41,9 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
get_prev_sibling(): object | null;
|
|
42
42
|
get_parent(): object | null;
|
|
43
43
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
44
|
+
get focusable(): boolean;
|
|
45
|
+
set focusable(value: boolean | string);
|
|
46
|
+
grab_focus(): boolean;
|
|
44
47
|
_emit(eventName: string): void;
|
|
45
48
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
46
49
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -39,6 +39,9 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
get_prev_sibling(): object | null;
|
|
40
40
|
get_parent(): object | null;
|
|
41
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
42
|
+
get focusable(): boolean;
|
|
43
|
+
set focusable(value: boolean | string);
|
|
44
|
+
grab_focus(): boolean;
|
|
42
45
|
_emit(eventName: string): void;
|
|
43
46
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
44
47
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -39,6 +39,9 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
get_prev_sibling(): object | null;
|
|
40
40
|
get_parent(): object | null;
|
|
41
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
42
|
+
get focusable(): boolean;
|
|
43
|
+
set focusable(value: boolean | string);
|
|
44
|
+
grab_focus(): boolean;
|
|
42
45
|
_emit(eventName: string): void;
|
|
43
46
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
44
47
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -44,6 +44,9 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
44
44
|
get_prev_sibling(): object | null;
|
|
45
45
|
get_parent(): object | null;
|
|
46
46
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
47
|
+
get focusable(): boolean;
|
|
48
|
+
set focusable(value: boolean | string);
|
|
49
|
+
grab_focus(): boolean;
|
|
47
50
|
_emit(eventName: string): void;
|
|
48
51
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
49
52
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -53,6 +53,9 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
53
53
|
get_prev_sibling(): object | null;
|
|
54
54
|
get_parent(): object | null;
|
|
55
55
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
56
|
+
get focusable(): boolean;
|
|
57
|
+
set focusable(value: boolean | string);
|
|
58
|
+
grab_focus(): boolean;
|
|
56
59
|
_emit(eventName: string): void;
|
|
57
60
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
58
61
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -51,6 +51,9 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
51
51
|
get_prev_sibling(): object | null;
|
|
52
52
|
get_parent(): object | null;
|
|
53
53
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
54
|
+
get focusable(): boolean;
|
|
55
|
+
set focusable(value: boolean | string);
|
|
56
|
+
grab_focus(): boolean;
|
|
54
57
|
_emit(eventName: string): void;
|
|
55
58
|
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
56
59
|
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
@@ -49,6 +49,9 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
49
49
|
get_prev_sibling(): object | null;
|
|
50
50
|
get_parent(): object | null;
|
|
51
51
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
52
|
+
get focusable(): boolean;
|
|
53
|
+
set focusable(value: boolean | string);
|
|
54
|
+
grab_focus(): boolean;
|
|
52
55
|
_emit(eventName: string): void;
|
|
53
56
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
57
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Label } from '@nativescript/core';
|
|
2
|
-
import { type LabelEllipsizeMode } from '@gjsify/adwaita-core';
|
|
2
|
+
import { type LabelEllipsizeMode, type LabelJustification } from '@gjsify/adwaita-core';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
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;
|
|
@@ -39,6 +39,9 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
39
39
|
get_prev_sibling(): object | null;
|
|
40
40
|
get_parent(): object | null;
|
|
41
41
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
42
|
+
get focusable(): boolean;
|
|
43
|
+
set focusable(value: boolean | string);
|
|
44
|
+
grab_focus(): boolean;
|
|
42
45
|
_emit(eventName: string): void;
|
|
43
46
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
44
47
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -56,6 +59,8 @@ export declare class GtkLabel extends GtkLabel_base {
|
|
|
56
59
|
private _lines;
|
|
57
60
|
private _styleClasses;
|
|
58
61
|
private _xalign;
|
|
62
|
+
private _xalignWritten;
|
|
63
|
+
private _justify;
|
|
59
64
|
private _selectable;
|
|
60
65
|
constructor(props?: ConstructProps<GtkLabel>);
|
|
61
66
|
/**
|
|
@@ -124,6 +129,13 @@ export declare class GtkLabel extends GtkLabel_base {
|
|
|
124
129
|
set selectable(raw: boolean | string);
|
|
125
130
|
private _applySelectable;
|
|
126
131
|
private _applyLines;
|
|
132
|
+
/**
|
|
133
|
+
* `Gtk.Label:justify` — how the lines align with one another; no effect on a single line.
|
|
134
|
+
* Takes a nick or the `Gtk.Justification` constant and reads back as the nick. How it shares
|
|
135
|
+
* `textAlignment` with {@link xalign}, and the one combination that throws, is in the header.
|
|
136
|
+
*/
|
|
137
|
+
get justify(): LabelJustification;
|
|
138
|
+
set justify(raw: LabelJustification | number | string);
|
|
127
139
|
/**
|
|
128
140
|
* `Gtk.Label:xalign` — where the text sits in the label's box, `0` the start and `1` the
|
|
129
141
|
* end. Clamped to that range as `gtk_label_set_xalign` clamps it, and painted only at the
|
|
@@ -131,6 +143,17 @@ export declare class GtkLabel extends GtkLabel_base {
|
|
|
131
143
|
*/
|
|
132
144
|
get xalign(): number;
|
|
133
145
|
set xalign(raw: number | string);
|
|
146
|
+
/**
|
|
147
|
+
* Resolve `xalign` and `justify` onto `textAlignment` for the state `next` would leave, and
|
|
148
|
+
* commit it — or throw BEFORE anything changes, so a refused write leaves the label as it was.
|
|
149
|
+
*/
|
|
150
|
+
private _applyAlignment;
|
|
151
|
+
/**
|
|
152
|
+
* FILL off NativeScript's `'justify'` word: that word also forces LEFT gravity, so an RTL
|
|
153
|
+
* FILL label sets the mode on the `TextView` itself, after the platform's `textAlignment`
|
|
154
|
+
* setter has reset it.
|
|
155
|
+
*/
|
|
156
|
+
private _applyJustificationMode;
|
|
134
157
|
/**
|
|
135
158
|
* `GtkWidget:css-classes`, spelled `styleClasses` for the reason `style-classes.ts`
|
|
136
159
|
* records: the platform owns `cssClasses` as a live `Set` and taking that name kills
|