From 0a17be58a68ce9ce0b809e6436607ecdf60bc3f6 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Sun, 31 Dec 2023 18:34:21 +0100 Subject: [PATCH] Replace generated gir types with @girs modules --- .eslintrc.cjs | 2 - .prettierignore | 3 - .ts-for-girrc.js | 26 - @types/gir-generated/adw-1-ambient.d.ts | 13 - @types/gir-generated/adw-1-import.d.ts | 13 - @types/gir-generated/adw-1.d.ts | 26960 ----- @types/gir-generated/ambient.d.ts | 43 - @types/gir-generated/atk-1.0-ambient.d.ts | 13 - @types/gir-generated/atk-1.0-import.d.ts | 13 - @types/gir-generated/atk-1.0.d.ts | 8276 -- @types/gir-generated/cairo-1.0-ambient.d.ts | 13 - @types/gir-generated/cairo-1.0-import.d.ts | 13 - @types/gir-generated/cairo-1.0.d.ts | 395 - @types/gir-generated/cairo.d.ts | 8 - @types/gir-generated/cally-13-ambient.d.ts | 13 - @types/gir-generated/cally-13-import.d.ts | 13 - @types/gir-generated/cally-13.d.ts | 1251 - @types/gir-generated/clutter-13-ambient.d.ts | 13 - @types/gir-generated/clutter-13-import.d.ts | 13 - @types/gir-generated/clutter-13.d.ts | 25965 ---- @types/gir-generated/cogl-13-ambient.d.ts | 13 - @types/gir-generated/cogl-13-import.d.ts | 13 - @types/gir-generated/cogl-13.d.ts | 5049 - .../gir-generated/coglpango-13-ambient.d.ts | 13 - @types/gir-generated/coglpango-13-import.d.ts | 13 - @types/gir-generated/coglpango-13.d.ts | 151 - @types/gir-generated/dom.d.ts | 307 - .../gir-generated/freetype2-2.0-ambient.d.ts | 13 - .../gir-generated/freetype2-2.0-import.d.ts | 13 - @types/gir-generated/freetype2-2.0.d.ts | 62 - @types/gir-generated/gck-2-ambient.d.ts | 13 - @types/gir-generated/gck-2-import.d.ts | 13 - @types/gir-generated/gck-2.d.ts | 3869 - @types/gir-generated/gcr-4-ambient.d.ts | 13 - @types/gir-generated/gcr-4-import.d.ts | 13 - @types/gir-generated/gcr-4.d.ts | 4334 - .../gdesktopenums-3.0-ambient.d.ts | 13 - .../gdesktopenums-3.0-import.d.ts | 13 - @types/gir-generated/gdesktopenums-3.0.d.ts | 210 - @types/gir-generated/gdk-4.0-ambient.d.ts | 13 - @types/gir-generated/gdk-4.0-import.d.ts | 13 - @types/gir-generated/gdk-4.0.d.ts | 12374 -- .../gir-generated/gdkpixbuf-2.0-ambient.d.ts | 13 - .../gir-generated/gdkpixbuf-2.0-import.d.ts | 13 - @types/gir-generated/gdkpixbuf-2.0.d.ts | 2822 - @types/gir-generated/gettext.d.ts | 42 - @types/gir-generated/gio-2.0-ambient.d.ts | 13 - @types/gir-generated/gio-2.0-import.d.ts | 13 - @types/gir-generated/gio-2.0.d.ts | 53499 --------- @types/gir-generated/gjs.d.ts | 459 - @types/gir-generated/gl-1.0-ambient.d.ts | 13 - @types/gir-generated/gl-1.0-import.d.ts | 13 - @types/gir-generated/gl-1.0.d.ts | 162 - @types/gir-generated/glib-2.0-ambient.d.ts | 13 - @types/gir-generated/glib-2.0-import.d.ts | 13 - @types/gir-generated/glib-2.0.d.ts | 26958 ----- @types/gir-generated/gmodule-2.0-ambient.d.ts | 13 - @types/gir-generated/gmodule-2.0-import.d.ts | 13 - @types/gir-generated/gmodule-2.0.d.ts | 199 - .../gnomedesktop-4.0-ambient.d.ts | 13 - .../gnomedesktop-4.0-import.d.ts | 13 - @types/gir-generated/gnomedesktop-4.0.d.ts | 843 - @types/gir-generated/gobject-2.0-ambient.d.ts | 13 - @types/gir-generated/gobject-2.0-import.d.ts | 13 - @types/gir-generated/gobject-2.0.d.ts | 7571 -- .../gir-generated/graphene-1.0-ambient.d.ts | 13 - @types/gir-generated/graphene-1.0-import.d.ts | 13 - @types/gir-generated/graphene-1.0.d.ts | 3568 - @types/gir-generated/gsk-4.0-ambient.d.ts | 13 - @types/gir-generated/gsk-4.0-import.d.ts | 13 - @types/gir-generated/gsk-4.0.d.ts | 3540 - @types/gir-generated/gtk-4.0-ambient.d.ts | 13 - @types/gir-generated/gtk-4.0-import.d.ts | 13 - @types/gir-generated/gtk-4.0.d.ts | 98322 ---------------- @types/gir-generated/gvc-1.0-ambient.d.ts | 13 - @types/gir-generated/gvc-1.0-import.d.ts | 13 - @types/gir-generated/gvc-1.0.d.ts | 1588 - .../gir-generated/harfbuzz-0.0-ambient.d.ts | 13 - @types/gir-generated/harfbuzz-0.0-import.d.ts | 13 - @types/gir-generated/harfbuzz-0.0.d.ts | 9264 -- @types/gir-generated/json-1.0-ambient.d.ts | 13 - @types/gir-generated/json-1.0-import.d.ts | 13 - @types/gir-generated/json-1.0.d.ts | 3430 - @types/gir-generated/meta-13-ambient.d.ts | 13 - @types/gir-generated/meta-13-import.d.ts | 13 - @types/gir-generated/meta-13.d.ts | 8341 -- @types/gir-generated/mtk-13-ambient.d.ts | 13 - @types/gir-generated/mtk-13-import.d.ts | 13 - @types/gir-generated/mtk-13.d.ts | 141 - @types/gir-generated/nm-1.0-ambient.d.ts | 13 - @types/gir-generated/nm-1.0-import.d.ts | 13 - @types/gir-generated/nm-1.0.d.ts | 33509 ------ @types/gir-generated/pango-1.0-ambient.d.ts | 13 - @types/gir-generated/pango-1.0-import.d.ts | 13 - @types/gir-generated/pango-1.0.d.ts | 8624 -- .../gir-generated/pangocairo-1.0-ambient.d.ts | 13 - .../gir-generated/pangocairo-1.0-import.d.ts | 13 - @types/gir-generated/pangocairo-1.0.d.ts | 491 - @types/gir-generated/polkit-1.0-ambient.d.ts | 13 - @types/gir-generated/polkit-1.0-import.d.ts | 13 - @types/gir-generated/polkit-1.0.d.ts | 2130 - .../polkitagent-1.0-ambient.d.ts | 13 - .../gir-generated/polkitagent-1.0-import.d.ts | 13 - @types/gir-generated/polkitagent-1.0.d.ts | 536 - @types/gir-generated/shell-13-ambient.d.ts | 13 - @types/gir-generated/shell-13-import.d.ts | 13 - @types/gir-generated/shell-13.d.ts | 4201 - @types/gir-generated/st-13-ambient.d.ts | 13 - @types/gir-generated/st-13-import.d.ts | 13 - @types/gir-generated/st-13.d.ts | 8917 -- @types/gir-generated/system.d.ts | 32 - @types/gir-generated/xfixes-4.0-ambient.d.ts | 13 - @types/gir-generated/xfixes-4.0-import.d.ts | 13 - @types/gir-generated/xfixes-4.0.d.ts | 41 - @types/gir-generated/xlib-2.0-ambient.d.ts | 13 - @types/gir-generated/xlib-2.0-import.d.ts | 13 - @types/gir-generated/xlib-2.0.d.ts | 145 - @types/gnome-shell/ambient.d.ts | 24 + @types/gnome-shell/extensions/extension.d.ts | 2 +- Makefile | 4 - package.json | 8 +- tsconfig.json | 33 +- yarn.lock | 1459 +- 123 files changed, 610 insertions(+), 370516 deletions(-) delete mode 100644 .ts-for-girrc.js delete mode 100644 @types/gir-generated/adw-1-ambient.d.ts delete mode 100644 @types/gir-generated/adw-1-import.d.ts delete mode 100644 @types/gir-generated/adw-1.d.ts delete mode 100644 @types/gir-generated/ambient.d.ts delete mode 100644 @types/gir-generated/atk-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/atk-1.0-import.d.ts delete mode 100644 @types/gir-generated/atk-1.0.d.ts delete mode 100644 @types/gir-generated/cairo-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/cairo-1.0-import.d.ts delete mode 100644 @types/gir-generated/cairo-1.0.d.ts delete mode 100644 @types/gir-generated/cairo.d.ts delete mode 100644 @types/gir-generated/cally-13-ambient.d.ts delete mode 100644 @types/gir-generated/cally-13-import.d.ts delete mode 100644 @types/gir-generated/cally-13.d.ts delete mode 100644 @types/gir-generated/clutter-13-ambient.d.ts delete mode 100644 @types/gir-generated/clutter-13-import.d.ts delete mode 100644 @types/gir-generated/clutter-13.d.ts delete mode 100644 @types/gir-generated/cogl-13-ambient.d.ts delete mode 100644 @types/gir-generated/cogl-13-import.d.ts delete mode 100644 @types/gir-generated/cogl-13.d.ts delete mode 100644 @types/gir-generated/coglpango-13-ambient.d.ts delete mode 100644 @types/gir-generated/coglpango-13-import.d.ts delete mode 100644 @types/gir-generated/coglpango-13.d.ts delete mode 100644 @types/gir-generated/dom.d.ts delete mode 100644 @types/gir-generated/freetype2-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/freetype2-2.0-import.d.ts delete mode 100644 @types/gir-generated/freetype2-2.0.d.ts delete mode 100644 @types/gir-generated/gck-2-ambient.d.ts delete mode 100644 @types/gir-generated/gck-2-import.d.ts delete mode 100644 @types/gir-generated/gck-2.d.ts delete mode 100644 @types/gir-generated/gcr-4-ambient.d.ts delete mode 100644 @types/gir-generated/gcr-4-import.d.ts delete mode 100644 @types/gir-generated/gcr-4.d.ts delete mode 100644 @types/gir-generated/gdesktopenums-3.0-ambient.d.ts delete mode 100644 @types/gir-generated/gdesktopenums-3.0-import.d.ts delete mode 100644 @types/gir-generated/gdesktopenums-3.0.d.ts delete mode 100644 @types/gir-generated/gdk-4.0-ambient.d.ts delete mode 100644 @types/gir-generated/gdk-4.0-import.d.ts delete mode 100644 @types/gir-generated/gdk-4.0.d.ts delete mode 100644 @types/gir-generated/gdkpixbuf-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/gdkpixbuf-2.0-import.d.ts delete mode 100644 @types/gir-generated/gdkpixbuf-2.0.d.ts delete mode 100644 @types/gir-generated/gettext.d.ts delete mode 100644 @types/gir-generated/gio-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/gio-2.0-import.d.ts delete mode 100644 @types/gir-generated/gio-2.0.d.ts delete mode 100644 @types/gir-generated/gjs.d.ts delete mode 100644 @types/gir-generated/gl-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/gl-1.0-import.d.ts delete mode 100644 @types/gir-generated/gl-1.0.d.ts delete mode 100644 @types/gir-generated/glib-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/glib-2.0-import.d.ts delete mode 100644 @types/gir-generated/glib-2.0.d.ts delete mode 100644 @types/gir-generated/gmodule-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/gmodule-2.0-import.d.ts delete mode 100644 @types/gir-generated/gmodule-2.0.d.ts delete mode 100644 @types/gir-generated/gnomedesktop-4.0-ambient.d.ts delete mode 100644 @types/gir-generated/gnomedesktop-4.0-import.d.ts delete mode 100644 @types/gir-generated/gnomedesktop-4.0.d.ts delete mode 100644 @types/gir-generated/gobject-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/gobject-2.0-import.d.ts delete mode 100644 @types/gir-generated/gobject-2.0.d.ts delete mode 100644 @types/gir-generated/graphene-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/graphene-1.0-import.d.ts delete mode 100644 @types/gir-generated/graphene-1.0.d.ts delete mode 100644 @types/gir-generated/gsk-4.0-ambient.d.ts delete mode 100644 @types/gir-generated/gsk-4.0-import.d.ts delete mode 100644 @types/gir-generated/gsk-4.0.d.ts delete mode 100644 @types/gir-generated/gtk-4.0-ambient.d.ts delete mode 100644 @types/gir-generated/gtk-4.0-import.d.ts delete mode 100644 @types/gir-generated/gtk-4.0.d.ts delete mode 100644 @types/gir-generated/gvc-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/gvc-1.0-import.d.ts delete mode 100644 @types/gir-generated/gvc-1.0.d.ts delete mode 100644 @types/gir-generated/harfbuzz-0.0-ambient.d.ts delete mode 100644 @types/gir-generated/harfbuzz-0.0-import.d.ts delete mode 100644 @types/gir-generated/harfbuzz-0.0.d.ts delete mode 100644 @types/gir-generated/json-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/json-1.0-import.d.ts delete mode 100644 @types/gir-generated/json-1.0.d.ts delete mode 100644 @types/gir-generated/meta-13-ambient.d.ts delete mode 100644 @types/gir-generated/meta-13-import.d.ts delete mode 100644 @types/gir-generated/meta-13.d.ts delete mode 100644 @types/gir-generated/mtk-13-ambient.d.ts delete mode 100644 @types/gir-generated/mtk-13-import.d.ts delete mode 100644 @types/gir-generated/mtk-13.d.ts delete mode 100644 @types/gir-generated/nm-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/nm-1.0-import.d.ts delete mode 100644 @types/gir-generated/nm-1.0.d.ts delete mode 100644 @types/gir-generated/pango-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/pango-1.0-import.d.ts delete mode 100644 @types/gir-generated/pango-1.0.d.ts delete mode 100644 @types/gir-generated/pangocairo-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/pangocairo-1.0-import.d.ts delete mode 100644 @types/gir-generated/pangocairo-1.0.d.ts delete mode 100644 @types/gir-generated/polkit-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/polkit-1.0-import.d.ts delete mode 100644 @types/gir-generated/polkit-1.0.d.ts delete mode 100644 @types/gir-generated/polkitagent-1.0-ambient.d.ts delete mode 100644 @types/gir-generated/polkitagent-1.0-import.d.ts delete mode 100644 @types/gir-generated/polkitagent-1.0.d.ts delete mode 100644 @types/gir-generated/shell-13-ambient.d.ts delete mode 100644 @types/gir-generated/shell-13-import.d.ts delete mode 100644 @types/gir-generated/shell-13.d.ts delete mode 100644 @types/gir-generated/st-13-ambient.d.ts delete mode 100644 @types/gir-generated/st-13-import.d.ts delete mode 100644 @types/gir-generated/st-13.d.ts delete mode 100644 @types/gir-generated/system.d.ts delete mode 100644 @types/gir-generated/xfixes-4.0-ambient.d.ts delete mode 100644 @types/gir-generated/xfixes-4.0-import.d.ts delete mode 100644 @types/gir-generated/xfixes-4.0.d.ts delete mode 100644 @types/gir-generated/xlib-2.0-ambient.d.ts delete mode 100644 @types/gir-generated/xlib-2.0-import.d.ts delete mode 100644 @types/gir-generated/xlib-2.0.d.ts create mode 100644 @types/gnome-shell/ambient.d.ts diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 92fbbac..689cb92 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -21,7 +21,5 @@ module.exports = { // Build outputs "/build/**/*", "/dist/**/*", - // Generated types - "/@types/gir-generated/**/*", ], }; diff --git a/.prettierignore b/.prettierignore index 8a8f916..3c42d0d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,3 @@ -# Generated files -/@types/gir-generated/* - # Build outputes /dist/ /build/ diff --git a/.ts-for-girrc.js b/.ts-for-girrc.js deleted file mode 100644 index 9ec3b84..0000000 --- a/.ts-for-girrc.js +++ /dev/null @@ -1,26 +0,0 @@ -export default { - environments: ["gjs"], - outdir: "@types/gir-generated", - girDirectories: [ - // Various places where our required Gir files for Gnome shell dev - // are found on an Arch Linux system. - "/usr/share/gir-1.0", - "/usr/share/gnome-shell/", - "/usr/lib/mutter-13", - ], - modules: [ - // On Arch you need gobject-introspection for these girs - "Gio-2.0", - "GLib-2.0", - "GnomeDesktop-4.0", - "Shell-13", - "Clutter-13", - "St-13", - "Gtk-4.0", - "Adw-1", - ], - ignore: [], - noNamespace: false, - buildType: "types", - moduleType: "esm", -}; diff --git a/@types/gir-generated/adw-1-ambient.d.ts b/@types/gir-generated/adw-1-ambient.d.ts deleted file mode 100644 index 7b5dadb..0000000 --- a/@types/gir-generated/adw-1-ambient.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -declare module 'gi://Adw?version=1' { - const Adw1: typeof import('./adw-1.js').default; - export default Adw1; -} - -declare module 'gi://Adw' { - const Adw1: typeof import('./adw-1.js').default; - export default Adw1; -} - - diff --git a/@types/gir-generated/adw-1-import.d.ts b/@types/gir-generated/adw-1-import.d.ts deleted file mode 100644 index 047769c..0000000 --- a/@types/gir-generated/adw-1-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -type Adw1 = typeof import('./adw-1.js').default; - -declare global { - export interface GjsGiImports { - Adw: Adw1; - } -} - -export default GjsGiImports; - - diff --git a/@types/gir-generated/adw-1.d.ts b/@types/gir-generated/adw-1.d.ts deleted file mode 100644 index d5d9159..0000000 --- a/@types/gir-generated/adw-1.d.ts +++ /dev/null @@ -1,26960 +0,0 @@ - -/* - * Type Definitions for Gjs (https://gjs.guide/) - * - * These type definitions are automatically generated, do not edit them by hand. - * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir - */ - -import './adw-1-import.d.ts'; -/** - * Adw-1 - */ - -import type Gtk from './gtk-4.0.js'; -import type Gsk from './gsk-4.0.js'; -import type Graphene from './graphene-1.0.js'; -import type GObject from './gobject-2.0.js'; -import type GLib from './glib-2.0.js'; -import type Gdk from './gdk-4.0.js'; -import type cairo from './cairo-1.0.js'; -import type PangoCairo from './pangocairo-1.0.js'; -import type Pango from './pango-1.0.js'; -import type HarfBuzz from './harfbuzz-0.0.js'; -import type freetype2 from './freetype2-2.0.js'; -import type Gio from './gio-2.0.js'; -import type GdkPixbuf from './gdkpixbuf-2.0.js'; -import type GModule from './gmodule-2.0.js'; - -export namespace Adw { - -/** - * Describes the possible states of an [class`Animation]`. - * - * The state can be controlled with [method`Animation`.play], - * [method`Animation`.pause], [method`Animation`.resume], - * [method`Animation`.reset] and [method`Animation`.skip]. - */ -enum AnimationState { - /** - * The animation hasn't started yet. - */ - IDLE, - /** - * The animation has been paused. - */ - PAUSED, - /** - * The animation is currently playing. - */ - PLAYING, - /** - * The animation has finished. - */ - FINISHED, -} -/** - * Describes length types for [struct`BreakpointCondition]`. - * - * See [ctor`BreakpointCondition`.new_length]. - * - * New values may be added to this enumeration over time. - */ -enum BreakpointConditionLengthType { - /** - * true if the width is greater than or - * equal to the condition value - */ - MIN_WIDTH, - /** - * true if the width is less than or - * equal to the condition value - */ - MAX_WIDTH, - /** - * true if the height is greater than or - * equal to the condition value - */ - MIN_HEIGHT, - /** - * true if the height is less than or - * equal to the condition value - */ - MAX_HEIGHT, -} -/** - * Describes ratio types for [struct`BreakpointCondition]`. - * - * See [ctor`BreakpointCondition`.new_ratio]. - * - * New values may be added to this enumeration over time. - */ -enum BreakpointConditionRatioType { - /** - * true if the aspect ratio is - * greater than or equal to the condition value - */ - MIN_ASPECT_RATIO, - /** - * true if the aspect ratio is - * less than or equal to the condition value - */ - MAX_ASPECT_RATIO, -} -/** - * Describes title centering behavior of a [class`HeaderBar]` widget. - */ -enum CenteringPolicy { - /** - * Keep the title centered when possible - */ - LOOSE, - /** - * Keep the title centered at all cost - */ - STRICT, -} -/** - * Application color schemes for [property`StyleManager:`color-scheme]. - */ -enum ColorScheme { - /** - * Inherit the parent color-scheme. When set on the - * `AdwStyleManager` returned by [func`StyleManager`.get_default], it's - * equivalent to `ADW_COLOR_SCHEME_PREFER_LIGHT`. - */ - DEFAULT, - /** - * Always use light appearance. - */ - FORCE_LIGHT, - /** - * Use light appearance unless the system - * prefers dark colors. - */ - PREFER_LIGHT, - /** - * Use dark appearance unless the system prefers - * prefers light colors. - */ - PREFER_DARK, - /** - * Always use dark appearance. - */ - FORCE_DARK, -} -/** - * Describes the available easing functions for use with - * [class`TimedAnimation]`. - * - * New values may be added to this enumeration over time. - */ -enum Easing { - /** - * Linear tweening. - */ - LINEAR, - /** - * Quadratic tweening. - */ - EASE_IN_QUAD, - /** - * Quadratic tweening, inverse of `ADW_EASE_IN_QUAD`. - */ - EASE_OUT_QUAD, - /** - * Quadratic tweening, combining `ADW_EASE_IN_QUAD` and - * `ADW_EASE_OUT_QUAD`. - */ - EASE_IN_OUT_QUAD, - /** - * Cubic tweening. - */ - EASE_IN_CUBIC, - /** - * Cubic tweening, inverse of `ADW_EASE_IN_CUBIC`. - */ - EASE_OUT_CUBIC, - /** - * Cubic tweening, combining `ADW_EASE_IN_CUBIC` and - * `ADW_EASE_OUT_CUBIC`. - */ - EASE_IN_OUT_CUBIC, - /** - * Quartic tweening. - */ - EASE_IN_QUART, - /** - * Quartic tweening, inverse of `ADW_EASE_IN_QUART`. - */ - EASE_OUT_QUART, - /** - * Quartic tweening, combining `ADW_EASE_IN_QUART` and - * `ADW_EASE_OUT_QUART`. - */ - EASE_IN_OUT_QUART, - /** - * Quintic tweening. - */ - EASE_IN_QUINT, - /** - * Quintic tweening, inverse of `ADW_EASE_IN_QUINT`. - */ - EASE_OUT_QUINT, - /** - * Quintic tweening, combining `ADW_EASE_IN_QUINT` and - * `ADW_EASE_OUT_QUINT`. - */ - EASE_IN_OUT_QUINT, - /** - * Sine wave tweening. - */ - EASE_IN_SINE, - /** - * Sine wave tweening, inverse of `ADW_EASE_IN_SINE`. - */ - EASE_OUT_SINE, - /** - * Sine wave tweening, combining `ADW_EASE_IN_SINE` and - * `ADW_EASE_OUT_SINE`. - */ - EASE_IN_OUT_SINE, - /** - * Exponential tweening. - */ - EASE_IN_EXPO, - /** - * Exponential tweening, inverse of `ADW_EASE_IN_EXPO`. - */ - EASE_OUT_EXPO, - /** - * Exponential tweening, combining `ADW_EASE_IN_EXPO` and - * `ADW_EASE_OUT_EXPO`. - */ - EASE_IN_OUT_EXPO, - /** - * Circular tweening. - */ - EASE_IN_CIRC, - /** - * Circular tweening, inverse of `ADW_EASE_IN_CIRC`. - */ - EASE_OUT_CIRC, - /** - * Circular tweening, combining `ADW_EASE_IN_CIRC` and - * `ADW_EASE_OUT_CIRC`. - */ - EASE_IN_OUT_CIRC, - /** - * Elastic tweening, with offshoot on start. - */ - EASE_IN_ELASTIC, - /** - * Elastic tweening, with offshoot on end, inverse of - * `ADW_EASE_IN_ELASTIC`. - */ - EASE_OUT_ELASTIC, - /** - * Elastic tweening, with offshoot on both ends, - * combining `ADW_EASE_IN_ELASTIC` and `ADW_EASE_OUT_ELASTIC`. - */ - EASE_IN_OUT_ELASTIC, - /** - * Overshooting cubic tweening, with backtracking on start. - */ - EASE_IN_BACK, - /** - * Overshooting cubic tweening, with backtracking on end, - * inverse of `ADW_EASE_IN_BACK`. - */ - EASE_OUT_BACK, - /** - * Overshooting cubic tweening, with backtracking on both - * ends, combining `ADW_EASE_IN_BACK` and `ADW_EASE_OUT_BACK`. - */ - EASE_IN_OUT_BACK, - /** - * Exponentially decaying parabolic (bounce) tweening, - * on start. - */ - EASE_IN_BOUNCE, - /** - * Exponentially decaying parabolic (bounce) tweening, - * with bounce on end, inverse of `ADW_EASE_IN_BOUNCE`. - */ - EASE_OUT_BOUNCE, - /** - * Exponentially decaying parabolic (bounce) tweening, - * with bounce on both ends, combining `ADW_EASE_IN_BOUNCE` and - * `ADW_EASE_OUT_BOUNCE`. - */ - EASE_IN_OUT_BOUNCE, -} -/** - * Describes the possible folding behavior of a [class`Flap]` widget. - */ -enum FlapFoldPolicy { - /** - * Disable folding, the flap cannot reach narrow - * sizes. - */ - NEVER, - /** - * Keep the flap always folded. - */ - ALWAYS, - /** - * Fold and unfold the flap based on available - * space. - */ - AUTO, -} -/** - * Describes transitions types of a [class`Flap]` widget. - * - * It determines the type of animation when transitioning between children in a - * [class`Flap]` widget, as well as which areas can be swiped via - * [property`Flap:`swipe-to-open] and [property`Flap:`swipe-to-close]. - */ -enum FlapTransitionType { - /** - * The flap slides over the content, which is - * dimmed. When folded, only the flap can be swiped. - */ - OVER, - /** - * The content slides over the flap. Only the - * content can be swiped. - */ - UNDER, - /** - * The flap slides offscreen when hidden, - * neither the flap nor content overlap each other. Both widgets can be - * swiped. - */ - SLIDE, -} -/** - * Determines when [class`Flap]` and [class`Leaflet]` will fold. - */ -enum FoldThresholdPolicy { - /** - * Folding is based on the minimum size - */ - MINIMUM, - /** - * Folding is based on the natural size - */ - NATURAL, -} -/** - * Describes the possible transitions in a [class`Leaflet]` widget. - * - * New values may be added to this enumeration over time. - */ -enum LeafletTransitionType { - /** - * Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order - */ - OVER, - /** - * Uncover the new page or cover the old page, sliding from or towards the start according to orientation, text direction and children order - */ - UNDER, - /** - * Slide from left, right, up or down according to the orientation, text direction and the children order - */ - SLIDE, -} -/** - * Describes length units. - * - * | Unit | Regular Text | Large Text | - * | ---- | ------------ | ---------- | - * | 1px | 1px | 1px | - * | 1pt | 1.333333px | 1.666667px | - * | 1sp | 1px | 1.25px | - * - * New values may be added to this enumeration over time. - */ -enum LengthUnit { - /** - * pixels - */ - PX, - /** - * points, changes with text scale factor - */ - PT, - /** - * scale independent pixels, changes with text scale factor - */ - SP, -} -/** - * Describes the direction of a swipe navigation gesture. - */ -enum NavigationDirection { - /** - * Corresponds to start or top, depending on orientation and text direction - */ - BACK, - /** - * Corresponds to end or bottom, depending on orientation and text direction - */ - FORWARD, -} -/** - * Describes the possible styles of [class`MessageDialog]` response buttons. - * - * See [method`MessageDialog`.set_response_appearance]. - */ -enum ResponseAppearance { - /** - * the default appearance. - */ - DEFAULT, - /** - * used to denote important responses such as the - * affirmative action. - */ - SUGGESTED, - /** - * used to draw attention to the potentially damaging - * consequences of using the response. This appearance acts as a warning to - * the user. - */ - DESTRUCTIVE, -} -/** - * Describes the possible transitions in a [class`Squeezer]` widget. - */ -enum SqueezerTransitionType { - /** - * No transition - */ - NONE, - /** - * A cross-fade - */ - CROSSFADE, -} -/** - * [class`Toast]` behavior when another toast is already displayed. - */ -enum ToastPriority { - /** - * the toast will be queued if another toast is - * already displayed. - */ - NORMAL, - /** - * the toast will be displayed immediately, pushing - * the previous toast into the queue instead. - */ - HIGH, -} -/** - * Describes the possible top or bottom bar styles in an [class`ToolbarView]` - * widget. - * - * `ADW_TOOLBAR_FLAT` is suitable for simple content, such as - * [class`StatusPage]` or [class`PreferencesPage]`, where the background at the - * top and bottom parts of the page is uniform. Additionally, windows with - * sidebars should always use this style. - * - * - * - * toolbar-view-flat-1 - * - * - * - * toolbar-view-flat-2 - * - * - * `ADW_TOOLBAR_RAISED` style is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the top/bottom bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` style is similar to `ADW_TOOLBAR_RAISED`, but - * with the shadow replaced with a more subtle border. It's intended to be used - * in applications like image viewers, where a shadow over the content might be - * undesired. - * - * - * - * toolbar-view-raised - * - * - * - * toolbar-view-raised-border - * - * - * See [property`ToolbarView:`top-bar-style] and - * [property`ToolbarView:`bottom-bar-style]. - * - * New values may be added to this enumeration over time. - */ -enum ToolbarStyle { - /** - * No background, shadow only for scrolled content - */ - FLAT, - /** - * Opaque background with a persistent shadow - */ - RAISED, - /** - * Opaque background with a persistent border - */ - RAISED_BORDER, -} -/** - * Describes the adaptive modes of [class`ViewSwitcher]`. - */ -enum ViewSwitcherPolicy { - /** - * Force the narrow mode - */ - NARROW, - /** - * Force the wide mode - */ - WIDE, -} -/** - * Describes available shortcuts in an [class`TabView]`. - * - * Shortcuts can be set with [property`TabView:`shortcuts], or added/removed - * individually with [method`TabView`.add_shortcuts] and - * [method`TabView`.remove_shortcuts]. - * - * New values may be added to this enumeration over time. - * @bitfield - */ -enum TabViewShortcuts { - /** - * No shortcuts - */ - NONE, - /** - * Ctrl+Tab - switch to the next page - */ - CONTROL_TAB, - /** - * Shift+Ctrl+Tab - switch to the previous - * page - */ - CONTROL_SHIFT_TAB, - /** - * Ctrl+Page Up - switch to the previous page - */ - CONTROL_PAGE_UP, - /** - * Ctrl+Page Down - switch to the next page - */ - CONTROL_PAGE_DOWN, - /** - * Ctrl+Home - switch to the first page - */ - CONTROL_HOME, - /** - * Ctrl+End - switch to the last page - */ - CONTROL_END, - /** - * Ctrl+Shift+Page Up - move the selected - * page backward - */ - CONTROL_SHIFT_PAGE_UP, - /** - * Ctrl+Shift+Page Down - move the selected - * page forward - */ - CONTROL_SHIFT_PAGE_DOWN, - /** - * Ctrl+Shift+Home - move the selected page - * at the start - */ - CONTROL_SHIFT_HOME, - /** - * Ctrl+Shift+End - move the current page at - * the end - */ - CONTROL_SHIFT_END, - /** - * Alt+19 - switch to pages 1-9 - */ - ALT_DIGITS, - /** - * Alt+0 - switch to page 10 - */ - ALT_ZERO, - /** - * All of the shortcuts - */ - ALL_SHORTCUTS, -} -/** - * Indicates an [class`Animation]` with an infinite duration. - * - * This value is mostly used internally. - */ -const DURATION_INFINITE: number -/** - * Adwaita major version component (e.g. 1 if the version is 1.2.3). - */ -const MAJOR_VERSION: number -/** - * Adwaita micro version component (e.g. 3 if the version is 1.2.3). - */ -const MICRO_VERSION: number -/** - * Adwaita minor version component (e.g. 2 if the version is 1.2.3). - */ -const MINOR_VERSION: number -/** - * Adwaita version, encoded as a string, useful for printing and - * concatenation. - */ -const VERSION_S: string | null -/** - * Parses a condition from a string. - * - * Length conditions are specified as `: []`, where: - * - * - `` can be `min-width`, `max-width`, `min-height` or `max-height` - * - `` is a fractional number - * - `` can be `px`, `pt` or `sp` - * - * If the unit is omitted, `px` is assumed. - * - * See [ctor`BreakpointCondition`.new_length]. - * - * Examples: - * - * - `min-width: 500px` - * - `min-height: 400pt` - * - `max-width: 100sp` - * - `max-height: 500` - * - * Ratio conditions are specified as `: [/]`, where: - * - * - `` can be `min-aspect-ratio` or `max-aspect-ratio` - * - `` and `` are integer numbers - * - * See [ctor`BreakpointCondition`.new_ratio]. - * - * The ratio is represented as `` divided by ``. - * - * If `` is omitted, it's assumed to be 1. - * - * Examples: - * - * - `min-aspect-ratio: 4/3` - * - `max-aspect-ratio: 1` - * - * The logical operators `and`, `or` can be used to compose a complex condition - * as follows: - * - * - ` and `: the condition is true when both - * ``s are true, same as when using - * [ctor`BreakpointCondition`.new_and] - * - ` or `: the condition is true when either of the - * ``s is true, same as when using - * [ctor`BreakpointCondition`.new_or] - * - * Examples: - * - * - `min-width: 400px and max-aspect-ratio: 4/3` - * - `max-width: 360sp or max-width: 360px` - * - * Conditions can be further nested using parentheses, for example: - * - * - `min-width: 400px and (max-aspect-ratio: 4/3 or max-height: 400px)` - * - * If parentheses are omitted, the first operator takes priority. - * @param str the string specifying the condition - * @returns the parsed condition - */ -function breakpoint_condition_parse(str: string | null): BreakpointCondition -/** - * Computes easing with `easing` for `value`. - * - * `value` should generally be in the [0, 1] range. - * @param self an easing value - * @param value a value to ease - * @returns the easing for @value - */ -function easing_ease(self: Easing, value: number): number -/** - * Checks whether animations are enabled for `widget`. - * - * This should be used when implementing an animated widget to know whether to - * animate it or not. - * @param widget a `GtkWidget` - * @returns whether animations are enabled for @widget - */ -function get_enable_animations(widget: Gtk.Widget): boolean -/** - * Returns the major version number of the Adwaita library. - * - * For example, in libadwaita version 1.2.3 this is 1. - * - * This function is in the library, so it represents the libadwaita library your - * code is running against. Contrast with the [const`MAJOR_VERSION]` constant, - * which represents the major version of the libadwaita headers you have - * included when compiling your code. - * @returns the major version number of the Adwaita library - */ -function get_major_version(): number -/** - * Returns the micro version number of the Adwaita library. - * - * For example, in libadwaita version 1.2.3 this is 3. - * - * This function is in the library, so it represents the libadwaita library your - * code is running against. Contrast with the [const`MAJOR_VERSION]` constant, - * which represents the micro version of the libadwaita headers you have - * included when compiling your code. - * @returns the micro version number of the Adwaita library - */ -function get_micro_version(): number -/** - * Returns the minor version number of the Adwaita library. - * - * For example, in libadwaita version 1.2.3 this is 2. - * - * This function is in the library, so it represents the libadwaita library your - * code is running against. Contrast with the [const`MAJOR_VERSION]` constant, - * which represents the minor version of the libadwaita headers you have - * included when compiling your code. - * @returns the minor version number of the Adwaita library - */ -function get_minor_version(): number -/** - * Initializes Libadwaita. - * - * This function can be used instead of [func`Gtk`.init] as it initializes GTK - * implicitly. - * - * There's no need to call this function if you're using [class`Application]`. - * - * If Libadwaita has already been initialized, the function will simply return. - * - * This makes sure translations, types, themes, and icons for the Adwaita - * library are set up properly. - */ -function init(): void -/** - * Use this function to check if libadwaita has been initialized with - * [func`init]`. - * @returns the initialization status - */ -function is_initialized(): boolean -/** - * Converts `value` from pixels to `unit`. - * @param unit a length unit - * @param value a value in pixels - * @param settings settings to use, or `NULL` for default settings - * @returns the length in @unit - */ -function length_unit_from_px(unit: LengthUnit, value: number, settings: Gtk.Settings | null): number -/** - * Converts `value` from `unit` to pixels. - * @param unit a length unit - * @param value a value in `unit` - * @param settings settings to use, or `NULL` for default settings - * @returns the length in pixels - */ -function length_unit_to_px(unit: LengthUnit, value: number, settings: Gtk.Settings | null): number -/** - * Computes the linear interpolation between `a` and `b` for `t`. - * @param a the start - * @param b the end - * @param t the interpolation rate - * @returns the computed value - */ -function lerp(a: number, b: number, t: number): number -/** - * Prototype for animation targets based on user callbacks. - * @callback - * @param value The animation value - */ -interface AnimationTargetFunc { - (value: number): void -} -module Swipeable { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Widget.ConstructorProperties, GObject.Object.ConstructorProperties { - } - -} - -interface Swipeable extends Gtk.Widget { - - // Owm methods of Adw-1.Adw.Swipeable - - /** - * Gets the progress `self` will snap back to after the gesture is canceled. - * @returns the cancel progress, unitless - */ - get_cancel_progress(): number - /** - * Gets the swipe distance of `self`. - * - * This corresponds to how many pixels 1 unit represents. - * @returns the swipe distance in pixels - */ - get_distance(): number - /** - * Gets the current progress of `self`. - * @returns the current progress, unitless - */ - get_progress(): number - /** - * Gets the snap points of `self`. - * - * Each snap point represents a progress value that is considered acceptable to - * end the swipe on. - * @returns the snap points - */ - get_snap_points(): number[] - /** - * Gets the area `self` can start a swipe from for the given direction and - * gesture type. - * - * This can be used to restrict swipes to only be possible from a certain area, - * for example, to only allow edge swipes, or to have a draggable element and - * ignore swipes elsewhere. - * - * If not implemented, the default implementation returns the allocation of - * `self,` allowing swipes from anywhere. - * @param navigation_direction the direction of the swipe - * @param is_drag whether the swipe is caused by a dragging gesture - */ - get_swipe_area(navigation_direction: NavigationDirection, is_drag: boolean): /* rect */ Gdk.Rectangle - - // Own virtual methods of Adw-1.Adw.Swipeable - - /** - * Gets the progress `self` will snap back to after the gesture is canceled. - * @virtual - * @returns the cancel progress, unitless - */ - vfunc_get_cancel_progress(): number - /** - * Gets the swipe distance of `self`. - * - * This corresponds to how many pixels 1 unit represents. - * @virtual - * @returns the swipe distance in pixels - */ - vfunc_get_distance(): number - /** - * Gets the current progress of `self`. - * @virtual - * @returns the current progress, unitless - */ - vfunc_get_progress(): number - /** - * Gets the snap points of `self`. - * - * Each snap point represents a progress value that is considered acceptable to - * end the swipe on. - * @virtual - * @returns the snap points - */ - vfunc_get_snap_points(): number[] - /** - * Gets the area `self` can start a swipe from for the given direction and - * gesture type. - * - * This can be used to restrict swipes to only be possible from a certain area, - * for example, to only allow edge swipes, or to have a draggable element and - * ignore swipes elsewhere. - * - * If not implemented, the default implementation returns the allocation of - * `self,` allowing swipes from anywhere. - * @virtual - * @param navigation_direction the direction of the swipe - * @param is_drag whether the swipe is caused by a dragging gesture - */ - vfunc_get_swipe_area(navigation_direction: NavigationDirection, is_drag: boolean): /* rect */ Gdk.Rectangle - - // Class property signals of Adw-1.Adw.Swipeable - - connect(sigName: "notify::can-focus", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Swipeable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An interface for swipeable widgets. - * - * The `AdwSwipeable` interface is implemented by all swipeable widgets. - * - * See [class`SwipeTracker]` for details about implementing it. - * @interface - */ -class Swipeable extends GObject.Object { - - // Own properties of Adw-1.Adw.Swipeable - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Swipeable - - constructor(config?: Swipeable.ConstructorProperties) - _init(config?: Swipeable.ConstructorProperties): void -} - -module AboutWindow { - - // Signal callback interfaces - - /** - * Signal callback interface for `activate-link` - */ - interface ActivateLinkSignalCallback { - ($obj: AboutWindow, uri: string | null): boolean - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Native.ConstructorProperties, Gtk.Root.ConstructorProperties, Gtk.ShortcutManager.ConstructorProperties, Window.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.AboutWindow - - /** - * The name of the application icon. - * - * The icon is displayed at the top of the main page. - */ - application_icon?: string | null - /** - * The name of the application. - * - * The name is displayed at the top of the main page. - */ - application_name?: string | null - /** - * The list of artists of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - artists?: string[] | null - /** - * The comments about the application. - * - * Comments will be shown on the Details page, above links. - * - * Unlike [property`Gtk`.AboutDialog:comments], this string can be long and - * detailed. It can also contain links and Pango markup. - */ - comments?: string | null - /** - * The copyright information. - * - * This should be a short string of one or two lines, for example: - * `© 2022 Example`. - * - * The copyright information will be displayed on the Legal page, above the - * application license. - * - * [method`AboutWindow`.add_legal_section] can be used to add copyright - * information for the application dependencies or other components. - */ - copyright?: string | null - /** - * The debug information. - * - * Debug information will be shown on the Troubleshooting page. It's intended - * to be attached to issue reports when reporting issues against the - * application. - * - * `AdwAboutWindow` provides a quick way to save debug information to a file. - * When saving, [property`AboutWindow:`debug-info-filename] would be used as - * the suggested filename. - * - * Debug information cannot contain markup or links. - */ - debug_info?: string | null - /** - * The debug information filename. - * - * It will be used as the suggested filename when saving debug information to - * a file. - * - * See [property`AboutWindow:`debug-info]. - */ - debug_info_filename?: string | null - /** - * The list of designers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - designers?: string[] | null - /** - * The developer name. - * - * The developer name is displayed on the main page, under the application - * name. - * - * If the application is developed by multiple people, the developer name can - * be set to values like "AppName team", "AppName developers" or - * "The AppName project", and the individual contributors can be listed on the - * Credits page, with [property`AboutWindow:`developers] and related - * properties. - */ - developer_name?: string | null - /** - * The list of developers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - developers?: string[] | null - /** - * The list of documenters of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - documenters?: string[] | null - /** - * The URL for the application's issue tracker. - * - * The issue tracker link is displayed on the main page. - */ - issue_url?: string | null - /** - * The license text. - * - * This can be used to set a custom text for the license if it can't be set - * via [property`AboutWindow:`license-type]. - * - * When set, [property`AboutWindow:`license-type] will be set to - * `GTK_LICENSE_CUSTOM`. - * - * The license text will be displayed on the Legal page, below the copyright - * information. - * - * License text can contain Pango markup and links. - * - * [method`AboutWindow`.add_legal_section] can be used to add license - * information for the application dependencies or other components. - */ - license?: string | null - /** - * The license type. - * - * Allows to set the application's license froma list of known licenses. - * - * If the application's license is not in the list, - * [property`AboutWindow:`license] can be used instead. The license type will - * be automatically set to `GTK_LICENSE_CUSTOM` in that case. - * - * If set to `GTK_LICENSE_UNKNOWN`, no information will be displayed. - * - * If the license type is different from `GTK_LICENSE_CUSTOM`. - * [property`AboutWindow:`license] will be cleared out. - * - * The license description will be displayed on the Legal page, below the - * copyright information. - * - * [method`AboutWindow`.add_legal_section] can be used to add license - * information for the application dependencies or other components. - */ - license_type?: Gtk.License | null - /** - * The release notes of the application. - * - * Release notes are displayed on the the What's New page. - * - * Release notes are formatted the same way as - * [AppStream descriptions](https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description). - * - * The supported formatting options are: - * - * * Paragraph (`

`) - * * Ordered list (`

    `), with list items (`
  1. `) - * * Unordered list (`
      `), with list items (`
    • `) - * - * Within paragraphs and list items, emphasis (``) and inline code - * (``) text styles are supported. The emphasis is rendered in italic, - * while inline code is shown in a monospaced font. - * - * Any text outside paragraphs or list items is ignored. - * - * Nested lists are not supported. - * - * `AdwAboutWindow` displays the version above the release notes. If set, the - * [property`AboutWindow:`release-notes-version] of the property will be used - * as the version; otherwise, [property`AboutWindow:`version] is used. - */ - release_notes?: string | null - /** - * The version described by the application's release notes. - * - * The release notes version is displayed on the What's New page, above the - * release notes. - * - * If not set, [property`AboutWindow:`version] will be used instead. - * - * For example, an application with the current version 2.0.2 might want to - * keep the release notes from 2.0.0, and set the release notes version - * accordingly. - * - * See [property`AboutWindow:`release-notes]. - */ - release_notes_version?: string | null - /** - * The URL of the application's support page. - * - * The support page link is displayed on the main page. - */ - support_url?: string | null - /** - * The translator credits string. - * - * It will be displayed on the Credits page. - * - * This string should be `"translator-credits"` or `"translator_credits"` and - * should be marked as translatable. - * - * The string may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - translator_credits?: string | null - /** - * The version of the application. - * - * The version is displayed on the main page. - * - * If [property`AboutWindow:`release-notes-version] is not set, the version - * will also be displayed above the release notes on the What's New page. - */ - version?: string | null - /** - * The URL of the application's website. - * - * Website is displayed on the Details page, below comments, or on the main - * page if the Details page doesn't have any other content. - * - * Applications can add other links below, see [method`AboutWindow`.add_link]. - */ - website?: string | null - } - -} - -interface AboutWindow extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager { - - // Own properties of Adw-1.Adw.AboutWindow - - /** - * The name of the application icon. - * - * The icon is displayed at the top of the main page. - */ - application_icon: string | null - /** - * The name of the application. - * - * The name is displayed at the top of the main page. - */ - application_name: string | null - /** - * The list of artists of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - artists: string[] - /** - * The comments about the application. - * - * Comments will be shown on the Details page, above links. - * - * Unlike [property`Gtk`.AboutDialog:comments], this string can be long and - * detailed. It can also contain links and Pango markup. - */ - comments: string | null - /** - * The copyright information. - * - * This should be a short string of one or two lines, for example: - * `© 2022 Example`. - * - * The copyright information will be displayed on the Legal page, above the - * application license. - * - * [method`AboutWindow`.add_legal_section] can be used to add copyright - * information for the application dependencies or other components. - */ - copyright: string | null - /** - * The debug information. - * - * Debug information will be shown on the Troubleshooting page. It's intended - * to be attached to issue reports when reporting issues against the - * application. - * - * `AdwAboutWindow` provides a quick way to save debug information to a file. - * When saving, [property`AboutWindow:`debug-info-filename] would be used as - * the suggested filename. - * - * Debug information cannot contain markup or links. - */ - debug_info: string | null - /** - * The debug information filename. - * - * It will be used as the suggested filename when saving debug information to - * a file. - * - * See [property`AboutWindow:`debug-info]. - */ - debug_info_filename: string | null - /** - * The list of designers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - designers: string[] - /** - * The developer name. - * - * The developer name is displayed on the main page, under the application - * name. - * - * If the application is developed by multiple people, the developer name can - * be set to values like "AppName team", "AppName developers" or - * "The AppName project", and the individual contributors can be listed on the - * Credits page, with [property`AboutWindow:`developers] and related - * properties. - */ - developer_name: string | null - /** - * The list of developers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - developers: string[] - /** - * The list of documenters of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - documenters: string[] - /** - * The URL for the application's issue tracker. - * - * The issue tracker link is displayed on the main page. - */ - issue_url: string | null - /** - * The license text. - * - * This can be used to set a custom text for the license if it can't be set - * via [property`AboutWindow:`license-type]. - * - * When set, [property`AboutWindow:`license-type] will be set to - * `GTK_LICENSE_CUSTOM`. - * - * The license text will be displayed on the Legal page, below the copyright - * information. - * - * License text can contain Pango markup and links. - * - * [method`AboutWindow`.add_legal_section] can be used to add license - * information for the application dependencies or other components. - */ - license: string | null - /** - * The license type. - * - * Allows to set the application's license froma list of known licenses. - * - * If the application's license is not in the list, - * [property`AboutWindow:`license] can be used instead. The license type will - * be automatically set to `GTK_LICENSE_CUSTOM` in that case. - * - * If set to `GTK_LICENSE_UNKNOWN`, no information will be displayed. - * - * If the license type is different from `GTK_LICENSE_CUSTOM`. - * [property`AboutWindow:`license] will be cleared out. - * - * The license description will be displayed on the Legal page, below the - * copyright information. - * - * [method`AboutWindow`.add_legal_section] can be used to add license - * information for the application dependencies or other components. - */ - license_type: Gtk.License - /** - * The release notes of the application. - * - * Release notes are displayed on the the What's New page. - * - * Release notes are formatted the same way as - * [AppStream descriptions](https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description). - * - * The supported formatting options are: - * - * * Paragraph (`

      `) - * * Ordered list (`

        `), with list items (`
      1. `) - * * Unordered list (`
          `), with list items (`
        • `) - * - * Within paragraphs and list items, emphasis (``) and inline code - * (``) text styles are supported. The emphasis is rendered in italic, - * while inline code is shown in a monospaced font. - * - * Any text outside paragraphs or list items is ignored. - * - * Nested lists are not supported. - * - * `AdwAboutWindow` displays the version above the release notes. If set, the - * [property`AboutWindow:`release-notes-version] of the property will be used - * as the version; otherwise, [property`AboutWindow:`version] is used. - */ - release_notes: string | null - /** - * The version described by the application's release notes. - * - * The release notes version is displayed on the What's New page, above the - * release notes. - * - * If not set, [property`AboutWindow:`version] will be used instead. - * - * For example, an application with the current version 2.0.2 might want to - * keep the release notes from 2.0.0, and set the release notes version - * accordingly. - * - * See [property`AboutWindow:`release-notes]. - */ - release_notes_version: string | null - /** - * The URL of the application's support page. - * - * The support page link is displayed on the main page. - */ - support_url: string | null - /** - * The translator credits string. - * - * It will be displayed on the Credits page. - * - * This string should be `"translator-credits"` or `"translator_credits"` and - * should be marked as translatable. - * - * The string may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - */ - translator_credits: string | null - /** - * The version of the application. - * - * The version is displayed on the main page. - * - * If [property`AboutWindow:`release-notes-version] is not set, the version - * will also be displayed above the release notes on the What's New page. - */ - version: string | null - /** - * The URL of the application's website. - * - * Website is displayed on the Details page, below comments, or on the main - * page if the Details page doesn't have any other content. - * - * Applications can add other links below, see [method`AboutWindow`.add_link]. - */ - website: string | null - - // Conflicting properties - - parent_instance: Gtk.Window & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.AboutWindow - - /** - * Adds a section to the Acknowledgements page. - * - * This can be used to acknowledge additional people and organizations for their - * non-development contributions - for example, backers in a crowdfunded - * project. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * @param name the section name - * @param people the list of names - */ - add_acknowledgement_section(name: string | null, people: string[]): void - /** - * Adds an extra section to the Credits page. - * - * Extra sections are displayed below the standard categories. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param name the section name - * @param people the list of names - */ - add_credit_section(name: string | null, people: string[]): void - /** - * Adds an extra section to the Legal page. - * - * Extra sections will be displayed below the application's own information. - * - * The parameters `copyright,` `license_type` and `license` will be used to present - * the it the same way as [property`AboutWindow:`copyright], - * [property`AboutWindow:`license-type] and [property`AboutWindow:`license] are - * for the application's own information. - * - * See those properties for more details. - * - * This can be useful to attribute the application dependencies or data. - * - * Examples: - * - * ```c - * adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), - * _("Copyright and a known license"), - * "© 2022 Example", - * GTK_LICENSE_LGPL_2_1, - * NULL); - * - * adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), - * _("Copyright and custom license"), - * "© 2022 Example", - * GTK_LICENSE_CUSTOM, - * "Custom license text"); - * - * adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), - * _("Copyright only"), - * "© 2022 Example", - * GTK_LICENSE_UNKNOWN, - * NULL); - * - * adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), - * _("Custom license only"), - * NULL, - * GTK_LICENSE_CUSTOM, - * "Something completely custom here."); - * ``` - * @param title the name of the section - * @param copyright a copyright string - * @param license_type the type of license - * @param license custom license information - */ - add_legal_section(title: string | null, copyright: string | null, license_type: Gtk.License, license: string | null): void - /** - * Adds an extra link to the Details page. - * - * Extra links are displayed under the comment and website. - * - * Underlines in `title` will be interpreted as indicating a mnemonic. - * - * See [property`AboutWindow:`website]. - * @param title the link title - * @param url the link URL - */ - add_link(title: string | null, url: string | null): void - /** - * Gets the name of the application icon for `self`. - * @returns the application icon name - */ - get_application_icon(): string | null - /** - * Gets the application name for `self`. - * @returns the application name - */ - get_application_name(): string | null - /** - * Gets the list of artists of the application. - * @returns The list of artists - */ - get_artists(): string[] | null - /** - * Gets the comments about the application. - * @returns the comments - */ - get_comments(): string | null - /** - * Gets the copyright information for `self`. - * @returns the copyright information - */ - get_copyright(): string | null - /** - * Gets the debug information for `self`. - * @returns the debug information - */ - get_debug_info(): string | null - /** - * Gets the debug information filename for `self`. - * @returns the debug information filename - */ - get_debug_info_filename(): string | null - /** - * Gets the list of designers of the application. - * @returns The list of designers - */ - get_designers(): string[] | null - /** - * Gets the developer name for `self`. - * @returns the developer_name - */ - get_developer_name(): string | null - /** - * Gets the list of developers of the application. - * @returns The list of developers - */ - get_developers(): string[] | null - /** - * Gets the list of documenters of the application. - * @returns The list of documenters - */ - get_documenters(): string[] | null - /** - * Gets the issue tracker URL for `self`. - * @returns the issue tracker URL - */ - get_issue_url(): string | null - /** - * Gets the license for `self`. - * @returns the license - */ - get_license(): string | null - /** - * Gets the license type for `self`. - * @returns the license type - */ - get_license_type(): Gtk.License - /** - * Gets the release notes for `self`. - * @returns the release notes - */ - get_release_notes(): string | null - /** - * Gets the version described by the application's release notes. - * @returns the release notes version - */ - get_release_notes_version(): string | null - /** - * Gets the URL of the support page for `self`. - * @returns the support page URL - */ - get_support_url(): string | null - /** - * Gets the translator credits string. - * @returns The translator credits string - */ - get_translator_credits(): string | null - /** - * Gets the version for `self`. - * @returns the version - */ - get_version(): string | null - /** - * Gets the application website URL for `self`. - * @returns the website URL - */ - get_website(): string | null - /** - * Sets the name of the application icon for `self`. - * - * The icon is displayed at the top of the main page. - * @param application_icon the application icon name - */ - set_application_icon(application_icon: string | null): void - /** - * Sets the application name for `self`. - * - * The name is displayed at the top of the main page. - * @param application_name the application name - */ - set_application_name(application_name: string | null): void - /** - * Sets the list of artists of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param artists the list of artists - */ - set_artists(artists: string[] | null): void - /** - * Sets the comments about the application. - * - * Comments will be shown on the Details page, above links. - * - * Unlike [property`Gtk`.AboutDialog:comments], this string can be long and - * detailed. It can also contain links and Pango markup. - * @param comments the comments - */ - set_comments(comments: string | null): void - /** - * Sets the copyright information for `self`. - * - * This should be a short string of one or two lines, for example: - * `© 2022 Example`. - * - * The copyright information will be displayed on the Legal page, before the - * application license. - * - * [method`AboutWindow`.add_legal_section] can be used to add copyright - * information for the application dependencies or other components. - * @param copyright the copyright information - */ - set_copyright(copyright: string | null): void - /** - * Sets the debug information for `self`. - * - * Debug information will be shown on the Troubleshooting page. It's intended - * to be attached to issue reports when reporting issues against the - * application. - * - * `AdwAboutWindow` provides a quick way to save debug information to a file. - * When saving, [property`AboutWindow:`debug-info-filename] would be used as - * the suggested filename. - * - * Debug information cannot contain markup or links. - * @param debug_info the debug information - */ - set_debug_info(debug_info: string | null): void - /** - * Sets the debug information filename for `self`. - * - * It will be used as the suggested filename when saving debug information to a - * file. - * - * See [property`AboutWindow:`debug-info]. - * @param filename the debug info filename - */ - set_debug_info_filename(filename: string | null): void - /** - * Sets the list of designers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param designers the list of designers - */ - set_designers(designers: string[] | null): void - /** - * Sets the developer name for `self`. - * - * The developer name is displayed on the main page, under the application name. - * - * If the application is developed by multiple people, the developer name can be - * set to values like "AppName team", "AppName developers" or - * "The AppName project", and the individual contributors can be listed on the - * Credits page, with [property`AboutWindow:`developers] and related properties. - * @param developer_name the developer name - */ - set_developer_name(developer_name: string | null): void - /** - * Sets the list of developers of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param developers the list of developers - */ - set_developers(developers: string[] | null): void - /** - * Sets the list of documenters of the application. - * - * It will be displayed on the Credits page. - * - * Each name may contain email addresses and URLs, see the introduction for more - * details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`translator-credits] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param documenters the list of documenters - */ - set_documenters(documenters: string[] | null): void - /** - * Sets the issue tracker URL for `self`. - * - * The issue tracker link is displayed on the main page. - * @param issue_url the issue tracker URL - */ - set_issue_url(issue_url: string | null): void - /** - * Sets the license for `self`. - * - * This can be used to set a custom text for the license if it can't be set via - * [property`AboutWindow:`license-type]. - * - * When set, [property`AboutWindow:`license-type] will be set to - * `GTK_LICENSE_CUSTOM`. - * - * The license text will be displayed on the Legal page, below the copyright - * information. - * - * License text can contain Pango markup and links. - * - * [method`AboutWindow`.add_legal_section] can be used to add license information - * for the application dependencies or other components. - * @param license the license - */ - set_license(license: string | null): void - /** - * Sets the license for `self` from a list of known licenses. - * - * If the application's license is not in the list, - * [property`AboutWindow:`license] can be used instead. The license type will be - * automatically set to `GTK_LICENSE_CUSTOM` in that case. - * - * If `license_type` is `GTK_LICENSE_UNKNOWN`, no information will be displayed. - * - * If `license_type` is different from `GTK_LICENSE_CUSTOM`. - * [property`AboutWindow:`license] will be cleared out. - * - * The license description will be displayed on the Legal page, below the - * copyright information. - * - * [method`AboutWindow`.add_legal_section] can be used to add license information - * for the application dependencies or other components. - * @param license_type the license type - */ - set_license_type(license_type: Gtk.License): void - /** - * Sets the release notes for `self`. - * - * Release notes are displayed on the the What's New page. - * - * Release notes are formatted the same way as - * [AppStream descriptions](https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description). - * - * The supported formatting options are: - * - * * Paragraph (`

          `) - * * Ordered list (`

            `), with list items (`
          1. `) - * * Unordered list (`
              `), with list items (`
            • `) - * - * Within paragraphs and list items, emphasis (``) and inline code - * (``) text styles are supported. The emphasis is rendered in italic, - * while inline code is shown in a monospaced font. - * - * Any text outside paragraphs or list items is ignored. - * - * Nested lists are not supported. - * - * `AdwAboutWindow` displays the version above the release notes. If set, the - * [property`AboutWindow:`release-notes-version] of the property will be used - * as the version; otherwise, [property`AboutWindow:`version] is used. - * @param release_notes the release notes - */ - set_release_notes(release_notes: string | null): void - /** - * Sets the version described by the application's release notes. - * - * The release notes version is displayed on the What's New page, above the - * release notes. - * - * If not set, [property`AboutWindow:`version] will be used instead. - * - * For example, an application with the current version 2.0.2 might want to - * keep the release notes from 2.0.0, and set the release notes version - * accordingly. - * - * See [property`AboutWindow:`release-notes]. - * @param version the release notes version - */ - set_release_notes_version(version: string | null): void - /** - * Sets the URL of the support page for `self`. - * - * The support page link is displayed on the main page. - * @param support_url the support page URL - */ - set_support_url(support_url: string | null): void - /** - * Sets the translator credits string. - * - * It will be displayed on the Credits page. - * - * This string should be `"translator-credits"` or `"translator_credits"` and - * should be marked as translatable. - * - * The string may contain email addresses and URLs, see the introduction for - * more details. - * - * See also: - * - * * [property`AboutWindow:`developers] - * * [property`AboutWindow:`designers] - * * [property`AboutWindow:`artists] - * * [property`AboutWindow:`documenters] - * * [method`AboutWindow`.add_credit_section] - * * [method`AboutWindow`.add_acknowledgement_section] - * @param translator_credits the translator credits - */ - set_translator_credits(translator_credits: string | null): void - /** - * Sets the version for `self`. - * - * The version is displayed on the main page. - * - * If [property`AboutWindow:`release-notes-version] is not set, the version will - * also be displayed above the release notes on the What's New page. - * @param version the version - */ - set_version(version: string | null): void - /** - * Sets the application website URL for `self`. - * - * Website is displayed on the Details page, below comments, or on the main page - * if the Details page doesn't have any other content. - * - * Applications can add other links below, see [method`AboutWindow`.add_link]. - * @param website the website URL - */ - set_website(website: string | null): void - - // Own signals of Adw-1.Adw.AboutWindow - - connect(sigName: "activate-link", callback: AboutWindow.ActivateLinkSignalCallback): number - connect_after(sigName: "activate-link", callback: AboutWindow.ActivateLinkSignalCallback): number - emit(sigName: "activate-link", uri: string | null, ...args: any[]): void - - // Class property signals of Adw-1.Adw.AboutWindow - - connect(sigName: "notify::application-icon", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application-icon", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application-icon", ...args: any[]): void - connect(sigName: "notify::application-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application-name", ...args: any[]): void - connect(sigName: "notify::artists", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::artists", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::artists", ...args: any[]): void - connect(sigName: "notify::comments", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::comments", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::comments", ...args: any[]): void - connect(sigName: "notify::copyright", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::copyright", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::copyright", ...args: any[]): void - connect(sigName: "notify::debug-info", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::debug-info", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::debug-info", ...args: any[]): void - connect(sigName: "notify::debug-info-filename", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::debug-info-filename", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::debug-info-filename", ...args: any[]): void - connect(sigName: "notify::designers", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::designers", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::designers", ...args: any[]): void - connect(sigName: "notify::developer-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::developer-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::developer-name", ...args: any[]): void - connect(sigName: "notify::developers", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::developers", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::developers", ...args: any[]): void - connect(sigName: "notify::documenters", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::documenters", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::documenters", ...args: any[]): void - connect(sigName: "notify::issue-url", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::issue-url", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::issue-url", ...args: any[]): void - connect(sigName: "notify::license", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::license", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::license", ...args: any[]): void - connect(sigName: "notify::license-type", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::license-type", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::license-type", ...args: any[]): void - connect(sigName: "notify::release-notes", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::release-notes", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::release-notes", ...args: any[]): void - connect(sigName: "notify::release-notes-version", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::release-notes-version", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::release-notes-version", ...args: any[]): void - connect(sigName: "notify::support-url", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::support-url", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::support-url", ...args: any[]): void - connect(sigName: "notify::translator-credits", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translator-credits", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translator-credits", ...args: any[]): void - connect(sigName: "notify::version", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::version", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::version", ...args: any[]): void - connect(sigName: "notify::website", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::website", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::website", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::current-breakpoint", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::current-breakpoint", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::current-breakpoint", ...args: any[]): void - connect(sigName: "notify::application", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::decorated", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decorated", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decorated", ...args: any[]): void - connect(sigName: "notify::default-height", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-height", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-height", ...args: any[]): void - connect(sigName: "notify::default-widget", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-widget", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-widget", ...args: any[]): void - connect(sigName: "notify::default-width", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-width", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-width", ...args: any[]): void - connect(sigName: "notify::deletable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deletable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deletable", ...args: any[]): void - connect(sigName: "notify::destroy-with-parent", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::destroy-with-parent", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::destroy-with-parent", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::focus-visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-visible", ...args: any[]): void - connect(sigName: "notify::focus-widget", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-widget", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-widget", ...args: any[]): void - connect(sigName: "notify::fullscreened", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fullscreened", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fullscreened", ...args: any[]): void - connect(sigName: "notify::handle-menubar-accel", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::handle-menubar-accel", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::handle-menubar-accel", ...args: any[]): void - connect(sigName: "notify::hide-on-close", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hide-on-close", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hide-on-close", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::is-active", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-active", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-active", ...args: any[]): void - connect(sigName: "notify::maximized", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximized", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximized", ...args: any[]): void - connect(sigName: "notify::mnemonics-visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mnemonics-visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mnemonics-visible", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::resizable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resizable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resizable", ...args: any[]): void - connect(sigName: "notify::startup-id", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::startup-id", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::startup-id", ...args: any[]): void - connect(sigName: "notify::suspended", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::suspended", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::suspended", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::titlebar", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::titlebar", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::titlebar", ...args: any[]): void - connect(sigName: "notify::transient-for", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transient-for", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transient-for", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: AboutWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A window showing information about the application. - * - * - * - * about-window - * - * - * An about window is typically opened when the user activates the `About …` - * item in the application's primary menu. All parts of the window are optional. - * - * ## Main page - * - * `AdwAboutWindow` prominently displays the application's icon, name, developer - * name and version. They can be set with the [property`AboutWindow:`application-icon], - * [property`AboutWindow:`application-name], - * [property`AboutWindow:`developer-name] and [property`AboutWindow:`version] - * respectively. - * - * ## What's New - * - * `AdwAboutWindow` provides a way for applications to display their release - * notes, set with the [property`AboutWindow:`release-notes] property. - * - * Release notes are formatted the same way as - * [AppStream descriptions](https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description). - * - * The supported formatting options are: - * - * * Paragraph (`

              `) - * * Ordered list (`

                `), with list items (`
              1. `) - * * Unordered list (`
                  `), with list items (`
                • `) - * - * Within paragraphs and list items, emphasis (``) and inline code - * (``) text styles are supported. The emphasis is rendered in italic, - * while inline code is shown in a monospaced font. - * - * Any text outside paragraphs or list items is ignored. - * - * Nested lists are not supported. - * - * Only one version can be shown at a time. By default, the displayed version - * number matches [property`AboutWindow:`version]. Use - * [property`AboutWindow:`release-notes-version] to override it. - * - * ## Details - * - * The Details page displays the application comments and links. - * - * The comments can be set with the [property`AboutWindow:`comments] property. - * Unlike [property`Gtk`.AboutDialog:comments], this string can be long and - * detailed. It can also contain links and Pango markup. - * - * To set the application website, use [property`AboutWindow:`website]. - * To add extra links below the website, use [method`AboutWindow`.add_link]. - * - * If the Details page doesn't have any other content besides website, the - * website will be displayed on the main page instead. - * - * ## Troubleshooting - * - * `AdwAboutWindow` displays the following two links on the main page: - * - * * Support Questions, set with the [property`AboutWindow:`support-url] property, - * * Report an Issue, set with the [property`AboutWindow:`issue-url] property. - * - * Additionally, applications can provide debugging information. It will be - * shown separately on the Troubleshooting page. Use the - * [property`AboutWindow:`debug-info] property to specify it. - * - * It's intended to be attached to issue reports when reporting issues against - * the application. As such, it cannot contain markup or links. - * - * `AdwAboutWindow` provides a quick way to save debug information to a file. - * When saving, [property`AboutWindow:`debug-info-filename] would be used as - * the suggested filename. - * - * ## Credits and Acknowledgements - * - * The Credits page has the following default sections: - * - * * Developers, set with the [property`AboutWindow:`developers] property, - * * Designers, set with the [property`AboutWindow:`designers] property, - * * Artists, set with the [property`AboutWindow:`artists] property, - * * Documenters, set with the [property`AboutWindow:`documenters] property, - * * Translators, set with the [property`AboutWindow:`translator-credits] property. - * - * When setting translator credits, use the strings `"translator-credits"` or - * `"translator_credits"` and mark them as translatable. - * - * The default sections that don't contain any names won't be displayed. - * - * The Credits page can also contain an arbitrary number of extra sections below - * the default ones. Use [method`AboutWindow`.add_credit_section] to add them. - * - * The Acknowledgements page can be used to acknowledge additional people and - * organizations for their non-development contributions. Use - * [method`AboutWindow`.add_acknowledgement_section] to add sections to it. For - * example, it can be used to list backers in a crowdfunded project or to give - * special thanks. - * - * Each of the people or organizations can have an email address or a website - * specified. To add a email address, use a string like - * `Edgar Allan Poe `. To specify a website with a title, use a - * string like `The GNOME Project https://www.gnome.org`: - * - * - * - * about-window-credits - * - * - * ## Legal - * - * The Legal page displays the copyright and licensing information for the - * application and other modules. - * - * The copyright string is set with the [property`AboutWindow:`copyright] - * property and should be a short string of one or two lines, for example: - * `© 2022 Example`. - * - * Licensing information can be quickly set from a list of known licenses with - * the [property`AboutWindow:`license-type] property. If the application's - * license is not in the list, [property`AboutWindow:`license] can be used - * instead. - * - * To add information about other modules, such as application dependencies or - * data, use [method`AboutWindow`.add_legal_section]. - * - * ## Constructing - * - * To make constructing an `AdwAboutWindow` as convenient as possible, you can - * use the function [func`show_about_window]` which constructs and shows a - * window. - * - * ```c - * static void - * show_about (GtkApplication *app) - * { - * const char *developers[] = { - * "Angela Avery", - * NULL - * }; - * - * const char *designers[] = { - * "GNOME Design Team", - * NULL - * }; - * - * adw_show_about_window (gtk_application_get_active_window (app), - * "application-name", _("Example"), - * "application-icon", "org.example.App", - * "version", "1.2.3", - * "copyright", "© 2022 Angela Avery", - * "issue-url", "https://gitlab.gnome.org/example/example/-/issues/new", - * "license-type", GTK_LICENSE_GPL_3_0, - * "developers", developers, - * "designers", designers, - * "translator-credits", _("translator-credits"), - * NULL); - * } - * ``` - * - * ## CSS nodes - * - * `AdwAboutWindow` has a main CSS node with the name `window` and the - * style class `.about`. - * @class - */ -class AboutWindow extends Window { - - // Own properties of Adw-1.Adw.AboutWindow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.AboutWindow - - constructor(config?: AboutWindow.ConstructorProperties) - /** - * Creates a new `AdwAboutWindow`. - * @constructor - * @returns the newly created `AdwAboutWindow` - */ - constructor() - /** - * Creates a new `AdwAboutWindow`. - * @constructor - * @returns the newly created `AdwAboutWindow` - */ - static new(): AboutWindow - /** - * Creates a new `AdwAboutWindow` using AppStream metadata. - * - * This automatically sets the following properties with the following AppStream - * values: - * - * * [property`AboutWindow:`application-icon] is set from the `` - * * [property`AboutWindow:`application-name] is set from the `` - * * [property`AboutWindow:`developer-name] is set from the `` - * * [property`AboutWindow:`version] is set from the version of the latest release - * * [property`AboutWindow:`website] is set from the `` - * * [property`AboutWindow:`support-url] is set from the `` - * * [property`AboutWindow:`issue-url] is set from the `` - * * [property`AboutWindow:`license-type] is set from the `` - * If the license type retrieved from AppStream is not listed in - * [enum`Gtk`.License], it will be set to `GTK_LICENCE_CUSTOM`. - * - * If `release_notes_version` is not `NULL`, - * [property`AboutWindow:`release-notes-version] is set to match it, while - * [property`AboutWindow:`release-notes] is set from the AppStream release - * description for that version. - * @constructor - * @param resource_path The resource to use - * @param release_notes_version The version to retrieve release notes for - * @returns the newly created `AdwAboutWindow` - */ - static new_from_appdata(resource_path: string | null, release_notes_version: string | null): AboutWindow - _init(config?: AboutWindow.ConstructorProperties): void -} - -module ActionRow { - - // Signal callback interfaces - - /** - * Signal callback interface for `activated` - */ - interface ActivatedSignalCallback { - ($obj: ActionRow): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, PreferencesRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ActionRow - - /** - * The widget to activate when the row is activated. - * - * The row can be activated either by clicking on it, calling - * [method`ActionRow`.activate], or via mnemonics in the title. - * See the [property`PreferencesRow:`use-underline] property to enable - * mnemonics. - * - * The target widget will be activated by emitting the - * [signal`Gtk`.Widget::mnemonic-activate] signal on it. - */ - activatable_widget?: Gtk.Widget | null - /** - * The icon name for this row. - */ - icon_name?: string | null - /** - * The subtitle for this row. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - subtitle?: string | null - /** - * The number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - subtitle_lines?: number | null - /** - * Whether the user can copy the subtitle from the label. - * - * See also [property`Gtk`.Label:selectable]. - */ - subtitle_selectable?: boolean | null - /** - * The number of lines at the end of which the title label will be ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - title_lines?: number | null - } - -} - -interface ActionRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ActionRow - - /** - * The widget to activate when the row is activated. - * - * The row can be activated either by clicking on it, calling - * [method`ActionRow`.activate], or via mnemonics in the title. - * See the [property`PreferencesRow:`use-underline] property to enable - * mnemonics. - * - * The target widget will be activated by emitting the - * [signal`Gtk`.Widget::mnemonic-activate] signal on it. - */ - activatable_widget: Gtk.Widget - /** - * The icon name for this row. - */ - icon_name: string | null - /** - * The subtitle for this row. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - subtitle: string | null - /** - * The number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - subtitle_lines: number - /** - * Whether the user can copy the subtitle from the label. - * - * See also [property`Gtk`.Label:selectable]. - */ - subtitle_selectable: boolean - /** - * The number of lines at the end of which the title label will be ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - title_lines: number - - // Own fields of Adw-1.Adw.ActionRow - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.ActionRow - - /** - * Activates `self`. - */ - activate(): void - - // Overloads of activate - - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - /** - * Adds a prefix widget to `self`. - * @param widget a widget - */ - add_prefix(widget: Gtk.Widget): void - /** - * Adds a suffix widget to `self`. - * @param widget a widget - */ - add_suffix(widget: Gtk.Widget): void - /** - * Gets the widget activated when `self` is activated. - * @returns the activatable widget for @self - */ - get_activatable_widget(): Gtk.Widget | null - /** - * Gets the icon name for `self`. - * @returns the icon name for @self - */ - get_icon_name(): string | null - /** - * Gets the subtitle for `self`. - * @returns the subtitle for @self - */ - get_subtitle(): string | null - /** - * Gets the number of lines at the end of which the subtitle label will be - * ellipsized. - * @returns the number of lines at the end of which the subtitle label will be ellipsized - */ - get_subtitle_lines(): number - /** - * Gets whether the user can copy the subtitle from the label - * @returns whether the user can copy the subtitle from the label - */ - get_subtitle_selectable(): boolean - /** - * Gets the number of lines at the end of which the title label will be - * ellipsized. - * @returns the number of lines at the end of which the title label will be ellipsized - */ - get_title_lines(): number - /** - * Removes a child from `self`. - * @param widget the child to be removed - */ - remove(widget: Gtk.Widget): void - /** - * Sets the widget to activate when `self` is activated. - * - * The row can be activated either by clicking on it, calling - * [method`ActionRow`.activate], or via mnemonics in the title. - * See the [property`PreferencesRow:`use-underline] property to enable mnemonics. - * - * The target widget will be activated by emitting the - * [signal`Gtk`.Widget::mnemonic-activate] signal on it. - * @param widget the target widget - */ - set_activatable_widget(widget: Gtk.Widget | null): void - /** - * Sets the icon name for `self`. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the subtitle for `self`. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - * @param subtitle the subtitle - */ - set_subtitle(subtitle: string | null): void - /** - * Sets the number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - * @param subtitle_lines the number of lines at the end of which the subtitle label will be ellipsized - */ - set_subtitle_lines(subtitle_lines: number): void - /** - * Sets whether the user can copy the subtitle from the label - * - * See also [property`Gtk`.Label:selectable]. - * @param subtitle_selectable `TRUE` if the user can copy the subtitle from the label - */ - set_subtitle_selectable(subtitle_selectable: boolean): void - /** - * Sets the number of lines at the end of which the title label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - * @param title_lines the number of lines at the end of which the title label will be ellipsized - */ - set_title_lines(title_lines: number): void - - // Own virtual methods of Adw-1.Adw.ActionRow - - /** - * Activates `self`. - * @virtual - */ - vfunc_activate(): void - - // Own signals of Adw-1.Adw.ActionRow - - connect(sigName: "activated", callback: ActionRow.ActivatedSignalCallback): number - connect_after(sigName: "activated", callback: ActionRow.ActivatedSignalCallback): number - emit(sigName: "activated", ...args: any[]): void - - // Class property signals of Adw-1.Adw.ActionRow - - connect(sigName: "notify::activatable-widget", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable-widget", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable-widget", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::subtitle-lines", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-lines", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-lines", ...args: any[]): void - connect(sigName: "notify::subtitle-selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-selectable", ...args: any[]): void - connect(sigName: "notify::title-lines", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-lines", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-lines", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: ActionRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] used to present actions. - * - * - * - * action-row - * - * - * The `AdwActionRow` widget can have a title, a subtitle and an icon. The row - * can receive additional widgets at its end, or prefix widgets at its start. - * - * It is convenient to present a preference and its related actions. - * - * `AdwActionRow` is unactivatable by default, giving it an activatable widget - * will automatically make it activatable, but unsetting it won't change the - * row's activatability. - * - * ## AdwActionRow as GtkBuildable - * - * The `AdwActionRow` implementation of the [iface`Gtk`.Buildable] interface - * supports adding a child at its end by specifying “suffix” or omitting the - * “type” attribute of a element. - * - * It also supports adding a child as a prefix widget by specifying “prefix” as - * the “type” attribute of a element. - * - * ## CSS nodes - * - * `AdwActionRow` has a main CSS node with name `row`. - * - * It contains the subnode `box.header` for its main horizontal box, and - * `box.title` for the vertical box containing the title and subtitle labels. - * - * It contains subnodes `label.title` and `label.subtitle` representing - * respectively the title label and subtitle label. - * @class - */ -class ActionRow extends PreferencesRow { - - // Own properties of Adw-1.Adw.ActionRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ActionRow - - constructor(config?: ActionRow.ConstructorProperties) - /** - * Creates a new `AdwActionRow`. - * @constructor - * @returns the newly created `AdwActionRow` - */ - constructor() - /** - * Creates a new `AdwActionRow`. - * @constructor - * @returns the newly created `AdwActionRow` - */ - static new(): ActionRow - _init(config?: ActionRow.ConstructorProperties): void -} - -module Animation { - - // Signal callback interfaces - - /** - * Signal callback interface for `done` - */ - interface DoneSignalCallback { - ($obj: Animation): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Animation - - /** - * Whether to skip the animation when animations are globally disabled. - * - * The default behavior is to skip the animation. Set to `FALSE` to disable - * this behavior. - * - * This can be useful for cases where animation is essential, like spinners, - * or in demo applications. Most other animations should keep it enabled. - * - * See [property`Gtk`.Settings:gtk-enable-animations]. - */ - follow_enable_animations_setting?: boolean | null - /** - * The target to animate. - */ - target?: AnimationTarget | null - /** - * The animation widget. - * - * It provides the frame clock for the animation. It's not strictly necessary - * for this widget to be same as the one being animated. - * - * The widget must be mapped in order for the animation to work. If it's not - * mapped, or if it gets unmapped during an ongoing animation, the animation - * will be automatically skipped. - */ - widget?: Gtk.Widget | null - } - -} - -interface Animation { - - // Own properties of Adw-1.Adw.Animation - - /** - * Whether to skip the animation when animations are globally disabled. - * - * The default behavior is to skip the animation. Set to `FALSE` to disable - * this behavior. - * - * This can be useful for cases where animation is essential, like spinners, - * or in demo applications. Most other animations should keep it enabled. - * - * See [property`Gtk`.Settings:gtk-enable-animations]. - */ - follow_enable_animations_setting: boolean - /** - * The animation state. - * - * The state indicates whether the animation is currently playing, paused, - * finished or hasn't been started yet. - */ - readonly state: AnimationState - /** - * The target to animate. - */ - target: AnimationTarget - /** - * The current value of the animation. - */ - readonly value: number - /** - * The animation widget. - * - * It provides the frame clock for the animation. It's not strictly necessary - * for this widget to be same as the one being animated. - * - * The widget must be mapped in order for the animation to work. If it's not - * mapped, or if it gets unmapped during an ongoing animation, the animation - * will be automatically skipped. - */ - readonly widget: Gtk.Widget - - // Own fields of Adw-1.Adw.Animation - - parent_instance: GObject.Object - - // Owm methods of Adw-1.Adw.Animation - - /** - * Gets whether `self` should be skipped when animations are globally disabled. - * @returns whether to follow the global setting - */ - get_follow_enable_animations_setting(): boolean - /** - * Gets the current value of `self`. - * - * The state indicates whether `self` is currently playing, paused, finished or - * hasn't been started yet. - * @returns the animation value - */ - get_state(): AnimationState - /** - * Gets the target `self` animates. - * @returns the animation target - */ - get_target(): AnimationTarget - /** - * Gets the current value of `self`. - * @returns the current value - */ - get_value(): number - /** - * Gets the widget `self` was created for. - * - * It provides the frame clock for the animation. It's not strictly necessary - * for this widget to be same as the one being animated. - * - * The widget must be mapped in order for the animation to work. If it's not - * mapped, or if it gets unmapped during an ongoing animation, the animation - * will be automatically skipped. - * @returns the animation widget - */ - get_widget(): Gtk.Widget - /** - * Pauses a playing animation for `self`. - * - * Does nothing if the current state of `self` isn't `ADW_ANIMATION_PLAYING`. - * - * Sets [property`Animation:`state] to `ADW_ANIMATION_PAUSED`. - */ - pause(): void - /** - * Starts the animation for `self`. - * - * If the animation is playing, paused or has been completed, restarts it from - * the beginning. This allows to easily play an animation regardless of whether - * it's already playing or not. - * - * Sets [property`Animation:`state] to `ADW_ANIMATION_PLAYING`. - * - * The animation will be automatically skipped if [property`Animation:`widget] is - * unmapped, or if [property`Gtk`.Settings:gtk-enable-animations] is `FALSE`. - * - * As such, it's not guaranteed that the animation will actually run. For - * example, when using [func`GLib`.idle_add] and starting an animation - * immediately afterwards, it's entirely possible that the idle callback will - * run after the animation has already finished, and not while it's playing. - */ - play(): void - /** - * Resets the animation for `self`. - * - * Sets [property`Animation:`state] to `ADW_ANIMATION_IDLE`. - */ - reset(): void - /** - * Resumes a paused animation for `self`. - * - * This function must only be used if the animation has been paused with - * [method`Animation`.pause]. - * - * Sets [property`Animation:`state] to `ADW_ANIMATION_PLAYING`. - */ - resume(): void - /** - * Sets whether to skip `self` when animations are globally disabled. - * - * The default behavior is to skip the animation. Set to `FALSE` to disable this - * behavior. - * - * This can be useful for cases where animation is essential, like spinners, or - * in demo applications. Most other animations should keep it enabled. - * - * See [property`Gtk`.Settings:gtk-enable-animations]. - * @param setting whether to follow the global setting - */ - set_follow_enable_animations_setting(setting: boolean): void - /** - * Sets the target `self` animates to `target`. - * @param target an animation target - */ - set_target(target: AnimationTarget): void - /** - * Skips the animation for `self`. - * - * If the animation hasn't been started yet, is playing, or is paused, instantly - * skips the animation to the end and causes [signal`Animation:`:done] to be - * emitted. - * - * Sets [property`Animation:`state] to `ADW_ANIMATION_FINISHED`. - */ - skip(): void - - // Own signals of Adw-1.Adw.Animation - - connect(sigName: "done", callback: Animation.DoneSignalCallback): number - connect_after(sigName: "done", callback: Animation.DoneSignalCallback): number - emit(sigName: "done", ...args: any[]): void - - // Class property signals of Adw-1.Adw.Animation - - connect(sigName: "notify::follow-enable-animations-setting", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::follow-enable-animations-setting", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::follow-enable-animations-setting", ...args: any[]): void - connect(sigName: "notify::state", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::state", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::state", ...args: any[]): void - connect(sigName: "notify::target", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::target", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::target", ...args: any[]): void - connect(sigName: "notify::value", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value", ...args: any[]): void - connect(sigName: "notify::widget", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::widget", callback: (($obj: Animation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::widget", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A base class for animations. - * - * `AdwAnimation` represents an animation on a widget. It has a target that - * provides a value to animate, and a state indicating whether the - * animation hasn't been started yet, is playing, paused or finished. - * - * Currently there are two concrete animation types: - * [class`TimedAnimation]` and [class`SpringAnimation]`. - * - * `AdwAnimation` will automatically skip the animation if - * [property`Animation:`widget] is unmapped, or if - * [property`Gtk`.Settings:gtk-enable-animations] is `FALSE`. - * - * The [signal`Animation:`:done] signal can be used to perform an action after - * the animation ends, for example hiding a widget after animating its - * [property`Gtk`.Widget:opacity] to 0. - * - * `AdwAnimation` will be kept alive while the animation is playing. As such, - * it's safe to create an animation, start it and immediately unref it: - * A fire-and-forget animation: - * - * ```c - * static void - * animation_cb (double value, - * MyObject *self) - * { - * // Do something with `value` - * } - * - * static void - * my_object_animate (MyObject *self) - * { - * AdwAnimationTarget *target = - * adw_callback_animation_target_new ((AdwAnimationTargetFunc) animation_cb, - * self, NULL); - * g_autoptr (AdwAnimation) animation = - * adw_timed_animation_new (widget, 0, 1, 250, target); - * - * adw_animation_play (animation); - * } - * ``` - * - * If there's a chance the previous animation for the same target hasn't yet - * finished, the previous animation should be stopped first, or the existing - * `AdwAnimation` object can be reused. - * @class - */ -class Animation extends GObject.Object { - - // Own properties of Adw-1.Adw.Animation - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Animation - - constructor(config?: Animation.ConstructorProperties) - _init(config?: Animation.ConstructorProperties): void -} - -module AnimationTarget { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface AnimationTarget { - - // Class property signals of Adw-1.Adw.AnimationTarget - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Represents a value [class`Animation]` can animate. - * @class - */ -class AnimationTarget extends GObject.Object { - - // Own properties of Adw-1.Adw.AnimationTarget - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.AnimationTarget - - constructor(config?: AnimationTarget.ConstructorProperties) - _init(config?: AnimationTarget.ConstructorProperties): void -} - -module Application { - - // Constructor properties interface - - interface ConstructorProperties extends Gio.ActionGroup.ConstructorProperties, Gio.ActionMap.ConstructorProperties, Gtk.Application.ConstructorProperties { - } - -} - -interface Application extends Gio.ActionGroup, Gio.ActionMap { - - // Own properties of Adw-1.Adw.Application - - /** - * The style manager for this application. - * - * This is a convenience property allowing to access `AdwStyleManager` through - * property bindings or expressions. - */ - readonly style_manager: StyleManager - - // Own fields of Adw-1.Adw.Application - - parent_instance: Gtk.Application & Gio.Application - - // Owm methods of Adw-1.Adw.Application - - /** - * Gets the style manager for `self`. - * - * This is a convenience property allowing to access `AdwStyleManager` through - * property bindings or expressions. - * @returns the style manager - */ - get_style_manager(): StyleManager - - // Class property signals of Adw-1.Adw.Application - - connect(sigName: "notify::style-manager", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::style-manager", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::style-manager", ...args: any[]): void - connect(sigName: "notify::active-window", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::active-window", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::active-window", ...args: any[]): void - connect(sigName: "notify::menubar", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::menubar", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::menubar", ...args: any[]): void - connect(sigName: "notify::register-session", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::register-session", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::register-session", ...args: any[]): void - connect(sigName: "notify::screensaver-active", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::screensaver-active", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::screensaver-active", ...args: any[]): void - connect(sigName: "notify::action-group", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-group", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-group", ...args: any[]): void - connect(sigName: "notify::application-id", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application-id", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application-id", ...args: any[]): void - connect(sigName: "notify::flags", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::flags", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::flags", ...args: any[]): void - connect(sigName: "notify::inactivity-timeout", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::inactivity-timeout", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::inactivity-timeout", ...args: any[]): void - connect(sigName: "notify::is-busy", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-busy", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-busy", ...args: any[]): void - connect(sigName: "notify::is-registered", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-registered", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-registered", ...args: any[]): void - connect(sigName: "notify::is-remote", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-remote", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-remote", ...args: any[]): void - connect(sigName: "notify::resource-base-path", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resource-base-path", callback: (($obj: Application, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resource-base-path", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A base class for Adwaita applications. - * - * `AdwApplication` handles library initialization by calling [func`init]` in the - * default [signal`Gio`.Application::startup] signal handler, in turn chaining up - * as required by [class`Gtk`.Application]. Therefore, any subclass of - * `AdwApplication` should always chain up its `startup` handler before using - * any Adwaita or GTK API. - * - * ## Automatic Resources - * - * `AdwApplication` will automatically load stylesheets located in the - * application's resource base path (see - * [method`Gio`.Application.set_resource_base_path], if they're present. - * - * They can be used to add custom styles to the application, as follows: - * - * - `style.css` contains styles that are always present. - * - * - `style-dark.css` contains styles only used when - * [property`StyleManager:`dark] is `TRUE`. - * - * - `style-hc.css` contains styles used when the system high contrast - * preference is enabled. - * - * - `style-hc-dark.css` contains styles used when the system high contrast - * preference is enabled and [property`StyleManager:`dark] is `TRUE`. - * @class - */ -class Application extends Gtk.Application { - - // Own properties of Adw-1.Adw.Application - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Application - - constructor(config?: Application.ConstructorProperties) - /** - * Creates a new `AdwApplication`. - * - * If `application_id` is not `NULL`, then it must be valid. See - * [func`Gio`.Application.id_is_valid]. - * - * If no application ID is given then some features (most notably application - * uniqueness) will be disabled. - * @constructor - * @param application_id The application ID - * @param flags The application flags - * @returns the newly created `AdwApplication` - */ - constructor(application_id: string | null, flags: Gio.ApplicationFlags) - /** - * Creates a new `AdwApplication`. - * - * If `application_id` is not `NULL`, then it must be valid. See - * [func`Gio`.Application.id_is_valid]. - * - * If no application ID is given then some features (most notably application - * uniqueness) will be disabled. - * @constructor - * @param application_id The application ID - * @param flags The application flags - * @returns the newly created `AdwApplication` - */ - static new(application_id: string | null, flags: Gio.ApplicationFlags): Application - - // Overloads of new - - /** - * Creates a new `GtkApplication` instance. - * - * When using `GtkApplication`, it is not necessary to call [func`Gtk`.init] - * manually. It is called as soon as the application gets registered as - * the primary instance. - * - * Concretely, [func`Gtk`.init] is called in the default handler for the - * `GApplication::startup` signal. Therefore, `GtkApplication` subclasses should - * always chain up in their `GApplication::startup` handler before using any GTK - * API. - * - * Note that commandline arguments are not passed to [func`Gtk`.init]. - * - * If `application_id` is not %NULL, then it must be valid. See - * `g_application_id_is_valid()`. - * - * If no application ID is given then some features (most notably application - * uniqueness) will be disabled. - * @constructor - * @param application_id The application ID - * @param flags the application flags - * @returns a new `GtkApplication` instance - */ - static new(application_id: string | null, flags: Gio.ApplicationFlags): Gtk.Application - /** - * Creates a new #GApplication instance. - * - * If non-%NULL, the application id must be valid. See - * g_application_id_is_valid(). - * - * If no application ID is given then some features of #GApplication - * (most notably application uniqueness) will be disabled. - * @constructor - * @param application_id the application id - * @param flags the application flags - * @returns a new #GApplication instance - */ - static new(application_id: string | null, flags: Gio.ApplicationFlags): Gio.Application - _init(config?: Application.ConstructorProperties): void -} - -module ApplicationWindow { - - // Constructor properties interface - - interface ConstructorProperties extends Gio.ActionGroup.ConstructorProperties, Gio.ActionMap.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Native.ConstructorProperties, Gtk.Root.ConstructorProperties, Gtk.ShortcutManager.ConstructorProperties, Gtk.ApplicationWindow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ApplicationWindow - - /** - * The content widget. - * - * This property should always be used instead of [property`Gtk`.Window:child]. - */ - content?: Gtk.Widget | null - } - -} - -interface ApplicationWindow extends Gio.ActionGroup, Gio.ActionMap, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager { - - // Own properties of Adw-1.Adw.ApplicationWindow - - /** - * The content widget. - * - * This property should always be used instead of [property`Gtk`.Window:child]. - */ - content: Gtk.Widget - /** - * The current breakpoint. - */ - readonly current_breakpoint: Breakpoint - - // Own fields of Adw-1.Adw.ApplicationWindow - - parent_instance: Gtk.ApplicationWindow & Gtk.Window & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.ApplicationWindow - - /** - * Adds `breakpoint` to `self`. - * @param breakpoint the breakpoint to add - */ - add_breakpoint(breakpoint: Breakpoint): void - /** - * Gets the content widget of `self`. - * - * This method should always be used instead of [method`Gtk`.Window.get_child]. - * @returns the content widget of @self - */ - get_content(): Gtk.Widget | null - /** - * Gets the current breakpoint. - * @returns the current breakpoint - */ - get_current_breakpoint(): Breakpoint | null - /** - * Sets the content widget of `self`. - * - * This method should always be used instead of [method`Gtk`.Window.set_child]. - * @param content the content widget - */ - set_content(content: Gtk.Widget | null): void - - // Conflicting methods - - /** - * Activate the named action within `action_group`. - * - * If the action is expecting a parameter, then the correct type of - * parameter must be given as `parameter`. If the action is expecting no - * parameters then `parameter` must be %NULL. See - * g_action_group_get_action_parameter_type(). - * - * If the #GActionGroup implementation supports asynchronous remote - * activation over D-Bus, this call may return before the relevant - * D-Bus traffic has been sent, or any replies have been received. In - * order to block on such asynchronous activation calls, - * g_dbus_connection_flush() should be called prior to the code, which - * depends on the result of the action activation. Without flushing - * the D-Bus connection, there is no guarantee that the action would - * have been activated. - * - * The following code which runs in a remote app instance, shows an - * example of a "quit" action being activated on the primary app - * instance over D-Bus. Here g_dbus_connection_flush() is called - * before `exit()`. Without g_dbus_connection_flush(), the "quit" action - * may fail to be activated on the primary instance. - * - * - * ```c - * // call "quit" action on primary instance - * g_action_group_activate_action (G_ACTION_GROUP (app), "quit", NULL); - * - * // make sure the action is activated now - * g_dbus_connection_flush (...); - * - * g_debug ("application has been terminated. exiting."); - * - * exit (0); - * ``` - * - * @param action_name the name of the action to activate - * @param parameter parameters to the activation - */ - activate_action(action_name: string | null, parameter: GLib.Variant | null): void - /** - * Looks up the action in the action groups associated with - * `widget` and its ancestors, and activates it. - * - * If the action is in an action group added with - * [method`Gtk`.Widget.insert_action_group], the `name` is expected - * to be prefixed with the prefix that was used when the group was - * inserted. - * - * The arguments must match the actions expected parameter type, - * as returned by `g_action_get_parameter_type()`. - * @param name the name of the action to activate - * @param args parameters to use - * @returns %TRUE if the action was activated, %FALSE if the action does not exist. - */ - activate_action(name: string | null, args: GLib.Variant | null): boolean - - // Class property signals of Adw-1.Adw.ApplicationWindow - - connect(sigName: "notify::content", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::current-breakpoint", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::current-breakpoint", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::current-breakpoint", ...args: any[]): void - connect(sigName: "notify::show-menubar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-menubar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-menubar", ...args: any[]): void - connect(sigName: "notify::application", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::decorated", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decorated", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decorated", ...args: any[]): void - connect(sigName: "notify::default-height", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-height", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-height", ...args: any[]): void - connect(sigName: "notify::default-widget", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-widget", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-widget", ...args: any[]): void - connect(sigName: "notify::default-width", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-width", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-width", ...args: any[]): void - connect(sigName: "notify::deletable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deletable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deletable", ...args: any[]): void - connect(sigName: "notify::destroy-with-parent", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::destroy-with-parent", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::destroy-with-parent", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::focus-visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-visible", ...args: any[]): void - connect(sigName: "notify::focus-widget", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-widget", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-widget", ...args: any[]): void - connect(sigName: "notify::fullscreened", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fullscreened", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fullscreened", ...args: any[]): void - connect(sigName: "notify::handle-menubar-accel", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::handle-menubar-accel", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::handle-menubar-accel", ...args: any[]): void - connect(sigName: "notify::hide-on-close", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hide-on-close", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hide-on-close", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::is-active", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-active", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-active", ...args: any[]): void - connect(sigName: "notify::maximized", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximized", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximized", ...args: any[]): void - connect(sigName: "notify::mnemonics-visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mnemonics-visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mnemonics-visible", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::resizable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resizable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resizable", ...args: any[]): void - connect(sigName: "notify::startup-id", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::startup-id", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::startup-id", ...args: any[]): void - connect(sigName: "notify::suspended", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::suspended", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::suspended", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::titlebar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::titlebar", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::titlebar", ...args: any[]): void - connect(sigName: "notify::transient-for", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transient-for", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transient-for", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ApplicationWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A freeform application window. - * - * - * - * application-window - * - * - * `AdwApplicationWindow` is a [class`Gtk`.ApplicationWindow] subclass providing - * the same features as [class`Window]`. - * - * See [class`Window]` for details. - * - * Example of an `AdwApplicationWindow` UI definition: - * - * ```xml - * - * - * - * - * - * - * - * - * - * - * - * - * ``` - * - * Using [property`Gtk`.Application:menubar] is not supported and may result in - * visual glitches. - * @class - */ -class ApplicationWindow extends Gtk.ApplicationWindow { - - // Own properties of Adw-1.Adw.ApplicationWindow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ApplicationWindow - - constructor(config?: ApplicationWindow.ConstructorProperties) - /** - * Creates a new `AdwApplicationWindow` for `app`. - * @constructor - * @param app an application instance - * @returns the newly created `AdwApplicationWindow` - */ - constructor(app: Gtk.Application) - /** - * Creates a new `AdwApplicationWindow` for `app`. - * @constructor - * @param app an application instance - * @returns the newly created `AdwApplicationWindow` - */ - static new(app: Gtk.Application): ApplicationWindow - - // Overloads of new - - /** - * Creates a new `GtkApplicationWindow`. - * @constructor - * @param application a `GtkApplication` - * @returns a newly created `GtkApplicationWindow` - */ - static new(application: Gtk.Application): Gtk.ApplicationWindow - /** - * Creates a new `GtkWindow`. - * - * To get an undecorated window (no window borders), use - * [method`Gtk`.Window.set_decorated]. - * - * All top-level windows created by gtk_window_new() are stored - * in an internal top-level window list. This list can be obtained - * from [func`Gtk`.Window.list_toplevels]. Due to GTK keeping a - * reference to the window internally, gtk_window_new() does not - * return a reference to the caller. - * - * To delete a `GtkWindow`, call [method`Gtk`.Window.destroy]. - * @constructor - * @returns a new `GtkWindow`. - */ - static new(): Gtk.Window - _init(config?: ApplicationWindow.ConstructorProperties): void -} - -module Avatar { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Avatar - - /** - * A custom image paintable. - * - * Custom image is displayed instead of initials or icon. - */ - custom_image?: Gdk.Paintable | null - /** - * The name of an icon to use as a fallback. - * - * If no name is set, `avatar-default-symbolic` will be used. - */ - icon_name?: string | null - /** - * Whether initials are used instead of an icon on the fallback avatar. - * - * See [property`Avatar:`icon-name] for how to change the fallback icon. - */ - show_initials?: boolean | null - /** - * The size of the avatar. - */ - size?: number | null - /** - * Sets the text used to generate the fallback initials and color. - * - * It's only used to generate the color if [property`Avatar:`show-initials] is - * `FALSE`. - */ - text?: string | null - } - -} - -interface Avatar extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.Avatar - - /** - * A custom image paintable. - * - * Custom image is displayed instead of initials or icon. - */ - custom_image: Gdk.Paintable - /** - * The name of an icon to use as a fallback. - * - * If no name is set, `avatar-default-symbolic` will be used. - */ - icon_name: string | null - /** - * Whether initials are used instead of an icon on the fallback avatar. - * - * See [property`Avatar:`icon-name] for how to change the fallback icon. - */ - show_initials: boolean - /** - * The size of the avatar. - */ - size: number - /** - * Sets the text used to generate the fallback initials and color. - * - * It's only used to generate the color if [property`Avatar:`show-initials] is - * `FALSE`. - */ - text: string | null - - // Owm methods of Adw-1.Adw.Avatar - - /** - * Renders `self` into a [class`Gdk`.Texture] at `scale_factor`. - * - * This can be used to export the fallback avatar. - * @param scale_factor The scale factor - * @returns the texture - */ - draw_to_texture(scale_factor: number): Gdk.Texture - /** - * Gets the custom image paintable. - * @returns the custom image - */ - get_custom_image(): Gdk.Paintable | null - /** - * Gets the name of an icon to use as a fallback. - * @returns the icon name - */ - get_icon_name(): string | null - /** - * Gets whether initials are used instead of an icon on the fallback avatar. - * @returns whether initials are used instead of an icon as fallback - */ - get_show_initials(): boolean - /** - * Gets the size of the avatar. - * @returns the size of the avatar - */ - get_size(): number - - // Overloads of get_size - - /** - * Returns the content width or height of the widget. - * - * Which dimension is returned depends on `orientation`. - * - * This is equivalent to calling [method`Gtk`.Widget.get_width] - * for %GTK_ORIENTATION_HORIZONTAL or [method`Gtk`.Widget.get_height] - * for %GTK_ORIENTATION_VERTICAL, but can be used when - * writing orientation-independent code, such as when - * implementing [iface`Gtk`.Orientable] widgets. - * - * To learn more about widget sizes, see the coordinate - * system [overview](coordinates.html). - * @param orientation the orientation to query - * @returns The size of @widget in @orientation. - */ - get_size(orientation: Gtk.Orientation): number - /** - * Gets the text used to generate the fallback initials and color. - * @returns the text used to generate the fallback initials and color - */ - get_text(): string | null - /** - * Sets the custom image paintable. - * - * Custom image is displayed instead of initials or icon. - * @param custom_image a custom image - */ - set_custom_image(custom_image: Gdk.Paintable | null): void - /** - * Sets the name of an icon to use as a fallback. - * - * If no name is set, `avatar-default-symbolic` will be used. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets whether to use initials instead of an icon on the fallback avatar. - * - * See [property`Avatar:`icon-name] for how to change the fallback icon. - * @param show_initials whether to use initials instead of an icon as fallback - */ - set_show_initials(show_initials: boolean): void - /** - * Sets the size of the avatar. - * @param size The size of the avatar - */ - set_size(size: number): void - /** - * Sets the text used to generate the fallback initials and color. - * - * It's only used to generate the color if [property`Avatar:`show-initials] is - * `FALSE`. - * @param text the text used to get the initials and color - */ - set_text(text: string | null): void - - // Class property signals of Adw-1.Adw.Avatar - - connect(sigName: "notify::custom-image", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::custom-image", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::custom-image", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::show-initials", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-initials", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-initials", ...args: any[]): void - connect(sigName: "notify::size", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::size", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::size", ...args: any[]): void - connect(sigName: "notify::text", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Avatar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget displaying an image, with a generated fallback. - * - * - * - * avatar - * - * - * `AdwAvatar` is a widget that shows a round avatar. - * - * `AdwAvatar` generates an avatar with the initials of the - * [property`Avatar:`text] on top of a colored background. - * - * The color is picked based on the hash of the [property`Avatar:`text]. - * - * If [property`Avatar:`show-initials] is set to `FALSE`, - * [property`Avatar:`icon-name] or `avatar-default-symbolic` is shown instead of - * the initials. - * - * Use [property`Avatar:`custom-image] to set a custom image. - * - * ## CSS nodes - * - * `AdwAvatar` has a single CSS node with name `avatar`. - * @class - */ -class Avatar extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Avatar - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Avatar - - constructor(config?: Avatar.ConstructorProperties) - /** - * Creates a new `AdwAvatar`. - * @constructor - * @param size The size of the avatar - * @param text the text used to get the initials and color - * @param show_initials whether to use initials instead of an icon as fallback - * @returns the newly created `AdwAvatar` - */ - constructor(size: number, text: string | null, show_initials: boolean) - /** - * Creates a new `AdwAvatar`. - * @constructor - * @param size The size of the avatar - * @param text the text used to get the initials and color - * @param show_initials whether to use initials instead of an icon as fallback - * @returns the newly created `AdwAvatar` - */ - static new(size: number, text: string | null, show_initials: boolean): Avatar - _init(config?: Avatar.ConstructorProperties): void -} - -module Banner { - - // Signal callback interfaces - - /** - * Signal callback interface for `button-clicked` - */ - interface ButtonClickedSignalCallback { - ($obj: Banner): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Banner - - /** - * The label to show on the button. - * - * If set to `""` or `NULL`, the button won't be shown. - * - * The button can be used with a `GAction`, or with the - * [signal`Banner:`:button-clicked] signal. - */ - button_label?: string | null - /** - * Whether the banner is currently revealed. - */ - revealed?: boolean | null - /** - * The title for this banner. - * - * See also: [property`Banner:`use-markup]. - */ - title?: string | null - /** - * Whether to use Pango markup for the banner title. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup?: boolean | null - } - -} - -interface Banner extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.Banner - - /** - * The label to show on the button. - * - * If set to `""` or `NULL`, the button won't be shown. - * - * The button can be used with a `GAction`, or with the - * [signal`Banner:`:button-clicked] signal. - */ - button_label: string | null - /** - * Whether the banner is currently revealed. - */ - revealed: boolean - /** - * The title for this banner. - * - * See also: [property`Banner:`use-markup]. - */ - title: string | null - /** - * Whether to use Pango markup for the banner title. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup: boolean - - // Owm methods of Adw-1.Adw.Banner - - /** - * Gets the button label for `self`. - * @returns the button label for @self - */ - get_button_label(): string | null - /** - * Gets if a banner is revealed - * @returns Whether a banner is revealed - */ - get_revealed(): boolean - /** - * Gets the title for `self`. - * @returns the title for @self - */ - get_title(): string | null - /** - * Gets whether to use Pango markup for the banner title. - * @returns whether to use markup - */ - get_use_markup(): boolean - /** - * Sets the button label for `self`. - * - * If set to `""` or `NULL`, the button won't be shown. - * - * The button can be used with a `GAction`, or with the - * [signal`Banner:`:button-clicked] signal. - * @param label the label - */ - set_button_label(label: string | null): void - /** - * Sets whether a banner should be revealed - * @param revealed whether a banner should be revealed - */ - set_revealed(revealed: boolean): void - /** - * Sets the title for this banner. - * - * See also: [property`Banner:`use-markup]. - * @param title the title - */ - set_title(title: string | null): void - /** - * Sets whether to use Pango markup for the banner title. - * - * See also [func`Pango`.parse_markup]. - * @param use_markup whether to use markup - */ - set_use_markup(use_markup: boolean): void - - // Own signals of Adw-1.Adw.Banner - - connect(sigName: "button-clicked", callback: Banner.ButtonClickedSignalCallback): number - connect_after(sigName: "button-clicked", callback: Banner.ButtonClickedSignalCallback): number - emit(sigName: "button-clicked", ...args: any[]): void - - // Class property signals of Adw-1.Adw.Banner - - connect(sigName: "notify::button-label", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::button-label", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::button-label", ...args: any[]): void - connect(sigName: "notify::revealed", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::revealed", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::revealed", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: Banner, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A bar with contextual information. - * - * - * - * banner - * - * - * Banners are hidden by default, use [property`Banner:`revealed] to show them. - * - * Banners have a title, set with [property`Banner:`title]. Titles can be marked - * up with Pango markup, use [property`Banner:`use-markup] to enable it. - * - * The title will be shown centered or left-aligned depending on available - * space. - * - * Banners can optionally have a button with text on it, set through - * [property`Banner:`button-label]. The button can be used with a `GAction`, - * or with the [signal`Banner:`:button-clicked] signal. - * - * ## CSS nodes - * - * `AdwBanner` has a main CSS node with the name `banner`. - * @class - */ -class Banner extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Banner - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Banner - - constructor(config?: Banner.ConstructorProperties) - /** - * Creates a new `AdwBanner`. - * @constructor - * @param title the banner title - * @returns the newly created `AdwBanner` - */ - constructor(title: string | null) - /** - * Creates a new `AdwBanner`. - * @constructor - * @param title the banner title - * @returns the newly created `AdwBanner` - */ - static new(title: string | null): Banner - _init(config?: Banner.ConstructorProperties): void -} - -module Bin { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Bin - - /** - * The child widget of the `AdwBin`. - */ - child?: Gtk.Widget | null - } - -} - -interface Bin extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.Bin - - /** - * The child widget of the `AdwBin`. - */ - child: Gtk.Widget - - // Own fields of Adw-1.Adw.Bin - - parent_instance: Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.Bin - - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - - // Class property signals of Adw-1.Adw.Bin - - connect(sigName: "notify::child", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Bin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget with one child. - * - * - * - * bin - * - * - * The `AdwBin` widget has only one child, set with the [property`Bin:`child] - * property. - * - * It is useful for deriving subclasses, since it provides common code needed - * for handling a single child widget. - * @class - */ -class Bin extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Bin - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Bin - - constructor(config?: Bin.ConstructorProperties) - /** - * Creates a new `AdwBin`. - * @constructor - * @returns the new created `AdwBin` - */ - constructor() - /** - * Creates a new `AdwBin`. - * @constructor - * @returns the new created `AdwBin` - */ - static new(): Bin - _init(config?: Bin.ConstructorProperties): void -} - -module Breakpoint { - - // Signal callback interfaces - - /** - * Signal callback interface for `apply` - */ - interface ApplySignalCallback { - ($obj: Breakpoint): void - } - - /** - * Signal callback interface for `unapply` - */ - interface UnapplySignalCallback { - ($obj: Breakpoint): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Buildable.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Breakpoint - - /** - * The breakpoint's condition. - */ - condition?: BreakpointCondition | null - } - -} - -interface Breakpoint extends Gtk.Buildable { - - // Own properties of Adw-1.Adw.Breakpoint - - /** - * The breakpoint's condition. - */ - condition: BreakpointCondition - - // Owm methods of Adw-1.Adw.Breakpoint - - /** - * Adds a setter to `self`. - * - * The setter will automatically set `property` on `object` to `value` when - * applying the breakpoint, and set it back to its original value upon - * unapplying it. - * - * Note that setting properties to their original values does not work for - * properties that have irreversible side effects. For example, changing - * [property`Gtk`.Button:label] while [property`Gtk`.Button:icon-name] is set will - * reset the icon. However, resetting the label will not set icon-name to its - * original value. - * - * Use the [signal`Breakpoint:`:apply] and [signal`Breakpoint:`:unapply] signals - * for those properties instead, as follows: - * - * ```c - * static void - * breakpoint_apply_cb (MyWidget *self) - * { - * gtk_button_set_icon_name (self->button, "go-previous-symbolic"); - * } - * - * static void - * breakpoint_apply_cb (MyWidget *self) - * { - * gtk_button_set_label (self->button, _("_Back")); - * } - * - * // ... - * - * g_signal_connect_swapped (breakpoint, "apply", - * G_CALLBACK (breakpoint_apply_cb), self); - * g_signal_connect_swapped (breakpoint, "unapply", - * G_CALLBACK (breakpoint_unapply_cb), self); - * ``` - * @param object the target object - * @param property the target property - * @param value the value to set - */ - add_setter(object: GObject.Object, property: string | null, value: any): void - /** - * Adds `n_setters` setters to `self`. - * - * This is a convenience function for adding multiple setters at once. - * - * See [method`Breakpoint`.add_setter]. - * - * This function is meant to be used by language bindings. - * @param objects setter target object - * @param names setter target properties - * @param values setter values - */ - add_setters(objects: GObject.Object[], names: string[], values: any[]): void - /** - * Gets the condition for `self`. - * @returns the condition - */ - get_condition(): BreakpointCondition | null - /** - * Sets the condition for `self`. - * @param condition the new condition - */ - set_condition(condition: BreakpointCondition | null): void - - // Own signals of Adw-1.Adw.Breakpoint - - connect(sigName: "apply", callback: Breakpoint.ApplySignalCallback): number - connect_after(sigName: "apply", callback: Breakpoint.ApplySignalCallback): number - emit(sigName: "apply", ...args: any[]): void - connect(sigName: "unapply", callback: Breakpoint.UnapplySignalCallback): number - connect_after(sigName: "unapply", callback: Breakpoint.UnapplySignalCallback): number - emit(sigName: "unapply", ...args: any[]): void - - // Class property signals of Adw-1.Adw.Breakpoint - - connect(sigName: "notify::condition", callback: (($obj: Breakpoint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::condition", callback: (($obj: Breakpoint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::condition", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Describes a breakpoint for [class`Window]`. - * - * Breakpoints are used to create adaptive UI, allowing to change the layout - * depending on available size. - * - * Breakpoint is a size threshold, specified by its condition, as well as one or - * more setters. - * - * Each setter has a target object, a property and a value. When a breakpoint - * is applied, each setter sets the target property on their target object to - * the specified value, and reset it back to the original value when it's - * unapplied. - * - * For more complicated scenarios, [signal`Breakpoint:`:apply] and - * [signal`Breakpoint:`:unapply] can be used instead. - * - * Breakpoints can be used within [class`Window]`, [class`ApplicationWindow]` or - * [class`BreakpointBin]`. - * - * ## `AdwBreakpoint` as `GtkBuildable`: - * - * `AdwBreakpoint` supports specifying its condition via the `` - * element. The contents of the element must be a string in a format accepted by - * [func`BreakpointCondition`.parse]. - * - * It also supports adding setters via the `` element. Each `` - * element must have the `object` attribute specifying the target object, and - * the `property` attribute specifying the property name. The contents of the - * element are used as the setter value. - * - * For `G_TYPE_OBJECT` and `G_TYPE_BOXED` derived properties, empty contents are - * treated as `NULL`. - * - * Setter values can be translated with the usual `translatable`, `context` and - * `comments` attributes. - * - * Example of an `AdwBreakpoint` UI definition: - * - * ```xml - * - * max-width: 400px - * True - * vertical - * Example - * - * ``` - * @class - */ -class Breakpoint extends GObject.Object { - - // Own properties of Adw-1.Adw.Breakpoint - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Breakpoint - - constructor(config?: Breakpoint.ConstructorProperties) - /** - * Creates a new `AdwBreakpoint` with `condition`. - * @constructor - * @param condition the condition - * @returns the newly created `AdwBreakpoint` - */ - constructor(condition: BreakpointCondition) - /** - * Creates a new `AdwBreakpoint` with `condition`. - * @constructor - * @param condition the condition - * @returns the newly created `AdwBreakpoint` - */ - static new(condition: BreakpointCondition): Breakpoint - _init(config?: Breakpoint.ConstructorProperties): void -} - -module BreakpointBin { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.BreakpointBin - - /** - * The child widget. - */ - child?: Gtk.Widget | null - } - -} - -interface BreakpointBin extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.BreakpointBin - - /** - * The child widget. - */ - child: Gtk.Widget - /** - * The current breakpoint. - */ - readonly current_breakpoint: Breakpoint - - // Own fields of Adw-1.Adw.BreakpointBin - - parent_instance: Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.BreakpointBin - - /** - * Adds `breakpoint` to `self`. - * @param breakpoint the breakpoint to add - */ - add_breakpoint(breakpoint: Breakpoint): void - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets the current breakpoint. - * @returns the current breakpoint - */ - get_current_breakpoint(): Breakpoint | null - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - - // Class property signals of Adw-1.Adw.BreakpointBin - - connect(sigName: "notify::child", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::current-breakpoint", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::current-breakpoint", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::current-breakpoint", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: BreakpointBin, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget that changes layout based on available size. - * - * - * - * breakpoint-bin - * - * - * `AdwBreakpointBin` provides a way to use breakpoints without [class`Window]` - * or [class`ApplicationWindow]`. It can be useful for limiting breakpoints to a - * single page and similar purposes. Most applications shouldn't need it. - * - * `AdwBreakpointBin` is similar to [class`Bin]`. It has one child, set via the - * [property`BreakpointBin:`child] property. - * - * When `AdwBreakpointBin` is resized, its child widget can rearrange its layout - * at specific thresholds. - * - * The thresholds and layout changes are defined via [class`Breakpoint]` objects. - * They can be added using [method`BreakpointBin`.add_breakpoint]. - * - * Each breakpoint has a condition, specifying the bin's size and/or aspect - * ratio, and setters that automatically set object properties when that - * happens. The [signal`Breakpoint:`:apply] and [signal`Breakpoint:`:unapply] can - * be used instead for more complex scenarios. - * - * Breakpoints are only allowed to modify widgets inside the `AdwBreakpointBin`, - * but not on the `AdwBreakpointBin` itself or any other widgets. - * - * If multiple breakpoints can be used for the current size, the last one is - * always picked. The current breakpoint can be tracked using the - * [property`BreakpointBin:`current-breakpoint] property. - * - * If none of the breakpoints can be used, that property will be set to `NULL`, - * and the original property values will be used instead. - * - * ## Minimum Size - * - * Adding a breakpoint to `AdwBreakpointBin` will result in it having no minimum - * size. The [property`Gtk`.Widget:width-request] and - * [property`Gtk`.Widget:height-request] properties must always be set when using - * breakpoints, indicating the smallest size you want to support. - * - * The minimum size and breakpoint conditions must be carefully selected so that - * the child widget completely fits. If it doesn't, it will overflow and a - * warning message will be printed. - * - * When choosing minimum size, consider translations and text scale factor - * changes. Make sure to leave enough space for text labels, and enable - * ellipsizing or wrapping if they might not fit. - * - * For [class`Gtk`.Label] this can be done via [property`Gtk`.Label:ellipsize], or - * via [property`Gtk`.Label:wrap] together with [property`Gtk`.Label:wrap-mode]. - * - * For buttons, use [property`Gtk`.Button:can-shrink], - * [property`Gtk`.MenuButton:can-shrink], [property`Adw`.SplitButton:can-shrink], - * or [property`Adw`.ButtonContent:can-shrink]. - * - * ## Example - * - * ```c - * GtkWidget *bin, *child; - * AdwBreakpoint *breakpoint; - * - * bin = adw_breakpoint_bin_new (); - * gtk_widget_set_size_request (bin, 150, 150); - * - * child = gtk_label_new ("Wide"); - * gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); - * gtk_widget_add_css_class (child, "title-1"); - * adw_breakpoint_bin_set_child (ADW_BREAKPOINT_BIN (bin), child); - * - * breakpoint = adw_breakpoint_new (adw_breakpoint_condition_parse ("max-width: 200px")); - * adw_breakpoint_add_setters (breakpoint, - * G_OBJECT (child), "label", "Narrow", - * NULL); - * adw_breakpoint_bin_add_breakpoint (ADW_BREAKPOINT_BIN (bin), breakpoint); - * ``` - * - * The bin has a single label inside it, displaying "Wide". When the bin's width - * is smaller than or equal to 200px, it changes to "Narrow". - * - * ## `AdwBreakpointBin` as `GtkBuildable` - * - * `AdwBreakpointBin` allows adding `AdwBreakpoint` objects as children. - * - * Example of an `AdwBreakpointBin` UI definition: - * - * ```xml - * - * 150 - * 150 - * - * - * Wide - * end - * - * - * - * - * - * max-width: 200px - * Narrow - * - * - * - * ``` - * - * See [class`Breakpoint]` documentation for details. - * @class - */ -class BreakpointBin extends Gtk.Widget { - - // Own properties of Adw-1.Adw.BreakpointBin - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.BreakpointBin - - constructor(config?: BreakpointBin.ConstructorProperties) - /** - * Creates a new `AdwBreakpointBin`. - * @constructor - * @returns the newly created `AdwBreakpointBin` - */ - constructor() - /** - * Creates a new `AdwBreakpointBin`. - * @constructor - * @returns the newly created `AdwBreakpointBin` - */ - static new(): BreakpointBin - _init(config?: BreakpointBin.ConstructorProperties): void -} - -module ButtonContent { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ButtonContent - - /** - * Whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [property`Gtk`.Button:can-shrink]. - */ - can_shrink?: boolean | null - /** - * The name of the displayed icon. - * - * If empty, the icon is not shown. - */ - icon_name?: string | null - /** - * The displayed label. - */ - label?: string | null - /** - * Whether an underline in the text indicates a mnemonic. - * - * The mnemonic can be used to activate the parent button. - * - * See [property`ButtonContent:`label]. - */ - use_underline?: boolean | null - } - -} - -interface ButtonContent extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ButtonContent - - /** - * Whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [property`Gtk`.Button:can-shrink]. - */ - can_shrink: boolean - /** - * The name of the displayed icon. - * - * If empty, the icon is not shown. - */ - icon_name: string | null - /** - * The displayed label. - */ - label: string | null - /** - * Whether an underline in the text indicates a mnemonic. - * - * The mnemonic can be used to activate the parent button. - * - * See [property`ButtonContent:`label]. - */ - use_underline: boolean - - // Owm methods of Adw-1.Adw.ButtonContent - - /** - * gets whether the button can be smaller than the natural size of its contents. - * @returns whether the button can shrink - */ - get_can_shrink(): boolean - /** - * Gets the name of the displayed icon. - * @returns the icon name - */ - get_icon_name(): string | null - /** - * Gets the displayed label. - * @returns the label - */ - get_label(): string | null - /** - * Gets whether an underline in the text indicates a mnemonic. - * @returns whether an underline in the text indicates a mnemonic - */ - get_use_underline(): boolean - /** - * Sets whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [method`Gtk`.Button.set_can_shrink]. - * @param can_shrink whether the button can shrink - */ - set_can_shrink(can_shrink: boolean): void - /** - * Sets the name of the displayed icon. - * - * If empty, the icon is not shown. - * @param icon_name the new icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the displayed label. - * @param label the new label - */ - set_label(label: string | null): void - /** - * Sets whether an underline in the text indicates a mnemonic. - * - * The mnemonic can be used to activate the parent button. - * - * See [property`ButtonContent:`label]. - * @param use_underline whether an underline in the text indicates a mnemonic - */ - set_use_underline(use_underline: boolean): void - - // Class property signals of Adw-1.Adw.ButtonContent - - connect(sigName: "notify::can-shrink", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-shrink", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-shrink", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::label", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::label", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::label", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ButtonContent, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A helper widget for creating buttons. - * - * - * - * button-content - * - * - * `AdwButtonContent` is a box-like widget with an icon and a label. - * - * It's intended to be used as a direct child of [class`Gtk`.Button], - * [class`Gtk`.MenuButton] or [class`SplitButton]`, when they need to have both an - * icon and a label, as follows: - * - * ```xml - * - * - * - * document-open-symbolic - * _Open - * True - * - * - * - * ``` - * - * `AdwButtonContent` handles style classes and connecting the mnemonic to the - * button automatically. - * - * ## CSS nodes - * - * ``` - * buttoncontent - * ├── image - * ╰── label - * ``` - * - * `AdwButtonContent`'s CSS node is called `buttoncontent`. It contains the - * subnodes `image` and `label`. - * - * When inside a `GtkButton` or `AdwSplitButton`, the button will receive the - * `.image-text-button` style class. When inside a `GtkMenuButton`, the - * internal `GtkButton` will receive it instead. - * - * ## Accessibility - * - * `AdwButtonContent` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class ButtonContent extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ButtonContent - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ButtonContent - - constructor(config?: ButtonContent.ConstructorProperties) - /** - * Creates a new `AdwButtonContent`. - * @constructor - * @returns the new created `AdwButtonContent` - */ - constructor() - /** - * Creates a new `AdwButtonContent`. - * @constructor - * @returns the new created `AdwButtonContent` - */ - static new(): ButtonContent - _init(config?: ButtonContent.ConstructorProperties): void -} - -module CallbackAnimationTarget { - - // Constructor properties interface - - interface ConstructorProperties extends AnimationTarget.ConstructorProperties { - } - -} - -interface CallbackAnimationTarget { - - // Class property signals of Adw-1.Adw.CallbackAnimationTarget - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An [class`AnimationTarget]` that calls a given callback during the - * animation. - * @class - */ -class CallbackAnimationTarget extends AnimationTarget { - - // Own properties of Adw-1.Adw.CallbackAnimationTarget - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.CallbackAnimationTarget - - constructor(config?: CallbackAnimationTarget.ConstructorProperties) - /** - * Creates a new `AdwAnimationTarget` that calls the given `callback` during - * the animation. - * @constructor - * @returns the newly created callback target - */ - constructor() - /** - * Creates a new `AdwAnimationTarget` that calls the given `callback` during - * the animation. - * @constructor - * @returns the newly created callback target - */ - static new(): CallbackAnimationTarget - _init(config?: CallbackAnimationTarget.ConstructorProperties): void -} - -module Carousel { - - // Signal callback interfaces - - /** - * Signal callback interface for `page-changed` - */ - interface PageChangedSignalCallback { - ($obj: Carousel, index: number): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Swipeable.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Carousel - - /** - * Whether to allow swiping for more than one page at a time. - * - * If the value is `FALSE`, each swipe can only move to the adjacent pages. - */ - allow_long_swipes?: boolean | null - /** - * Sets whether the `AdwCarousel` can be dragged with mouse pointer. - * - * If the value is `FALSE`, dragging is only available on touch. - */ - allow_mouse_drag?: boolean | null - /** - * Whether the widget will respond to scroll wheel events. - * - * If the value is `FALSE`, wheel events will be ignored. - */ - allow_scroll_wheel?: boolean | null - /** - * Whether the carousel can be navigated. - * - * This can be used to temporarily disable the carousel to only allow - * navigating it in a certain state. - */ - interactive?: boolean | null - /** - * Page reveal duration, in milliseconds. - * - * Reveal duration is used when animating adding or removing pages. - */ - reveal_duration?: number | null - /** - * Scroll animation spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - scroll_params?: SpringParams | null - /** - * Spacing between pages in pixels. - */ - spacing?: number | null - } - -} - -interface Carousel extends Swipeable, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.Carousel - - /** - * Whether to allow swiping for more than one page at a time. - * - * If the value is `FALSE`, each swipe can only move to the adjacent pages. - */ - allow_long_swipes: boolean - /** - * Sets whether the `AdwCarousel` can be dragged with mouse pointer. - * - * If the value is `FALSE`, dragging is only available on touch. - */ - allow_mouse_drag: boolean - /** - * Whether the widget will respond to scroll wheel events. - * - * If the value is `FALSE`, wheel events will be ignored. - */ - allow_scroll_wheel: boolean - /** - * Whether the carousel can be navigated. - * - * This can be used to temporarily disable the carousel to only allow - * navigating it in a certain state. - */ - interactive: boolean - /** - * The number of pages in a `AdwCarousel`. - */ - readonly n_pages: number - /** - * Current scrolling position, unitless. - * - * 1 matches 1 page. Use [method`Carousel`.scroll_to] for changing it. - */ - readonly position: number - /** - * Page reveal duration, in milliseconds. - * - * Reveal duration is used when animating adding or removing pages. - */ - reveal_duration: number - /** - * Scroll animation spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - scroll_params: SpringParams - /** - * Spacing between pages in pixels. - */ - spacing: number - - // Owm methods of Adw-1.Adw.Carousel - - /** - * Appends `child` to `self`. - * @param child a widget to add - */ - append(child: Gtk.Widget): void - /** - * Gets whether to allow swiping for more than one page at a time. - * @returns `TRUE` if long swipes are allowed - */ - get_allow_long_swipes(): boolean - /** - * Sets whether `self` can be dragged with mouse pointer. - * @returns whether @self can be dragged with mouse pointer - */ - get_allow_mouse_drag(): boolean - /** - * Gets whether `self` will respond to scroll wheel events. - * @returns `TRUE` if @self will respond to scroll wheel events - */ - get_allow_scroll_wheel(): boolean - /** - * Gets whether `self` can be navigated. - * @returns whether @self can be navigated - */ - get_interactive(): boolean - /** - * Gets the number of pages in `self`. - * @returns the number of pages in @self - */ - get_n_pages(): number - /** - * Gets the page at position `n`. - * @param n index of the page - * @returns the page - */ - get_nth_page(n: number): Gtk.Widget - /** - * Gets current scroll position in `self,` unitless. - * - * 1 matches 1 page. Use [method`Carousel`.scroll_to] for changing it. - * @returns the scroll position - */ - get_position(): number - /** - * Gets the page reveal duration, in milliseconds. - * @returns the duration - */ - get_reveal_duration(): number - /** - * Gets the scroll animation spring parameters for `self`. - * @returns the animation parameters - */ - get_scroll_params(): SpringParams - /** - * Gets spacing between pages in pixels. - * @returns spacing between pages - */ - get_spacing(): number - /** - * Inserts `child` into `self` at position `position`. - * - * If position is -1, or larger than the number of pages, - * `child` will be appended to the end. - * @param child a widget to add - * @param position the position to insert `child` at - */ - insert(child: Gtk.Widget, position: number): void - /** - * Prepends `child` to `self`. - * @param child a widget to add - */ - prepend(child: Gtk.Widget): void - /** - * Removes `child` from `self`. - * @param child a widget to remove - */ - remove(child: Gtk.Widget): void - /** - * Moves `child` into position `position`. - * - * If position is -1, or larger than the number of pages, `child` will be moved - * at the end. - * @param child a widget to add - * @param position the position to move `child` to - */ - reorder(child: Gtk.Widget, position: number): void - /** - * Scrolls to `widget`. - * - * If `animate` is `TRUE`, the transition will be animated. - * @param widget a child of `self` - * @param animate whether to animate the transition - */ - scroll_to(widget: Gtk.Widget, animate: boolean): void - /** - * Sets whether to allow swiping for more than one page at a time. - * - * If `allow_long_swipes` is `FALSE`, each swipe can only move to the adjacent - * pages. - * @param allow_long_swipes whether to allow long swipes - */ - set_allow_long_swipes(allow_long_swipes: boolean): void - /** - * Sets whether `self` can be dragged with mouse pointer. - * - * If `allow_mouse_drag` is `FALSE`, dragging is only available on touch. - * @param allow_mouse_drag whether `self` can be dragged with mouse pointer - */ - set_allow_mouse_drag(allow_mouse_drag: boolean): void - /** - * Sets whether `self` will respond to scroll wheel events. - * - * If `allow_scroll_wheel` is `FALSE`, wheel events will be ignored. - * @param allow_scroll_wheel whether `self` will respond to scroll wheel events - */ - set_allow_scroll_wheel(allow_scroll_wheel: boolean): void - /** - * Sets whether `self` can be navigated. - * - * This can be used to temporarily disable the carousel to only allow navigating - * it in a certain state. - * @param interactive whether `self` can be navigated - */ - set_interactive(interactive: boolean): void - /** - * Sets the page reveal duration, in milliseconds. - * - * Reveal duration is used when animating adding or removing pages. - * @param reveal_duration the new reveal duration value - */ - set_reveal_duration(reveal_duration: number): void - /** - * Sets the scroll animation spring parameters for `self`. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - * @param params the new parameters - */ - set_scroll_params(params: SpringParams): void - /** - * Sets spacing between pages in pixels. - * @param spacing the new spacing value - */ - set_spacing(spacing: number): void - - // Own signals of Adw-1.Adw.Carousel - - connect(sigName: "page-changed", callback: Carousel.PageChangedSignalCallback): number - connect_after(sigName: "page-changed", callback: Carousel.PageChangedSignalCallback): number - emit(sigName: "page-changed", index: number, ...args: any[]): void - - // Class property signals of Adw-1.Adw.Carousel - - connect(sigName: "notify::allow-long-swipes", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-long-swipes", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-long-swipes", ...args: any[]): void - connect(sigName: "notify::allow-mouse-drag", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-mouse-drag", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-mouse-drag", ...args: any[]): void - connect(sigName: "notify::allow-scroll-wheel", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-scroll-wheel", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-scroll-wheel", ...args: any[]): void - connect(sigName: "notify::interactive", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::interactive", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::interactive", ...args: any[]): void - connect(sigName: "notify::n-pages", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-pages", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-pages", ...args: any[]): void - connect(sigName: "notify::position", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::position", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::position", ...args: any[]): void - connect(sigName: "notify::reveal-duration", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-duration", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-duration", ...args: any[]): void - connect(sigName: "notify::scroll-params", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scroll-params", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scroll-params", ...args: any[]): void - connect(sigName: "notify::spacing", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::spacing", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::spacing", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: Carousel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A paginated scrolling widget. - * - * - * - * carousel - * - * - * The `AdwCarousel` widget can be used to display a set of pages with - * swipe-based navigation between them. - * - * [class`CarouselIndicatorDots]` and [class`CarouselIndicatorLines]` can be used - * to provide page indicators for `AdwCarousel`. - * - * ## CSS nodes - * - * `AdwCarousel` has a single CSS node with name `carousel`. - * @class - */ -class Carousel extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Carousel - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Carousel - - constructor(config?: Carousel.ConstructorProperties) - /** - * Creates a new `AdwCarousel`. - * @constructor - * @returns the newly created `AdwCarousel` - */ - constructor() - /** - * Creates a new `AdwCarousel`. - * @constructor - * @returns the newly created `AdwCarousel` - */ - static new(): Carousel - _init(config?: Carousel.ConstructorProperties): void -} - -module CarouselIndicatorDots { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.CarouselIndicatorDots - - /** - * The displayed carousel. - */ - carousel?: Carousel | null - } - -} - -interface CarouselIndicatorDots extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.CarouselIndicatorDots - - /** - * The displayed carousel. - */ - carousel: Carousel - - // Owm methods of Adw-1.Adw.CarouselIndicatorDots - - /** - * Gets the displayed carousel. - * @returns the displayed carousel - */ - get_carousel(): Carousel | null - /** - * Sets the displayed carousel. - * @param carousel a carousel - */ - set_carousel(carousel: Carousel | null): void - - // Class property signals of Adw-1.Adw.CarouselIndicatorDots - - connect(sigName: "notify::carousel", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::carousel", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::carousel", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: CarouselIndicatorDots, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A dots indicator for [class`Carousel]`. - * - * - * - * carousel-indicator-dots - * - * - * The `AdwCarouselIndicatorDots` widget shows a set of dots for each page of a - * given [class`Carousel]`. The dot representing the carousel's active page is - * larger and more opaque than the others, the transition to the active and - * inactive state is gradual to match the carousel's position. - * - * See also [class`CarouselIndicatorLines]`. - * - * ## CSS nodes - * - * `AdwCarouselIndicatorDots` has a single CSS node with name - * `carouselindicatordots`. - * @class - */ -class CarouselIndicatorDots extends Gtk.Widget { - - // Own properties of Adw-1.Adw.CarouselIndicatorDots - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.CarouselIndicatorDots - - constructor(config?: CarouselIndicatorDots.ConstructorProperties) - /** - * Creates a new `AdwCarouselIndicatorDots`. - * @constructor - * @returns the newly created `AdwCarouselIndicatorDots` - */ - constructor() - /** - * Creates a new `AdwCarouselIndicatorDots`. - * @constructor - * @returns the newly created `AdwCarouselIndicatorDots` - */ - static new(): CarouselIndicatorDots - _init(config?: CarouselIndicatorDots.ConstructorProperties): void -} - -module CarouselIndicatorLines { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.CarouselIndicatorLines - - /** - * The displayed carousel. - */ - carousel?: Carousel | null - } - -} - -interface CarouselIndicatorLines extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.CarouselIndicatorLines - - /** - * The displayed carousel. - */ - carousel: Carousel - - // Owm methods of Adw-1.Adw.CarouselIndicatorLines - - /** - * Gets the displayed carousel. - * @returns the displayed carousel - */ - get_carousel(): Carousel | null - /** - * Sets the displayed carousel. - * @param carousel a carousel - */ - set_carousel(carousel: Carousel | null): void - - // Class property signals of Adw-1.Adw.CarouselIndicatorLines - - connect(sigName: "notify::carousel", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::carousel", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::carousel", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: CarouselIndicatorLines, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A lines indicator for [class`Carousel]`. - * - * - * - * carousel-indicator-lines - * - * - * The `AdwCarouselIndicatorLines` widget shows a set of lines for each page of - * a given [class`Carousel]`. The carousel's active page is shown as another line - * that moves between them to match the carousel's position. - * - * See also [class`CarouselIndicatorDots]`. - * - * ## CSS nodes - * - * `AdwCarouselIndicatorLines` has a single CSS node with name - * `carouselindicatorlines`. - * @class - */ -class CarouselIndicatorLines extends Gtk.Widget { - - // Own properties of Adw-1.Adw.CarouselIndicatorLines - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.CarouselIndicatorLines - - constructor(config?: CarouselIndicatorLines.ConstructorProperties) - /** - * Creates a new `AdwCarouselIndicatorLines`. - * @constructor - * @returns the newly created `AdwCarouselIndicatorLines` - */ - constructor() - /** - * Creates a new `AdwCarouselIndicatorLines`. - * @constructor - * @returns the newly created `AdwCarouselIndicatorLines` - */ - static new(): CarouselIndicatorLines - _init(config?: CarouselIndicatorLines.ConstructorProperties): void -} - -module Clamp { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Clamp - - /** - * The child widget of the `AdwClamp`. - */ - child?: Gtk.Widget | null - /** - * The maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - */ - maximum_size?: number | null - /** - * The size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum size, the child - * will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the size up to the maximum. - * If the threshold is lower than the minimum size to allocate to the child, - * that size will be used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold?: number | null - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit?: LengthUnit | null - } - -} - -interface Clamp extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.Clamp - - /** - * The child widget of the `AdwClamp`. - */ - child: Gtk.Widget - /** - * The maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - */ - maximum_size: number - /** - * The size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum size, the child - * will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the size up to the maximum. - * If the threshold is lower than the minimum size to allocate to the child, - * that size will be used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold: number - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit: LengthUnit - - // Owm methods of Adw-1.Adw.Clamp - - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets the maximum size allocated to the child. - * @returns the maximum size to allocate to the child - */ - get_maximum_size(): number - /** - * Gets the size above which the child is clamped. - * @returns the size above which the child is clamped - */ - get_tightening_threshold(): number - /** - * Gets the length unit for maximum size and tightening threshold. - * @returns the length unit - */ - get_unit(): LengthUnit - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets the maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - * @param maximum_size the maximum size - */ - set_maximum_size(maximum_size: number): void - /** - * Sets the size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, slowly - * allocating less and less of the available size up to the maximum allocated - * size. Below that threshold and below the maximum size, the child will be - * allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the size up to the maximum. If the threshold - * is lower than the minimum size to allocate to the child, that size will be - * used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - * @param tightening_threshold the tightening threshold - */ - set_tightening_threshold(tightening_threshold: number): void - /** - * Sets the length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - * @param unit the length unit - */ - set_unit(unit: LengthUnit): void - - // Class property signals of Adw-1.Adw.Clamp - - connect(sigName: "notify::child", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::maximum-size", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximum-size", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximum-size", ...args: any[]): void - connect(sigName: "notify::tightening-threshold", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tightening-threshold", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tightening-threshold", ...args: any[]): void - connect(sigName: "notify::unit", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::unit", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::unit", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: Clamp, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget constraining its child to a given size. - * - * - * - * clamp-wide - * - * - * - * clamp-narrow - * - * - * The `AdwClamp` widget constrains the size of the widget it contains to a - * given maximum size. It will constrain the width if it is horizontal, or the - * height if it is vertical. The expansion of the child from its minimum to its - * maximum size is eased out for a smooth transition. - * - * If the child requires more than the requested maximum size, it will be - * allocated the minimum size it can fit in instead. - * - * `AdwClamp` can scale with the text scale factor, use the - * [property`ClampLayout:`unit] property to enable that behavior. - * - * ## CSS nodes - * - * `AdwClamp` has a single CSS node with name `clamp`. - * @class - */ -class Clamp extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Clamp - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Clamp - - constructor(config?: Clamp.ConstructorProperties) - /** - * Creates a new `AdwClamp`. - * @constructor - * @returns the newly created `AdwClamp` - */ - constructor() - /** - * Creates a new `AdwClamp`. - * @constructor - * @returns the newly created `AdwClamp` - */ - static new(): Clamp - _init(config?: Clamp.ConstructorProperties): void -} - -module ClampLayout { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Orientable.ConstructorProperties, Gtk.LayoutManager.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ClampLayout - - /** - * The maximum size to allocate to the children. - * - * It is the width if the layout is horizontal, or the height if it is - * vertical. - */ - maximum_size?: number | null - /** - * The size above which the children are clamped. - * - * Starting from this size, the layout will tighten its grip on the children, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum size, the - * children will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the - * children, they will be allocated the whole size up to the maximum. If the - * threshold is lower than the minimum size to allocate to the children, that - * size will be used as the tightening threshold. - * - * Effectively, tightening the grip on a child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold?: number | null - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit?: LengthUnit | null - } - -} - -interface ClampLayout extends Gtk.Orientable { - - // Own properties of Adw-1.Adw.ClampLayout - - /** - * The maximum size to allocate to the children. - * - * It is the width if the layout is horizontal, or the height if it is - * vertical. - */ - maximum_size: number - /** - * The size above which the children are clamped. - * - * Starting from this size, the layout will tighten its grip on the children, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum size, the - * children will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the - * children, they will be allocated the whole size up to the maximum. If the - * threshold is lower than the minimum size to allocate to the children, that - * size will be used as the tightening threshold. - * - * Effectively, tightening the grip on a child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold: number - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit: LengthUnit - - // Owm methods of Adw-1.Adw.ClampLayout - - /** - * Gets the maximum size allocated to the children. - * @returns the maximum size to allocate to the children - */ - get_maximum_size(): number - /** - * Gets the size above which the children are clamped. - * @returns the size above which the children are clamped - */ - get_tightening_threshold(): number - /** - * Gets the length unit for maximum size and tightening threshold. - * @returns the length unit - */ - get_unit(): LengthUnit - /** - * Sets the maximum size allocated to the children. - * - * It is the width if the layout is horizontal, or the height if it is vertical. - * @param maximum_size the maximum size - */ - set_maximum_size(maximum_size: number): void - /** - * Sets the size above which the children are clamped. - * - * Starting from this size, the layout will tighten its grip on the children, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum size, the children - * will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the - * children, they will be allocated the whole size up to the maximum. If the - * threshold is lower than the minimum size to allocate to the children, that - * size will be used as the tightening threshold. - * - * Effectively, tightening the grip on a child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - * @param tightening_threshold the tightening threshold - */ - set_tightening_threshold(tightening_threshold: number): void - /** - * Sets the length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - * @param unit the length unit - */ - set_unit(unit: LengthUnit): void - - // Class property signals of Adw-1.Adw.ClampLayout - - connect(sigName: "notify::maximum-size", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximum-size", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximum-size", ...args: any[]): void - connect(sigName: "notify::tightening-threshold", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tightening-threshold", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tightening-threshold", ...args: any[]): void - connect(sigName: "notify::unit", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::unit", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::unit", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: ClampLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A layout manager constraining its children to a given size. - * - * - * - * clamp-wide - * - * - * - * clamp-narrow - * - * - * `AdwClampLayout` constraints the size of the widgets it contains to a given - * maximum size. It will constrain the width if it is horizontal, or the height - * if it is vertical. The expansion of the children from their minimum to their - * maximum size is eased out for a smooth transition. - * - * If a child requires more than the requested maximum size, it will be - * allocated the minimum size it can fit in instead. - * - * `AdwClampLayout` can scale with the text scale factor, use the - * [property`ClampLayout:`unit] property to enable that behavior. - * @class - */ -class ClampLayout extends Gtk.LayoutManager { - - // Own properties of Adw-1.Adw.ClampLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ClampLayout - - constructor(config?: ClampLayout.ConstructorProperties) - /** - * Creates a new `AdwClampLayout`. - * @constructor - * @returns the newly created `AdwClampLayout` - */ - constructor() - /** - * Creates a new `AdwClampLayout`. - * @constructor - * @returns the newly created `AdwClampLayout` - */ - static new(): ClampLayout - _init(config?: ClampLayout.ConstructorProperties): void -} - -module ClampScrollable { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Scrollable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ClampScrollable - - /** - * The child widget of the `AdwClampScrollable`. - */ - child?: Gtk.Widget | null - /** - * The maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - */ - maximum_size?: number | null - /** - * The size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum width, the child - * will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the width up to the maximum. - * If the threshold is lower than the minimum size to allocate to the child, - * that size will be used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold?: number | null - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit?: LengthUnit | null - } - -} - -interface ClampScrollable extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable, Gtk.Scrollable { - - // Own properties of Adw-1.Adw.ClampScrollable - - /** - * The child widget of the `AdwClampScrollable`. - */ - child: Gtk.Widget - /** - * The maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - */ - maximum_size: number - /** - * The size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, - * slowly allocating less and less of the available size up to the maximum - * allocated size. Below that threshold and below the maximum width, the child - * will be allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the width up to the maximum. - * If the threshold is lower than the minimum size to allocate to the child, - * that size will be used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - */ - tightening_threshold: number - /** - * The length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - */ - unit: LengthUnit - - // Owm methods of Adw-1.Adw.ClampScrollable - - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets the maximum size allocated to the child. - * @returns the maximum size to allocate to the child - */ - get_maximum_size(): number - /** - * Gets the size above which the child is clamped. - * @returns the size above which the child is clamped - */ - get_tightening_threshold(): number - /** - * Gets the length unit for maximum size and tightening threshold. - * @returns the length unit - */ - get_unit(): LengthUnit - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets the maximum size allocated to the child. - * - * It is the width if the clamp is horizontal, or the height if it is vertical. - * @param maximum_size the maximum size - */ - set_maximum_size(maximum_size: number): void - /** - * Sets the size above which the child is clamped. - * - * Starting from this size, the clamp will tighten its grip on the child, slowly - * allocating less and less of the available size up to the maximum allocated - * size. Below that threshold and below the maximum width, the child will be - * allocated all the available size. - * - * If the threshold is greater than the maximum size to allocate to the child, - * the child will be allocated all the width up to the maximum. If the threshold - * is lower than the minimum size to allocate to the child, that size will be - * used as the tightening threshold. - * - * Effectively, tightening the grip on the child before it reaches its maximum - * size makes transitions to and from the maximum size smoother when resizing. - * @param tightening_threshold the tightening threshold - */ - set_tightening_threshold(tightening_threshold: number): void - /** - * Sets the length unit for maximum size and tightening threshold. - * - * Allows the sizes to vary depending on the text scale factor. - * @param unit the length unit - */ - set_unit(unit: LengthUnit): void - - // Class property signals of Adw-1.Adw.ClampScrollable - - connect(sigName: "notify::child", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::maximum-size", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximum-size", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximum-size", ...args: any[]): void - connect(sigName: "notify::tightening-threshold", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tightening-threshold", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tightening-threshold", ...args: any[]): void - connect(sigName: "notify::unit", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::unit", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::unit", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: "notify::hadjustment", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hadjustment", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hadjustment", ...args: any[]): void - connect(sigName: "notify::hscroll-policy", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hscroll-policy", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hscroll-policy", ...args: any[]): void - connect(sigName: "notify::vadjustment", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vadjustment", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vadjustment", ...args: any[]): void - connect(sigName: "notify::vscroll-policy", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vscroll-policy", callback: (($obj: ClampScrollable, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vscroll-policy", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A scrollable [class`Clamp]`. - * - * `AdwClampScrollable` is a variant of [class`Clamp]` that implements the - * [iface`Gtk`.Scrollable] interface. - * - * The primary use case for `AdwClampScrollable` is clamping - * [class`Gtk`.ListView]. - * @class - */ -class ClampScrollable extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ClampScrollable - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ClampScrollable - - constructor(config?: ClampScrollable.ConstructorProperties) - /** - * Creates a new `AdwClampScrollable`. - * @constructor - * @returns the newly created `AdwClampScrollable` - */ - constructor() - /** - * Creates a new `AdwClampScrollable`. - * @constructor - * @returns the newly created `AdwClampScrollable` - */ - static new(): ClampScrollable - _init(config?: ClampScrollable.ConstructorProperties): void -} - -module ComboRow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, ActionRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ComboRow - - /** - * Whether to show a search entry in the popup. - * - * If set to `TRUE`, a search entry will be shown in the popup that - * allows to search for items in the list. - * - * Search requires [property`ComboRow:`expression] to be set. - */ - enable_search?: boolean | null - /** - * An expression used to obtain strings from items. - * - * The expression must have a value type of `G_TYPE_STRING`. - * - * It's used to bind strings to labels produced by the default factory if - * [property`ComboRow:`factory] is not set, or when - * [property`ComboRow:`use-subtitle] is set to `TRUE`. - */ - expression?: Gtk.Expression | null - /** - * Factory for populating list items. - * - * This factory is always used for the item in the row. It is also used for - * items in the popup unless [property`ComboRow:`list-factory] is set. - */ - factory?: Gtk.ListItemFactory | null - /** - * The factory for populating list items in the popup. - * - * If this is not set, [property`ComboRow:`factory] is used. - */ - list_factory?: Gtk.ListItemFactory | null - /** - * The model that provides the displayed items. - */ - model?: Gio.ListModel | null - /** - * The position of the selected item. - * - * If no item is selected, the property has the value - * [const`Gtk`.INVALID_LIST_POSITION] - */ - selected?: number | null - /** - * Whether to use the current value as the subtitle. - * - * If you use a custom list item factory, you will need to give the row a - * name conversion expression with [property`ComboRow:`expression]. - * - * If set to `TRUE`, you should not access [property`ActionRow:`subtitle]. - * - * The subtitle is interpreted as Pango markup if - * [property`PreferencesRow:`use-markup] is set to `TRUE`. - */ - use_subtitle?: boolean | null - } - -} - -interface ComboRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ComboRow - - /** - * Whether to show a search entry in the popup. - * - * If set to `TRUE`, a search entry will be shown in the popup that - * allows to search for items in the list. - * - * Search requires [property`ComboRow:`expression] to be set. - */ - enable_search: boolean - /** - * An expression used to obtain strings from items. - * - * The expression must have a value type of `G_TYPE_STRING`. - * - * It's used to bind strings to labels produced by the default factory if - * [property`ComboRow:`factory] is not set, or when - * [property`ComboRow:`use-subtitle] is set to `TRUE`. - */ - expression: Gtk.Expression - /** - * Factory for populating list items. - * - * This factory is always used for the item in the row. It is also used for - * items in the popup unless [property`ComboRow:`list-factory] is set. - */ - factory: Gtk.ListItemFactory - /** - * The factory for populating list items in the popup. - * - * If this is not set, [property`ComboRow:`factory] is used. - */ - list_factory: Gtk.ListItemFactory - /** - * The model that provides the displayed items. - */ - model: Gio.ListModel - /** - * The position of the selected item. - * - * If no item is selected, the property has the value - * [const`Gtk`.INVALID_LIST_POSITION] - */ - selected: number - /** - * The selected item. - */ - readonly selected_item: GObject.Object - /** - * Whether to use the current value as the subtitle. - * - * If you use a custom list item factory, you will need to give the row a - * name conversion expression with [property`ComboRow:`expression]. - * - * If set to `TRUE`, you should not access [property`ActionRow:`subtitle]. - * - * The subtitle is interpreted as Pango markup if - * [property`PreferencesRow:`use-markup] is set to `TRUE`. - */ - use_subtitle: boolean - - // Own fields of Adw-1.Adw.ComboRow - - parent_instance: ActionRow & PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.ComboRow - - /** - * Gets whether search is enabled. - * - * If set to `TRUE`, a search entry will be shown in the popup that - * allows to search for items in the list. - * - * Search requires [property`ComboRow:`expression] to be set. - * @returns whether the popup includes a search entry - */ - get_enable_search(): boolean - /** - * Gets the expression used to obtain strings from items. - * @returns the expression used to obtain strings from items - */ - get_expression(): Gtk.Expression | null - /** - * Gets the factory for populating list items. - * @returns the factory in use - */ - get_factory(): Gtk.ListItemFactory | null - /** - * Gets the factory for populating list items in the popup. - * @returns the factory in use - */ - get_list_factory(): Gtk.ListItemFactory | null - /** - * Gets the model that provides the displayed items. - * @returns The model in use - */ - get_model(): Gio.ListModel | null - /** - * Gets the position of the selected item. - * @returns the position of the selected item, or [const@Gtk.INVALID_LIST_POSITION] if no item is selected - */ - get_selected(): number - /** - * Gets the selected item. - * @returns the selected item - */ - get_selected_item(): GObject.Object | null - /** - * Gets whether to use the current value as the subtitle. - * @returns whether to use the current value as the subtitle - */ - get_use_subtitle(): boolean - /** - * Sets whether to enable search. - * - * If set to `TRUE`, a search entry will be shown in the popup that - * allows to search for items in the list. - * - * Search requires [property`ComboRow:`expression] to be set. - * @param enable_search whether to enable search - */ - set_enable_search(enable_search: boolean): void - /** - * Sets the expression used to obtain strings from items. - * - * The expression must have a value type of `G_TYPE_STRING`. - * - * It's used to bind strings to labels produced by the default factory if - * [property`ComboRow:`factory] is not set, or when - * [property`ComboRow:`use-subtitle] is set to `TRUE`. - * @param expression an expression - */ - set_expression(expression: Gtk.Expression | null): void - /** - * Sets the factory for populating list items. - * - * This factory is always used for the item in the row. It is also used for - * items in the popup unless [property`ComboRow:`list-factory] is set. - * @param factory the factory to use - */ - set_factory(factory: Gtk.ListItemFactory | null): void - /** - * Sets the factory for populating list items in the popup. - * - * If this is not set, [property`ComboRow:`factory] is used. - * @param factory the factory to use - */ - set_list_factory(factory: Gtk.ListItemFactory | null): void - /** - * Sets the model that provides the displayed items. - * @param model the model to use - */ - set_model(model: Gio.ListModel | null): void - /** - * Selects the item at the given position. - * @param position the position of the item to select, or [const`Gtk`.INVALID_LIST_POSITION] - */ - set_selected(position: number): void - /** - * Sets whether to use the current value as the subtitle. - * - * If you use a custom list item factory, you will need to give the row a - * name conversion expression with [property`ComboRow:`expression]. - * - * If set to `TRUE`, you should not access [property`ActionRow:`subtitle]. - * - * The subtitle is interpreted as Pango markup if - * [property`PreferencesRow:`use-markup] is set to `TRUE`. - * @param use_subtitle whether to use the current value as the subtitle - */ - set_use_subtitle(use_subtitle: boolean): void - - // Conflicting methods - - /** - * Activates `self`. - */ - activate(): void - - // Overloads of activate - - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - - // Class property signals of Adw-1.Adw.ComboRow - - connect(sigName: "notify::enable-search", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-search", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-search", ...args: any[]): void - connect(sigName: "notify::expression", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::expression", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::expression", ...args: any[]): void - connect(sigName: "notify::factory", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::factory", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::factory", ...args: any[]): void - connect(sigName: "notify::list-factory", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::list-factory", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::list-factory", ...args: any[]): void - connect(sigName: "notify::model", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::model", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::model", ...args: any[]): void - connect(sigName: "notify::selected", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected", ...args: any[]): void - connect(sigName: "notify::selected-item", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected-item", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected-item", ...args: any[]): void - connect(sigName: "notify::use-subtitle", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-subtitle", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-subtitle", ...args: any[]): void - connect(sigName: "notify::activatable-widget", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable-widget", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable-widget", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::subtitle-lines", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-lines", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-lines", ...args: any[]): void - connect(sigName: "notify::subtitle-selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-selectable", ...args: any[]): void - connect(sigName: "notify::title-lines", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-lines", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-lines", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: ComboRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] used to choose from a list of items. - * - * - * - * combo-row - * - * - * The `AdwComboRow` widget allows the user to choose from a list of valid - * choices. The row displays the selected choice. When activated, the row - * displays a popover which allows the user to make a new choice. - * - * Example of an `AdwComboRow` UI definition: - * ```xml - * - * Combo Row - * - * - * - * Foo - * Bar - * Baz - * - * - * - * - * ``` - * - * The [property`ComboRow:`selected] and [property`ComboRow:`selected-item] - * properties can be used to keep track of the selected item and react to their - * changes. - * - * `AdwComboRow` mirrors [class`Gtk`.DropDown], see that widget for details. - * - * `AdwComboRow` is [property`Gtk`.ListBoxRow:activatable] if a model is set. - * - * ## CSS nodes - * - * `AdwComboRow` has a main CSS node with name `row` and the `.combo` style - * class. - * - * Its popover has the node named `popover` with the `.menu` style class, it - * contains a [class`Gtk`.ScrolledWindow], which in turn contains a - * [class`Gtk`.ListView], both are accessible via their regular nodes. - * - * ## Accessibility - * - * `AdwComboRow` uses the `GTK_ACCESSIBLE_ROLE_COMBO_BOX` role. - * @class - */ -class ComboRow extends ActionRow { - - // Own properties of Adw-1.Adw.ComboRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ComboRow - - constructor(config?: ComboRow.ConstructorProperties) - /** - * Creates a new `AdwComboRow`. - * @constructor - * @returns the newly created `AdwComboRow` - */ - constructor() - /** - * Creates a new `AdwComboRow`. - * @constructor - * @returns the newly created `AdwComboRow` - */ - static new(): ComboRow - _init(config?: ComboRow.ConstructorProperties): void -} - -module EntryRow { - - // Signal callback interfaces - - /** - * Signal callback interface for `apply` - */ - interface ApplySignalCallback { - ($obj: EntryRow): void - } - - /** - * Signal callback interface for `entry-activated` - */ - interface EntryActivatedSignalCallback { - ($obj: EntryRow): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Editable.ConstructorProperties, PreferencesRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.EntryRow - - /** - * Whether activating the embedded entry can activate the default widget. - */ - activates_default?: boolean | null - /** - * A list of Pango attributes to apply to the text of the embedded entry. - * - * The [struct`Pango`.Attribute]'s `start_index` and `end_index` must refer to - * the [class`Gtk`.EntryBuffer] text, i.e. without the preedit string. - */ - attributes?: Pango.AttrList | null - /** - * Whether to suggest emoji replacements on the entry row. - * - * Emoji replacement is done with :-delimited names, like `:heart:`. - */ - enable_emoji_completion?: boolean | null - /** - * Additional input hints for the entry row. - * - * Input hints allow input methods to fine-tune their behavior. - * - * See also: [property`Adw`.EntryRow:input-purpose] - */ - input_hints?: Gtk.InputHints | null - /** - * The input purpose of the entry row. - * - * The input purpose can be used by input methods to adjust their behavior. - */ - input_purpose?: Gtk.InputPurpose | null - /** - * Whether to show the apply button. - * - * When set to `TRUE`, typing text in the entry will reveal an apply button. - * Clicking it or pressing the Enter key will hide the button and - * emit the [signal`EntryRow:`:apply] signal. - * - * This is useful if changing the entry contents can trigger an expensive - * operation, e.g. network activity, to avoid triggering it after typing every - * character. - */ - show_apply_button?: boolean | null - } - -} - -interface EntryRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Editable { - - // Own properties of Adw-1.Adw.EntryRow - - /** - * Whether activating the embedded entry can activate the default widget. - */ - activates_default: boolean - /** - * A list of Pango attributes to apply to the text of the embedded entry. - * - * The [struct`Pango`.Attribute]'s `start_index` and `end_index` must refer to - * the [class`Gtk`.EntryBuffer] text, i.e. without the preedit string. - */ - attributes: Pango.AttrList - /** - * Whether to suggest emoji replacements on the entry row. - * - * Emoji replacement is done with :-delimited names, like `:heart:`. - */ - enable_emoji_completion: boolean - /** - * Additional input hints for the entry row. - * - * Input hints allow input methods to fine-tune their behavior. - * - * See also: [property`Adw`.EntryRow:input-purpose] - */ - input_hints: Gtk.InputHints - /** - * The input purpose of the entry row. - * - * The input purpose can be used by input methods to adjust their behavior. - */ - input_purpose: Gtk.InputPurpose - /** - * Whether to show the apply button. - * - * When set to `TRUE`, typing text in the entry will reveal an apply button. - * Clicking it or pressing the Enter key will hide the button and - * emit the [signal`EntryRow:`:apply] signal. - * - * This is useful if changing the entry contents can trigger an expensive - * operation, e.g. network activity, to avoid triggering it after typing every - * character. - */ - show_apply_button: boolean - - // Own fields of Adw-1.Adw.EntryRow - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.EntryRow - - /** - * Adds a prefix widget to `self`. - * @param widget a widget - */ - add_prefix(widget: Gtk.Widget): void - /** - * Adds a suffix widget to `self`. - * @param widget a widget - */ - add_suffix(widget: Gtk.Widget): void - /** - * Gets whether activating the embedded entry can activate the default widget. - * @returns whether to activate the default widget - */ - get_activates_default(): boolean - /** - * Gets Pango attributes applied to the text of the embedded entry. - * @returns the list of attributes - */ - get_attributes(): Pango.AttrList | null - /** - * Gets whether to suggest emoji replacements on `self`. - * @returns whether or not emoji completion is enabled - */ - get_enable_emoji_completion(): boolean - /** - * Gets the additional input hints of `self`. - * @returns The input hints - */ - get_input_hints(): Gtk.InputHints - /** - * Gets the input purpose of `self`. - * @returns the input purpose - */ - get_input_purpose(): Gtk.InputPurpose - /** - * Gets whether `self` can show the apply button. - * @returns whether to show the apply button - */ - get_show_apply_button(): boolean - /** - * Causes `self` to have keyboard focus without selecting the text. - * - * See [method`Gtk`.Text.grab_focus_without_selecting] for more information. - * @returns whether the focus is now inside @self - */ - grab_focus_without_selecting(): boolean - /** - * Removes a child from `self`. - * @param widget the child to be removed - */ - remove(widget: Gtk.Widget): void - /** - * Sets whether activating the embedded entry can activate the default widget. - * @param activates whether to activate the default widget - */ - set_activates_default(activates: boolean): void - /** - * Sets Pango attributes to apply to the text of the embedded entry. - * - * The [struct`Pango`.Attribute]'s `start_index` and `end_index` must refer to - * the [class`Gtk`.EntryBuffer] text, i.e. without the preedit string. - * @param attributes a list of attributes - */ - set_attributes(attributes: Pango.AttrList | null): void - /** - * Sets whether to suggest emoji replacements on `self`. - * - * Emoji replacement is done with :-delimited names, like `:heart:`. - * @param enable_emoji_completion Whether emoji completion should be enabled or not - */ - set_enable_emoji_completion(enable_emoji_completion: boolean): void - /** - * Set additional input hints for `self`. - * - * Input hints allow input methods to fine-tune their behavior. - * - * See also: [property`AdwEntryRow:`input-purpose] - * @param hints the hints - */ - set_input_hints(hints: Gtk.InputHints): void - /** - * Sets the input purpose of `self`. - * - * The input purpose can be used by input methods to adjust their behavior. - * @param purpose the purpose - */ - set_input_purpose(purpose: Gtk.InputPurpose): void - /** - * Sets whether `self` can show the apply button. - * - * When set to `TRUE`, typing text in the entry will reveal an apply button. - * Clicking it or pressing the Enter key will hide the button and - * emit the [signal`EntryRow:`:apply] signal. - * - * This is useful if changing the entry contents can trigger an expensive - * operation, e.g. network activity, to avoid triggering it after typing every - * character. - * @param show_apply_button whether to show the apply button - */ - set_show_apply_button(show_apply_button: boolean): void - - // Own signals of Adw-1.Adw.EntryRow - - connect(sigName: "apply", callback: EntryRow.ApplySignalCallback): number - connect_after(sigName: "apply", callback: EntryRow.ApplySignalCallback): number - emit(sigName: "apply", ...args: any[]): void - connect(sigName: "entry-activated", callback: EntryRow.EntryActivatedSignalCallback): number - connect_after(sigName: "entry-activated", callback: EntryRow.EntryActivatedSignalCallback): number - emit(sigName: "entry-activated", ...args: any[]): void - - // Class property signals of Adw-1.Adw.EntryRow - - connect(sigName: "notify::activates-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activates-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activates-default", ...args: any[]): void - connect(sigName: "notify::attributes", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::attributes", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::attributes", ...args: any[]): void - connect(sigName: "notify::enable-emoji-completion", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-emoji-completion", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-emoji-completion", ...args: any[]): void - connect(sigName: "notify::input-hints", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::input-hints", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::input-hints", ...args: any[]): void - connect(sigName: "notify::input-purpose", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::input-purpose", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::input-purpose", ...args: any[]): void - connect(sigName: "notify::show-apply-button", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-apply-button", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-apply-button", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: "notify::cursor-position", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor-position", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor-position", ...args: any[]): void - connect(sigName: "notify::editable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::editable", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::editable", ...args: any[]): void - connect(sigName: "notify::enable-undo", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-undo", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-undo", ...args: any[]): void - connect(sigName: "notify::max-width-chars", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-width-chars", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-width-chars", ...args: any[]): void - connect(sigName: "notify::selection-bound", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selection-bound", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selection-bound", ...args: any[]): void - connect(sigName: "notify::text", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text", ...args: any[]): void - connect(sigName: "notify::width-chars", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-chars", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-chars", ...args: any[]): void - connect(sigName: "notify::xalign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::xalign", callback: (($obj: EntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::xalign", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] with an embedded text entry. - * - * - * - * entry-row - * - * - * `AdwEntryRow` has a title that doubles as placeholder text. It shows an icon - * indicating that it's editable and can receive additional widgets before or - * after the editable part. - * - * If [property`EntryRow:`show-apply-button] is set to `TRUE`, `AdwEntryRow` can - * show an apply button when editing its contents. This can be useful if - * changing its contents can result in an expensive operation, such as network - * activity. - * - * `AdwEntryRow` provides only minimal API and should be used with the - * [iface`Gtk`.Editable] API. - * - * See also [class`PasswordEntryRow]`. - * - * ## AdwEntryRow as GtkBuildable - * - * The `AdwEntryRow` implementation of the [iface`Gtk`.Buildable] interface - * supports adding a child at its end by specifying “suffix” or omitting the - * “type” attribute of a element. - * - * It also supports adding a child as a prefix widget by specifying “prefix” as - * the “type” attribute of a element. - * - * ## CSS nodes - * - * `AdwEntryRow` has a single CSS node with name `row` and the `.entry` style - * class. - * @class - */ -class EntryRow extends PreferencesRow { - - // Own properties of Adw-1.Adw.EntryRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.EntryRow - - constructor(config?: EntryRow.ConstructorProperties) - /** - * Creates a new `AdwEntryRow`. - * @constructor - * @returns the newly created `AdwEntryRow` - */ - constructor() - /** - * Creates a new `AdwEntryRow`. - * @constructor - * @returns the newly created `AdwEntryRow` - */ - static new(): EntryRow - _init(config?: EntryRow.ConstructorProperties): void -} - -module EnumListItem { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface EnumListItem { - - // Own properties of Adw-1.Adw.EnumListItem - - /** - * The enum value name. - */ - readonly name: string | null - /** - * The enum value nick. - */ - readonly nick: string | null - /** - * The enum value. - */ - readonly value: number - - // Owm methods of Adw-1.Adw.EnumListItem - - /** - * Gets the enum value name. - * @returns the enum value name - */ - get_name(): string | null - /** - * Gets the enum value nick. - * @returns the enum value nick - */ - get_nick(): string | null - /** - * Gets the enum value. - * @returns the enum value - */ - get_value(): number - - // Class property signals of Adw-1.Adw.EnumListItem - - connect(sigName: "notify::name", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::nick", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::nick", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::nick", ...args: any[]): void - connect(sigName: "notify::value", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value", callback: (($obj: EnumListItem, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * `AdwEnumListItem` is the type of items in a [class`EnumListModel]`. - * @class - */ -class EnumListItem extends GObject.Object { - - // Own properties of Adw-1.Adw.EnumListItem - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.EnumListItem - - constructor(config?: EnumListItem.ConstructorProperties) - _init(config?: EnumListItem.ConstructorProperties): void -} - -module EnumListModel { - - // Constructor properties interface - - interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.EnumListModel - - /** - * The type of the enum represented by the model. - */ - enum_type?: GObject.GType | null - } - -} - -interface EnumListModel extends Gio.ListModel { - - // Own properties of Adw-1.Adw.EnumListModel - - /** - * The type of the enum represented by the model. - */ - readonly enum_type: GObject.GType - - // Owm methods of Adw-1.Adw.EnumListModel - - /** - * Finds the position of a given enum value in `self`. - * - * If the value is not found, `GTK_INVALID_LIST_POSITION` is returned. - * @param value an enum value - */ - find_position(value: number): number - /** - * Gets the type of the enum represented by `self`. - * @returns the enum type - */ - get_enum_type(): GObject.GType - - // Class property signals of Adw-1.Adw.EnumListModel - - connect(sigName: "notify::enum-type", callback: (($obj: EnumListModel, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enum-type", callback: (($obj: EnumListModel, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enum-type", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [iface`Gio`.ListModel] representing values of a given enum. - * - * `AdwEnumListModel` contains objects of type [class`EnumListItem]`. - * @class - */ -class EnumListModel extends GObject.Object { - - // Own properties of Adw-1.Adw.EnumListModel - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.EnumListModel - - constructor(config?: EnumListModel.ConstructorProperties) - /** - * Creates a new `AdwEnumListModel` for `enum_type`. - * @constructor - * @param enum_type the type of the enum to construct the model from - * @returns the newly created `AdwEnumListModel` - */ - constructor(enum_type: GObject.GType) - /** - * Creates a new `AdwEnumListModel` for `enum_type`. - * @constructor - * @param enum_type the type of the enum to construct the model from - * @returns the newly created `AdwEnumListModel` - */ - static new(enum_type: GObject.GType): EnumListModel - _init(config?: EnumListModel.ConstructorProperties): void -} - -module ExpanderRow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, PreferencesRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ExpanderRow - - /** - * Whether expansion is enabled. - */ - enable_expansion?: boolean | null - /** - * Whether the row is expanded. - */ - expanded?: boolean | null - /** - * The icon name for this row. - */ - icon_name?: string | null - /** - * Whether the switch enabling the expansion is visible. - */ - show_enable_switch?: boolean | null - /** - * The subtitle for this row. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - subtitle?: string | null - /** - * The number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - subtitle_lines?: number | null - /** - * The number of lines at the end of which the title label will be ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - title_lines?: number | null - } - -} - -interface ExpanderRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ExpanderRow - - /** - * Whether expansion is enabled. - */ - enable_expansion: boolean - /** - * Whether the row is expanded. - */ - expanded: boolean - /** - * The icon name for this row. - */ - icon_name: string | null - /** - * Whether the switch enabling the expansion is visible. - */ - show_enable_switch: boolean - /** - * The subtitle for this row. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - subtitle: string | null - /** - * The number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - subtitle_lines: number - /** - * The number of lines at the end of which the title label will be ellipsized. - * - * If the value is 0, the number of lines won't be limited. - */ - title_lines: number - - // Own fields of Adw-1.Adw.ExpanderRow - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.ExpanderRow - - /** - * Adds an action widget to `self`. - * @param widget a widget - */ - add_action(widget: Gtk.Widget): void - /** - * Adds a prefix widget to `self`. - * @param widget a widget - */ - add_prefix(widget: Gtk.Widget): void - /** - * Adds a widget to `self`. - * - * The widget will appear in the expanding list below `self`. - * @param child a widget - */ - add_row(child: Gtk.Widget): void - /** - * Adds an suffix widget to `self`. - * @param widget a widget - */ - add_suffix(widget: Gtk.Widget): void - /** - * Gets whether the expansion of `self` is enabled. - * @returns whether the expansion of @self is enabled. - */ - get_enable_expansion(): boolean - /** - * Gets whether `self` is expanded. - * @returns whether @self is expanded - */ - get_expanded(): boolean - /** - * Gets the icon name for `self`. - * @returns the icon name for @self - */ - get_icon_name(): string | null - /** - * Gets whether the switch enabling the expansion of `self` is visible. - * @returns whether the switch enabling the expansion is visible - */ - get_show_enable_switch(): boolean - /** - * Gets the subtitle for `self`. - * @returns the subtitle for @self - */ - get_subtitle(): string | null - /** - * Gets the number of lines at the end of which the subtitle label will be - * ellipsized. - * @returns the number of lines at the end of which the subtitle label will be ellipsized - */ - get_subtitle_lines(): boolean - /** - * Gets the number of lines at the end of which the title label will be - * ellipsized. - * @returns the number of lines at the end of which the title label will be ellipsized - */ - get_title_lines(): boolean - remove(child: Gtk.Widget): void - /** - * Sets whether the expansion of `self` is enabled. - * @param enable_expansion whether to enable the expansion - */ - set_enable_expansion(enable_expansion: boolean): void - /** - * Sets whether `self` is expanded. - * @param expanded whether to expand the row - */ - set_expanded(expanded: boolean): void - /** - * Sets the icon name for `self`. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets whether the switch enabling the expansion of `self` is visible. - * @param show_enable_switch whether to show the switch enabling the expansion - */ - set_show_enable_switch(show_enable_switch: boolean): void - /** - * Sets the subtitle for `self`. - * - * The subtitle is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - * @param subtitle the subtitle - */ - set_subtitle(subtitle: string | null): void - /** - * Sets the number of lines at the end of which the subtitle label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - * @param subtitle_lines the number of lines at the end of which the subtitle label will be ellipsized - */ - set_subtitle_lines(subtitle_lines: number): void - /** - * Sets the number of lines at the end of which the title label will be - * ellipsized. - * - * If the value is 0, the number of lines won't be limited. - * @param title_lines the number of lines at the end of which the title label will be ellipsized - */ - set_title_lines(title_lines: number): void - - // Class property signals of Adw-1.Adw.ExpanderRow - - connect(sigName: "notify::enable-expansion", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-expansion", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-expansion", ...args: any[]): void - connect(sigName: "notify::expanded", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::expanded", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::expanded", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::show-enable-switch", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-enable-switch", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-enable-switch", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::subtitle-lines", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-lines", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-lines", ...args: any[]): void - connect(sigName: "notify::title-lines", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-lines", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-lines", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: ExpanderRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] used to reveal widgets. - * - * - * - * expander-row - * - * - * The `AdwExpanderRow` widget allows the user to reveal or hide widgets below - * it. It also allows the user to enable the expansion of the row, allowing to - * disable all that the row contains. - * - * ## AdwExpanderRow as GtkBuildable - * - * The `AdwExpanderRow` implementation of the [iface`Gtk`.Buildable] interface - * supports adding a child as an suffix widget by specifying “suffix” as the - * “type” attribute of a element. - * - * It also supports adding it as a prefix widget by specifying “prefix” as the - * “type” attribute of a element. - * - * ## CSS nodes - * - * `AdwExpanderRow` has a main CSS node with name `row` and the `.expander` - * style class. It has the `.empty` style class when it contains no children. - * - * It contains the subnodes `row.header` for its main embedded row, - * `list.nested` for the list it can expand, and `image.expander-row-arrow` for - * its arrow. - * @class - */ -class ExpanderRow extends PreferencesRow { - - // Own properties of Adw-1.Adw.ExpanderRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ExpanderRow - - constructor(config?: ExpanderRow.ConstructorProperties) - /** - * Creates a new `AdwExpanderRow`. - * @constructor - * @returns the newly created `AdwExpanderRow` - */ - constructor() - /** - * Creates a new `AdwExpanderRow`. - * @constructor - * @returns the newly created `AdwExpanderRow` - */ - static new(): ExpanderRow - _init(config?: ExpanderRow.ConstructorProperties): void -} - -module Flap { - - // Constructor properties interface - - interface ConstructorProperties extends Swipeable.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Flap - - /** - * The content widget. - * - * It's always displayed when unfolded, and partially visible when folded. - */ - content?: Gtk.Widget | null - /** - * The flap widget. - * - * It's only visible when [property`Flap:`reveal-progress] is greater than 0. - */ - flap?: Gtk.Widget | null - /** - * The flap position. - * - * If it's set to `GTK_PACK_START`, the flap is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - */ - flap_position?: Gtk.PackType | null - /** - * The fold transition animation duration, in milliseconds. - */ - fold_duration?: number | null - /** - * The fold policy for the flap. - */ - fold_policy?: FlapFoldPolicy | null - /** - * Determines when the flap will fold. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, flap will only fold when - * the children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, - * it will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - */ - fold_threshold_policy?: FoldThresholdPolicy | null - /** - * Whether the flap is locked. - * - * If `FALSE`, folding when the flap is revealed automatically closes it, and - * unfolding it when the flap is not revealed opens it. If `TRUE`, - * [property`Flap:`reveal-flap] value never changes on its own. - */ - locked?: boolean | null - /** - * Whether the flap is modal. - * - * If `TRUE`, clicking the content widget while flap is revealed, as well as - * pressing the Esc key, will close the flap. If `FALSE`, clicks - * are passed through to the content widget. - */ - modal?: boolean | null - /** - * Whether the flap widget is revealed. - */ - reveal_flap?: boolean | null - /** - * The reveal animation spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - reveal_params?: SpringParams | null - /** - * The separator widget. - * - * It's displayed between content and flap when there's no shadow to display. - * When exactly it's visible depends on the [property`Flap:`transition-type] - * value. - */ - separator?: Gtk.Widget | null - /** - * Whether the flap can be closed with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - */ - swipe_to_close?: boolean | null - /** - * Whether the flap can be opened with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - */ - swipe_to_open?: boolean | null - /** - * the type of animation used for reveal and fold transitions. - * - * [property`Flap:`flap] is transparent by default, which means the content - * will be seen through it with `ADW_FLAP_TRANSITION_TYPE_OVER` transitions; - * add the [`.background`](style-classes.html#background) style class to it if - * this is unwanted. - */ - transition_type?: FlapTransitionType | null - } - -} - -interface Flap extends Swipeable, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.Flap - - /** - * The content widget. - * - * It's always displayed when unfolded, and partially visible when folded. - */ - content: Gtk.Widget - /** - * The flap widget. - * - * It's only visible when [property`Flap:`reveal-progress] is greater than 0. - */ - flap: Gtk.Widget - /** - * The flap position. - * - * If it's set to `GTK_PACK_START`, the flap is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - */ - flap_position: Gtk.PackType - /** - * The fold transition animation duration, in milliseconds. - */ - fold_duration: number - /** - * The fold policy for the flap. - */ - fold_policy: FlapFoldPolicy - /** - * Determines when the flap will fold. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, flap will only fold when - * the children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, - * it will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - */ - fold_threshold_policy: FoldThresholdPolicy - /** - * Whether the flap is currently folded. - * - * See [property`Flap:`fold-policy]. - */ - readonly folded: boolean - /** - * Whether the flap is locked. - * - * If `FALSE`, folding when the flap is revealed automatically closes it, and - * unfolding it when the flap is not revealed opens it. If `TRUE`, - * [property`Flap:`reveal-flap] value never changes on its own. - */ - locked: boolean - /** - * Whether the flap is modal. - * - * If `TRUE`, clicking the content widget while flap is revealed, as well as - * pressing the Esc key, will close the flap. If `FALSE`, clicks - * are passed through to the content widget. - */ - modal: boolean - /** - * Whether the flap widget is revealed. - */ - reveal_flap: boolean - /** - * The reveal animation spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - reveal_params: SpringParams - /** - * The current reveal transition progress. - * - * 0 means fully hidden, 1 means fully revealed. - * - * See [property`Flap:`reveal-flap]. - */ - readonly reveal_progress: number - /** - * The separator widget. - * - * It's displayed between content and flap when there's no shadow to display. - * When exactly it's visible depends on the [property`Flap:`transition-type] - * value. - */ - separator: Gtk.Widget - /** - * Whether the flap can be closed with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - */ - swipe_to_close: boolean - /** - * Whether the flap can be opened with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - */ - swipe_to_open: boolean - /** - * the type of animation used for reveal and fold transitions. - * - * [property`Flap:`flap] is transparent by default, which means the content - * will be seen through it with `ADW_FLAP_TRANSITION_TYPE_OVER` transitions; - * add the [`.background`](style-classes.html#background) style class to it if - * this is unwanted. - */ - transition_type: FlapTransitionType - - // Owm methods of Adw-1.Adw.Flap - - /** - * Gets the content widget for `self`. - * @returns the content widget for @self - */ - get_content(): Gtk.Widget | null - /** - * Gets the flap widget for `self`. - * @returns the flap widget for @self - */ - get_flap(): Gtk.Widget | null - /** - * Gets the flap position for `self`. - * @returns the flap position for @self - */ - get_flap_position(): Gtk.PackType - /** - * Gets the fold transition animation duration for `self,` in milliseconds. - * @returns the fold transition duration - */ - get_fold_duration(): number - /** - * Gets the fold policy for `self`. - * @returns the fold policy for @self - */ - get_fold_policy(): FlapFoldPolicy - /** - * Gets the fold threshold policy for `self`. - */ - get_fold_threshold_policy(): FoldThresholdPolicy - /** - * Gets whether `self` is currently folded. - * - * See [property`Flap:`fold-policy]. - * @returns `TRUE` if @self is currently folded - */ - get_folded(): boolean - /** - * Gets whether `self` is locked. - * @returns `TRUE` if @self is locked - */ - get_locked(): boolean - /** - * Gets whether `self` is modal. - * @returns `TRUE` if @self is modal - */ - get_modal(): boolean - /** - * Gets whether the flap widget is revealed for `self`. - * @returns `TRUE` if the flap widget is revealed - */ - get_reveal_flap(): boolean - /** - * Gets the reveal animation spring parameters for `self`. - * @returns the reveal animation parameters - */ - get_reveal_params(): SpringParams - /** - * Gets the current reveal progress for `self`. - * - * 0 means fully hidden, 1 means fully revealed. - * - * See [property`Flap:`reveal-flap]. - * @returns the current reveal progress for @self - */ - get_reveal_progress(): number - /** - * Gets the separator widget for `self`. - * @returns the separator widget for @self - */ - get_separator(): Gtk.Widget | null - /** - * Gets whether `self` can be closed with a swipe gesture. - * @returns `TRUE` if @self can be closed with a swipe gesture - */ - get_swipe_to_close(): boolean - /** - * Gets whether `self` can be opened with a swipe gesture. - * @returns `TRUE` if @self can be opened with a swipe gesture - */ - get_swipe_to_open(): boolean - /** - * Gets the type of animation used for reveal and fold transitions in `self`. - * @returns the current transition type of @self - */ - get_transition_type(): FlapTransitionType - /** - * Sets the content widget for `self`. - * - * It's always displayed when unfolded, and partially visible when folded. - * @param content the content widget - */ - set_content(content: Gtk.Widget | null): void - /** - * Sets the flap widget for `self`. - * - * It's only visible when [property`Flap:`reveal-progress] is greater than 0. - * @param flap the flap widget - */ - set_flap(flap: Gtk.Widget | null): void - /** - * Sets the flap position for `self`. - * - * If it's set to `GTK_PACK_START`, the flap is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - * @param position the new value - */ - set_flap_position(position: Gtk.PackType): void - /** - * Sets the fold transition animation duration for `self,` in milliseconds. - * @param duration the new duration, in milliseconds - */ - set_fold_duration(duration: number): void - /** - * Sets the fold policy for `self`. - * @param policy the fold policy - */ - set_fold_policy(policy: FlapFoldPolicy): void - /** - * Sets the fold threshold policy for `self`. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, flap will only fold when the - * children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, it - * will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - * @param policy the policy to use - */ - set_fold_threshold_policy(policy: FoldThresholdPolicy): void - /** - * Sets whether `self` is locked. - * - * If `FALSE`, folding when the flap is revealed automatically closes it, and - * unfolding it when the flap is not revealed opens it. If `TRUE`, - * [property`Flap:`reveal-flap] value never changes on its own. - * @param locked the new value - */ - set_locked(locked: boolean): void - /** - * Sets whether `self` is modal. - * - * If `TRUE`, clicking the content widget while flap is revealed, as well as - * pressing the Esc key, will close the flap. If `FALSE`, clicks are - * passed through to the content widget. - * @param modal whether `self` is modal - */ - set_modal(modal: boolean): void - /** - * Sets whether the flap widget is revealed for `self`. - * @param reveal_flap whether to reveal the flap widget - */ - set_reveal_flap(reveal_flap: boolean): void - /** - * Sets the reveal animation spring parameters for `self`. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - * @param params the new parameters - */ - set_reveal_params(params: SpringParams): void - /** - * Sets the separator widget for `self`. - * - * It's displayed between content and flap when there's no shadow to display. - * When exactly it's visible depends on the [property`Flap:`transition-type] - * value. - * @param separator the separator widget - */ - set_separator(separator: Gtk.Widget | null): void - /** - * Sets whether `self` can be closed with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - * @param swipe_to_close whether `self` can be closed with a swipe gesture - */ - set_swipe_to_close(swipe_to_close: boolean): void - /** - * Sets whether `self` can be opened with a swipe gesture. - * - * The area that can be swiped depends on the [property`Flap:`transition-type] - * value. - * @param swipe_to_open whether `self` can be opened with a swipe gesture - */ - set_swipe_to_open(swipe_to_open: boolean): void - /** - * Sets the type of animation used for reveal and fold transitions in `self`. - * - * [property`Flap:`flap] is transparent by default, which means the content will - * be seen through it with `ADW_FLAP_TRANSITION_TYPE_OVER` transitions; add the - * [`.background`](style-classes.html#background) style class to it if this is - * unwanted. - * @param transition_type the new transition type - */ - set_transition_type(transition_type: FlapTransitionType): void - - // Class property signals of Adw-1.Adw.Flap - - connect(sigName: "notify::content", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::flap", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::flap", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::flap", ...args: any[]): void - connect(sigName: "notify::flap-position", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::flap-position", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::flap-position", ...args: any[]): void - connect(sigName: "notify::fold-duration", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fold-duration", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fold-duration", ...args: any[]): void - connect(sigName: "notify::fold-policy", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fold-policy", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fold-policy", ...args: any[]): void - connect(sigName: "notify::fold-threshold-policy", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fold-threshold-policy", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fold-threshold-policy", ...args: any[]): void - connect(sigName: "notify::folded", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::folded", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::folded", ...args: any[]): void - connect(sigName: "notify::locked", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::locked", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::locked", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::reveal-flap", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-flap", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-flap", ...args: any[]): void - connect(sigName: "notify::reveal-params", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-params", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-params", ...args: any[]): void - connect(sigName: "notify::reveal-progress", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-progress", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-progress", ...args: any[]): void - connect(sigName: "notify::separator", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::separator", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::separator", ...args: any[]): void - connect(sigName: "notify::swipe-to-close", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::swipe-to-close", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::swipe-to-close", ...args: any[]): void - connect(sigName: "notify::swipe-to-open", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::swipe-to-open", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::swipe-to-open", ...args: any[]): void - connect(sigName: "notify::transition-type", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transition-type", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transition-type", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: Flap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An adaptive container acting like a box or an overlay. - * - * - * - * flap-wide - * - * - * - * flap-narrow - * - * - * The `AdwFlap` widget can display its children like a [class`Gtk`.Box] does or - * like a [class`Gtk`.Overlay] does, according to the - * [property`Flap:`fold-policy] value. - * - * `AdwFlap` has at most three children: [property`Flap:`content], - * [property`Flap:`flap] and [property`Flap:`separator]. Content is the primary - * child, flap is displayed next to it when unfolded, or overlays it when - * folded. Flap can be shown or hidden by changing the - * [property`Flap:`reveal-flap] value, as well as via swipe gestures if - * [property`Flap:`swipe-to-open] and/or [property`Flap:`swipe-to-close] are set - * to `TRUE`. - * - * Optionally, a separator can be provided, which would be displayed between - * the content and the flap when there's no shadow to separate them, depending - * on the transition type. - * - * [property`Flap:`flap] is transparent by default; add the - * [`.background`](style-classes.html#background) style class to it if this is - * unwanted. - * - * If [property`Flap:`modal] is set to `TRUE`, content becomes completely - * inaccessible when the flap is revealed while folded. - * - * The position of the flap and separator children relative to the content is - * determined by orientation, as well as the [property`Flap:`flap-position] - * value. - * - * Folding the flap will automatically hide the flap widget, and unfolding it - * will automatically reveal it. If this behavior is not desired, the - * [property`Flap:`locked] property can be used to override it. - * - * Common use cases include sidebars, header bars that need to be able to - * overlap the window content (for example, in fullscreen mode) and bottom - * sheets. - * - * ## AdwFlap as GtkBuildable - * - * The `AdwFlap` implementation of the [iface`Gtk`.Buildable] interface supports - * setting the flap child by specifying “flap” as the “type” attribute of a - * `` element, and separator by specifying “separator”. Specifying - * “content” child type or omitting it results in setting the content child. - * - * ## CSS nodes - * - * `AdwFlap` has a single CSS node with name `flap`. The node will get the style - * classes `.folded` when it is folded, and `.unfolded` when it's not. - * @class - */ -class Flap extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Flap - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Flap - - constructor(config?: Flap.ConstructorProperties) - /** - * Creates a new `AdwFlap`. - * @constructor - * @returns the newly created `AdwFlap` - */ - constructor() - /** - * Creates a new `AdwFlap`. - * @constructor - * @returns the newly created `AdwFlap` - */ - static new(): Flap - _init(config?: Flap.ConstructorProperties): void -} - -module HeaderBar { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.HeaderBar - - /** - * The policy for aligning the center widget. - */ - centering_policy?: CenteringPolicy | null - /** - * The decoration layout for buttons. - * - * If this property is not set, the - * [property`Gtk`.Settings:gtk-decoration-layout] setting is used. - * - * The format of the string is button names, separated by commas. A colon - * separates the buttons that should appear at the start from those at the - * end. Recognized button names are minimize, maximize, close and icon (the - * window icon). - * - * For example, “icon:minimize,maximize,close” specifies an icon at the start, - * and minimize, maximize and close buttons at the end. - */ - decoration_layout?: string | null - /** - * Whether the header bar can show the back button. - * - * The back button will never be shown unless the header bar is placed inside an - * [class`NavigationView]`. Usually, there is no reason to set this to `FALSE`. - */ - show_back_button?: boolean | null - /** - * Whether to show title buttons at the end of the header bar. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be - * closed). - */ - show_end_title_buttons?: boolean | null - /** - * Whether to show title buttons at the start of the header bar. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be - * closed). - */ - show_start_title_buttons?: boolean | null - /** - * Whether the title widget should be shown. - */ - show_title?: boolean | null - /** - * The title widget to display. - * - * When set to `NULL`, the header bar will display the title of the window it - * is contained in. - * - * To use a different title, use [class`WindowTitle]`: - * - * ```xml - * - * - * - * Title - * - * - * - * ``` - */ - title_widget?: Gtk.Widget | null - } - -} - -interface HeaderBar extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.HeaderBar - - /** - * The policy for aligning the center widget. - */ - centering_policy: CenteringPolicy - /** - * The decoration layout for buttons. - * - * If this property is not set, the - * [property`Gtk`.Settings:gtk-decoration-layout] setting is used. - * - * The format of the string is button names, separated by commas. A colon - * separates the buttons that should appear at the start from those at the - * end. Recognized button names are minimize, maximize, close and icon (the - * window icon). - * - * For example, “icon:minimize,maximize,close” specifies an icon at the start, - * and minimize, maximize and close buttons at the end. - */ - decoration_layout: string | null - /** - * Whether the header bar can show the back button. - * - * The back button will never be shown unless the header bar is placed inside an - * [class`NavigationView]`. Usually, there is no reason to set this to `FALSE`. - */ - show_back_button: boolean - /** - * Whether to show title buttons at the end of the header bar. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be - * closed). - */ - show_end_title_buttons: boolean - /** - * Whether to show title buttons at the start of the header bar. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be - * closed). - */ - show_start_title_buttons: boolean - /** - * Whether the title widget should be shown. - */ - show_title: boolean - /** - * The title widget to display. - * - * When set to `NULL`, the header bar will display the title of the window it - * is contained in. - * - * To use a different title, use [class`WindowTitle]`: - * - * ```xml - * - * - * - * Title - * - * - * - * ``` - */ - title_widget: Gtk.Widget - - // Owm methods of Adw-1.Adw.HeaderBar - - /** - * Gets the policy for aligning the center widget. - * @returns the centering policy - */ - get_centering_policy(): CenteringPolicy - /** - * Gets the decoration layout for `self`. - * @returns the decoration layout - */ - get_decoration_layout(): string | null - /** - * Gets whether `self` can show the back button. - * @returns whether to show the back button - */ - get_show_back_button(): boolean - /** - * Gets whether to show title buttons at the end of `self`. - * @returns `TRUE` if title buttons at the end are shown - */ - get_show_end_title_buttons(): boolean - /** - * Gets whether to show title buttons at the start of `self`. - * @returns `TRUE` if title buttons at the start are shown - */ - get_show_start_title_buttons(): boolean - /** - * Gets whether the title widget should be shown. - * @returns whether the title widget should be shown. - */ - get_show_title(): boolean - /** - * Gets the title widget widget of `self`. - * @returns the title widget - */ - get_title_widget(): Gtk.Widget | null - /** - * Adds `child` to `self,` packed with reference to the end of `self`. - * @param child the widget to be added to `self` - */ - pack_end(child: Gtk.Widget): void - /** - * Adds `child` to `self,` packed with reference to the start of the `self`. - * @param child the widget to be added to `self` - */ - pack_start(child: Gtk.Widget): void - /** - * Removes a child from `self`. - * - * The child must have been added with [method`HeaderBar`.pack_start], - * [method`HeaderBar`.pack_end] or [property`HeaderBar:`title-widget]. - * @param child the child to remove - */ - remove(child: Gtk.Widget): void - /** - * Sets the policy for aligning the center widget. - * @param centering_policy the centering policy - */ - set_centering_policy(centering_policy: CenteringPolicy): void - /** - * Sets the decoration layout for `self`. - * - * If this property is not set, the - * [property`Gtk`.Settings:gtk-decoration-layout] setting is used. - * - * The format of the string is button names, separated by commas. A colon - * separates the buttons that should appear at the start from those at the end. - * Recognized button names are minimize, maximize, close and icon (the window - * icon). - * - * For example, “icon:minimize,maximize,close” specifies an icon at the start, - * and minimize, maximize and close buttons at the end. - * @param layout a decoration layout - */ - set_decoration_layout(layout: string | null): void - /** - * Sets whether `self` can show the back button. - * - * The back button will never be shown unless the header bar is placed inside an - * [class`NavigationView]`. Usually, there is no reason to set it to `FALSE`. - * @param show_back_button whether to show the back button - */ - set_show_back_button(show_back_button: boolean): void - /** - * Sets whether to show title buttons at the end of `self`. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be closed). - * @param setting `TRUE` to show standard title buttons - */ - set_show_end_title_buttons(setting: boolean): void - /** - * Sets whether to show title buttons at the start of `self`. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - * - * Which buttons are actually shown and where is determined by the - * [property`HeaderBar:`decoration-layout] property, and by the state of the - * window (e.g. a close button will not be shown if the window can't be closed). - * @param setting `TRUE` to show standard title buttons - */ - set_show_start_title_buttons(setting: boolean): void - /** - * Sets whether the title widget should be shown. - * @param show_title whether the title widget is visible - */ - set_show_title(show_title: boolean): void - /** - * Sets the title widget for `self`. - * - * When set to `NULL`, the header bar will display the title of the window it - * is contained in. - * - * To use a different title, use [class`WindowTitle]`: - * - * ```xml - * - * - * - * Title - * - * - * - * ``` - * @param title_widget a widget to use for a title - */ - set_title_widget(title_widget: Gtk.Widget | null): void - - // Class property signals of Adw-1.Adw.HeaderBar - - connect(sigName: "notify::centering-policy", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::centering-policy", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::centering-policy", ...args: any[]): void - connect(sigName: "notify::decoration-layout", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decoration-layout", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decoration-layout", ...args: any[]): void - connect(sigName: "notify::show-back-button", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-back-button", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-back-button", ...args: any[]): void - connect(sigName: "notify::show-end-title-buttons", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-end-title-buttons", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-end-title-buttons", ...args: any[]): void - connect(sigName: "notify::show-start-title-buttons", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-start-title-buttons", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-start-title-buttons", ...args: any[]): void - connect(sigName: "notify::show-title", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-title", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-title", ...args: any[]): void - connect(sigName: "notify::title-widget", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-widget", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-widget", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: HeaderBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A title bar widget. - * - * - * - * header-bar - * - * - * `AdwHeaderBar` is similar to [class`Gtk`.HeaderBar], but provides additional - * features compared to it. Refer to `GtkHeaderBar` for details. It is typically - * used as a top bar within [class`ToolbarView]`. - * - * ## Navigation View Integration - * - * When placed inside an [class`NavigationPage]`, `AdwHeaderBar` will display the - * page title instead of window title. - * - * When used together with [class`NavigationView]` or [class`NavigationSplitView]`, - * it will also display a back button that can be used to go back to the previous - * page. The button also has a context menu, allowing to pop multiple pages at - * once, potentially across multiple navigation views. In rare scenarios, set - * [property`HeaderBar:`show-back-button] to `FALSE` to disable the back button - * if it's unwanted (e.g. in an extra header bar on the same page). - * - * ## Split View Integration - * - * When placed inside `AdwNavigationSplitView` or `AdwOverlaySplitView`, - * `AdwHeaderBar` will automatically hide the title buttons other than at the - * edges of the window. - * - * ## Centering Policy - * - * [property`HeaderBar:`centering-policy] allows to enforce strict centering of - * the title widget. This can be useful for entries inside [class`Clamp]`. - * - * ## Title Buttons - * - * Unlike `GtkHeaderBar`, `AdwHeaderBar` allows to toggle title button - * visibility for each side individually, using the - * [property`HeaderBar:`show-start-title-buttons] and - * [property`HeaderBar:`show-end-title-buttons] properties. - * - * ## CSS nodes - * - * ``` - * headerbar - * ╰── windowhandle - * ╰── box - * ├── widget - * │ ╰── box.start - * │ ├── windowcontrols.start - * │ ├── widget - * │ │ ╰── [button.back] - * │ ╰── [other children] - * ├── widget - * │ ╰── [Title Widget] - * ╰── widget - * ╰── box.end - * ├── [other children] - * ╰── windowcontrols.end - * ``` - * - * `AdwHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle` - * subnode, which contains a `box` subnode, which contains three `widget` - * subnodes at the start, center and end of the header bar. The start and end - * subnotes contain a `box` subnode with the `.start` and `.end` style classes - * respectively, and the center node contains a node that represents the title. - * - * Each of the boxes contains a `windowcontrols` subnode, see - * [class`Gtk`.WindowControls] for details, as well as other children. - * - * When [property`HeaderBar:`show-back-button] is `TRUE`, the start box also - * contains a node with the name `widget` that contains a node with the name - * `button` and `.back` style class. - * - * ## Accessibility - * - * `AdwHeaderBar` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class HeaderBar extends Gtk.Widget { - - // Own properties of Adw-1.Adw.HeaderBar - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.HeaderBar - - constructor(config?: HeaderBar.ConstructorProperties) - /** - * Creates a new `AdwHeaderBar`. - * @constructor - * @returns the newly created `AdwHeaderBar`. - */ - constructor() - /** - * Creates a new `AdwHeaderBar`. - * @constructor - * @returns the newly created `AdwHeaderBar`. - */ - static new(): HeaderBar - _init(config?: HeaderBar.ConstructorProperties): void -} - -module Leaflet { - - // Constructor properties interface - - interface ConstructorProperties extends Swipeable.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Leaflet - - /** - * Whether gestures and shortcuts for navigating backward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` - * can be navigated to. - */ - can_navigate_back?: boolean | null - /** - * Whether gestures and shortcuts for navigating forward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` - * can be navigated to. - */ - can_navigate_forward?: boolean | null - /** - * Whether or not the leaflet can unfold. - */ - can_unfold?: boolean | null - /** - * The child transition spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - child_transition_params?: SpringParams | null - /** - * Determines when the leaflet will fold. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only fold when the - * children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, it - * will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - */ - fold_threshold_policy?: FoldThresholdPolicy | null - /** - * Whether the leaflet allocates the same size for all children when folded. - * - * If set to `FALSE`, different children can have different size along the - * opposite orientation. - */ - homogeneous?: boolean | null - /** - * The mode transition animation duration, in milliseconds. - */ - mode_transition_duration?: number | null - /** - * The type of animation used for transitions between modes and children. - * - * The transition type can be changed without problems at runtime, so it is - * possible to change the animation based on the mode or child that is about - * to become current. - */ - transition_type?: LeafletTransitionType | null - /** - * The widget currently visible when the leaflet is folded. - * - * The transition is determined by [property`Leaflet:`transition-type] and - * [property`Leaflet:`child-transition-params]. The transition can be cancelled - * by the user, in which case visible child will change back to the previously - * visible child. - */ - visible_child?: Gtk.Widget | null - /** - * The name of the widget currently visible when the leaflet is folded. - * - * See [property`Leaflet:`visible-child]. - */ - visible_child_name?: string | null - } - -} - -interface Leaflet extends Swipeable, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.Leaflet - - /** - * Whether gestures and shortcuts for navigating backward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` - * can be navigated to. - */ - can_navigate_back: boolean - /** - * Whether gestures and shortcuts for navigating forward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` - * can be navigated to. - */ - can_navigate_forward: boolean - /** - * Whether or not the leaflet can unfold. - */ - can_unfold: boolean - /** - * The child transition spring parameters. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - */ - child_transition_params: SpringParams - /** - * Whether a child transition is currently running. - */ - readonly child_transition_running: boolean - /** - * Determines when the leaflet will fold. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only fold when the - * children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, it - * will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - */ - fold_threshold_policy: FoldThresholdPolicy - /** - * Whether the leaflet is folded. - * - * The leaflet will be folded if the size allocated to it is smaller than the - * sum of the minimum or natural sizes of the children (see - * [property`Leaflet:`fold-threshold-policy]), it will be unfolded otherwise. - */ - readonly folded: boolean - /** - * Whether the leaflet allocates the same size for all children when folded. - * - * If set to `FALSE`, different children can have different size along the - * opposite orientation. - */ - homogeneous: boolean - /** - * The mode transition animation duration, in milliseconds. - */ - mode_transition_duration: number - /** - * A selection model with the leaflet's pages. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the visible - * page. - */ - readonly pages: Gtk.SelectionModel - /** - * The type of animation used for transitions between modes and children. - * - * The transition type can be changed without problems at runtime, so it is - * possible to change the animation based on the mode or child that is about - * to become current. - */ - transition_type: LeafletTransitionType - /** - * The widget currently visible when the leaflet is folded. - * - * The transition is determined by [property`Leaflet:`transition-type] and - * [property`Leaflet:`child-transition-params]. The transition can be cancelled - * by the user, in which case visible child will change back to the previously - * visible child. - */ - visible_child: Gtk.Widget - /** - * The name of the widget currently visible when the leaflet is folded. - * - * See [property`Leaflet:`visible-child]. - */ - visible_child_name: string | null - - // Owm methods of Adw-1.Adw.Leaflet - - /** - * Adds a child to `self`. - * @param child the widget to add - * @returns the [class@LeafletPage] for @child - */ - append(child: Gtk.Widget): LeafletPage - /** - * Finds the previous or next navigatable child. - * - * This will be the same child [method`Leaflet`.navigate] or swipe gestures will - * navigate to. - * - * If there's no child to navigate to, `NULL` will be returned instead. - * - * See [property`LeafletPage:`navigatable]. - * @param direction the direction - * @returns the previous or next child - */ - get_adjacent_child(direction: NavigationDirection): Gtk.Widget | null - /** - * Gets whether gestures and shortcuts for navigating backward are enabled. - * @returns Whether gestures and shortcuts are enabled. - */ - get_can_navigate_back(): boolean - /** - * Gets whether gestures and shortcuts for navigating forward are enabled. - * @returns Whether gestures and shortcuts are enabled. - */ - get_can_navigate_forward(): boolean - /** - * Gets whether `self` can unfold. - * @returns whether @self can unfold - */ - get_can_unfold(): boolean - /** - * Finds the child of `self` with `name`. - * - * Returns `NULL` if there is no child with this name. - * - * See [property`LeafletPage:`name]. - * @param name the name of the child to find - * @returns the requested child of @self - */ - get_child_by_name(name: string | null): Gtk.Widget | null - /** - * Gets the child transition spring parameters for `self`. - * @returns the child transition parameters - */ - get_child_transition_params(): SpringParams - /** - * Gets whether a child transition is currently running for `self`. - * @returns whether a transition is currently running - */ - get_child_transition_running(): boolean - /** - * Gets the fold threshold policy for `self`. - */ - get_fold_threshold_policy(): FoldThresholdPolicy - /** - * Gets whether `self` is folded. - * - * The leaflet will be folded if the size allocated to it is smaller than the - * sum of the minimum or natural sizes of the children (see - * [property`Leaflet:`fold-threshold-policy]), it will be unfolded otherwise. - * @returns whether @self is folded. - */ - get_folded(): boolean - /** - * Gets whether `self` is homogeneous. - * @returns whether @self is homogeneous - */ - get_homogeneous(): boolean - /** - * Gets the mode transition animation duration for `self`. - * @returns the mode transition duration, in milliseconds. - */ - get_mode_transition_duration(): number - /** - * Returns the [class`LeafletPage]` object for `child`. - * @param child a child of `self` - * @returns the page object for @child - */ - get_page(child: Gtk.Widget): LeafletPage - /** - * Returns a [iface`Gio`.ListModel] that contains the pages of the leaflet. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the visible - * page. - * @returns a `GtkSelectionModel` for the leaflet's children - */ - get_pages(): Gtk.SelectionModel - /** - * Gets the type of animation used for transitions between modes and children. - * @returns the current transition type of @self - */ - get_transition_type(): LeafletTransitionType - /** - * Gets the widget currently visible when the leaflet is folded. - * @returns the visible child - */ - get_visible_child(): Gtk.Widget | null - /** - * Gets the name of the currently visible child widget. - * @returns the name of the visible child - */ - get_visible_child_name(): string | null - /** - * Inserts `child` in the position after `sibling` in the list of children. - * - * If `sibling` is `NULL`, inserts `child` at the first position. - * @param child the widget to insert - * @param sibling the sibling after which to insert `child` - * @returns the [class@LeafletPage] for @child - */ - insert_child_after(child: Gtk.Widget, sibling: Gtk.Widget | null): LeafletPage - /** - * Navigates to the previous or next child. - * - * The child must have the [property`LeafletPage:`navigatable] property set to - * `TRUE`, otherwise it will be skipped. - * - * This will be the same child as returned by - * [method`Leaflet`.get_adjacent_child] or navigated to via swipe gestures. - * @param direction the direction - * @returns whether the visible child was changed - */ - navigate(direction: NavigationDirection): boolean - /** - * Inserts `child` at the first position in `self`. - * @param child the widget to prepend - * @returns the [class@LeafletPage] for @child - */ - prepend(child: Gtk.Widget): LeafletPage - /** - * Removes a child widget from `self`. - * @param child the child to remove - */ - remove(child: Gtk.Widget): void - /** - * Moves `child` to the position after `sibling` in the list of children. - * - * If `sibling` is `NULL`, moves `child` to the first position. - * @param child the widget to move, must be a child of `self` - * @param sibling the sibling to move `child` after - */ - reorder_child_after(child: Gtk.Widget, sibling: Gtk.Widget | null): void - /** - * Sets whether gestures and shortcuts for navigating backward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` can - * be navigated to. - * @param can_navigate_back the new value - */ - set_can_navigate_back(can_navigate_back: boolean): void - /** - * Sets whether gestures and shortcuts for navigating forward are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back/forward mouse buttons - * - * The keyboard back/forward keys are also supported, as well as the - * Alt+ shortcut for horizontal orientation, or - * Alt+ for vertical orientation. - * - * If the orientation is horizontal, for right-to-left locales, gestures and - * shortcuts are reversed. - * - * Only children that have [property`LeafletPage:`navigatable] set to `TRUE` can - * be navigated to. - * @param can_navigate_forward the new value - */ - set_can_navigate_forward(can_navigate_forward: boolean): void - /** - * Sets whether `self` can unfold. - * @param can_unfold whether `self` can unfold - */ - set_can_unfold(can_unfold: boolean): void - /** - * Sets the child transition spring parameters for `self`. - * - * The default value is equivalent to: - * - * ```c - * adw_spring_params_new (1, 0.5, 500) - * ``` - * @param params the new parameters - */ - set_child_transition_params(params: SpringParams): void - /** - * Sets the fold threshold policy for `self`. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only fold when the - * children cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, it - * will fold as soon as children don't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately folding. - * @param policy the policy to use - */ - set_fold_threshold_policy(policy: FoldThresholdPolicy): void - /** - * Sets `self` to be homogeneous or not. - * - * If set to `FALSE`, different children can have different size along the - * opposite orientation. - * @param homogeneous whether to make `self` homogeneous - */ - set_homogeneous(homogeneous: boolean): void - /** - * Sets the mode transition animation duration for `self`. - * @param duration the new duration, in milliseconds - */ - set_mode_transition_duration(duration: number): void - /** - * Sets the type of animation used for transitions between modes and children. - * - * The transition type can be changed without problems at runtime, so it is - * possible to change the animation based on the mode or child that is about to - * become current. - * @param transition the new transition type - */ - set_transition_type(transition: LeafletTransitionType): void - /** - * Sets the widget currently visible when the leaflet is folded. - * - * The transition is determined by [property`Leaflet:`transition-type] and - * [property`Leaflet:`child-transition-params]. The transition can be cancelled - * by the user, in which case visible child will change back to the previously - * visible child. - * @param visible_child the new child - */ - set_visible_child(visible_child: Gtk.Widget): void - /** - * Makes the child with the name `name` visible. - * - * See [property`Leaflet:`visible-child]. - * @param name the name of a child - */ - set_visible_child_name(name: string | null): void - - // Class property signals of Adw-1.Adw.Leaflet - - connect(sigName: "notify::can-navigate-back", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-navigate-back", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-navigate-back", ...args: any[]): void - connect(sigName: "notify::can-navigate-forward", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-navigate-forward", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-navigate-forward", ...args: any[]): void - connect(sigName: "notify::can-unfold", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-unfold", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-unfold", ...args: any[]): void - connect(sigName: "notify::child-transition-params", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transition-params", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transition-params", ...args: any[]): void - connect(sigName: "notify::child-transition-running", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transition-running", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transition-running", ...args: any[]): void - connect(sigName: "notify::fold-threshold-policy", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fold-threshold-policy", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fold-threshold-policy", ...args: any[]): void - connect(sigName: "notify::folded", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::folded", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::folded", ...args: any[]): void - connect(sigName: "notify::homogeneous", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::homogeneous", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::homogeneous", ...args: any[]): void - connect(sigName: "notify::mode-transition-duration", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mode-transition-duration", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mode-transition-duration", ...args: any[]): void - connect(sigName: "notify::pages", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pages", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pages", ...args: any[]): void - connect(sigName: "notify::transition-type", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transition-type", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transition-type", ...args: any[]): void - connect(sigName: "notify::visible-child", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-child", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-child", ...args: any[]): void - connect(sigName: "notify::visible-child-name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-child-name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-child-name", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: Leaflet, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An adaptive container acting like a box or a stack. - * - * - * - * leaflet-wide - * - * - * - * leaflet-narrow - * - * - * The `AdwLeaflet` widget can display its children like a [class`Gtk`.Box] does - * or like a [class`Gtk`.Stack] does, adapting to size changes by switching - * between the two modes. - * - * When there is enough space the children are displayed side by side, otherwise - * only one is displayed and the leaflet is said to be “folded”. - * The threshold is dictated by the preferred minimum sizes of the children. - * When a leaflet is folded, the children can be navigated using swipe gestures. - * - * The “over” and “under” transition types stack the children one on top of the - * other, while the “slide” transition puts the children side by side. While - * navigating to a child on the side or below can be performed by swiping the - * current child away, navigating to an upper child requires dragging it from - * the edge where it resides. This doesn't affect non-dragging swipes. - * - * ## CSS nodes - * - * `AdwLeaflet` has a single CSS node with name `leaflet`. The node will get the - * style classes `.folded` when it is folded, `.unfolded` when it's not, or none - * if it hasn't computed its fold yet. - * @class - */ -class Leaflet extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Leaflet - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Leaflet - - constructor(config?: Leaflet.ConstructorProperties) - /** - * Creates a new `AdwLeaflet`. - * @constructor - * @returns the new created `AdwLeaflet` - */ - constructor() - /** - * Creates a new `AdwLeaflet`. - * @constructor - * @returns the new created `AdwLeaflet` - */ - static new(): Leaflet - _init(config?: Leaflet.ConstructorProperties): void -} - -module LeafletPage { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.LeafletPage - - /** - * The leaflet child to which the page belongs. - */ - child?: Gtk.Widget | null - /** - * The name of the child page. - */ - name?: string | null - /** - * Whether the child can be navigated to when folded. - * - * If `FALSE`, the child will be ignored by - * [method`Leaflet`.get_adjacent_child], [method`Leaflet`.navigate], and swipe - * gestures. - * - * This can be used used to prevent switching to widgets like separators. - */ - navigatable?: boolean | null - } - -} - -interface LeafletPage { - - // Own properties of Adw-1.Adw.LeafletPage - - /** - * The leaflet child to which the page belongs. - */ - readonly child: Gtk.Widget - /** - * The name of the child page. - */ - name: string | null - /** - * Whether the child can be navigated to when folded. - * - * If `FALSE`, the child will be ignored by - * [method`Leaflet`.get_adjacent_child], [method`Leaflet`.navigate], and swipe - * gestures. - * - * This can be used used to prevent switching to widgets like separators. - */ - navigatable: boolean - - // Owm methods of Adw-1.Adw.LeafletPage - - /** - * Gets the leaflet child to which `self` belongs. - * @returns the child to which @self belongs - */ - get_child(): Gtk.Widget - /** - * Gets the name of `self`. - * @returns the name of @self. - */ - get_name(): string | null - /** - * Gets whether the child can be navigated to when folded. - * @returns whether @self can be navigated to when folded - */ - get_navigatable(): boolean - /** - * Sets the name of the `self`. - * @param name the new value to set - */ - set_name(name: string | null): void - /** - * Sets whether `self` can be navigated to when folded. - * - * If `FALSE`, the child will be ignored by [method`Leaflet`.get_adjacent_child], - * [method`Leaflet`.navigate], and swipe gestures. - * - * This can be used used to prevent switching to widgets like separators. - * @param navigatable whether `self` can be navigated to when folded - */ - set_navigatable(navigatable: boolean): void - - // Class property signals of Adw-1.Adw.LeafletPage - - connect(sigName: "notify::child", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::navigatable", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::navigatable", callback: (($obj: LeafletPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::navigatable", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An auxiliary class used by [class`Leaflet]`. - * @class - */ -class LeafletPage extends GObject.Object { - - // Own properties of Adw-1.Adw.LeafletPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.LeafletPage - - constructor(config?: LeafletPage.ConstructorProperties) - _init(config?: LeafletPage.ConstructorProperties): void -} - -module MessageDialog { - - // Signal callback interfaces - - /** - * Signal callback interface for `response` - */ - interface ResponseSignalCallback { - ($obj: MessageDialog, response: string | null): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Native.ConstructorProperties, Gtk.Root.ConstructorProperties, Gtk.ShortcutManager.ConstructorProperties, Gtk.Window.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.MessageDialog - - /** - * The body text of the dialog. - */ - body?: string | null - /** - * Whether the body text includes Pango markup. - * - * See [func`Pango`.parse_markup]. - */ - body_use_markup?: boolean | null - /** - * The ID of the close response. - * - * It will be passed to [signal`MessageDialog:`:response] if the window is - * closed by pressing Escape or with a system action. - * - * It doesn't have to correspond to any of the responses in the dialog. - * - * The default close response is `close`. - */ - close_response?: string | null - /** - * The response ID of the default response. - * - * If set, pressing Enter will activate the corresponding button. - * - * If set to `NULL` or a non-existent response ID, pressing Enter - * will do nothing. - */ - default_response?: string | null - /** - * The child widget. - * - * Displayed below the heading and body. - */ - extra_child?: Gtk.Widget | null - /** - * The heading of the dialog. - */ - heading?: string | null - /** - * Whether the heading includes Pango markup. - * - * See [func`Pango`.parse_markup]. - */ - heading_use_markup?: boolean | null - } - -} - -interface MessageDialog extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager { - - // Own properties of Adw-1.Adw.MessageDialog - - /** - * The body text of the dialog. - */ - body: string | null - /** - * Whether the body text includes Pango markup. - * - * See [func`Pango`.parse_markup]. - */ - body_use_markup: boolean - /** - * The ID of the close response. - * - * It will be passed to [signal`MessageDialog:`:response] if the window is - * closed by pressing Escape or with a system action. - * - * It doesn't have to correspond to any of the responses in the dialog. - * - * The default close response is `close`. - */ - close_response: string | null - /** - * The response ID of the default response. - * - * If set, pressing Enter will activate the corresponding button. - * - * If set to `NULL` or a non-existent response ID, pressing Enter - * will do nothing. - */ - default_response: string | null - /** - * The child widget. - * - * Displayed below the heading and body. - */ - extra_child: Gtk.Widget - /** - * The heading of the dialog. - */ - heading: string | null - /** - * Whether the heading includes Pango markup. - * - * See [func`Pango`.parse_markup]. - */ - heading_use_markup: boolean - - // Own fields of Adw-1.Adw.MessageDialog - - parent_instance: Gtk.Window & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.MessageDialog - - /** - * Adds a response with `id` and `label` to `self`. - * - * Responses are represented as buttons in the dialog. - * - * Response ID must be unique. It will be used in - * [signal`MessageDialog:`:response] to tell which response had been activated, - * as well as to inspect and modify the response later. - * - * An embedded underline in `label` indicates a mnemonic. - * - * [method`MessageDialog`.set_response_label] can be used to change the response - * label after it had been added. - * - * [method`MessageDialog`.set_response_enabled] and - * [method`MessageDialog`.set_response_appearance] can be used to customize the - * responses further. - * @param id the response ID - * @param label the response label - */ - add_response(id: string | null, label: string | null): void - /** - * This function shows `self` to the user. - * - * The `callback` will be called when the alert is dismissed. It should call - * [method`MessageDialog`.choose_finish] to obtain the result. - * @param cancellable a `GCancellable` to cancel the operation - */ - choose(cancellable: Gio.Cancellable | null): void - /** - * Finishes the [method`MessageDialog`.choose] call and returns the response ID. - * @param result a `GAsyncResult` - * @returns the ID of the response that was selected, or [property@MessageDialog:close-response] if the call was cancelled. - */ - choose_finish(result: Gio.AsyncResult): string | null - /** - * Gets the body text of `self`. - * @returns the body of @self. - */ - get_body(): string | null - /** - * Gets whether the body text of `self` includes Pango markup. - * @returns whether @self uses markup for body text - */ - get_body_use_markup(): boolean - /** - * Gets the ID of the close response of `self`. - * @returns the close response ID - */ - get_close_response(): string | null - /** - * Gets the ID of the default response of `self`. - * @returns the default response ID - */ - get_default_response(): string | null - /** - * Gets the child widget of `self`. - * @returns the child widget of @self. - */ - get_extra_child(): Gtk.Widget | null - /** - * Gets the heading of `self`. - * @returns the heading of @self. - */ - get_heading(): string | null - /** - * Gets whether the heading of `self` includes Pango markup. - * @returns whether @self uses markup for heading - */ - get_heading_use_markup(): boolean - /** - * Gets the appearance of `response`. - * - * See [method`MessageDialog`.set_response_appearance]. - * @param response a response ID - * @returns the appearance of @response - */ - get_response_appearance(response: string | null): ResponseAppearance - /** - * Gets whether `response` is enabled. - * - * See [method`MessageDialog`.set_response_enabled]. - * @param response a response ID - * @returns whether @response is enabled - */ - get_response_enabled(response: string | null): boolean - /** - * Gets the label of `response`. - * - * See [method`MessageDialog`.set_response_label]. - * @param response a response ID - * @returns the label of @response - */ - get_response_label(response: string | null): string | null - /** - * Gets whether `self` has a response with the ID `response`. - * @param response response ID - * @returns whether @self has a response with the ID @response. - */ - has_response(response: string | null): boolean - /** - * Emits the [signal`MessageDialog:`:response] signal with the given response ID. - * - * Used to indicate that the user has responded to the dialog in some way. - * @param response response ID - */ - response(response: string | null): void - /** - * Sets the body text of `self`. - * @param body the body of `self` - */ - set_body(body: string | null): void - /** - * Sets whether the body text of `self` includes Pango markup. - * - * See [func`Pango`.parse_markup]. - * @param use_markup whether to use markup for body text - */ - set_body_use_markup(use_markup: boolean): void - /** - * Sets the ID of the close response of `self`. - * - * It will be passed to [signal`MessageDialog:`:response] if the window is - * closed by pressing Escape or with a system action. - * - * It doesn't have to correspond to any of the responses in the dialog. - * - * The default close response is `close`. - * @param response the close response ID - */ - set_close_response(response: string | null): void - /** - * Sets the ID of the default response of `self`. - * - * If set, pressing Enter will activate the corresponding button. - * - * If set to `NULL` or to a non-existent response ID, pressing Enter - * will do nothing. - * @param response the default response ID - */ - set_default_response(response: string | null): void - /** - * Sets the child widget of `self`. - * - * The child widget is displayed below the heading and body. - * @param child the child widget - */ - set_extra_child(child: Gtk.Widget | null): void - /** - * Sets the heading of `self`. - * @param heading the heading of `self` - */ - set_heading(heading: string | null): void - /** - * Sets whether the heading of `self` includes Pango markup. - * - * See [func`Pango`.parse_markup]. - * @param use_markup whether to use markup for heading - */ - set_heading_use_markup(use_markup: boolean): void - /** - * Sets the appearance for `response`. - * - * - * - * message-dialog-appearance - * - * - * Use `ADW_RESPONSE_SUGGESTED` to mark important responses such as the - * affirmative action, like the Save button in the example. - * - * Use `ADW_RESPONSE_DESTRUCTIVE` to draw attention to the potentially damaging - * consequences of using `response`. This appearance acts as a warning to the - * user. The Discard button in the example is using this appearance. - * - * The default appearance is `ADW_RESPONSE_DEFAULT`. - * - * Negative responses like Cancel or Close should use the default appearance. - * @param response a response ID - * @param appearance appearance for `response` - */ - set_response_appearance(response: string | null, appearance: ResponseAppearance): void - /** - * Sets whether `response` is enabled. - * - * If `response` is not enabled, the corresponding button will have - * [property`Gtk`.Widget:sensitive] set to `FALSE` and it can't be activated as - * a default response. - * - * `response` can still be used as [property`MessageDialog:`close-response] while - * it's not enabled. - * - * Responses are enabled by default. - * @param response a response ID - * @param enabled whether to enable `response` - */ - set_response_enabled(response: string | null, enabled: boolean): void - /** - * Sets the label of `response` to `label`. - * - * Labels are displayed on the dialog buttons. An embedded underline in `label` - * indicates a mnemonic. - * @param response a response ID - * @param label the label of `response` - */ - set_response_label(response: string | null, label: string | null): void - - // Own virtual methods of Adw-1.Adw.MessageDialog - - /** - * Emits the [signal`MessageDialog:`:response] signal with the given response ID. - * - * Used to indicate that the user has responded to the dialog in some way. - * @virtual - * @param response response ID - */ - vfunc_response(response: string | null): void - - // Own signals of Adw-1.Adw.MessageDialog - - connect(sigName: "response", callback: MessageDialog.ResponseSignalCallback): number - connect_after(sigName: "response", callback: MessageDialog.ResponseSignalCallback): number - emit(sigName: "response", response: string | null, ...args: any[]): void - - // Class property signals of Adw-1.Adw.MessageDialog - - connect(sigName: "notify::body", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::body", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::body", ...args: any[]): void - connect(sigName: "notify::body-use-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::body-use-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::body-use-markup", ...args: any[]): void - connect(sigName: "notify::close-response", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::close-response", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::close-response", ...args: any[]): void - connect(sigName: "notify::default-response", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-response", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-response", ...args: any[]): void - connect(sigName: "notify::extra-child", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extra-child", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extra-child", ...args: any[]): void - connect(sigName: "notify::heading", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::heading", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::heading", ...args: any[]): void - connect(sigName: "notify::heading-use-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::heading-use-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::heading-use-markup", ...args: any[]): void - connect(sigName: "notify::application", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::decorated", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decorated", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decorated", ...args: any[]): void - connect(sigName: "notify::default-height", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-height", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-height", ...args: any[]): void - connect(sigName: "notify::default-widget", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-widget", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-widget", ...args: any[]): void - connect(sigName: "notify::default-width", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-width", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-width", ...args: any[]): void - connect(sigName: "notify::deletable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deletable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deletable", ...args: any[]): void - connect(sigName: "notify::destroy-with-parent", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::destroy-with-parent", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::destroy-with-parent", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::focus-visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-visible", ...args: any[]): void - connect(sigName: "notify::focus-widget", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-widget", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-widget", ...args: any[]): void - connect(sigName: "notify::fullscreened", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fullscreened", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fullscreened", ...args: any[]): void - connect(sigName: "notify::handle-menubar-accel", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::handle-menubar-accel", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::handle-menubar-accel", ...args: any[]): void - connect(sigName: "notify::hide-on-close", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hide-on-close", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hide-on-close", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::is-active", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-active", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-active", ...args: any[]): void - connect(sigName: "notify::maximized", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximized", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximized", ...args: any[]): void - connect(sigName: "notify::mnemonics-visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mnemonics-visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mnemonics-visible", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::resizable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resizable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resizable", ...args: any[]): void - connect(sigName: "notify::startup-id", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::startup-id", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::startup-id", ...args: any[]): void - connect(sigName: "notify::suspended", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::suspended", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::suspended", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::titlebar", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::titlebar", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::titlebar", ...args: any[]): void - connect(sigName: "notify::transient-for", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transient-for", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transient-for", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: MessageDialog, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A dialog presenting a message or a question. - * - * - * - * message-dialog - * - * - * Message dialogs have a heading, a body, an optional child widget, and one or - * multiple responses, each presented as a button. - * - * Each response has a unique string ID, and a button label. Additionally, each - * response can be enabled or disabled, and can have a suggested or destructive - * appearance. - * - * When one of the responses is activated, or the dialog is closed, the - * [signal`MessageDialog:`:response] signal will be emitted. This signal is - * detailed, and the detail, as well as the `response` parameter will be set to - * the ID of the activated response, or to the value of the - * [property`MessageDialog:`close-response] property if the dialog had been - * closed without activating any of the responses. - * - * Response buttons can be presented horizontally or vertically depending on - * available space. - * - * When a response is activated, `AdwMessageDialog` is closed automatically. - * - * An example of using a message dialog: - * - * ```c - * GtkWidget *dialog; - * - * dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL); - * - * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog), - * _("A file named “%s” already exists. Do you want to replace it?"), - * filename); - * - * adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog), - * "cancel", _("_Cancel"), - * "replace", _("_Replace"), - * NULL); - * - * adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE); - * - * adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel"); - * adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel"); - * - * g_signal_connect (dialog, "response", G_CALLBACK (response_cb), self); - * - * gtk_window_present (GTK_WINDOW (dialog)); - * ``` - * - * ## Async API - * - * `AdwMessageDialog` can also be used via the [method`MessageDialog`.choose] - * method. This API follows the GIO async pattern, and the result can be - * obtained by calling [method`MessageDialog`.choose_finish], for example: - * - * ```c - * static void - * dialog_cb (AdwMessageDialog *dialog, - * GAsyncResult *result, - * MyWindow *self) - * { - * const char *response = adw_message_dialog_choose_finish (dialog, result); - * - * // ... - * } - * - * static void - * show_dialog (MyWindow *self) - * { - * GtkWidget *dialog; - * - * dialog = adw_message_dialog_new (GTK_WINDOW (self), _("Replace File?"), NULL); - * - * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog), - * _("A file named “%s” already exists. Do you want to replace it?"), - * filename); - * - * adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog), - * "cancel", _("_Cancel"), - * "replace", _("_Replace"), - * NULL); - * - * adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE); - * - * adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel"); - * adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel"); - * - * adw_message_dialog_choose (ADW_MESSAGE_DIALOG (dialog), NULL, (GAsyncReadyCallback) dialog_cb, self); - * } - * ``` - * - * ## AdwMessageDialog as GtkBuildable - * - * `AdwMessageDialog` supports adding responses in UI definitions by via the - * `` element that may contain multiple `` elements, each - * respresenting a response. - * - * Each of the `` elements must have the `id` attribute specifying the - * response ID. The contents of the element are used as the response label. - * - * Response labels can be translated with the usual `translatable`, `context` - * and `comments` attributes. - * - * The `` elements can also have `enabled` and/or `appearance` - * attributes. See [method`MessageDialog`.set_response_enabled] and - * [method`MessageDialog`.set_response_appearance] for details. - * - * Example of an `AdwMessageDialog` UI definition: - * - * ```xml - * - * Save Changes? - * Open documents contain unsaved changes. Changes which are not saved will be permanently lost. - * save - * cancel - * - * - * _Cancel - * _Discard - * _Save - * - * - * ``` - * - * ## Accessibility - * - * `AdwMessageDialog` uses the `GTK_ACCESSIBLE_ROLE_DIALOG` role. - * @class - */ -class MessageDialog extends Gtk.Window { - - // Own properties of Adw-1.Adw.MessageDialog - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.MessageDialog - - constructor(config?: MessageDialog.ConstructorProperties) - /** - * Creates a new `AdwMessageDialog`. - * - * `heading` and `body` can be set to `NULL`. This can be useful if they need to - * be formatted or use markup. In that case, set them to `NULL` and call - * [method`MessageDialog`.format_body] or similar methods afterwards: - * - * ```c - * GtkWidget *dialog; - * - * dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL); - * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog), - * _("A file named “%s” already exists. Do you want to replace it?"), - * filename); - * ``` - * @constructor - * @param parent transient parent - * @param heading the heading - * @param body the body text - * @returns the newly created `AdwMessageDialog` - */ - constructor(parent: Gtk.Window | null, heading: string | null, body: string | null) - /** - * Creates a new `AdwMessageDialog`. - * - * `heading` and `body` can be set to `NULL`. This can be useful if they need to - * be formatted or use markup. In that case, set them to `NULL` and call - * [method`MessageDialog`.format_body] or similar methods afterwards: - * - * ```c - * GtkWidget *dialog; - * - * dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL); - * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog), - * _("A file named “%s” already exists. Do you want to replace it?"), - * filename); - * ``` - * @constructor - * @param parent transient parent - * @param heading the heading - * @param body the body text - * @returns the newly created `AdwMessageDialog` - */ - static new(parent: Gtk.Window | null, heading: string | null, body: string | null): MessageDialog - - // Overloads of new - - /** - * Creates a new `GtkWindow`. - * - * To get an undecorated window (no window borders), use - * [method`Gtk`.Window.set_decorated]. - * - * All top-level windows created by gtk_window_new() are stored - * in an internal top-level window list. This list can be obtained - * from [func`Gtk`.Window.list_toplevels]. Due to GTK keeping a - * reference to the window internally, gtk_window_new() does not - * return a reference to the caller. - * - * To delete a `GtkWindow`, call [method`Gtk`.Window.destroy]. - * @constructor - * @returns a new `GtkWindow`. - */ - static new(): Gtk.Window - _init(config?: MessageDialog.ConstructorProperties): void -} - -module NavigationPage { - - // Signal callback interfaces - - /** - * Signal callback interface for `hidden` - */ - interface HiddenSignalCallback { - ($obj: NavigationPage): void - } - - /** - * Signal callback interface for `hiding` - */ - interface HidingSignalCallback { - ($obj: NavigationPage): void - } - - /** - * Signal callback interface for `showing` - */ - interface ShowingSignalCallback { - ($obj: NavigationPage): void - } - - /** - * Signal callback interface for `shown` - */ - interface ShownSignalCallback { - ($obj: NavigationPage): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.NavigationPage - - /** - * Whether the page can be popped from navigation stack. - * - * Set it to `FALSE` to disable shortcuts and gestures, as well as remove the - * back button from [class`HeaderBar]`. - * - * Manually calling [method`NavigationView`.pop] or using the `navigation.pop` - * action will still work. - * - * See [property`HeaderBar:`show-back-button] for removing only the back - * button, but not shortcuts. - */ - can_pop?: boolean | null - /** - * The child widget. - */ - child?: Gtk.Widget | null - /** - * The page tag. - * - * The tag can be used to retrieve the page with - * [method`NavigationView`.find_page], as well as with - * [method`NavigationView`.push_by_tag], [method`NavigationView`.pop_to_tag] or - * [method`NavigationView`.replace_with_tags]. - * - * Tags must be unique within each [class`NavigationView]`. - * - * The tag also must be set to use the `navigation.push` action. - */ - tag?: string | null - /** - * The page title. - * - * It's displayed in [class`HeaderBar]` instead of the window title, and used - * as the tooltip on the next page's back button, as well as by screen reader. - */ - title?: string | null - } - -} - -interface NavigationPage extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.NavigationPage - - /** - * Whether the page can be popped from navigation stack. - * - * Set it to `FALSE` to disable shortcuts and gestures, as well as remove the - * back button from [class`HeaderBar]`. - * - * Manually calling [method`NavigationView`.pop] or using the `navigation.pop` - * action will still work. - * - * See [property`HeaderBar:`show-back-button] for removing only the back - * button, but not shortcuts. - */ - can_pop: boolean - /** - * The child widget. - */ - child: Gtk.Widget - /** - * The page tag. - * - * The tag can be used to retrieve the page with - * [method`NavigationView`.find_page], as well as with - * [method`NavigationView`.push_by_tag], [method`NavigationView`.pop_to_tag] or - * [method`NavigationView`.replace_with_tags]. - * - * Tags must be unique within each [class`NavigationView]`. - * - * The tag also must be set to use the `navigation.push` action. - */ - tag: string | null - /** - * The page title. - * - * It's displayed in [class`HeaderBar]` instead of the window title, and used - * as the tooltip on the next page's back button, as well as by screen reader. - */ - title: string | null - - // Own fields of Adw-1.Adw.NavigationPage - - parent_instance: Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.NavigationPage - - /** - * Gets whether `self` can be popped from navigation stack. - * @returns whether the page can be popped from navigation stack - */ - get_can_pop(): boolean - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets the tag of `self`. - * @returns the page tag - */ - get_tag(): string | null - /** - * Gets the title of `self`. - * @returns the title of @self - */ - get_title(): string | null - /** - * Sets whether `self` can be popped from navigation stack. - * - * Set it to `FALSE` to disable shortcuts and gestures, as well as remove the - * back button from [class`HeaderBar]`. - * - * Manually calling [method`NavigationView`.pop] or using the `navigation.pop` - * action will still work. - * - * See [property`HeaderBar:`show-back-button] for removing only the back button, - * but not shortcuts. - * @param can_pop whether the page can be popped from navigation stack - */ - set_can_pop(can_pop: boolean): void - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets the tag for `self`. - * - * The tag can be used to retrieve the page with - * [method`NavigationView`.find_page], as well as with - * [method`NavigationView`.push_by_tag], [method`NavigationView`.pop_to_tag] or - * [method`NavigationView`.replace_with_tags]. - * - * Tags must be unique within each [class`NavigationView]`. - * - * The tag also must be set to use the `navigation.push` action. - * @param tag the page tag - */ - set_tag(tag: string | null): void - /** - * Sets the title of `self`. - * - * It's displayed in [class`HeaderBar]` instead of the window title, and used as - * the tooltip on the next page's back button, as well as by screen reader. - * @param title the title - */ - set_title(title: string | null): void - - // Own virtual methods of Adw-1.Adw.NavigationPage - - /** - * Called when the navigation view transition has been completed and the page - * is fully hidden. - * @virtual - */ - vfunc_hidden(): void - /** - * Called when the page starts hiding at the beginning of the navigation view - * transition. - * @virtual - */ - vfunc_hiding(): void - /** - * Called when the page shows at the beginning of the navigation view - * transition. - * @virtual - */ - vfunc_showing(): void - /** - * Called when the navigation view transition has been completed and the page - * is fully shown. - * @virtual - */ - vfunc_shown(): void - - // Own signals of Adw-1.Adw.NavigationPage - - connect(sigName: "hidden", callback: NavigationPage.HiddenSignalCallback): number - connect_after(sigName: "hidden", callback: NavigationPage.HiddenSignalCallback): number - emit(sigName: "hidden", ...args: any[]): void - connect(sigName: "hiding", callback: NavigationPage.HidingSignalCallback): number - connect_after(sigName: "hiding", callback: NavigationPage.HidingSignalCallback): number - emit(sigName: "hiding", ...args: any[]): void - connect(sigName: "showing", callback: NavigationPage.ShowingSignalCallback): number - connect_after(sigName: "showing", callback: NavigationPage.ShowingSignalCallback): number - emit(sigName: "showing", ...args: any[]): void - connect(sigName: "shown", callback: NavigationPage.ShownSignalCallback): number - connect_after(sigName: "shown", callback: NavigationPage.ShownSignalCallback): number - emit(sigName: "shown", ...args: any[]): void - - // Class property signals of Adw-1.Adw.NavigationPage - - connect(sigName: "notify::can-pop", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-pop", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-pop", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::tag", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tag", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tag", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: NavigationPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A page within [class`NavigationView]` or [class`NavigationSplitView]`. - * - * Each page has a child widget, a title and optionally a tag. - * - * The [signal`NavigationPage:`:showing], [signal`NavigationPage:`:shown], - * [signal`NavigationPage:`:hiding] and [signal`NavigationPage:`:hidden] signals - * can be used to track the page's visibility within its `AdwNavigationView`. - * - * ## Header Bar Integration - * - * When placed inside `AdwNavigationPage`, [class`HeaderBar]` will display the - * page title instead of window title. - * - * When used together with [class`NavigationView]`, it will also display a back - * button that can be used to go back to the previous page. Set - * [property`HeaderBar:`show-back-button] to `FALSE` to disable that behavior if - * it's unwanted. - * - * ## CSS Nodes - * - * `AdwNavigationPage` has a single CSS node with name - * `navigation-view-page`. - * - * ## Accessibility - * - * `AdwNavigationPage` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class NavigationPage extends Gtk.Widget { - - // Own properties of Adw-1.Adw.NavigationPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.NavigationPage - - constructor(config?: NavigationPage.ConstructorProperties) - /** - * Creates a new `AdwNavigationPage`. - * @constructor - * @param child the child widget - * @param title the page title - * @returns the new created `AdwNavigationPage` - */ - constructor(child: Gtk.Widget, title: string | null) - /** - * Creates a new `AdwNavigationPage`. - * @constructor - * @param child the child widget - * @param title the page title - * @returns the new created `AdwNavigationPage` - */ - static new(child: Gtk.Widget, title: string | null): NavigationPage - /** - * Creates a new `AdwNavigationPage` with provided tag. - * @constructor - * @param child the child widget - * @param title the page title - * @param tag the page tag - * @returns the new created `AdwNavigationPage` - */ - static new_with_tag(child: Gtk.Widget, title: string | null, tag: string | null): NavigationPage - _init(config?: NavigationPage.ConstructorProperties): void -} - -module NavigationSplitView { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.NavigationSplitView - - /** - * Whether the split view is collapsed. - * - * When collapsed, the children are put inside an [class`NavigationView]`, - * otherwise they are displayed side by side. - * - * The [property`NavigationSplitView:`show-content] controls which child is - * visible while collapsed. - */ - collapsed?: boolean | null - /** - * The content widget. - */ - content?: NavigationPage | null - /** - * The maximum sidebar width. - * - * Maximum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - max_sidebar_width?: number | null - /** - * The minimum sidebar width. - * - * Minimum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - min_sidebar_width?: number | null - /** - * Determines the visible page when collapsed. - * - * If set to `TRUE`, the content widget will be the visible page when - * [property`NavigationSplitView:`collapsed] is `TRUE`; otherwise the sidebar - * widget will be visible. - * - * If the split view is already collapsed, the visible page changes - * immediately. - */ - show_content?: boolean | null - /** - * The sidebar widget. - */ - sidebar?: NavigationPage | null - /** - * The preferred sidebar width as a fraction of the total width. - * - * The preferred width is additionally limited by - * [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - */ - sidebar_width_fraction?: number | null - /** - * The length unit for minimum and maximum sidebar widths. - * - * See [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - */ - sidebar_width_unit?: LengthUnit | null - } - -} - -interface NavigationSplitView extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.NavigationSplitView - - /** - * Whether the split view is collapsed. - * - * When collapsed, the children are put inside an [class`NavigationView]`, - * otherwise they are displayed side by side. - * - * The [property`NavigationSplitView:`show-content] controls which child is - * visible while collapsed. - */ - collapsed: boolean - /** - * The content widget. - */ - content: NavigationPage - /** - * The maximum sidebar width. - * - * Maximum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - max_sidebar_width: number - /** - * The minimum sidebar width. - * - * Minimum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - min_sidebar_width: number - /** - * Determines the visible page when collapsed. - * - * If set to `TRUE`, the content widget will be the visible page when - * [property`NavigationSplitView:`collapsed] is `TRUE`; otherwise the sidebar - * widget will be visible. - * - * If the split view is already collapsed, the visible page changes - * immediately. - */ - show_content: boolean - /** - * The sidebar widget. - */ - sidebar: NavigationPage - /** - * The preferred sidebar width as a fraction of the total width. - * - * The preferred width is additionally limited by - * [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - */ - sidebar_width_fraction: number - /** - * The length unit for minimum and maximum sidebar widths. - * - * See [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - */ - sidebar_width_unit: LengthUnit - - // Owm methods of Adw-1.Adw.NavigationSplitView - - /** - * Gets whether `self` is collapsed. - * @returns whether @self is collapsed - */ - get_collapsed(): boolean - /** - * Sets the content widget for `self`. - * @returns the content widget - */ - get_content(): NavigationPage | null - /** - * Gets the maximum sidebar width for `self`. - * @returns the maximum width - */ - get_max_sidebar_width(): number - /** - * Gets the minimum sidebar width for `self`. - * @returns the minimum width - */ - get_min_sidebar_width(): number - /** - * Gets which page is visible when `self` is collapsed. - * @returns whether to show content when collapsed - */ - get_show_content(): boolean - /** - * Gets the sidebar widget for `self`. - * @returns the sidebar widget - */ - get_sidebar(): NavigationPage | null - /** - * Gets the preferred sidebar width fraction for `self`. - * @returns the preferred width fraction - */ - get_sidebar_width_fraction(): number - /** - * Gets the length unit for minimum and maximum sidebar widths. - * @returns the length unit - */ - get_sidebar_width_unit(): LengthUnit - /** - * Sets whether `self` is collapsed. - * - * When collapsed, the children are put inside an [class`NavigationView]`, - * otherwise they are displayed side by side. - * - * The [property`NavigationSplitView:`show-content] controls which child is - * visible while collapsed. - * @param collapsed whether `self` is collapsed - */ - set_collapsed(collapsed: boolean): void - /** - * Sets the content widget for `self`. - * @param content the content widget - */ - set_content(content: NavigationPage | null): void - /** - * Sets the maximum sidebar width for `self`. - * - * Maximum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - * @param width the maximum width - */ - set_max_sidebar_width(width: number): void - /** - * Sets the minimum sidebar width for `self`. - * - * Minimum width is affected by - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - * @param width the minimum width - */ - set_min_sidebar_width(width: number): void - /** - * Sets which page is visible when `self` is collapsed. - * - * If set to `TRUE`, the content widget will be the visible page when - * [property`NavigationSplitView:`collapsed] is `TRUE`; otherwise the sidebar - * widget will be visible. - * - * If the split view is already collapsed, the visible page changes immediately. - * @param show_content whether to show content when collapsed - */ - set_show_content(show_content: boolean): void - /** - * Sets the sidebar widget for `self`. - * @param sidebar the sidebar widget - */ - set_sidebar(sidebar: NavigationPage | null): void - /** - * Sets the preferred sidebar width as a fraction of the total width of `self`. - * - * The preferred width is additionally limited by - * [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - * @param fraction the preferred width fraction - */ - set_sidebar_width_fraction(fraction: number): void - /** - * Sets the length unit for minimum and maximum sidebar widths. - * - * See [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width]. - * @param unit the length unit - */ - set_sidebar_width_unit(unit: LengthUnit): void - - // Class property signals of Adw-1.Adw.NavigationSplitView - - connect(sigName: "notify::collapsed", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::collapsed", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::collapsed", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::max-sidebar-width", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-sidebar-width", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-sidebar-width", ...args: any[]): void - connect(sigName: "notify::min-sidebar-width", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-sidebar-width", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-sidebar-width", ...args: any[]): void - connect(sigName: "notify::show-content", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-content", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-content", ...args: any[]): void - connect(sigName: "notify::sidebar", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar", ...args: any[]): void - connect(sigName: "notify::sidebar-width-fraction", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar-width-fraction", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar-width-fraction", ...args: any[]): void - connect(sigName: "notify::sidebar-width-unit", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar-width-unit", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar-width-unit", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: NavigationSplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget presenting sidebar and content side by side or as a navigation view. - * - * - * - * navigation-split-view - * - * - * - * navigation-split-view-collapsed - * - * - * `AdwNavigationSplitView` has two [class`NavigationPage]` children: sidebar and - * content, and displays them side by side. - * - * When [property`NavigationSplitView:`collapsed] is set to `TRUE`, it instead - * puts both children inside an [class`NavigationView]`. The - * [property`NavigationSplitView:`show-content] controls which child is visible - * while collapsed. - * - * See also [class`OverlaySplitView]`. - * - * `AdwNavigationSplitView` is typically used together with an [class`Breakpoint]` - * setting the `collapsed` property to `TRUE` on small widths, as follows: - * - * ```xml - * - * 280 - * 200 - * 800 - * 800 - * - * - * max-width: 400sp - * True - * - * - * - * - * - * - * Sidebar - * - * - * - * - * - * - * - * Content - * - * - * - * - * - * - * - * - * ``` - * - * ## Sizing - * - * When not collapsed, `AdwNavigationSplitView` changes the sidebar width - * depending on its own width. - * - * If possible, it tries to allocate a fraction of the total width, controlled - * with the [property`NavigationSplitView:`sidebar-width-fraction] property. - * - * The sidebar also has minimum and maximum sizes, controlled with the - * [property`NavigationSplitView:`min-sidebar-width] and - * [property`NavigationSplitView:`max-sidebar-width] properties. - * - * The minimum and maximum sizes are using the length unit specified with the - * [property`NavigationSplitView:`sidebar-width-unit]. - * - * By default, sidebar is using 25% of the total width, with 180sp as the - * minimum size and 280sp as the maximum size. - * - * ## Header Bar Integration - * - * When used inside `AdwNavigationSplitView`, [class`HeaderBar]` will - * automatically hide the window buttons in the middle. - * - * When collapsed, it also displays a back button for the content widget, as - * well as the page titles. See [class`NavigationView]` documentation for details. - * - * ## Actions - * - * `AdwNavigationSplitView` defines the same actions as `AdwNavigationView`, but - * they can be used even when the split view is not collapsed: - * - * - `navigation.push` takes a string parameter specifying the tag of the page - * to push. If it matches the tag of the content widget, it sets - * [property`NavigationSplitView:`show-content] to `TRUE`. - * - * - `navigation.pop` doesn't take any parameters and sets - * [property`NavigationSplitView:`show-content] to `FALSE`. - * - * ## `AdwNavigationSplitView` as `GtkBuildable` - * - * The `AdwNavigationSplitView` implementation of the [iface`Gtk`.Buildable] - * interface supports setting the sidebar widget by specifying “sidebar” as the - * “type” attribute of a `` element, Specifying “content” child type or - * omitting it results in setting the content widget. - * - * ## CSS nodes - * - * `AdwNavigationSplitView` has a single CSS node with the name - * `navigation-split-view`. - * - * When collapsed, it contains a child node with the name `navigation-view` - * containing both children. - * - * ``` - * navigation-split-view - * ╰── navigation-view - * ├── [sidebar child] - * ╰── [content child] - * ``` - * - * When not collapsed, it contains two nodes with the name `widget`, one with - * the `.sidebar-pane` style class, the other one with `.content-view` style - * class, containing the sidebar and content children respectively. - * - * ``` - * navigation-split-view - * ├── widget.sidebar-pane - * │ ╰── [sidebar child] - * ╰── widget.content-pane - * ╰── [content child] - * ``` - * - * ## Accessibility - * - * `AdwNavigationSplitView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class NavigationSplitView extends Gtk.Widget { - - // Own properties of Adw-1.Adw.NavigationSplitView - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.NavigationSplitView - - constructor(config?: NavigationSplitView.ConstructorProperties) - /** - * Creates a new `AdwNavigationSplitView`. - * @constructor - * @returns the newly created `AdwNavigationSplitView` - */ - constructor() - /** - * Creates a new `AdwNavigationSplitView`. - * @constructor - * @returns the newly created `AdwNavigationSplitView` - */ - static new(): NavigationSplitView - _init(config?: NavigationSplitView.ConstructorProperties): void -} - -module NavigationView { - - // Signal callback interfaces - - /** - * Signal callback interface for `get-next-page` - */ - interface GetNextPageSignalCallback { - ($obj: NavigationView): NavigationPage | null - } - - /** - * Signal callback interface for `popped` - */ - interface PoppedSignalCallback { - ($obj: NavigationView, page: NavigationPage): void - } - - /** - * Signal callback interface for `pushed` - */ - interface PushedSignalCallback { - ($obj: NavigationView): void - } - - /** - * Signal callback interface for `replaced` - */ - interface ReplacedSignalCallback { - ($obj: NavigationView): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Swipeable.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.NavigationView - - /** - * Whether to animate page transitions. - * - * Gesture-based transitions are always animated. - */ - animate_transitions?: boolean | null - /** - * Whether pressing Escape pops the current page. - * - * Applications using `AdwNavigationView` to implement a browser may want to - * disable it. - */ - pop_on_escape?: boolean | null - } - -} - -interface NavigationView extends Swipeable, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.NavigationView - - /** - * Whether to animate page transitions. - * - * Gesture-based transitions are always animated. - */ - animate_transitions: boolean - /** - * A list model that contains the pages in navigation stack. - * - * The pages are sorted from root page to visible page. - * - * This can be used to keep an up-to-date view. - */ - readonly navigation_stack: Gio.ListModel - /** - * Whether pressing Escape pops the current page. - * - * Applications using `AdwNavigationView` to implement a browser may want to - * disable it. - */ - pop_on_escape: boolean - /** - * The currently visible page. - */ - readonly visible_page: NavigationPage - - // Owm methods of Adw-1.Adw.NavigationView - - /** - * Permanently adds `page` to `self`. - * - * Any page that has been added will stay in `self` even after being popped from - * the navigation stack. - * - * Adding a page while no page is visible will automatically push it to the - * navigation stack. - * - * See [method`NavigationView`.remove]. - * @param page the page to add - */ - add(page: NavigationPage): void - /** - * Finds a page in `self` by its tag. - * - * See [property`NavigationPage:`tag]. - * @param tag a page tag - * @returns the page with the given tag - */ - find_page(tag: string | null): NavigationPage | null - /** - * Gets whether `self` animates page transitions. - * @returns whether to animate page transitions - */ - get_animate_transitions(): boolean - /** - * Returns a [iface`Gio`.ListModel] that contains the pages in navigation stack. - * - * The pages are sorted from root page to visible page. - * - * This can be used to keep an up-to-date view. - * @returns a list model for the navigation stack - */ - get_navigation_stack(): Gio.ListModel - /** - * Gets whether pressing Escape pops the current page on `self`. - * @returns whether to pop the current page - */ - get_pop_on_escape(): boolean - /** - * Gets the previous page for `page`. - * - * If `page` is in the navigation stack, returns the page popping `page` will - * reveal. - * - * If `page` is the root page or is not in the navigation stack, returns `NULL`. - * @param page a page in `self` - * @returns the previous page - */ - get_previous_page(page: NavigationPage): NavigationPage | null - /** - * Gets the currently visible page in `self`. - * @returns the currently visible page - */ - get_visible_page(): NavigationPage | null - /** - * Pops the visible page from the navigation stack. - * - * Does nothing if the navigation stack contains less than two pages. - * - * If [method`NavigationView`.add] hasn't been called, the page is automatically - * removed. - * - * [signal`NavigationView:`:popped] will be emitted for the current visible page. - * - * See [method`NavigationView`.pop_to_page] and - * [method`NavigationView`.pop_to_tag]. - * @returns `TRUE` if a page has been popped - */ - pop(): boolean - /** - * Pops pages from the navigation stack until `page` is visible. - * - * `page` must be in the navigation stack. - * - * If [method`NavigationView`.add] hasn't been called for any of the popped pages, - * they are automatically removed. - * - * [signal`NavigationView:`:popped] will be be emitted for each of the popped - * pages. - * - * See [method`NavigationView`.pop] and [method`NavigationView`.pop_to_tag]. - * @param page the page to pop to - * @returns `TRUE` if any pages have been popped - */ - pop_to_page(page: NavigationPage): boolean - /** - * Pops pages from the navigation stack until page with the tag `tag` is visible. - * - * The page must be in the navigation stack. - * - * If [method`NavigationView`.add] hasn't been called for any of the popped pages, - * they are automatically removed. - * - * [signal`NavigationView:`:popped] will be emitted for each of the popped pages. - * - * See [method`NavigationView`.pop_to_page] and [property`NavigationPage:`tag]. - * @param tag a page tag - * @returns `TRUE` if any pages have been popped - */ - pop_to_tag(tag: string | null): boolean - /** - * Pushes `page` onto the navigation stack. - * - * If [method`NavigationView`.add] hasn't been called, the page is automatically - * removed once it's popped. - * - * [signal`NavigationView:`:popped] will be emitted for `page`. - * - * See [method`NavigationView`.push_by_tag]. - * @param page the page to push - */ - push(page: NavigationPage): void - /** - * Pushes the page with the tag `tag` onto the navigation stack. - * - * If [method`NavigationView`.add] hasn't been called, the page is automatically - * removed once it's popped. - * - * [signal`NavigationView:`:popped] will be emitted for pushed page. - * - * See [method`NavigationView`.push] and [property`NavigationPage:`tag]. - * @param tag the page tag - */ - push_by_tag(tag: string | null): void - /** - * Removes `page` from `self`. - * - * If `page` is currently in the navigation stack, it will be removed once it's - * popped. Otherwise, it's removed immediately. - * - * See [method`NavigationView`.add]. - * @param page the page to remove - */ - remove(page: NavigationPage): void - /** - * Replaces the current navigation stack with `pages`. - * - * The last page becomes the visible page. - * - * Replacing the navigation stack has no animation. - * - * If [method`NavigationView`.add] hasn't been called for any pages that are no - * longer in the navigation stack, they are automatically removed. - * - * `n_pages` can be 0, in that case no page will be visible after calling this - * method. This can be useful for removing all pages from `self`. - * - * The [signal`NavigationView:`:replaced] signal will be emitted. - * - * See [method`NavigationView`.replace_with_tags]. - * @param pages the new navigation stack - */ - replace(pages: NavigationPage[]): void - /** - * Replaces the current navigation stack with pages with the tags `tags`. - * - * The last page becomes the visible page. - * - * Replacing the navigation stack has no animation. - * - * If [method`NavigationView`.add] hasn't been called for any pages that are no - * longer in the navigation stack, they are automatically removed. - * - * `n_tags` can be 0, in that case no page will be visible after calling this - * method. This can be useful for removing all pages from `self`. - * - * The [signal`NavigationView:`:replaced] signal will be emitted. - * - * See [method`NavigationView`.replace] and [property`NavigationPage:`tag]. - * @param tags tags of the pages in the navigation stack - */ - replace_with_tags(tags: string[]): void - /** - * Sets whether `self` should animate page transitions. - * - * Gesture-based transitions are always animated. - * @param animate_transitions whether to animate page transitions - */ - set_animate_transitions(animate_transitions: boolean): void - /** - * Sets whether pressing Escape pops the current page on `self`. - * - * Applications using `AdwNavigationView` to implement a browser may want to - * disable it. - * @param pop_on_escape whether to pop the current page when pressing Escape - */ - set_pop_on_escape(pop_on_escape: boolean): void - - // Own signals of Adw-1.Adw.NavigationView - - connect(sigName: "get-next-page", callback: NavigationView.GetNextPageSignalCallback): number - connect_after(sigName: "get-next-page", callback: NavigationView.GetNextPageSignalCallback): number - emit(sigName: "get-next-page", ...args: any[]): void - connect(sigName: "popped", callback: NavigationView.PoppedSignalCallback): number - connect_after(sigName: "popped", callback: NavigationView.PoppedSignalCallback): number - emit(sigName: "popped", page: NavigationPage, ...args: any[]): void - connect(sigName: "pushed", callback: NavigationView.PushedSignalCallback): number - connect_after(sigName: "pushed", callback: NavigationView.PushedSignalCallback): number - emit(sigName: "pushed", ...args: any[]): void - connect(sigName: "replaced", callback: NavigationView.ReplacedSignalCallback): number - connect_after(sigName: "replaced", callback: NavigationView.ReplacedSignalCallback): number - emit(sigName: "replaced", ...args: any[]): void - - // Class property signals of Adw-1.Adw.NavigationView - - connect(sigName: "notify::animate-transitions", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::animate-transitions", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::animate-transitions", ...args: any[]): void - connect(sigName: "notify::navigation-stack", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::navigation-stack", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::navigation-stack", ...args: any[]): void - connect(sigName: "notify::pop-on-escape", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pop-on-escape", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pop-on-escape", ...args: any[]): void - connect(sigName: "notify::visible-page", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-page", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-page", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: NavigationView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A page-based navigation container. - * - * - * - * navigation-view - * - * - * `AdwNavigationView` presents one child at a time, similar to - * [class`Gtk`.Stack]. - * - * `AdwNavigationView` can only contain [class`NavigationPage]` children. - * - * It maintains a navigation stack that can be controlled with - * [method`NavigationView`.push] and [method`NavigationView`.pop]. The whole - * navigation stack can also be replaced using [method`NavigationView`.replace]. - * - * `AdwNavigationView` allows to manage pages statically or dynamically. - * - * Static pages can be added using the [method`NavigationView`.add] method. The - * `AdwNavigationView` will keep a reference to these pages, but they aren't - * accessible to the user until [method`NavigationView`.push] is called (except - * for the first page, which is pushed automatically). Use the - * [method`NavigationView`.remove] method to remove them. This is useful for - * applications that have a small number of unique pages and just need - * navigation between them. - * - * Dynamic pages are automatically destroyed once they are popped off the - * navigation stack. To add a page like this, push it using the - * [method`NavigationView`.push] method without calling - * [method`NavigationView`.add] first. - * - * ## Tags - * - * Static pages, as well as any pages in the navigation stack, can be accessed - * by their [property`NavigationPage:`tag]. For example, - * [method`NavigationView`.push_by_tag] can be used to push a static page that's - * not in the navigation stack without having to keep a reference to it manually. - * - * ## Header Bar Integration - * - * When used inside `AdwNavigationView`, [class`HeaderBar]` will automatically - * display a back button that can be used to go back to the previous page when - * possible. The button also has a context menu, allowing to pop multiple pages - * at once, potentially across multiple navigation views. - * - * Set [property`HeaderBar:`show-back-button] to `FALSE` to disable this behavior - * if it's unwanted. - * - * `AdwHeaderBar` will also display the title of the `AdwNavigationPage` it's - * placed into, so most applications shouldn't need to customize it at all. - * - * ## Shortcuts and Gestures - * - * `AdwNavigationView` supports the following shortcuts for going to the - * previous page: - * - * - Escape (unless [property`NavigationView:`pop-on-escape] is set to - * `FALSE`) - * - Alt+ - * - Back mouse button - * - * Additionally, it supports interactive gestures: - * - * - One-finger swipe towards the right on touchscreens - * - Scrolling towards the right on touchpads (usually two-finger swipe) - * - * These gestures have transitions enabled regardless of the - * [property`NavigationView:`animate-transitions] value. - * - * Applications can also enable shortcuts for pushing another page onto the - * navigation stack via connecting to the [signal`NavigationView:`:get-next-page] - * signal, in that case the following shortcuts are supported: - * - * - Alt+ - * - Forward mouse button - * - Swipe/scrolling towards the left - * - * For right-to-left locales, the gestures and shortcuts are reversed. - * - * [property`NavigationPage:`can-pop] can be used to disable them, along with the - * header bar back buttons. - * - * ## Actions - * - * `AdwNavigationView` defines actions for controlling the navigation stack. - * actions for controlling the navigation stack: - * - * - `navigation.push` takes a string parameter specifying the tag of the page to - * push, and is equivalent to calling [method`NavigationView`.push_by_tag]. - * - * - `navigation.pop` doesn't take any parameters and pops the current page from - * the navigation stack, equivalent to calling [method`NavigationView`.pop]. - * - * ## `AdwNavigationView` as `GtkBuildable` - * - * `AdwNavigationView` allows to add pages as children, equivalent to using the - * [method`NavigationView`.add] method. - * - * Example of an `AdwNavigationView` UI definition: - * - * ```xml - * - * - * - * Page 1 - * - * - * - * - * - * - * - * Open Page 2 - * center - * center - * navigation.push - * 'page-2' - * - * - * - * - * - * - * - * - * - * Page 2 - * page-2 - * - * - * - * - * - * - * - * - * - * - * - * - * - * ``` - * - * - * - * navigation-view-example - * - * - * ## CSS nodes - * - * `AdwNavigationView` has a single CSS node with the name `navigation-view`. - * - * ## Accessibility - * - * `AdwNavigationView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class NavigationView extends Gtk.Widget { - - // Own properties of Adw-1.Adw.NavigationView - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.NavigationView - - constructor(config?: NavigationView.ConstructorProperties) - /** - * Creates a new `AdwNavigationView`. - * @constructor - * @returns the new created `AdwNavigationView` - */ - constructor() - /** - * Creates a new `AdwNavigationView`. - * @constructor - * @returns the new created `AdwNavigationView` - */ - static new(): NavigationView - _init(config?: NavigationView.ConstructorProperties): void -} - -module OverlaySplitView { - - // Constructor properties interface - - interface ConstructorProperties extends Swipeable.ConstructorProperties, Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.OverlaySplitView - - /** - * Whether the split view is collapsed. - * - * When collapsed, the sidebar widget is presented as an overlay above the - * content widget, otherwise they are displayed side by side. - */ - collapsed?: boolean | null - /** - * The content widget. - */ - content?: Gtk.Widget | null - /** - * Whether the sidebar can be closed with a swipe gesture. - * - * Only touchscreen swipes are supported. - */ - enable_hide_gesture?: boolean | null - /** - * Whether the sidebar can be opened with an edge swipe gesture. - * - * Only touchscreen swipes are supported. - */ - enable_show_gesture?: boolean | null - /** - * The maximum sidebar width. - * - * Maximum width is affected by - * [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - max_sidebar_width?: number | null - /** - * The minimum sidebar width. - * - * Minimum width is affected by - * [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - min_sidebar_width?: number | null - /** - * Whether the sidebar widget is pinned. - * - * By default, collapsing `self` automatically hides the sidebar widget, and - * uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility - * never changes on its own. - */ - pin_sidebar?: boolean | null - /** - * Whether the sidebar widget is shown. - */ - show_sidebar?: boolean | null - /** - * The sidebar widget. - */ - sidebar?: Gtk.Widget | null - /** - * The sidebar position. - * - * If it's set to `GTK_PACK_START`, the sidebar is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - */ - sidebar_position?: Gtk.PackType | null - /** - * The preferred sidebar width as a fraction of the total width. - * - * The preferred width is additionally limited by - * [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - */ - sidebar_width_fraction?: number | null - /** - * The length unit for minimum and maximum sidebar widths. - * - * See [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - */ - sidebar_width_unit?: LengthUnit | null - } - -} - -interface OverlaySplitView extends Swipeable, Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.OverlaySplitView - - /** - * Whether the split view is collapsed. - * - * When collapsed, the sidebar widget is presented as an overlay above the - * content widget, otherwise they are displayed side by side. - */ - collapsed: boolean - /** - * The content widget. - */ - content: Gtk.Widget - /** - * Whether the sidebar can be closed with a swipe gesture. - * - * Only touchscreen swipes are supported. - */ - enable_hide_gesture: boolean - /** - * Whether the sidebar can be opened with an edge swipe gesture. - * - * Only touchscreen swipes are supported. - */ - enable_show_gesture: boolean - /** - * The maximum sidebar width. - * - * Maximum width is affected by - * [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - max_sidebar_width: number - /** - * The minimum sidebar width. - * - * Minimum width is affected by - * [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - */ - min_sidebar_width: number - /** - * Whether the sidebar widget is pinned. - * - * By default, collapsing `self` automatically hides the sidebar widget, and - * uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility - * never changes on its own. - */ - pin_sidebar: boolean - /** - * Whether the sidebar widget is shown. - */ - show_sidebar: boolean - /** - * The sidebar widget. - */ - sidebar: Gtk.Widget - /** - * The sidebar position. - * - * If it's set to `GTK_PACK_START`, the sidebar is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - */ - sidebar_position: Gtk.PackType - /** - * The preferred sidebar width as a fraction of the total width. - * - * The preferred width is additionally limited by - * [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - */ - sidebar_width_fraction: number - /** - * The length unit for minimum and maximum sidebar widths. - * - * See [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - */ - sidebar_width_unit: LengthUnit - - // Owm methods of Adw-1.Adw.OverlaySplitView - - /** - * Gets whether `self` is collapsed. - * @returns whether @self is collapsed - */ - get_collapsed(): boolean - /** - * Gets the content widget for `self`. - * @returns the content widget for @self - */ - get_content(): Gtk.Widget | null - /** - * Gets whether `self` can be closed with a swipe gesture. - * @returns `TRUE` if @self can be closed with a swipe gesture - */ - get_enable_hide_gesture(): boolean - /** - * Gets whether `self` can be opened with an edge swipe gesture. - * @returns `TRUE` if @self can be opened with a swipe gesture - */ - get_enable_show_gesture(): boolean - /** - * Gets the maximum sidebar width for `self`. - * @returns the maximum width - */ - get_max_sidebar_width(): number - /** - * Gets the minimum sidebar width for `self`. - * @returns the minimum width - */ - get_min_sidebar_width(): number - /** - * Gets whether the sidebar widget is pinned for `self`. - * @returns whether if the sidebar widget is pinned - */ - get_pin_sidebar(): boolean - /** - * Gets whether the sidebar widget is shown for `self`. - * @returns `TRUE` if the sidebar widget is shown - */ - get_show_sidebar(): boolean - /** - * Gets the sidebar widget for `self`. - * @returns the sidebar widget for @self - */ - get_sidebar(): Gtk.Widget | null - /** - * Gets the sidebar position for `self`. - * @returns the sidebar position for @self - */ - get_sidebar_position(): Gtk.PackType - /** - * Gets the preferred sidebar width fraction for `self`. - * @returns the preferred width fraction - */ - get_sidebar_width_fraction(): number - /** - * Gets the length unit for minimum and maximum sidebar widths. - * @returns the length unit - */ - get_sidebar_width_unit(): LengthUnit - /** - * Sets whether `self` view is collapsed. - * - * When collapsed, the sidebar widget is presented as an overlay above the - * content widget, otherwise they are displayed side by side. - * @param collapsed whether `self` is collapsed - */ - set_collapsed(collapsed: boolean): void - /** - * Sets the content widget for `self`. - * @param content the content widget - */ - set_content(content: Gtk.Widget | null): void - /** - * Sets whether `self` can be closed with a swipe gesture. - * - * Only touchscreen swipes are supported. - * @param enable_hide_gesture whether `self` can be closed with a swipe gesture - */ - set_enable_hide_gesture(enable_hide_gesture: boolean): void - /** - * Sets whether `self` can be opened with an edge swipe gesture. - * - * Only touchscreen swipes are supported. - * @param enable_show_gesture whether `self` can be opened with a swipe gesture - */ - set_enable_show_gesture(enable_show_gesture: boolean): void - /** - * Sets the maximum sidebar width for `self`. - * - * Maximum width is affected by [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - * @param width the maximum width - */ - set_max_sidebar_width(width: number): void - /** - * Sets the minimum sidebar width for `self`. - * - * Minimum width is affected by [property`OverlaySplitView:`sidebar-width-unit]. - * - * The sidebar widget can still be allocated with larger width if its own - * minimum width exceeds it. - * @param width the minimum width - */ - set_min_sidebar_width(width: number): void - /** - * Sets whether the sidebar widget is pinned for `self`. - * - * By default, collapsing `self` automatically hides the sidebar widget, and - * uncollapsing it shows the sidebar. If set to `TRUE`, sidebar visibility never - * changes on its own. - * @param pin_sidebar whether to pin the sidebar widget - */ - set_pin_sidebar(pin_sidebar: boolean): void - /** - * Sets whether the sidebar widget is shown for `self`. - * @param show_sidebar whether to show the sidebar widget - */ - set_show_sidebar(show_sidebar: boolean): void - /** - * Sets the sidebar widget for `self`. - * @param sidebar the sidebar widget - */ - set_sidebar(sidebar: Gtk.Widget | null): void - /** - * Sets the sidebar position for `self`. - * - * If it's set to `GTK_PACK_START`, the sidebar is displayed before the content, - * if `GTK_PACK_END`, it's displayed after the content. - * @param position the new position - */ - set_sidebar_position(position: Gtk.PackType): void - /** - * Sets the preferred sidebar width as a fraction of the total width of `self`. - * - * The preferred width is additionally limited by - * [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - * - * The sidebar widget can be allocated with larger width if its own minimum - * width exceeds the preferred width. - * @param fraction the preferred width fraction - */ - set_sidebar_width_fraction(fraction: number): void - /** - * Sets the length unit for minimum and maximum sidebar widths. - * - * See [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width]. - * @param unit the length unit - */ - set_sidebar_width_unit(unit: LengthUnit): void - - // Class property signals of Adw-1.Adw.OverlaySplitView - - connect(sigName: "notify::collapsed", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::collapsed", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::collapsed", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::enable-hide-gesture", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-hide-gesture", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-hide-gesture", ...args: any[]): void - connect(sigName: "notify::enable-show-gesture", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-show-gesture", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-show-gesture", ...args: any[]): void - connect(sigName: "notify::max-sidebar-width", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-sidebar-width", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-sidebar-width", ...args: any[]): void - connect(sigName: "notify::min-sidebar-width", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-sidebar-width", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-sidebar-width", ...args: any[]): void - connect(sigName: "notify::pin-sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pin-sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pin-sidebar", ...args: any[]): void - connect(sigName: "notify::show-sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-sidebar", ...args: any[]): void - connect(sigName: "notify::sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar", ...args: any[]): void - connect(sigName: "notify::sidebar-position", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar-position", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar-position", ...args: any[]): void - connect(sigName: "notify::sidebar-width-fraction", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar-width-fraction", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar-width-fraction", ...args: any[]): void - connect(sigName: "notify::sidebar-width-unit", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sidebar-width-unit", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sidebar-width-unit", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: OverlaySplitView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget presenting sidebar and content side by side or as an overlay. - * - * - * - * overlay-split-view - * - * - * - * overlay-split-view-collapsed - * - * - * `AdwOverlaySplitView` has two children: sidebar and content, and displays - * them side by side. - * - * When [property`OverlaySplitView:`collapsed] is set to `TRUE`, the sidebar is - * instead shown as an overlay above the content widget. - * - * The sidebar can be hidden or shown using the - * [property`OverlaySplitView:`show-sidebar] property. - * - * Sidebar can be displayed before or after the content, this can be controlled - * with the [property`OverlaySplitView:`sidebar-position] property. - * - * Collapsing the split view automatically hides the sidebar widget, and - * uncollapsing it shows the sidebar. If this behavior is not desired, the - * [property`OverlaySplitView:`pin-sidebar] property can be used to override it. - * - * `AdwOverlaySplitView` supports an edge swipe gesture for showing the sidebar, - * and a swipe from the sidebar for hiding it. Gestures are only supported on - * touchscreen, but not touchpad. Gestures can be controlled with the - * [property`OverlaySplitView:`enable-show-gesture] and - * [property`OverlaySplitView:`enable-hide-gesture] properties. - * - * See also [class`NavigationSplitView]`. - * - * `AdwOverlaySplitView` is typically used together with an [class`Breakpoint]` - * setting the `collapsed` property to `TRUE` on small widths, as follows: - * - * ```xml - * - * 360 - * 200 - * 800 - * 800 - * - * - * max-width: 400sp - * True - * - * - * - * - * - * - * - * - * - * - * - * - * - * ``` - * - * `AdwOverlaySplitView` is often used for implementing the - * [utility pane](https://developer.gnome.org/hig/patterns/containers/utility-panes.html) - * pattern. - * - * ## Sizing - * - * When not collapsed, `AdwOverlaySplitView` changes the sidebar width - * depending on its own width. - * - * If possible, it tries to allocate a fraction of the total width, controlled - * with the [property`OverlaySplitView:`sidebar-width-fraction] property. - * - * The sidebar also has minimum and maximum sizes, controlled with the - * [property`OverlaySplitView:`min-sidebar-width] and - * [property`OverlaySplitView:`max-sidebar-width] properties. - * - * The minimum and maximum sizes are using the length unit specified with the - * [property`OverlaySplitView:`sidebar-width-unit]. - * - * By default, sidebar is using 25% of the total width, with 180sp as the - * minimum size and 280sp as the maximum size. - * - * When collapsed, the preferred width fraction is ignored and the sidebar uses - * [property`OverlaySplitView:`max-sidebar-width] when possible. - * - * ## Header Bar Integration - * - * When used inside `AdwOverlaySplitView`, [class`HeaderBar]` will automatically - * hide the window buttons in the middle. - * - * ## `AdwOverlaySplitView` as `GtkBuildable` - * - * The `AdwOverlaySplitView` implementation of the [iface`Gtk`.Buildable] - * interface supports setting the sidebar widget by specifying “sidebar” as the - * “type” attribute of a `` element, Specifying “content” child type or - * omitting it results in setting the content widget. - * - * ## CSS nodes - * - * `AdwOverlaySplitView` has a single CSS node with the name - * `overlay-split-view`. - * - * It contains two nodes with the name `widget`, containing the sidebar and - * content children. - * - * When not collapsed, they have the `.sidebar-view` and `.content-view` style - * classes respectively. - * - * ``` - * overlay-split-view - * ├── widget.sidebar-pane - * │ ╰── [sidebar child] - * ╰── widget.content-pane - * ╰── [content child] - * ``` - * - * When collapsed, the one containing the sidebar child has the `.background` - * style class and the other one has no style classes. - * - * ``` - * overlay-split-view - * ├── widget.background - * │ ╰── [sidebar child] - * ╰── widget - * ╰── [content child] - * ``` - * - * ## Accessibility - * - * `AdwOverlaySplitView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class OverlaySplitView extends Gtk.Widget { - - // Own properties of Adw-1.Adw.OverlaySplitView - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.OverlaySplitView - - constructor(config?: OverlaySplitView.ConstructorProperties) - /** - * Creates a new `AdwOverlaySplitView`. - * @constructor - * @returns the newly created `AdwOverlaySplitView` - */ - constructor() - /** - * Creates a new `AdwOverlaySplitView`. - * @constructor - * @returns the newly created `AdwOverlaySplitView` - */ - static new(): OverlaySplitView - _init(config?: OverlaySplitView.ConstructorProperties): void -} - -module PasswordEntryRow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Editable.ConstructorProperties, EntryRow.ConstructorProperties { - } - -} - -interface PasswordEntryRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Editable { - - // Conflicting properties - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Class property signals of Adw-1.Adw.PasswordEntryRow - - connect(sigName: "notify::activates-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activates-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activates-default", ...args: any[]): void - connect(sigName: "notify::attributes", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::attributes", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::attributes", ...args: any[]): void - connect(sigName: "notify::enable-emoji-completion", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-emoji-completion", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-emoji-completion", ...args: any[]): void - connect(sigName: "notify::input-hints", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::input-hints", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::input-hints", ...args: any[]): void - connect(sigName: "notify::input-purpose", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::input-purpose", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::input-purpose", ...args: any[]): void - connect(sigName: "notify::show-apply-button", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-apply-button", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-apply-button", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: "notify::cursor-position", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor-position", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor-position", ...args: any[]): void - connect(sigName: "notify::editable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::editable", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::editable", ...args: any[]): void - connect(sigName: "notify::enable-undo", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-undo", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-undo", ...args: any[]): void - connect(sigName: "notify::max-width-chars", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-width-chars", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-width-chars", ...args: any[]): void - connect(sigName: "notify::selection-bound", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selection-bound", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selection-bound", ...args: any[]): void - connect(sigName: "notify::text", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text", ...args: any[]): void - connect(sigName: "notify::width-chars", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-chars", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-chars", ...args: any[]): void - connect(sigName: "notify::xalign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::xalign", callback: (($obj: PasswordEntryRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::xalign", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`EntryRow]` tailored for entering secrets. - * - * - * - * password-entry-row - * - * - * It does not show its contents in clear text, does not allow to copy it to the - * clipboard, and shows a warning when Caps Lock is engaged. If the underlying - * platform allows it, `AdwPasswordEntryRow` will also place the text in a - * non-pageable memory area, to avoid it being written out to disk by the - * operating system. - * - * It offer a way to reveal the contents in clear text. - * - * ## CSS Nodes - * - * `AdwPasswordEntryRow` has a single CSS node with name `row` that carries - * `.entry` and `.password` style classes. - * @class - */ -class PasswordEntryRow extends EntryRow { - - // Own properties of Adw-1.Adw.PasswordEntryRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PasswordEntryRow - - constructor(config?: PasswordEntryRow.ConstructorProperties) - /** - * Creates a new `AdwPasswordEntryRow`. - * @constructor - * @returns the newly created `AdwPasswordEntryRow` - */ - constructor() - /** - * Creates a new `AdwPasswordEntryRow`. - * @constructor - * @returns the newly created `AdwPasswordEntryRow` - */ - static new(): PasswordEntryRow - _init(config?: PasswordEntryRow.ConstructorProperties): void -} - -module PreferencesGroup { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.PreferencesGroup - - /** - * The description for this group of preferences. - */ - description?: string | null - /** - * The header suffix widget. - * - * Displayed above the list, next to the title and description. - * - * Suffixes are commonly used to show a button or a spinner for the whole - * group. - */ - header_suffix?: Gtk.Widget | null - /** - * The title for this group of preferences. - */ - title?: string | null - } - -} - -interface PreferencesGroup extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.PreferencesGroup - - /** - * The description for this group of preferences. - */ - description: string | null - /** - * The header suffix widget. - * - * Displayed above the list, next to the title and description. - * - * Suffixes are commonly used to show a button or a spinner for the whole - * group. - */ - header_suffix: Gtk.Widget - /** - * The title for this group of preferences. - */ - title: string | null - - // Own fields of Adw-1.Adw.PreferencesGroup - - parent_instance: Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.PreferencesGroup - - /** - * Adds a child to `self`. - * @param child the widget to add - */ - add(child: Gtk.Widget): void - /** - * Gets the description of `self`. - * @returns the description of @self - */ - get_description(): string | null - /** - * Gets the suffix for `self'`s header. - * @returns the suffix for @self's header. - */ - get_header_suffix(): Gtk.Widget | null - /** - * Gets the title of `self`. - * @returns the title of @self - */ - get_title(): string | null - /** - * Removes a child from `self`. - * @param child the child to remove - */ - remove(child: Gtk.Widget): void - /** - * Sets the description for `self`. - * @param description the description - */ - set_description(description: string | null): void - /** - * Sets the suffix for `self'`s header. - * - * Displayed above the list, next to the title and description. - * - * Suffixes are commonly used to show a button or a spinner for the whole group. - * @param suffix the suffix to set - */ - set_header_suffix(suffix: Gtk.Widget | null): void - /** - * Sets the title for `self`. - * @param title the title - */ - set_title(title: string | null): void - - // Class property signals of Adw-1.Adw.PreferencesGroup - - connect(sigName: "notify::description", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::description", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::description", ...args: any[]): void - connect(sigName: "notify::header-suffix", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::header-suffix", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::header-suffix", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: PreferencesGroup, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A group of preference rows. - * - * - * - * preferences-group - * - * - * An `AdwPreferencesGroup` represents a group or tightly related preferences, - * which in turn are represented by [class`PreferencesRow]`. - * - * To summarize the role of the preferences it gathers, a group can have both a - * title and a description. The title will be used by [class`PreferencesWindow]` - * to let the user look for a preference. - * - * ## AdwPreferencesGroup as GtkBuildable - * - * The `AdwPreferencesGroup` implementation of the [iface`Gtk`.Buildable] interface - * supports adding [class`PreferencesRow]`s to the list by omitting "type". If "type" - * is omitted and the widget isn't a [class`PreferencesRow]` the child is added to - * a box below the list. - * - * When the "type" attribute of a child is `header-suffix`, the child - * is set as the suffix on the end of the title and description. - * - * ## CSS nodes - * - * `AdwPreferencesGroup` has a single CSS node with name `preferencesgroup`. - * - * ## Accessibility - * - * `AdwPreferencesGroup` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class PreferencesGroup extends Gtk.Widget { - - // Own properties of Adw-1.Adw.PreferencesGroup - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PreferencesGroup - - constructor(config?: PreferencesGroup.ConstructorProperties) - /** - * Creates a new `AdwPreferencesGroup`. - * @constructor - * @returns the newly created `AdwPreferencesGroup` - */ - constructor() - /** - * Creates a new `AdwPreferencesGroup`. - * @constructor - * @returns the newly created `AdwPreferencesGroup` - */ - static new(): PreferencesGroup - _init(config?: PreferencesGroup.ConstructorProperties): void -} - -module PreferencesPage { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.PreferencesPage - - /** - * The description to be displayed at the top of the page. - */ - description?: string | null - /** - * The icon name for this page. - */ - icon_name?: string | null - /** - * The name of this page. - */ - name?: string | null - /** - * The title for this page. - */ - title?: string | null - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline?: boolean | null - } - -} - -interface PreferencesPage extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.PreferencesPage - - /** - * The description to be displayed at the top of the page. - */ - description: string | null - /** - * The icon name for this page. - */ - icon_name: string | null - /** - * The name of this page. - */ - name: string | null - /** - * The title for this page. - */ - title: string | null - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline: boolean - - // Own fields of Adw-1.Adw.PreferencesPage - - parent_instance: Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.PreferencesPage - - /** - * Adds a preferences group to `self`. - * @param group the group to add - */ - add(group: PreferencesGroup): void - /** - * Gets the description of `self`. - * @returns the description of @self. - */ - get_description(): string | null - /** - * Gets the icon name for `self`. - * @returns the icon name for @self - */ - get_icon_name(): string | null - /** - * Gets the name of `self`. - * @returns the name of @self - */ - get_name(): string | null - /** - * Gets the title of `self`. - * @returns the title of @self. - */ - get_title(): string | null - /** - * Gets whether an embedded underline in the title indicates a mnemonic. - * @returns whether an embedded underline in the title indicates a mnemonic - */ - get_use_underline(): boolean - /** - * Removes a group from `self`. - * @param group the group to remove - */ - remove(group: PreferencesGroup): void - /** - * Scrolls the scrolled window of `self` to the top. - */ - scroll_to_top(): void - /** - * Sets the description of `self`. - * - * The description is displayed at the top of the page. - * @param description the description - */ - set_description(description: string | null): void - /** - * Sets the icon name for `self`. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the name of `self`. - * @param name the name - */ - set_name(name: string | null): void - /** - * Sets the title of `self`. - * @param title the title - */ - set_title(title: string | null): void - /** - * Sets whether an embedded underline in the title indicates a mnemonic. - * @param use_underline `TRUE` if underlines in the text indicate mnemonics - */ - set_use_underline(use_underline: boolean): void - - // Class property signals of Adw-1.Adw.PreferencesPage - - connect(sigName: "notify::description", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::description", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::description", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: PreferencesPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A page from [class`PreferencesWindow]`. - * - * - * - * preferences-page - * - * - * The `AdwPreferencesPage` widget gathers preferences groups into a single page - * of a preferences window. - * - * ## CSS nodes - * - * `AdwPreferencesPage` has a single CSS node with name `preferencespage`. - * - * ## Accessibility - * - * `AdwPreferencesPage` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class PreferencesPage extends Gtk.Widget { - - // Own properties of Adw-1.Adw.PreferencesPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PreferencesPage - - constructor(config?: PreferencesPage.ConstructorProperties) - /** - * Creates a new `AdwPreferencesPage`. - * @constructor - * @returns the newly created `AdwPreferencesPage` - */ - constructor() - /** - * Creates a new `AdwPreferencesPage`. - * @constructor - * @returns the newly created `AdwPreferencesPage` - */ - static new(): PreferencesPage - _init(config?: PreferencesPage.ConstructorProperties): void -} - -module PreferencesRow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.ListBoxRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.PreferencesRow - - /** - * The title of the preference represented by this row. - * - * The title is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - title?: string | null - /** - * Whether the user can copy the title from the label. - * - * See also [property`Gtk`.Label:selectable]. - */ - title_selectable?: boolean | null - /** - * Whether to use Pango markup for the title label. - * - * Subclasses may also use it for other labels, such as subtitle. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup?: boolean | null - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline?: boolean | null - } - -} - -interface PreferencesRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.PreferencesRow - - /** - * The title of the preference represented by this row. - * - * The title is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - */ - title: string | null - /** - * Whether the user can copy the title from the label. - * - * See also [property`Gtk`.Label:selectable]. - */ - title_selectable: boolean - /** - * Whether to use Pango markup for the title label. - * - * Subclasses may also use it for other labels, such as subtitle. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup: boolean - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline: boolean - - // Own fields of Adw-1.Adw.PreferencesRow - - parent_instance: Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.PreferencesRow - - /** - * Gets the title of the preference represented by `self`. - * @returns the title - */ - get_title(): string | null - /** - * Gets whether the user can copy the title from the label - * @returns whether the user can copy the title from the label - */ - get_title_selectable(): boolean - /** - * Gets whether to use Pango markup for the title label. - * @returns whether to use markup - */ - get_use_markup(): boolean - /** - * Gets whether an embedded underline in the title indicates a mnemonic. - * @returns whether an embedded underline in the title indicates a mnemonic - */ - get_use_underline(): boolean - /** - * Sets the title of the preference represented by `self`. - * - * The title is interpreted as Pango markup unless - * [property`PreferencesRow:`use-markup] is set to `FALSE`. - * @param title the title - */ - set_title(title: string | null): void - /** - * Sets whether the user can copy the title from the label - * - * See also [property`Gtk`.Label:selectable]. - * @param title_selectable `TRUE` if the user can copy the title from the label - */ - set_title_selectable(title_selectable: boolean): void - /** - * Sets whether to use Pango markup for the title label. - * - * Subclasses may also use it for other labels, such as subtitle. - * - * See also [func`Pango`.parse_markup]. - * @param use_markup whether to use markup - */ - set_use_markup(use_markup: boolean): void - /** - * Sets whether an embedded underline in the title indicates a mnemonic. - * @param use_underline `TRUE` if underlines in the text indicate mnemonics - */ - set_use_underline(use_underline: boolean): void - - // Class property signals of Adw-1.Adw.PreferencesRow - - connect(sigName: "notify::title", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: PreferencesRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] used to present preferences. - * - * The `AdwPreferencesRow` widget has a title that [class`PreferencesWindow]` - * will use to let the user look for a preference. It doesn't present the title - * in any way and lets you present the preference as you please. - * - * [class`ActionRow]` and its derivatives are convenient to use as preference - * rows as they take care of presenting the preference's title while letting you - * compose the inputs of the preference around it. - * @class - */ -class PreferencesRow extends Gtk.ListBoxRow { - - // Own properties of Adw-1.Adw.PreferencesRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PreferencesRow - - constructor(config?: PreferencesRow.ConstructorProperties) - /** - * Creates a new `AdwPreferencesRow`. - * @constructor - * @returns the newly created `AdwPreferencesRow` - */ - constructor() - /** - * Creates a new `AdwPreferencesRow`. - * @constructor - * @returns the newly created `AdwPreferencesRow` - */ - static new(): PreferencesRow - _init(config?: PreferencesRow.ConstructorProperties): void -} - -module PreferencesWindow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Native.ConstructorProperties, Gtk.Root.ConstructorProperties, Gtk.ShortcutManager.ConstructorProperties, Window.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.PreferencesWindow - - /** - * Whether gestures and shortcuts for closing subpages are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back mouse button - * - * The keyboard back key is also supported, as well as the - * Alt+ shortcut. - * - * For right-to-left locales, gestures and shortcuts are reversed. - */ - can_navigate_back?: boolean | null - /** - * Whether search is enabled. - */ - search_enabled?: boolean | null - visible_page?: Gtk.Widget | null - visible_page_name?: string | null - } - -} - -interface PreferencesWindow extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager { - - // Own properties of Adw-1.Adw.PreferencesWindow - - /** - * Whether gestures and shortcuts for closing subpages are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back mouse button - * - * The keyboard back key is also supported, as well as the - * Alt+ shortcut. - * - * For right-to-left locales, gestures and shortcuts are reversed. - */ - can_navigate_back: boolean - /** - * Whether search is enabled. - */ - search_enabled: boolean - visible_page: Gtk.Widget - visible_page_name: string | null - - // Own fields of Adw-1.Adw.PreferencesWindow - - parent_instance: Window & Gtk.Window & Gtk.Widget & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.PreferencesWindow - - /** - * Adds a preferences page to `self`. - * @param page the page to add - */ - add(page: PreferencesPage): void - /** - * Displays `toast`. - * - * See [method`ToastOverlay`.add_toast]. - * @param toast a toast - */ - add_toast(toast: Toast): void - /** - * Closes the current subpage. - * - * If there is no presented subpage, this does nothing. - */ - close_subpage(): void - /** - * Gets whether gestures and shortcuts for closing subpages are enabled. - * @returns whether gestures and shortcuts are enabled. - */ - get_can_navigate_back(): boolean - /** - * Gets whether search is enabled for `self`. - * @returns whether search is enabled for @self. - */ - get_search_enabled(): boolean - /** - * Gets the currently visible page of `self`. - * @returns the visible page - */ - get_visible_page(): PreferencesPage | null - /** - * Gets the name of currently visible page of `self`. - * @returns the name of the visible page - */ - get_visible_page_name(): string | null - /** - * Pop the visible page from the subpage stack of `self`. - * @returns `TRUE` if a page has been popped - */ - pop_subpage(): boolean - /** - * Sets `subpage` as the window's subpage and opens it. - * - * The transition can be cancelled by the user, in which case visible child will - * change back to the previously visible child. - * @param subpage the subpage - */ - present_subpage(subpage: Gtk.Widget): void - /** - * Pushes `page` onto the subpage stack of `self`. - * - * The page will be automatically removed when popped. - * @param page the subpage - */ - push_subpage(page: NavigationPage): void - /** - * Removes a page from `self`. - * @param page the page to remove - */ - remove(page: PreferencesPage): void - /** - * Sets whether gestures and shortcuts for closing subpages are enabled. - * - * The supported gestures are: - * - * - One-finger swipe on touchscreens - * - Horizontal scrolling on touchpads (usually two-finger swipe) - * - Back mouse button - * - * The keyboard back key is also supported, as well as the - * Alt+ shortcut. - * - * For right-to-left locales, gestures and shortcuts are reversed. - * @param can_navigate_back the new value - */ - set_can_navigate_back(can_navigate_back: boolean): void - /** - * Sets whether search is enabled for `self`. - * @param search_enabled whether search is enabled - */ - set_search_enabled(search_enabled: boolean): void - /** - * Makes `page` the visible page of `self`. - * @param page a page of `self` - */ - set_visible_page(page: PreferencesPage): void - /** - * Makes the page with the given name visible. - * - * See [property`ViewStack:`visible-child]. - * @param name the name of the page to make visible - */ - set_visible_page_name(name: string | null): void - - // Class property signals of Adw-1.Adw.PreferencesWindow - - connect(sigName: "notify::can-navigate-back", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-navigate-back", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-navigate-back", ...args: any[]): void - connect(sigName: "notify::search-enabled", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::search-enabled", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::search-enabled", ...args: any[]): void - connect(sigName: "notify::visible-page", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-page", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-page", ...args: any[]): void - connect(sigName: "notify::visible-page-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-page-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-page-name", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::current-breakpoint", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::current-breakpoint", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::current-breakpoint", ...args: any[]): void - connect(sigName: "notify::application", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::decorated", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decorated", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decorated", ...args: any[]): void - connect(sigName: "notify::default-height", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-height", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-height", ...args: any[]): void - connect(sigName: "notify::default-widget", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-widget", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-widget", ...args: any[]): void - connect(sigName: "notify::default-width", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-width", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-width", ...args: any[]): void - connect(sigName: "notify::deletable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deletable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deletable", ...args: any[]): void - connect(sigName: "notify::destroy-with-parent", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::destroy-with-parent", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::destroy-with-parent", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::focus-visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-visible", ...args: any[]): void - connect(sigName: "notify::focus-widget", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-widget", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-widget", ...args: any[]): void - connect(sigName: "notify::fullscreened", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fullscreened", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fullscreened", ...args: any[]): void - connect(sigName: "notify::handle-menubar-accel", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::handle-menubar-accel", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::handle-menubar-accel", ...args: any[]): void - connect(sigName: "notify::hide-on-close", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hide-on-close", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hide-on-close", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::is-active", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-active", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-active", ...args: any[]): void - connect(sigName: "notify::maximized", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximized", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximized", ...args: any[]): void - connect(sigName: "notify::mnemonics-visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mnemonics-visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mnemonics-visible", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::resizable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resizable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resizable", ...args: any[]): void - connect(sigName: "notify::startup-id", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::startup-id", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::startup-id", ...args: any[]): void - connect(sigName: "notify::suspended", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::suspended", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::suspended", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::titlebar", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::titlebar", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::titlebar", ...args: any[]): void - connect(sigName: "notify::transient-for", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transient-for", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transient-for", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: PreferencesWindow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A window to present an application's preferences. - * - * - * - * preferences-window - * - * - * The `AdwPreferencesWindow` widget presents an application's preferences - * gathered into pages and groups. The preferences are searchable by the user. - * - * ## CSS nodes - * - * `AdwPreferencesWindow` has a main CSS node with the name `window` and the - * style class `.preferences`. - * @class - */ -class PreferencesWindow extends Window { - - // Own properties of Adw-1.Adw.PreferencesWindow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PreferencesWindow - - constructor(config?: PreferencesWindow.ConstructorProperties) - /** - * Creates a new `AdwPreferencesWindow`. - * @constructor - * @returns the newly created `AdwPreferencesWindow` - */ - constructor() - /** - * Creates a new `AdwPreferencesWindow`. - * @constructor - * @returns the newly created `AdwPreferencesWindow` - */ - static new(): PreferencesWindow - _init(config?: PreferencesWindow.ConstructorProperties): void -} - -module PropertyAnimationTarget { - - // Constructor properties interface - - interface ConstructorProperties extends AnimationTarget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.PropertyAnimationTarget - - /** - * The object whose property will be animated. - * - * The `AdwPropertyAnimationTarget` instance does not hold a strong reference - * on the object; make sure the object is kept alive throughout the target's - * lifetime. - */ - object?: GObject.Object | null - /** - * The `GParamSpec` of the property to be animated. - */ - pspec?: GObject.ParamSpec | null - } - -} - -interface PropertyAnimationTarget { - - // Own properties of Adw-1.Adw.PropertyAnimationTarget - - /** - * The object whose property will be animated. - * - * The `AdwPropertyAnimationTarget` instance does not hold a strong reference - * on the object; make sure the object is kept alive throughout the target's - * lifetime. - */ - readonly object: GObject.Object - /** - * The `GParamSpec` of the property to be animated. - */ - readonly pspec: GObject.ParamSpec - - // Owm methods of Adw-1.Adw.PropertyAnimationTarget - - /** - * Gets the object animated by `self`. - * - * The `AdwPropertyAnimationTarget` instance does not hold a strong reference on - * the object; make sure the object is kept alive throughout the target's - * lifetime. - * @returns the animated object - */ - get_object(): GObject.Object - /** - * Gets the `GParamSpec` of the property animated by `self`. - * @returns the animated property's `GParamSpec` - */ - get_pspec(): GObject.ParamSpec - - // Class property signals of Adw-1.Adw.PropertyAnimationTarget - - connect(sigName: "notify::object", callback: (($obj: PropertyAnimationTarget, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::object", callback: (($obj: PropertyAnimationTarget, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::object", ...args: any[]): void - connect(sigName: "notify::pspec", callback: (($obj: PropertyAnimationTarget, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pspec", callback: (($obj: PropertyAnimationTarget, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pspec", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An [class`AnimationTarget]` changing the value of a property of a - * [class`GObject`.Object] instance. - * @class - */ -class PropertyAnimationTarget extends AnimationTarget { - - // Own properties of Adw-1.Adw.PropertyAnimationTarget - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.PropertyAnimationTarget - - constructor(config?: PropertyAnimationTarget.ConstructorProperties) - /** - * Creates a new `AdwPropertyAnimationTarget` for the `property_name` property on - * `object`. - * @constructor - * @param object an object to be animated - * @param property_name the name of the property on `object` to animate - * @returns the newly created `AdwPropertyAnimationTarget` - */ - constructor(object: GObject.Object, property_name: string | null) - /** - * Creates a new `AdwPropertyAnimationTarget` for the `property_name` property on - * `object`. - * @constructor - * @param object an object to be animated - * @param property_name the name of the property on `object` to animate - * @returns the newly created `AdwPropertyAnimationTarget` - */ - static new(object: GObject.Object, property_name: string | null): PropertyAnimationTarget - /** - * Creates a new `AdwPropertyAnimationTarget` for the `pspec` property on - * `object`. - * @constructor - * @param object an object to be animated - * @param pspec the param spec of the property on `object` to animate - * @returns new newly created `AdwPropertyAnimationTarget` - */ - static new_for_pspec(object: GObject.Object, pspec: GObject.ParamSpec): PropertyAnimationTarget - _init(config?: PropertyAnimationTarget.ConstructorProperties): void -} - -module SpinRow { - - // Signal callback interfaces - - /** - * Signal callback interface for `input` - */ - interface InputSignalCallback { - ($obj: SpinRow): number - } - - /** - * Signal callback interface for `output` - */ - interface OutputSignalCallback { - ($obj: SpinRow): boolean - } - - /** - * Signal callback interface for `wrapped` - */ - interface WrappedSignalCallback { - ($obj: SpinRow): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Editable.ConstructorProperties, ActionRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SpinRow - - /** - * The adjustment that holds the value of the spin row. - */ - adjustment?: Gtk.Adjustment | null - /** - * The acceleration rate when you hold down a button or key. - */ - climb_rate?: number | null - /** - * The number of decimal places to display. - */ - digits?: number | null - /** - * Whether non-numeric characters should be ignored. - */ - numeric?: boolean | null - /** - * Whether invalid values are snapped to the nearest step increment. - */ - snap_to_ticks?: boolean | null - /** - * The policy for updating the spin row. - * - * The options are always, or only when the value is invalid. - */ - update_policy?: Gtk.SpinButtonUpdatePolicy | null - /** - * The current value. - */ - value?: number | null - /** - * Whether the spin row should wrap upon reaching its limits. - */ - wrap?: boolean | null - } - -} - -interface SpinRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Editable { - - // Own properties of Adw-1.Adw.SpinRow - - /** - * The adjustment that holds the value of the spin row. - */ - adjustment: Gtk.Adjustment - /** - * The acceleration rate when you hold down a button or key. - */ - climb_rate: number - /** - * The number of decimal places to display. - */ - digits: number - /** - * Whether non-numeric characters should be ignored. - */ - numeric: boolean - /** - * Whether invalid values are snapped to the nearest step increment. - */ - snap_to_ticks: boolean - /** - * The policy for updating the spin row. - * - * The options are always, or only when the value is invalid. - */ - update_policy: Gtk.SpinButtonUpdatePolicy - /** - * The current value. - */ - value: number - /** - * Whether the spin row should wrap upon reaching its limits. - */ - wrap: boolean - - // Conflicting properties - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.SpinRow - - /** - * Changes the properties of an existing spin row. - * - * The adjustment, climb rate, and number of decimal places are updated - * accordingly. - * @param adjustment the adjustment that this spin row should use - * @param climb_rate the new climb rate - * @param digits the number of decimal places to display - */ - configure(adjustment: Gtk.Adjustment | null, climb_rate: number, digits: number): void - /** - * Gets the adjustment that holds the value for the spin row. - * @returns the adjustment that holds the spin row's value - */ - get_adjustment(): Gtk.Adjustment - /** - * Gets the acceleration rate when you hold down a button or key. - * @returns the acceleration rate when you hold down a button or key - */ - get_climb_rate(): number - /** - * Gets the number of decimal places to display. - * @returns the number of decimal places to display - */ - get_digits(): number - /** - * Gets whether non-numeric characters should be ignored. - * @returns whether non-numeric characters should be ignored. - */ - get_numeric(): boolean - /** - * Gets whether invalid values are snapped to nearest step increment. - * @returns whether invalid values are snapped to the nearest step increment - */ - get_snap_to_ticks(): boolean - /** - * Gets the policy for updating the spin row. - * @returns the policy for updating the spin row - */ - get_update_policy(): Gtk.SpinButtonUpdatePolicy - /** - * Gets the current value. - * @returns the current value - */ - get_value(): number - /** - * Gets whether the spin row should wrap upon reaching its limits. - * @returns whether the spin row should wrap upon reaching its limits - */ - get_wrap(): boolean - /** - * Sets the adjustment that holds the value for the spin row. - * @param adjustment an adjustment - */ - set_adjustment(adjustment: Gtk.Adjustment | null): void - /** - * Sets the acceleration rate when you hold down a button or key. - * @param climb_rate the acceleration rate when you hold down a button or key - */ - set_climb_rate(climb_rate: number): void - /** - * Sets the number of decimal places to display. - * @param digits the number of decimal places to display - */ - set_digits(digits: number): void - /** - * Sets whether non-numeric characters should be ignored. - * @param numeric whether non-numeric characters should be ignored - */ - set_numeric(numeric: boolean): void - /** - * Sets the minimum and maximum allowable values for `self`. - * - * If the current value is outside this range, it will be adjusted - * to fit within the range, otherwise it will remain unchanged. - * @param min minimum allowable value - * @param max maximum allowable value - */ - set_range(min: number, max: number): void - /** - * Sets whether invalid values are snapped to the nearest step increment. - * @param snap_to_ticks whether invalid values are snapped to the nearest step increment - */ - set_snap_to_ticks(snap_to_ticks: boolean): void - /** - * Sets the policy for updating the spin row. - * - * The options are always, or only when the value is invalid. - * @param policy the policy for updating the spin row - */ - set_update_policy(policy: Gtk.SpinButtonUpdatePolicy): void - /** - * Sets the current value. - * @param value a new value - */ - set_value(value: number): void - /** - * Sets whether the spin row should wrap upon reaching its limits. - * @param wrap whether the spin row should wrap upon reaching its limits - */ - set_wrap(wrap: boolean): void - /** - * Manually force an update of the spin row. - */ - update(): void - - // Conflicting methods - - /** - * Activates `self`. - */ - activate(): void - - // Overloads of activate - - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - - // Own signals of Adw-1.Adw.SpinRow - - connect(sigName: "input", callback: SpinRow.InputSignalCallback): number - connect_after(sigName: "input", callback: SpinRow.InputSignalCallback): number - emit(sigName: "input", ...args: any[]): void - connect(sigName: "output", callback: SpinRow.OutputSignalCallback): number - connect_after(sigName: "output", callback: SpinRow.OutputSignalCallback): number - emit(sigName: "output", ...args: any[]): void - connect(sigName: "wrapped", callback: SpinRow.WrappedSignalCallback): number - connect_after(sigName: "wrapped", callback: SpinRow.WrappedSignalCallback): number - emit(sigName: "wrapped", ...args: any[]): void - - // Class property signals of Adw-1.Adw.SpinRow - - connect(sigName: "notify::adjustment", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::adjustment", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::adjustment", ...args: any[]): void - connect(sigName: "notify::climb-rate", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::climb-rate", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::climb-rate", ...args: any[]): void - connect(sigName: "notify::digits", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::digits", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::digits", ...args: any[]): void - connect(sigName: "notify::numeric", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::numeric", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::numeric", ...args: any[]): void - connect(sigName: "notify::snap-to-ticks", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::snap-to-ticks", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::snap-to-ticks", ...args: any[]): void - connect(sigName: "notify::update-policy", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::update-policy", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::update-policy", ...args: any[]): void - connect(sigName: "notify::value", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value", ...args: any[]): void - connect(sigName: "notify::wrap", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::wrap", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::wrap", ...args: any[]): void - connect(sigName: "notify::activatable-widget", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable-widget", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable-widget", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::subtitle-lines", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-lines", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-lines", ...args: any[]): void - connect(sigName: "notify::subtitle-selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-selectable", ...args: any[]): void - connect(sigName: "notify::title-lines", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-lines", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-lines", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: "notify::cursor-position", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor-position", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor-position", ...args: any[]): void - connect(sigName: "notify::editable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::editable", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::editable", ...args: any[]): void - connect(sigName: "notify::enable-undo", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-undo", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-undo", ...args: any[]): void - connect(sigName: "notify::max-width-chars", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-width-chars", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-width-chars", ...args: any[]): void - connect(sigName: "notify::selection-bound", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selection-bound", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selection-bound", ...args: any[]): void - connect(sigName: "notify::text", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text", ...args: any[]): void - connect(sigName: "notify::width-chars", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-chars", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-chars", ...args: any[]): void - connect(sigName: "notify::xalign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::xalign", callback: (($obj: SpinRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::xalign", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An [class`ActionRow]` with an embedded spin button. - * - * - * - * spin-row - * - * - * Example of an `AdwSpinRow` UI definition: - * - * ```xml - * - * Spin Row - * - * - * 0 - * 100 - * 50 - * 10 - * 1 - * - * - * - * ``` - * - * See [class`Gtk`.SpinButton] for details. - * - * ## CSS nodes - * - * `AdwSpinRow` has the same structure as [class`ActionRow]`, as well as the - * `.spin` style class on the main node. - * @class - */ -class SpinRow extends ActionRow { - - // Own properties of Adw-1.Adw.SpinRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SpinRow - - constructor(config?: SpinRow.ConstructorProperties) - /** - * Creates a new `AdwSpinRow`. - * @constructor - * @param adjustment the adjustment that this spin row should use - * @param climb_rate the rate the value changes when holding a button or key - * @param digits the number of decimal places to display - * @returns the newly created `AdwSpinRow` - */ - constructor(adjustment: Gtk.Adjustment | null, climb_rate: number, digits: number) - /** - * Creates a new `AdwSpinRow`. - * @constructor - * @param adjustment the adjustment that this spin row should use - * @param climb_rate the rate the value changes when holding a button or key - * @param digits the number of decimal places to display - * @returns the newly created `AdwSpinRow` - */ - static new(adjustment: Gtk.Adjustment | null, climb_rate: number, digits: number): SpinRow - - // Overloads of new - - /** - * Creates a new `AdwActionRow`. - * @constructor - * @returns the newly created `AdwActionRow` - */ - static new(): ActionRow - /** - * Creates a new `AdwSpinRow` with the given properties. - * - * This is a convenience constructor that allows creation of a numeric - * `AdwSpinRow` without manually creating an adjustment. The value is initially - * set to the minimum value and a page increment of 10 * `step` is the default. - * The precision of the spin row is equivalent to the precisions of `step`. - * - * Note that the way in which the precision is derived works best if `step` is a - * power of ten. If the resulting precision is not suitable for your needs, - * use [method`SpinRow`.set_digits] to correct it. - * @constructor - * @param min minimum allowable value - * @param max maximum allowable value - * @param step increment added or subtracted by spinning the widget - * @returns the new `AdwSpinRow` - */ - static new_with_range(min: number, max: number, step: number): SpinRow - _init(config?: SpinRow.ConstructorProperties): void -} - -module SplitButton { - - // Signal callback interfaces - - /** - * Signal callback interface for `activate` - */ - interface ActivateSignalCallback { - ($obj: SplitButton): void - } - - /** - * Signal callback interface for `clicked` - */ - interface ClickedSignalCallback { - ($obj: SplitButton): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SplitButton - - /** - * Whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [property`Gtk`.Button:can-shrink] and - * [property`Gtk`.MenuButton:can-shrink]. - */ - can_shrink?: boolean | null - /** - * The child widget. - * - * Setting the child widget will set [property`SplitButton:`label] and - * [property`SplitButton:`icon-name] to `NULL`. - */ - child?: Gtk.Widget | null - /** - * The direction in which the popup will be popped up. - * - * The dropdown arrow icon will point at the same direction. - * - * If the does not fit in the available space in the given direction, GTK will - * try its best to keep it inside the screen and fully visible. - * - * If you pass `GTK_ARROW_NONE`, it's equivalent to `GTK_ARROW_DOWN`. - */ - direction?: Gtk.ArrowType | null - /** - * The tooltip of the dropdown button. - * - * The tooltip can be marked up with the Pango text markup language. - */ - dropdown_tooltip?: string | null - /** - * The name of the icon used to automatically populate the button. - * - * Setting the icon name will set [property`SplitButton:`label] and - * [property`SplitButton:`child] to `NULL`. - */ - icon_name?: string | null - /** - * The label for the button. - * - * Setting the label will set [property`SplitButton:`icon-name] and - * [property`SplitButton:`child] to `NULL`. - */ - label?: string | null - /** - * The `GMenuModel` from which the popup will be created. - * - * If the menu model is `NULL`, the dropdown is disabled. - * - * A [class`Gtk`.Popover] will be created from the menu model with - * [ctor`Gtk`.PopoverMenu.new_from_model]. Actions will be connected as - * documented for this function. - * - * If [property`SplitButton:`popover] is already set, it will be dissociated - * from the button, and the property is set to `NULL`. - */ - menu_model?: Gio.MenuModel | null - /** - * The `GtkPopover` that will be popped up when the dropdown is clicked. - * - * If the popover is `NULL`, the dropdown is disabled. - * - * If [property`SplitButton:`menu-model] is set, the menu model is dissociated - * from the button, and the property is set to `NULL`. - */ - popover?: Gtk.Popover | null - /** - * Whether an underline in the text indicates a mnemonic. - * - * See [property`SplitButton:`label]. - */ - use_underline?: boolean | null - } - -} - -interface SplitButton extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.SplitButton - - /** - * Whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [property`Gtk`.Button:can-shrink] and - * [property`Gtk`.MenuButton:can-shrink]. - */ - can_shrink: boolean - /** - * The child widget. - * - * Setting the child widget will set [property`SplitButton:`label] and - * [property`SplitButton:`icon-name] to `NULL`. - */ - child: Gtk.Widget - /** - * The direction in which the popup will be popped up. - * - * The dropdown arrow icon will point at the same direction. - * - * If the does not fit in the available space in the given direction, GTK will - * try its best to keep it inside the screen and fully visible. - * - * If you pass `GTK_ARROW_NONE`, it's equivalent to `GTK_ARROW_DOWN`. - */ - direction: Gtk.ArrowType - /** - * The tooltip of the dropdown button. - * - * The tooltip can be marked up with the Pango text markup language. - */ - dropdown_tooltip: string | null - /** - * The name of the icon used to automatically populate the button. - * - * Setting the icon name will set [property`SplitButton:`label] and - * [property`SplitButton:`child] to `NULL`. - */ - icon_name: string | null - /** - * The label for the button. - * - * Setting the label will set [property`SplitButton:`icon-name] and - * [property`SplitButton:`child] to `NULL`. - */ - label: string | null - /** - * The `GMenuModel` from which the popup will be created. - * - * If the menu model is `NULL`, the dropdown is disabled. - * - * A [class`Gtk`.Popover] will be created from the menu model with - * [ctor`Gtk`.PopoverMenu.new_from_model]. Actions will be connected as - * documented for this function. - * - * If [property`SplitButton:`popover] is already set, it will be dissociated - * from the button, and the property is set to `NULL`. - */ - menu_model: Gio.MenuModel - /** - * The `GtkPopover` that will be popped up when the dropdown is clicked. - * - * If the popover is `NULL`, the dropdown is disabled. - * - * If [property`SplitButton:`menu-model] is set, the menu model is dissociated - * from the button, and the property is set to `NULL`. - */ - popover: Gtk.Popover - /** - * Whether an underline in the text indicates a mnemonic. - * - * See [property`SplitButton:`label]. - */ - use_underline: boolean - - // Owm methods of Adw-1.Adw.SplitButton - - /** - * gets whether the button can be smaller than the natural size of its contents. - * @returns whether the button can shrink - */ - get_can_shrink(): boolean - /** - * Gets the child widget. - * @returns the child widget - */ - get_child(): Gtk.Widget | null - /** - * Gets the direction in which the popup will be popped up. - * @returns the direction - */ - get_direction(): Gtk.ArrowType - - // Overloads of get_direction - - /** - * Gets the reading direction for a particular widget. - * - * See [method`Gtk`.Widget.set_direction]. - * @returns the reading direction for the widget. - */ - get_direction(): Gtk.TextDirection - /** - * Gets the tooltip of the dropdown button of `self`. - * @returns the dropdown tooltip of @self - */ - get_dropdown_tooltip(): string | null - /** - * Gets the name of the icon used to automatically populate the button. - * @returns the icon name - */ - get_icon_name(): string | null - /** - * Gets the label for `self`. - * @returns the label for @self - */ - get_label(): string | null - /** - * Gets the menu model from which the popup will be created. - * @returns the menu model - */ - get_menu_model(): Gio.MenuModel | null - /** - * Gets the popover that will be popped up when the dropdown is clicked. - * @returns the popover - */ - get_popover(): Gtk.Popover | null - /** - * Gets whether an underline in the text indicates a mnemonic. - * @returns whether an underline in the text indicates a mnemonic - */ - get_use_underline(): boolean - /** - * Dismisses the menu. - */ - popdown(): void - /** - * Pops up the menu. - */ - popup(): void - /** - * Sets whether the button can be smaller than the natural size of its contents. - * - * If set to `TRUE`, the label will ellipsize. - * - * See [method`Gtk`.Button.set_can_shrink] and - * [method`Gtk`.MenuButton.set_can_shrink]. - * @param can_shrink whether the button can shrink - */ - set_can_shrink(can_shrink: boolean): void - /** - * Sets the child widget. - * - * Setting the child widget will set [property`SplitButton:`label] and - * [property`SplitButton:`icon-name] to `NULL`. - * @param child the new child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets the direction in which the popup will be popped up. - * - * The dropdown arrow icon will point at the same direction. - * - * If the does not fit in the available space in the given direction, GTK will - * try its best to keep it inside the screen and fully visible. - * - * If you pass `GTK_ARROW_NONE`, it's equivalent to `GTK_ARROW_DOWN`. - * @param direction the direction - */ - set_direction(direction: Gtk.ArrowType): void - - // Overloads of set_direction - - /** - * Sets the reading direction on a particular widget. - * - * This direction controls the primary direction for widgets - * containing text, and also the direction in which the children - * of a container are packed. The ability to set the direction is - * present in order so that correct localization into languages with - * right-to-left reading directions can be done. Generally, applications - * will let the default reading direction present, except for containers - * where the containers are arranged in an order that is explicitly - * visual rather than logical (such as buttons for text justification). - * - * If the direction is set to %GTK_TEXT_DIR_NONE, then the value - * set by [func`Gtk`.Widget.set_default_direction] will be used. - * @param dir the new direction - */ - set_direction(dir: Gtk.TextDirection): void - /** - * Sets the tooltip of the dropdown button of `self`. - * - * The tooltip can be marked up with the Pango text markup language. - * @param tooltip the dropdown tooltip of `self` - */ - set_dropdown_tooltip(tooltip: string | null): void - /** - * Sets the name of the icon used to automatically populate the button. - * - * Setting the icon name will set [property`SplitButton:`label] and - * [property`SplitButton:`child] to `NULL`. - * @param icon_name the icon name to set - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the label for `self`. - * - * Setting the label will set [property`SplitButton:`icon-name] and - * [property`SplitButton:`child] to `NULL`. - * @param label the label to set - */ - set_label(label: string | null): void - /** - * Sets the menu model from which the popup will be created. - * - * If the menu model is `NULL`, the dropdown is disabled. - * - * A [class`Gtk`.Popover] will be created from the menu model with - * [ctor`Gtk`.PopoverMenu.new_from_model]. Actions will be connected as - * documented for this function. - * - * If [property`SplitButton:`popover] is already set, it will be dissociated from - * the button, and the property is set to `NULL`. - * @param menu_model the menu model - */ - set_menu_model(menu_model: Gio.MenuModel | null): void - /** - * Sets the popover that will be popped up when the dropdown is clicked. - * - * If the popover is `NULL`, the dropdown is disabled. - * - * If [property`SplitButton:`menu-model] is set, the menu model is dissociated - * from the button, and the property is set to `NULL`. - * @param popover the popover - */ - set_popover(popover: Gtk.Popover | null): void - /** - * Sets whether an underline in the text indicates a mnemonic. - * - * See [property`SplitButton:`label]. - * @param use_underline whether an underline in the text indicates a mnemonic - */ - set_use_underline(use_underline: boolean): void - - // Own signals of Adw-1.Adw.SplitButton - - connect(sigName: "activate", callback: SplitButton.ActivateSignalCallback): number - connect_after(sigName: "activate", callback: SplitButton.ActivateSignalCallback): number - emit(sigName: "activate", ...args: any[]): void - connect(sigName: "clicked", callback: SplitButton.ClickedSignalCallback): number - connect_after(sigName: "clicked", callback: SplitButton.ClickedSignalCallback): number - emit(sigName: "clicked", ...args: any[]): void - - // Class property signals of Adw-1.Adw.SplitButton - - connect(sigName: "notify::can-shrink", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-shrink", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-shrink", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::direction", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::direction", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::direction", ...args: any[]): void - connect(sigName: "notify::dropdown-tooltip", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::dropdown-tooltip", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::dropdown-tooltip", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::label", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::label", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::label", ...args: any[]): void - connect(sigName: "notify::menu-model", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::menu-model", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::menu-model", ...args: any[]): void - connect(sigName: "notify::popover", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::popover", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::popover", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: SplitButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A combined button and dropdown widget. - * - * - * - * split-button - * - * - * `AdwSplitButton` is typically used to present a set of actions in a menu, - * but allow access to one of them with a single click. - * - * The API is very similar to [class`Gtk`.Button] and [class`Gtk`.MenuButton], see - * their documentation for details. - * - * ## CSS nodes - * - * ``` - * splitbutton[.image-button][.text-button] - * ├── button - * │ ╰── - * ├── separator - * ╰── menubutton - * ╰── button.toggle - * ╰── arrow - * ``` - * - * `AdwSplitButton`'s CSS node is called `splitbutton`. It contains the css - * nodes: `button`, `separator`, `menubutton`. See [class`Gtk`.MenuButton] - * documentation for the `menubutton` contents. - * - * The main CSS node will contain the `.image-button` or `.text-button` style - * classes matching the button contents. The nested button nodes will never - * contain them. - * - * ## Accessibility - * - * `AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class SplitButton extends Gtk.Widget { - - // Own properties of Adw-1.Adw.SplitButton - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SplitButton - - constructor(config?: SplitButton.ConstructorProperties) - /** - * Creates a new `AdwSplitButton`. - * @constructor - * @returns the newly created `AdwSplitButton` - */ - constructor() - /** - * Creates a new `AdwSplitButton`. - * @constructor - * @returns the newly created `AdwSplitButton` - */ - static new(): SplitButton - _init(config?: SplitButton.ConstructorProperties): void -} - -module SpringAnimation { - - // Constructor properties interface - - interface ConstructorProperties extends Animation.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SpringAnimation - - /** - * Whether the animation should be clamped. - * - * If set to `TRUE`, the animation will abruptly end as soon as it reaches the - * final value, preventing overshooting. - * - * It won't prevent overshooting [property`SpringAnimation:`value-from] if a - * relative negative [property`SpringAnimation:`initial-velocity] is set. - */ - clamp?: boolean | null - /** - * Precision of the spring. - * - * The level of precision used to determine when the animation has come to a - * rest, that is, when the amplitude of the oscillations becomes smaller than - * this value. - * - * If the epsilon value is too small, the animation will take a long time to - * stop after the animated value has stopped visibly changing. - * - * If the epsilon value is too large, the animation will end prematurely. - * - * The default value is 0.001. - */ - epsilon?: number | null - /** - * The initial velocity to start the animation with. - * - * Initial velocity affects only the animation curve, but not its duration. - */ - initial_velocity?: number | null - /** - * Physical parameters describing the spring. - */ - spring_params?: SpringParams | null - /** - * The value to animate from. - * - * The animation will start at this value and end at - * [property`SpringAnimation:`value-to]. - */ - value_from?: number | null - /** - * The value to animate to. - * - * The animation will start at [property`SpringAnimation:`value-from] and end - * at this value. - */ - value_to?: number | null - } - -} - -interface SpringAnimation { - - // Own properties of Adw-1.Adw.SpringAnimation - - /** - * Whether the animation should be clamped. - * - * If set to `TRUE`, the animation will abruptly end as soon as it reaches the - * final value, preventing overshooting. - * - * It won't prevent overshooting [property`SpringAnimation:`value-from] if a - * relative negative [property`SpringAnimation:`initial-velocity] is set. - */ - clamp: boolean - /** - * Precision of the spring. - * - * The level of precision used to determine when the animation has come to a - * rest, that is, when the amplitude of the oscillations becomes smaller than - * this value. - * - * If the epsilon value is too small, the animation will take a long time to - * stop after the animated value has stopped visibly changing. - * - * If the epsilon value is too large, the animation will end prematurely. - * - * The default value is 0.001. - */ - epsilon: number - /** - * Estimated duration of the animation, in milliseconds. - * - * Can be [const`DURATION_INFINITE]` if the spring damping is set to 0. - */ - readonly estimated_duration: number - /** - * The initial velocity to start the animation with. - * - * Initial velocity affects only the animation curve, but not its duration. - */ - initial_velocity: number - /** - * Physical parameters describing the spring. - */ - spring_params: SpringParams - /** - * The value to animate from. - * - * The animation will start at this value and end at - * [property`SpringAnimation:`value-to]. - */ - value_from: number - /** - * The value to animate to. - * - * The animation will start at [property`SpringAnimation:`value-from] and end - * at this value. - */ - value_to: number - /** - * Current velocity of the animation. - */ - readonly velocity: number - - // Owm methods of Adw-1.Adw.SpringAnimation - - /** - * Calculates the value `self` will have at `time`. - * - * The time starts at 0 and ends at - * [property`SpringAnimation:`estimated_duration]. - * - * See also [method`SpringAnimation`.calculate_velocity]. - * @param time elapsed time, in milliseconds - * @returns the value at @time - */ - calculate_value(time: number): number - /** - * Calculates the velocity `self` will have at `time`. - * - * The time starts at 0 and ends at - * [property`SpringAnimation:`estimated_duration]. - * - * See also [method`SpringAnimation`.calculate_value]. - * @param time elapsed time, in milliseconds - * @returns the velocity at @time - */ - calculate_velocity(time: number): number - /** - * Gets whether `self` should be clamped. - * @returns whether @self is clamped - */ - get_clamp(): boolean - /** - * Gets the precision of the spring. - * @returns the epsilon value - */ - get_epsilon(): number - /** - * Gets the estimated duration of `self,` in milliseconds. - * - * Can be [const`DURATION_INFINITE]` if the spring damping is set to 0. - * @returns the estimated duration - */ - get_estimated_duration(): number - /** - * Gets the initial velocity of `self`. - * @returns the initial velocity - */ - get_initial_velocity(): number - /** - * Gets the physical parameters of the spring of `self`. - * @returns the spring parameters - */ - get_spring_params(): SpringParams - /** - * Gets the value `self` will animate from. - * @returns the value to animate from - */ - get_value_from(): number - /** - * Gets the value `self` will animate to. - * @returns the value to animate to - */ - get_value_to(): number - /** - * Gets the current velocity of `self`. - * @returns the current velocity - */ - get_velocity(): number - /** - * Sets whether `self` should be clamped. - * - * If set to `TRUE`, the animation will abruptly end as soon as it reaches the - * final value, preventing overshooting. - * - * It won't prevent overshooting [property`SpringAnimation:`value-from] if a - * relative negative [property`SpringAnimation:`initial-velocity] is set. - * @param clamp the new value - */ - set_clamp(clamp: boolean): void - /** - * Sets the precision of the spring. - * - * The level of precision used to determine when the animation has come to a - * rest, that is, when the amplitude of the oscillations becomes smaller than - * this value. - * - * If the epsilon value is too small, the animation will take a long time to - * stop after the animated value has stopped visibly changing. - * - * If the epsilon value is too large, the animation will end prematurely. - * - * The default value is 0.001. - * @param epsilon the new value - */ - set_epsilon(epsilon: number): void - /** - * Sets the initial velocity of `self`. - * - * Initial velocity affects only the animation curve, but not its duration. - * @param velocity the initial velocity - */ - set_initial_velocity(velocity: number): void - /** - * Sets the physical parameters of the spring of `self`. - * @param spring_params the new spring parameters - */ - set_spring_params(spring_params: SpringParams): void - /** - * Sets the value `self` will animate from. - * - * The animation will start at this value and end at - * [property`SpringAnimation:`value-to]. - * @param value the value to animate from - */ - set_value_from(value: number): void - /** - * Sets the value `self` will animate to. - * - * The animation will start at [property`SpringAnimation:`value-from] and end at - * this value. - * @param value the value to animate to - */ - set_value_to(value: number): void - - // Class property signals of Adw-1.Adw.SpringAnimation - - connect(sigName: "notify::clamp", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::clamp", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::clamp", ...args: any[]): void - connect(sigName: "notify::epsilon", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::epsilon", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::epsilon", ...args: any[]): void - connect(sigName: "notify::estimated-duration", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::estimated-duration", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::estimated-duration", ...args: any[]): void - connect(sigName: "notify::initial-velocity", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::initial-velocity", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::initial-velocity", ...args: any[]): void - connect(sigName: "notify::spring-params", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::spring-params", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::spring-params", ...args: any[]): void - connect(sigName: "notify::value-from", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value-from", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value-from", ...args: any[]): void - connect(sigName: "notify::value-to", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value-to", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value-to", ...args: any[]): void - connect(sigName: "notify::velocity", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::velocity", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::velocity", ...args: any[]): void - connect(sigName: "notify::follow-enable-animations-setting", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::follow-enable-animations-setting", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::follow-enable-animations-setting", ...args: any[]): void - connect(sigName: "notify::state", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::state", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::state", ...args: any[]): void - connect(sigName: "notify::target", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::target", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::target", ...args: any[]): void - connect(sigName: "notify::value", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value", ...args: any[]): void - connect(sigName: "notify::widget", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::widget", callback: (($obj: SpringAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::widget", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A spring-based [class`Animation]`. - * - * `AdwSpringAnimation` implements an animation driven by a physical model of a - * spring described by [struct`SpringParams]`, with a resting position in - * [property`SpringAnimation:`value-to], stretched to - * [property`SpringAnimation:`value-from]. - * - * Since the animation is physically simulated, spring animations don't have a - * fixed duration. The animation will stop when the simulated spring comes to a - * rest - when the amplitude of the oscillations becomes smaller than - * [property`SpringAnimation:`epsilon], or immediately when it reaches - * [property`SpringAnimation:`value-to] if - * [property`SpringAnimation:`clamp] is set to `TRUE`. The estimated duration can - * be obtained with [property`SpringAnimation:`estimated-duration]. - * - * Due to the nature of spring-driven motion the animation can overshoot - * [property`SpringAnimation:`value-to] before coming to a rest. Whether the - * animation will overshoot or not depends on the damping ratio of the spring. - * See [struct`SpringParams]` for more information about specific damping ratio - * values. - * - * If [property`SpringAnimation:`clamp] is `TRUE`, the animation will abruptly - * end as soon as it reaches the final value, preventing overshooting. - * - * Animations can have an initial velocity value, set via - * [property`SpringAnimation:`initial-velocity], which adjusts the curve without - * changing the duration. This makes spring animations useful for deceleration - * at the end of gestures. - * - * If the initial and final values are equal, and the initial velocity is not 0, - * the animation value will bounce and return to its resting position. - * @class - */ -class SpringAnimation extends Animation { - - // Own properties of Adw-1.Adw.SpringAnimation - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SpringAnimation - - constructor(config?: SpringAnimation.ConstructorProperties) - /** - * Creates a new `AdwSpringAnimation` on `widget`. - * - * The animation will animate `target` from `from` to `to` with the dynamics of a - * spring described by `spring_params`. - * @constructor - * @param widget a widget to create animation on - * @param from a value to animate from - * @param to a value to animate to - * @param spring_params physical parameters of the spring - * @param target a target value to animate - * @returns the newly created animation - */ - constructor(widget: Gtk.Widget, from: number, to: number, spring_params: SpringParams, target: AnimationTarget) - /** - * Creates a new `AdwSpringAnimation` on `widget`. - * - * The animation will animate `target` from `from` to `to` with the dynamics of a - * spring described by `spring_params`. - * @constructor - * @param widget a widget to create animation on - * @param from a value to animate from - * @param to a value to animate to - * @param spring_params physical parameters of the spring - * @param target a target value to animate - * @returns the newly created animation - */ - static new(widget: Gtk.Widget, from: number, to: number, spring_params: SpringParams, target: AnimationTarget): SpringAnimation - _init(config?: SpringAnimation.ConstructorProperties): void -} - -module Squeezer { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Orientable.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Squeezer - - /** - * Whether to allow squeezing beyond the last child's minimum size. - * - * If set to `TRUE`, the squeezer can shrink to the point where no child can - * be shown. This is functionally equivalent to appending a widget with 0×0 - * minimum size. - */ - allow_none?: boolean | null - /** - * Whether all children have the same size for the opposite orientation. - * - * For example, if a squeezer is horizontal and is homogeneous, it will - * request the same height for all its children. If it isn't, the squeezer may - * change size when a different child becomes visible. - */ - homogeneous?: boolean | null - /** - * Whether the squeezer interpolates its size when changing the visible child. - * - * If `TRUE`, the squeezer will interpolate its size between the one of the - * previous visible child and the one of the new visible child, according to - * the set transition duration and the orientation, e.g. if the squeezer is - * horizontal, it will interpolate the its height. - */ - interpolate_size?: boolean | null - /** - * The switch threshold policy. - * - * Determines when the squeezer will switch children. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only switch when the - * visible child cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, - * it will switch as soon as the visible child doesn't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately switching. - */ - switch_threshold_policy?: FoldThresholdPolicy | null - /** - * The transition animation duration, in milliseconds. - */ - transition_duration?: number | null - /** - * The type of animation used for transitions between children. - */ - transition_type?: SqueezerTransitionType | null - /** - * The horizontal alignment, from 0 (start) to 1 (end). - * - * This affects the children allocation during transitions, when they exceed - * the size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * start side aligned and overflow the end side, and 1 means the opposite. - */ - xalign?: number | null - /** - * The vertical alignment, from 0 (top) to 1 (bottom). - * - * This affects the children allocation during transitions, when they exceed - * the size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * top side aligned and overflow the bottom side, and 1 means the opposite. - */ - yalign?: number | null - } - -} - -interface Squeezer extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable { - - // Own properties of Adw-1.Adw.Squeezer - - /** - * Whether to allow squeezing beyond the last child's minimum size. - * - * If set to `TRUE`, the squeezer can shrink to the point where no child can - * be shown. This is functionally equivalent to appending a widget with 0×0 - * minimum size. - */ - allow_none: boolean - /** - * Whether all children have the same size for the opposite orientation. - * - * For example, if a squeezer is horizontal and is homogeneous, it will - * request the same height for all its children. If it isn't, the squeezer may - * change size when a different child becomes visible. - */ - homogeneous: boolean - /** - * Whether the squeezer interpolates its size when changing the visible child. - * - * If `TRUE`, the squeezer will interpolate its size between the one of the - * previous visible child and the one of the new visible child, according to - * the set transition duration and the orientation, e.g. if the squeezer is - * horizontal, it will interpolate the its height. - */ - interpolate_size: boolean - /** - * A selection model with the squeezer's pages. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track the visible page. - */ - readonly pages: Gtk.SelectionModel - /** - * The switch threshold policy. - * - * Determines when the squeezer will switch children. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only switch when the - * visible child cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, - * it will switch as soon as the visible child doesn't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately switching. - */ - switch_threshold_policy: FoldThresholdPolicy - /** - * The transition animation duration, in milliseconds. - */ - transition_duration: number - /** - * Whether a transition is currently running. - * - * If a transition is impossible, the property value will be set to `TRUE` and - * then immediately to `FALSE`, so it's possible to rely on its notifications - * to know that a transition has happened. - */ - readonly transition_running: boolean - /** - * The type of animation used for transitions between children. - */ - transition_type: SqueezerTransitionType - /** - * The currently visible child. - */ - readonly visible_child: Gtk.Widget - /** - * The horizontal alignment, from 0 (start) to 1 (end). - * - * This affects the children allocation during transitions, when they exceed - * the size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * start side aligned and overflow the end side, and 1 means the opposite. - */ - xalign: number - /** - * The vertical alignment, from 0 (top) to 1 (bottom). - * - * This affects the children allocation during transitions, when they exceed - * the size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * top side aligned and overflow the bottom side, and 1 means the opposite. - */ - yalign: number - - // Owm methods of Adw-1.Adw.Squeezer - - /** - * Adds a child to `self`. - * @param child the widget to add - * @returns the [class@SqueezerPage] for @child - */ - add(child: Gtk.Widget): SqueezerPage - /** - * Gets whether to allow squeezing beyond the last child's minimum size. - * @returns whether @self allows squeezing beyond the last child - */ - get_allow_none(): boolean - /** - * Gets whether all children have the same size for the opposite orientation. - * @returns whether @self is homogeneous - */ - get_homogeneous(): boolean - /** - * Gets whether `self` interpolates its size when changing the visible child. - * @returns whether the size is interpolated - */ - get_interpolate_size(): boolean - /** - * Returns the [class`SqueezerPage]` object for `child`. - * @param child a child of `self` - * @returns the page object for @child - */ - get_page(child: Gtk.Widget): SqueezerPage - /** - * Returns a [iface`Gio`.ListModel] that contains the pages of `self`. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track the visible page. - * @returns a `GtkSelectionModel` for the squeezer's children - */ - get_pages(): Gtk.SelectionModel - /** - * Gets the switch threshold policy for `self`. - */ - get_switch_threshold_policy(): FoldThresholdPolicy - /** - * Gets the transition animation duration for `self`. - * @returns the transition duration, in milliseconds - */ - get_transition_duration(): number - /** - * Gets whether a transition is currently running for `self`. - * - * If a transition is impossible, the property value will be set to `TRUE` and - * then immediately to `FALSE`, so it's possible to rely on its notifications - * to know that a transition has happened. - * @returns whether a transition is currently running - */ - get_transition_running(): boolean - /** - * Gets the type of animation used for transitions between children in `self`. - * @returns the current transition type of @self - */ - get_transition_type(): SqueezerTransitionType - /** - * Gets the currently visible child of `self`. - * @returns the visible child - */ - get_visible_child(): Gtk.Widget | null - /** - * Gets the horizontal alignment, from 0 (start) to 1 (end). - * @returns the alignment value - */ - get_xalign(): number - /** - * Gets the vertical alignment, from 0 (top) to 1 (bottom). - * @returns the alignment value - */ - get_yalign(): number - /** - * Removes a child widget from `self`. - * @param child the child to remove - */ - remove(child: Gtk.Widget): void - /** - * Sets whether to allow squeezing beyond the last child's minimum size. - * - * If set to `TRUE`, the squeezer can shrink to the point where no child can be - * shown. This is functionally equivalent to appending a widget with 0×0 minimum - * size. - * @param allow_none whether `self` allows squeezing beyond the last child - */ - set_allow_none(allow_none: boolean): void - /** - * Sets whether all children have the same size for the opposite orientation. - * - * For example, if a squeezer is horizontal and is homogeneous, it will request - * the same height for all its children. If it isn't, the squeezer may change - * size when a different child becomes visible. - * @param homogeneous whether `self` is homogeneous - */ - set_homogeneous(homogeneous: boolean): void - /** - * Sets whether `self` interpolates its size when changing the visible child. - * - * If `TRUE`, the squeezer will interpolate its size between the one of the - * previous visible child and the one of the new visible child, according to the - * set transition duration and the orientation, e.g. if the squeezer is - * horizontal, it will interpolate the its height. - * @param interpolate_size whether to interpolate the size - */ - set_interpolate_size(interpolate_size: boolean): void - /** - * Sets the switch threshold policy for `self`. - * - * Determines when the squeezer will switch children. - * - * If set to `ADW_FOLD_THRESHOLD_POLICY_MINIMUM`, it will only switch when the - * visible child cannot fit anymore. With `ADW_FOLD_THRESHOLD_POLICY_NATURAL`, - * it will switch as soon as the visible child doesn't get their natural size. - * - * This can be useful if you have a long ellipsizing label and want to let it - * ellipsize instead of immediately switching. - * @param policy the policy to use - */ - set_switch_threshold_policy(policy: FoldThresholdPolicy): void - /** - * Sets the transition animation duration for `self`. - * @param duration the new duration, in milliseconds - */ - set_transition_duration(duration: number): void - /** - * Sets the type of animation used for transitions between children in `self`. - * @param transition the new transition type - */ - set_transition_type(transition: SqueezerTransitionType): void - /** - * Sets the horizontal alignment, from 0 (start) to 1 (end). - * - * This affects the children allocation during transitions, when they exceed the - * size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * start side aligned and overflow the end side, and 1 means the opposite. - * @param xalign the new alignment value - */ - set_xalign(xalign: number): void - /** - * Sets the vertical alignment, from 0 (top) to 1 (bottom). - * - * This affects the children allocation during transitions, when they exceed the - * size of the squeezer. - * - * For example, 0.5 means the child will be centered, 0 means it will keep the - * top side aligned and overflow the bottom side, and 1 means the opposite. - * @param yalign the new alignment value - */ - set_yalign(yalign: number): void - - // Class property signals of Adw-1.Adw.Squeezer - - connect(sigName: "notify::allow-none", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-none", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-none", ...args: any[]): void - connect(sigName: "notify::homogeneous", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::homogeneous", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::homogeneous", ...args: any[]): void - connect(sigName: "notify::interpolate-size", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::interpolate-size", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::interpolate-size", ...args: any[]): void - connect(sigName: "notify::pages", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pages", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pages", ...args: any[]): void - connect(sigName: "notify::switch-threshold-policy", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::switch-threshold-policy", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::switch-threshold-policy", ...args: any[]): void - connect(sigName: "notify::transition-duration", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transition-duration", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transition-duration", ...args: any[]): void - connect(sigName: "notify::transition-running", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transition-running", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transition-running", ...args: any[]): void - connect(sigName: "notify::transition-type", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transition-type", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transition-type", ...args: any[]): void - connect(sigName: "notify::visible-child", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-child", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-child", ...args: any[]): void - connect(sigName: "notify::xalign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::xalign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::xalign", ...args: any[]): void - connect(sigName: "notify::yalign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::yalign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::yalign", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: Squeezer, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A best fit container. - * - * - * - * squeezer-wide - * - * - * - * squeezer-narrow - * - * - * The `AdwSqueezer` widget is a container which only shows the first of its - * children that fits in the available size. It is convenient to offer different - * widgets to represent the same data with different levels of detail, making - * the widget seem to squeeze itself to fit in the available space. - * - * Transitions between children can be animated as fades. This can be controlled - * with [property`Squeezer:`transition-type]. - * - * ## CSS nodes - * - * `AdwSqueezer` has a single CSS node with name `squeezer`. - * @class - */ -class Squeezer extends Gtk.Widget { - - // Own properties of Adw-1.Adw.Squeezer - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Squeezer - - constructor(config?: Squeezer.ConstructorProperties) - /** - * Creates a new `AdwSqueezer`. - * @constructor - * @returns the newly created `AdwSqueezer` - */ - constructor() - /** - * Creates a new `AdwSqueezer`. - * @constructor - * @returns the newly created `AdwSqueezer` - */ - static new(): Squeezer - _init(config?: Squeezer.ConstructorProperties): void -} - -module SqueezerPage { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SqueezerPage - - /** - * The the squeezer child to which the page belongs. - */ - child?: Gtk.Widget | null - /** - * Whether the child is enabled. - * - * If a child is disabled, it will be ignored when looking for the child - * fitting the available size best. - * - * This allows to programmatically and prematurely hide a child even if it - * fits in the available space. - * - * This can be used e.g. to ensure a certain child is hidden below a certain - * window width, or any other constraint you find suitable. - */ - enabled?: boolean | null - } - -} - -interface SqueezerPage { - - // Own properties of Adw-1.Adw.SqueezerPage - - /** - * The the squeezer child to which the page belongs. - */ - readonly child: Gtk.Widget - /** - * Whether the child is enabled. - * - * If a child is disabled, it will be ignored when looking for the child - * fitting the available size best. - * - * This allows to programmatically and prematurely hide a child even if it - * fits in the available space. - * - * This can be used e.g. to ensure a certain child is hidden below a certain - * window width, or any other constraint you find suitable. - */ - enabled: boolean - - // Owm methods of Adw-1.Adw.SqueezerPage - - /** - * Returns the squeezer child to which `self` belongs. - * @returns the child to which @self belongs - */ - get_child(): Gtk.Widget - /** - * Gets whether `self` is enabled. - * @returns whether @self is enabled - */ - get_enabled(): boolean - /** - * Sets whether `self` is enabled. - * - * If a child is disabled, it will be ignored when looking for the child - * fitting the available size best. - * - * This allows to programmatically and prematurely hide a child even if it fits - * in the available space. - * - * This can be used e.g. to ensure a certain child is hidden below a certain - * window width, or any other constraint you find suitable. - * @param enabled whether `self` is enabled - */ - set_enabled(enabled: boolean): void - - // Class property signals of Adw-1.Adw.SqueezerPage - - connect(sigName: "notify::child", callback: (($obj: SqueezerPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: SqueezerPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: SqueezerPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: SqueezerPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An auxiliary class used by [class`Squeezer]`. - * @class - */ -class SqueezerPage extends GObject.Object { - - // Own properties of Adw-1.Adw.SqueezerPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SqueezerPage - - constructor(config?: SqueezerPage.ConstructorProperties) - _init(config?: SqueezerPage.ConstructorProperties): void -} - -module StatusPage { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.StatusPage - - /** - * The child widget. - */ - child?: Gtk.Widget | null - /** - * The description markup to be displayed below the title. - */ - description?: string | null - /** - * The name of the icon to be used. - * - * Changing this will set [property`StatusPage:`paintable] to `NULL`. - */ - icon_name?: string | null - /** - * The paintable to be used. - * - * Changing this will set [property`StatusPage:`icon-name] to `NULL`. - */ - paintable?: Gdk.Paintable | null - /** - * The title to be displayed below the icon. - * - * It is not parsed as Pango markup. - */ - title?: string | null - } - -} - -interface StatusPage extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.StatusPage - - /** - * The child widget. - */ - child: Gtk.Widget - /** - * The description markup to be displayed below the title. - */ - description: string | null - /** - * The name of the icon to be used. - * - * Changing this will set [property`StatusPage:`paintable] to `NULL`. - */ - icon_name: string | null - /** - * The paintable to be used. - * - * Changing this will set [property`StatusPage:`icon-name] to `NULL`. - */ - paintable: Gdk.Paintable - /** - * The title to be displayed below the icon. - * - * It is not parsed as Pango markup. - */ - title: string | null - - // Owm methods of Adw-1.Adw.StatusPage - - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets the description markup for `self`. - * @returns the description - */ - get_description(): string | null - /** - * Gets the icon name for `self`. - * @returns the icon name - */ - get_icon_name(): string | null - /** - * Gets the paintable for `self`. - * @returns the paintable - */ - get_paintable(): Gdk.Paintable | null - /** - * Gets the title for `self`. - * @returns the title - */ - get_title(): string | null - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets the description markup for `self`. - * - * The description is displayed below the title. It is parsed as Pango markup. - * @param description the description - */ - set_description(description: string | null): void - /** - * Sets the icon name for `self`. - * - * Changing this will set [property`StatusPage:`paintable] to `NULL`. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the paintable for `self`. - * - * Changing this will set [property`StatusPage:`icon-name] to `NULL`. - * @param paintable the paintable - */ - set_paintable(paintable: Gdk.Paintable | null): void - /** - * Sets the title for `self`. - * - * The title is displayed below the icon. It is not parsed as Pango markup. - * @param title the title - */ - set_title(title: string | null): void - - // Class property signals of Adw-1.Adw.StatusPage - - connect(sigName: "notify::child", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::description", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::description", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::description", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::paintable", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::paintable", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::paintable", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: StatusPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A page used for empty/error states and similar use-cases. - * - * - * - * status-page - * - * - * The `AdwStatusPage` widget can have an icon, a title, a description and a - * custom widget which is displayed below them. - * - * ## CSS nodes - * - * `AdwStatusPage` has a main CSS node with name `statuspage`. - * - * `AdwStatusPage` can use the - * [`.compact`](style-classes.html#compact-status-page) style class for when it - * needs to fit into a small space such a sidebar or a popover. - * @class - */ -class StatusPage extends Gtk.Widget { - - // Own properties of Adw-1.Adw.StatusPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.StatusPage - - constructor(config?: StatusPage.ConstructorProperties) - /** - * Creates a new `AdwStatusPage`. - * @constructor - * @returns the newly created `AdwStatusPage` - */ - constructor() - /** - * Creates a new `AdwStatusPage`. - * @constructor - * @returns the newly created `AdwStatusPage` - */ - static new(): StatusPage - _init(config?: StatusPage.ConstructorProperties): void -} - -module StyleManager { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.StyleManager - - /** - * The requested application color scheme. - * - * The effective appearance will be decided based on the application color - * scheme and the system preferred color scheme. The - * [property`StyleManager:`dark] property can be used to query the current - * effective appearance. - * - * The `ADW_COLOR_SCHEME_PREFER_LIGHT` color scheme results in the application - * using light appearance unless the system prefers dark colors. This is the - * default value. - * - * The `ADW_COLOR_SCHEME_PREFER_DARK` color scheme results in the application - * using dark appearance, but can still switch to the light appearance if the - * system can prefers it, for example, when the high contrast preference is - * enabled. - * - * The `ADW_COLOR_SCHEME_FORCE_LIGHT` and `ADW_COLOR_SCHEME_FORCE_DARK` values - * ignore the system preference entirely. They are useful if the application - * wants to match its UI to its content or to provide a separate color scheme - * switcher. - * - * If a per-[class`Gdk`.Display] style manager has its color scheme set to - * `ADW_COLOR_SCHEME_DEFAULT`, it will inherit the color scheme from the - * default style manager. - * - * For the default style manager, `ADW_COLOR_SCHEME_DEFAULT` is equivalent to - * `ADW_COLOR_SCHEME_PREFER_LIGHT`. - * - * The [property`StyleManager:`system-supports-color-schemes] property can be - * used to check if the current environment provides a color scheme - * preference. - */ - color_scheme?: ColorScheme | null - /** - * The display the style manager is associated with. - * - * The display will be `NULL` for the style manager returned by - * [func`StyleManager`.get_default]. - */ - display?: Gdk.Display | null - } - -} - -interface StyleManager { - - // Own properties of Adw-1.Adw.StyleManager - - /** - * The requested application color scheme. - * - * The effective appearance will be decided based on the application color - * scheme and the system preferred color scheme. The - * [property`StyleManager:`dark] property can be used to query the current - * effective appearance. - * - * The `ADW_COLOR_SCHEME_PREFER_LIGHT` color scheme results in the application - * using light appearance unless the system prefers dark colors. This is the - * default value. - * - * The `ADW_COLOR_SCHEME_PREFER_DARK` color scheme results in the application - * using dark appearance, but can still switch to the light appearance if the - * system can prefers it, for example, when the high contrast preference is - * enabled. - * - * The `ADW_COLOR_SCHEME_FORCE_LIGHT` and `ADW_COLOR_SCHEME_FORCE_DARK` values - * ignore the system preference entirely. They are useful if the application - * wants to match its UI to its content or to provide a separate color scheme - * switcher. - * - * If a per-[class`Gdk`.Display] style manager has its color scheme set to - * `ADW_COLOR_SCHEME_DEFAULT`, it will inherit the color scheme from the - * default style manager. - * - * For the default style manager, `ADW_COLOR_SCHEME_DEFAULT` is equivalent to - * `ADW_COLOR_SCHEME_PREFER_LIGHT`. - * - * The [property`StyleManager:`system-supports-color-schemes] property can be - * used to check if the current environment provides a color scheme - * preference. - */ - color_scheme: ColorScheme - /** - * Whether the application is using dark appearance. - * - * This property can be used to query the current appearance, as requested via - * [property`StyleManager:`color-scheme]. - */ - readonly dark: boolean - /** - * The display the style manager is associated with. - * - * The display will be `NULL` for the style manager returned by - * [func`StyleManager`.get_default]. - */ - readonly display: Gdk.Display - /** - * Whether the application is using high contrast appearance. - * - * This cannot be overridden by applications. - */ - readonly high_contrast: boolean - /** - * Whether the system supports color schemes. - * - * This property can be used to check if the current environment provides a - * color scheme preference. For example, applications might want to show a - * separate appearance switcher if it's set to `FALSE`. - * - * See [property`StyleManager:`color-scheme]. - */ - readonly system_supports_color_schemes: boolean - - // Owm methods of Adw-1.Adw.StyleManager - - /** - * Gets the requested application color scheme. - * @returns the color scheme - */ - get_color_scheme(): ColorScheme - /** - * Gets whether the application is using dark appearance. - * - * This can be used to query the current appearance, as requested via - * [property`StyleManager:`color-scheme]. - * @returns whether the application is using dark appearance - */ - get_dark(): boolean - /** - * Gets the display the style manager is associated with. - * - * The display will be `NULL` for the style manager returned by - * [func`StyleManager`.get_default]. - * @returns the display - */ - get_display(): Gdk.Display | null - /** - * Gets whether the application is using high contrast appearance. - * - * This cannot be overridden by applications. - * @returns whether the application is using high contrast appearance - */ - get_high_contrast(): boolean - /** - * Gets whether the system supports color schemes. - * - * This can be used to check if the current environment provides a color scheme - * preference. For example, applications might want to show a separate - * appearance switcher if it's set to `FALSE`. - * @returns whether the system supports color schemes - */ - get_system_supports_color_schemes(): boolean - /** - * Sets the requested application color scheme. - * - * The effective appearance will be decided based on the application color - * scheme and the system preferred color scheme. The - * [property`StyleManager:`dark] property can be used to query the current - * effective appearance. - * - * The `ADW_COLOR_SCHEME_PREFER_LIGHT` color scheme results in the application - * using light appearance unless the system prefers dark colors. This is the - * default value. - * - * The `ADW_COLOR_SCHEME_PREFER_DARK` color scheme results in the application - * using dark appearance, but can still switch to the light appearance if the - * system can prefers it, for example, when the high contrast preference is - * enabled. - * - * The `ADW_COLOR_SCHEME_FORCE_LIGHT` and `ADW_COLOR_SCHEME_FORCE_DARK` values - * ignore the system preference entirely. They are useful if the application - * wants to match its UI to its content or to provide a separate color scheme - * switcher. - * - * If a per-[class`Gdk`.Display] style manager has its color scheme set to - * `ADW_COLOR_SCHEME_DEFAULT`, it will inherit the color scheme from the - * default style manager. - * - * For the default style manager, `ADW_COLOR_SCHEME_DEFAULT` is equivalent to - * `ADW_COLOR_SCHEME_PREFER_LIGHT`. - * - * The [property`StyleManager:`system-supports-color-schemes] property can be - * used to check if the current environment provides a color scheme - * preference. - * @param color_scheme the color scheme - */ - set_color_scheme(color_scheme: ColorScheme): void - - // Class property signals of Adw-1.Adw.StyleManager - - connect(sigName: "notify::color-scheme", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::color-scheme", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::color-scheme", ...args: any[]): void - connect(sigName: "notify::dark", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::dark", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::dark", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::high-contrast", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::high-contrast", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::high-contrast", ...args: any[]): void - connect(sigName: "notify::system-supports-color-schemes", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::system-supports-color-schemes", callback: (($obj: StyleManager, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::system-supports-color-schemes", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A class for managing application-wide styling. - * - * `AdwStyleManager` provides a way to query and influence the application - * styles, such as whether to use dark or high contrast appearance. - * - * It allows to set the color scheme via the - * [property`StyleManager:`color-scheme] property, and to query the current - * appearance, as well as whether a system-wide color scheme preference exists. - * @class - */ -class StyleManager extends GObject.Object { - - // Own properties of Adw-1.Adw.StyleManager - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.StyleManager - - constructor(config?: StyleManager.ConstructorProperties) - _init(config?: StyleManager.ConstructorProperties): void - /** - * Gets the default `AdwStyleManager` instance. - * - * It manages all [class`Gdk`.Display] instances unless the style manager for - * that display has an override. - * - * See [func`StyleManager`.get_for_display]. - * @returns the default style manager - */ - static get_default(): StyleManager - /** - * Gets the `AdwStyleManager` instance managing `display`. - * - * It can be used to override styles for that specific display instead of the - * whole application. - * - * Most applications should use [func`StyleManager`.get_default] instead. - * @param display a `GdkDisplay` - * @returns the style manager for @display - */ - static get_for_display(display: Gdk.Display): StyleManager -} - -module SwipeTracker { - - // Signal callback interfaces - - /** - * Signal callback interface for `begin-swipe` - */ - interface BeginSwipeSignalCallback { - ($obj: SwipeTracker): void - } - - /** - * Signal callback interface for `end-swipe` - */ - interface EndSwipeSignalCallback { - ($obj: SwipeTracker, velocity: number, to: number): void - } - - /** - * Signal callback interface for `prepare` - */ - interface PrepareSignalCallback { - ($obj: SwipeTracker, direction: NavigationDirection): void - } - - /** - * Signal callback interface for `update-swipe` - */ - interface UpdateSwipeSignalCallback { - ($obj: SwipeTracker, progress: number): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Orientable.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SwipeTracker - - /** - * Whether to allow swiping for more than one snap point at a time. - * - * If the value is `FALSE`, each swipe can only move to the adjacent snap - * points. - */ - allow_long_swipes?: boolean | null - /** - * Whether to allow dragging with mouse pointer. - */ - allow_mouse_drag?: boolean | null - /** - * Whether the swipe tracker is enabled. - * - * When it's not enabled, no events will be processed. Usually widgets will - * want to expose this via a property. - */ - enabled?: boolean | null - /** - * Whether to allow swiping past the first available snap point. - */ - lower_overshoot?: boolean | null - /** - * Whether to reverse the swipe direction. - * - * If the swipe tracker is horizontal, it can be used for supporting RTL text - * direction. - */ - reversed?: boolean | null - /** - * The widget the swipe tracker is attached to. - */ - swipeable?: Swipeable | null - /** - * Whether to allow swiping past the last available snap point. - */ - upper_overshoot?: boolean | null - } - -} - -interface SwipeTracker extends Gtk.Orientable { - - // Own properties of Adw-1.Adw.SwipeTracker - - /** - * Whether to allow swiping for more than one snap point at a time. - * - * If the value is `FALSE`, each swipe can only move to the adjacent snap - * points. - */ - allow_long_swipes: boolean - /** - * Whether to allow dragging with mouse pointer. - */ - allow_mouse_drag: boolean - /** - * Whether the swipe tracker is enabled. - * - * When it's not enabled, no events will be processed. Usually widgets will - * want to expose this via a property. - */ - enabled: boolean - /** - * Whether to allow swiping past the first available snap point. - */ - lower_overshoot: boolean - /** - * Whether to reverse the swipe direction. - * - * If the swipe tracker is horizontal, it can be used for supporting RTL text - * direction. - */ - reversed: boolean - /** - * The widget the swipe tracker is attached to. - */ - readonly swipeable: Swipeable - /** - * Whether to allow swiping past the last available snap point. - */ - upper_overshoot: boolean - - // Owm methods of Adw-1.Adw.SwipeTracker - - /** - * Gets whether to allow swiping for more than one snap point at a time. - * @returns whether long swipes are allowed - */ - get_allow_long_swipes(): boolean - /** - * Gets whether `self` can be dragged with mouse pointer. - * @returns whether mouse dragging is allowed - */ - get_allow_mouse_drag(): boolean - /** - * Gets whether `self` is enabled. - * @returns whether @self is enabled - */ - get_enabled(): boolean - /** - * Gets whether to allow swiping past the first available snap point. - * @returns whether to allow swiping past the first available snap point - */ - get_lower_overshoot(): boolean - /** - * Gets whether `self` is reversing the swipe direction. - * @returns whether the direction is reversed - */ - get_reversed(): boolean - /** - * Get the widget `self` is attached to. - * @returns the swipeable widget - */ - get_swipeable(): Swipeable - /** - * Gets whether to allow swiping past the last available snap point. - * @returns whether to allow swiping past the last available snap point - */ - get_upper_overshoot(): boolean - /** - * Sets whether to allow swiping for more than one snap point at a time. - * - * If the value is `FALSE`, each swipe can only move to the adjacent snap - * points. - * @param allow_long_swipes whether to allow long swipes - */ - set_allow_long_swipes(allow_long_swipes: boolean): void - /** - * Sets whether `self` can be dragged with mouse pointer. - * @param allow_mouse_drag whether to allow mouse dragging - */ - set_allow_mouse_drag(allow_mouse_drag: boolean): void - /** - * Sets whether `self` is enabled. - * - * When it's not enabled, no events will be processed. Usually widgets will want - * to expose this via a property. - * @param enabled whether `self` is enabled - */ - set_enabled(enabled: boolean): void - /** - * Sets whether to allow swiping past the first available snap point. - * @param overshoot whether to allow swiping past the first available snap point - */ - set_lower_overshoot(overshoot: boolean): void - /** - * Sets whether to reverse the swipe direction. - * - * If the swipe tracker is horizontal, it can be used for supporting RTL text - * direction. - * @param reversed whether to reverse the swipe direction - */ - set_reversed(reversed: boolean): void - /** - * Sets whether to allow swiping past the last available snap point. - * @param overshoot whether to allow swiping past the last available snap point - */ - set_upper_overshoot(overshoot: boolean): void - /** - * Moves the current progress value by `delta`. - * - * This can be used to adjust the current position if snap points move during - * the gesture. - * @param delta the position delta - */ - shift_position(delta: number): void - - // Own signals of Adw-1.Adw.SwipeTracker - - connect(sigName: "begin-swipe", callback: SwipeTracker.BeginSwipeSignalCallback): number - connect_after(sigName: "begin-swipe", callback: SwipeTracker.BeginSwipeSignalCallback): number - emit(sigName: "begin-swipe", ...args: any[]): void - connect(sigName: "end-swipe", callback: SwipeTracker.EndSwipeSignalCallback): number - connect_after(sigName: "end-swipe", callback: SwipeTracker.EndSwipeSignalCallback): number - emit(sigName: "end-swipe", velocity: number, to: number, ...args: any[]): void - connect(sigName: "prepare", callback: SwipeTracker.PrepareSignalCallback): number - connect_after(sigName: "prepare", callback: SwipeTracker.PrepareSignalCallback): number - emit(sigName: "prepare", direction: NavigationDirection, ...args: any[]): void - connect(sigName: "update-swipe", callback: SwipeTracker.UpdateSwipeSignalCallback): number - connect_after(sigName: "update-swipe", callback: SwipeTracker.UpdateSwipeSignalCallback): number - emit(sigName: "update-swipe", progress: number, ...args: any[]): void - - // Class property signals of Adw-1.Adw.SwipeTracker - - connect(sigName: "notify::allow-long-swipes", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-long-swipes", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-long-swipes", ...args: any[]): void - connect(sigName: "notify::allow-mouse-drag", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allow-mouse-drag", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allow-mouse-drag", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::lower-overshoot", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::lower-overshoot", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::lower-overshoot", ...args: any[]): void - connect(sigName: "notify::reversed", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reversed", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reversed", ...args: any[]): void - connect(sigName: "notify::swipeable", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::swipeable", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::swipeable", ...args: any[]): void - connect(sigName: "notify::upper-overshoot", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::upper-overshoot", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::upper-overshoot", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: SwipeTracker, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A swipe tracker used in [class`Carousel]`, [class`NavigationView]` and - * [class`OverlaySplitView]`. - * - * The `AdwSwipeTracker` object can be used for implementing widgets with swipe - * gestures. It supports touch-based swipes, pointer dragging, and touchpad - * scrolling. - * - * The widgets will probably want to expose the [property`SwipeTracker:`enabled] - * property. If they expect to use horizontal orientation, - * [property`SwipeTracker:`reversed] can be used for supporting RTL text - * direction. - * @class - */ -class SwipeTracker extends GObject.Object { - - // Own properties of Adw-1.Adw.SwipeTracker - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SwipeTracker - - constructor(config?: SwipeTracker.ConstructorProperties) - /** - * Creates a new `AdwSwipeTracker` for `widget`. - * @constructor - * @param swipeable a widget to add the tracker on - * @returns the newly created `AdwSwipeTracker` - */ - constructor(swipeable: Swipeable) - /** - * Creates a new `AdwSwipeTracker` for `widget`. - * @constructor - * @param swipeable a widget to add the tracker on - * @returns the newly created `AdwSwipeTracker` - */ - static new(swipeable: Swipeable): SwipeTracker - _init(config?: SwipeTracker.ConstructorProperties): void -} - -module SwitchRow { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, ActionRow.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.SwitchRow - - /** - * Whether the switch row is in the "on" or "off" position. - */ - active?: boolean | null - } - -} - -interface SwitchRow extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.SwitchRow - - /** - * Whether the switch row is in the "on" or "off" position. - */ - active: boolean - - // Conflicting properties - - parent_instance: PreferencesRow & Gtk.ListBoxRow & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.SwitchRow - - /** - * Gets whether `self` is in its "on" or "off" position. - * @returns whether @self is active or not - */ - get_active(): boolean - /** - * Sets whether `self` is in its "on" or "off" position - * @param is_active whether `self` should be active - */ - set_active(is_active: boolean): void - - // Conflicting methods - - /** - * Activates `self`. - */ - activate(): void - - // Overloads of activate - - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - /** - * For widgets that can be “activated” (buttons, menu items, etc.), - * this function activates them. - * - * The activation will emit the signal set using - * [method`Gtk`.WidgetClass.set_activate_signal] during class initialization. - * - * Activation is what happens when you press Enter - * on a widget during key navigation. - * - * If you wish to handle the activation keybinding yourself, it is - * recommended to use [method`Gtk`.WidgetClass.add_shortcut] with an action - * created with [ctor`Gtk`.SignalAction.new]. - * - * If `widget` isn't activatable, the function returns %FALSE. - * @returns %TRUE if the widget was activatable - */ - activate(): boolean - - // Class property signals of Adw-1.Adw.SwitchRow - - connect(sigName: "notify::active", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::active", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::active", ...args: any[]): void - connect(sigName: "notify::activatable-widget", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable-widget", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable-widget", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::subtitle-lines", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-lines", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-lines", ...args: any[]): void - connect(sigName: "notify::subtitle-selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle-selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle-selectable", ...args: any[]): void - connect(sigName: "notify::title-lines", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-lines", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-lines", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-selectable", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::activatable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::activatable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::activatable", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selectable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selectable", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: SwitchRow, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A [class`Gtk`.ListBoxRow] used to represent two states. - * - * - * - * switch-row - * - * - * The `AdwSwitchRow` widget contains a [class`Gtk`.Switch] that allows the user - * to select between two states: "on" or "off". When activated, the row will - * invert its active state. - * - * The user can control the switch by activating the row or by dragging on the - * switch handle. - * - * See [class`Gtk`.Switch] for details. - * - * Example of an `AdwSwitchRow` UI definition: - * ```xml - * - * Switch Row - * - * - * ``` - * - * The [property`SwitchRow:`active] property should be connected to in order to - * monitor changes to the active state. - * @class - */ -class SwitchRow extends ActionRow { - - // Own properties of Adw-1.Adw.SwitchRow - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.SwitchRow - - constructor(config?: SwitchRow.ConstructorProperties) - /** - * Creates a new `AdwSwitchRow`. - * @constructor - * @returns the newly created `AdwSwitchRow` - */ - constructor() - /** - * Creates a new `AdwSwitchRow`. - * @constructor - * @returns the newly created `AdwSwitchRow` - */ - static new(): SwitchRow - _init(config?: SwitchRow.ConstructorProperties): void -} - -module TabBar { - - // Signal callback interfaces - - /** - * Signal callback interface for `extra-drag-drop` - */ - interface ExtraDragDropSignalCallback { - ($obj: TabBar, page: TabPage, value: any): boolean - } - - /** - * Signal callback interface for `extra-drag-value` - */ - interface ExtraDragValueSignalCallback { - ($obj: TabBar, page: TabPage, value: any): Gdk.DragAction - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TabBar - - /** - * Whether the tabs automatically hide. - * - * If set to `TRUE`, the tab bar disappears when [property`TabBar:`view] has 0 - * or 1 tab, no pinned tabs, and no tab is being transferred. - * - * See [property`TabBar:`tabs-revealed]. - */ - autohide?: boolean | null - /** - * The widget shown after the tabs. - */ - end_action_widget?: Gtk.Widget | null - /** - * Whether tabs expand to full width. - * - * If set to `TRUE`, the tabs will always vary width filling the whole width - * when possible, otherwise tabs will always have the minimum possible size. - */ - expand_tabs?: boolean | null - /** - * Whether the drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - */ - extra_drag_preload?: boolean | null - /** - * Whether tabs use inverted layout. - * - * If set to `TRUE`, non-pinned tabs will have the close button at the - * beginning and the indicator at the end rather than the opposite. - */ - inverted?: boolean | null - /** - * The widget shown before the tabs. - */ - start_action_widget?: Gtk.Widget | null - /** - * The tab view the tab bar controls. - */ - view?: TabView | null - } - -} - -interface TabBar extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.TabBar - - /** - * Whether the tabs automatically hide. - * - * If set to `TRUE`, the tab bar disappears when [property`TabBar:`view] has 0 - * or 1 tab, no pinned tabs, and no tab is being transferred. - * - * See [property`TabBar:`tabs-revealed]. - */ - autohide: boolean - /** - * The widget shown after the tabs. - */ - end_action_widget: Gtk.Widget - /** - * Whether tabs expand to full width. - * - * If set to `TRUE`, the tabs will always vary width filling the whole width - * when possible, otherwise tabs will always have the minimum possible size. - */ - expand_tabs: boolean - /** - * The unique action on the `current-drop` of the - * [signal`TabBar:`:extra-drag-drop]. - * - * This property should only be used during a [signal`TabBar:`:extra-drag-drop] - * and is always a subset of what was originally passed to - * [method`TabBar`.setup_extra_drop_target]. - */ - readonly extra_drag_preferred_action: Gdk.DragAction - /** - * Whether the drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - */ - extra_drag_preload: boolean - /** - * Whether tabs use inverted layout. - * - * If set to `TRUE`, non-pinned tabs will have the close button at the - * beginning and the indicator at the end rather than the opposite. - */ - inverted: boolean - /** - * Whether the tab bar is overflowing. - * - * If `TRUE`, all tabs cannot be displayed at once and require scrolling. - */ - readonly is_overflowing: boolean - /** - * The widget shown before the tabs. - */ - start_action_widget: Gtk.Widget - /** - * Whether the tabs are currently revealed. - * - * See [property`TabBar:`autohide]. - */ - readonly tabs_revealed: boolean - /** - * The tab view the tab bar controls. - */ - view: TabView - - // Owm methods of Adw-1.Adw.TabBar - - /** - * Gets whether the tabs automatically hide. - * @returns whether the tabs automatically hide - */ - get_autohide(): boolean - /** - * Gets the widget shown after the tabs. - * @returns the widget shown after the tabs - */ - get_end_action_widget(): Gtk.Widget | null - /** - * Gets whether tabs expand to full width. - * @returns whether tabs expand to full width. - */ - get_expand_tabs(): boolean - /** - * Gets the current action during a drop on the extra_drop_target. - * @returns the drag action of the current drop. - */ - get_extra_drag_preferred_action(): Gdk.DragAction - /** - * Gets whether drop data should be preloaded on hover. - * @returns whether drop data should be preloaded on hover - */ - get_extra_drag_preload(): boolean - /** - * Gets whether tabs use inverted layout. - * @returns whether tabs use inverted layout - */ - get_inverted(): boolean - /** - * Gets whether `self` is overflowing. - * - * If `TRUE`, all tabs cannot be displayed at once and require scrolling. - * @returns whether @self is overflowing - */ - get_is_overflowing(): boolean - /** - * Gets the widget shown before the tabs. - * @returns the widget shown before the tabs - */ - get_start_action_widget(): Gtk.Widget | null - /** - * Gets whether the tabs are currently revealed. - * - * See [property`TabBar:`autohide]. - * @returns whether the tabs are currently revealed - */ - get_tabs_revealed(): boolean - /** - * Gets the tab view `self` controls. - * @returns the view @self controls - */ - get_view(): TabView | null - /** - * Sets whether the tabs automatically hide. - * - * If set to `TRUE`, the tab bar disappears when [property`TabBar:`view] has 0 - * or 1 tab, no pinned tabs, and no tab is being transferred. - * - * See [property`TabBar:`tabs-revealed]. - * @param autohide whether the tabs automatically hide - */ - set_autohide(autohide: boolean): void - /** - * Sets the widget to show after the tabs. - * @param widget the widget to show after the tabs - */ - set_end_action_widget(widget: Gtk.Widget | null): void - /** - * Sets whether tabs expand to full width. - * - * If set to `TRUE`, the tabs will always vary width filling the whole width - * when possible, otherwise tabs will always have the minimum possible size. - * @param expand_tabs whether to expand tabs - */ - set_expand_tabs(expand_tabs: boolean): void - /** - * Sets whether drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - * @param preload whether to preload drop data - */ - set_extra_drag_preload(preload: boolean): void - /** - * Sets whether tabs tabs use inverted layout. - * - * If set to `TRUE`, non-pinned tabs will have the close button at the beginning - * and the indicator at the end rather than the opposite. - * @param inverted whether tabs use inverted layout - */ - set_inverted(inverted: boolean): void - /** - * Sets the widget to show before the tabs. - * @param widget the widget to show before the tabs - */ - set_start_action_widget(widget: Gtk.Widget | null): void - /** - * Sets the tab view `self` controls. - * @param view a tab view - */ - set_view(view: TabView | null): void - /** - * Sets the supported types for this drop target. - * - * Sets up an extra drop target on tabs. - * - * This allows to drag arbitrary content onto tabs, for example URLs in a web - * browser. - * - * If a tab is hovered for a certain period of time while dragging the content, - * it will be automatically selected. - * - * The [signal`TabBar:`:extra-drag-drop] signal can be used to handle the drop. - * @param actions the supported actions - * @param types all supported `GType`s that can be dropped - */ - setup_extra_drop_target(actions: Gdk.DragAction, types: GObject.GType[] | null): void - - // Own signals of Adw-1.Adw.TabBar - - connect(sigName: "extra-drag-drop", callback: TabBar.ExtraDragDropSignalCallback): number - connect_after(sigName: "extra-drag-drop", callback: TabBar.ExtraDragDropSignalCallback): number - emit(sigName: "extra-drag-drop", page: TabPage, value: any, ...args: any[]): void - connect(sigName: "extra-drag-value", callback: TabBar.ExtraDragValueSignalCallback): number - connect_after(sigName: "extra-drag-value", callback: TabBar.ExtraDragValueSignalCallback): number - emit(sigName: "extra-drag-value", page: TabPage, value: any, ...args: any[]): void - - // Class property signals of Adw-1.Adw.TabBar - - connect(sigName: "notify::autohide", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::autohide", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::autohide", ...args: any[]): void - connect(sigName: "notify::end-action-widget", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::end-action-widget", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::end-action-widget", ...args: any[]): void - connect(sigName: "notify::expand-tabs", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::expand-tabs", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::expand-tabs", ...args: any[]): void - connect(sigName: "notify::extra-drag-preferred-action", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extra-drag-preferred-action", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extra-drag-preferred-action", ...args: any[]): void - connect(sigName: "notify::extra-drag-preload", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extra-drag-preload", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extra-drag-preload", ...args: any[]): void - connect(sigName: "notify::inverted", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::inverted", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::inverted", ...args: any[]): void - connect(sigName: "notify::is-overflowing", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-overflowing", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-overflowing", ...args: any[]): void - connect(sigName: "notify::start-action-widget", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::start-action-widget", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::start-action-widget", ...args: any[]): void - connect(sigName: "notify::tabs-revealed", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tabs-revealed", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tabs-revealed", ...args: any[]): void - connect(sigName: "notify::view", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::view", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::view", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TabBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A tab bar for [class`TabView]`. - * - * - * - * tab-bar - * - * - * The `AdwTabBar` widget is a tab bar that can be used with conjunction with - * `AdwTabView`. It is typically used as a top bar within [class`ToolbarView]`. - * - * `AdwTabBar` can autohide and can optionally contain action widgets on both - * sides of the tabs. - * - * When there's not enough space to show all the tabs, `AdwTabBar` will scroll - * them. Pinned tabs always stay visible and aren't a part of the scrollable - * area. - * - * ## CSS nodes - * - * `AdwTabBar` has a single CSS node with name `tabbar`. - * @class - */ -class TabBar extends Gtk.Widget { - - // Own properties of Adw-1.Adw.TabBar - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TabBar - - constructor(config?: TabBar.ConstructorProperties) - /** - * Creates a new `AdwTabBar`. - * @constructor - * @returns the newly created `AdwTabBar` - */ - constructor() - /** - * Creates a new `AdwTabBar`. - * @constructor - * @returns the newly created `AdwTabBar` - */ - static new(): TabBar - _init(config?: TabBar.ConstructorProperties): void -} - -module TabButton { - - // Signal callback interfaces - - /** - * Signal callback interface for `activate` - */ - interface ActivateSignalCallback { - ($obj: TabButton): void - } - - /** - * Signal callback interface for `clicked` - */ - interface ClickedSignalCallback { - ($obj: TabButton): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Actionable.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TabButton - - /** - * The view the tab button displays. - */ - view?: TabView | null - } - -} - -interface TabButton extends Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.TabButton - - /** - * The view the tab button displays. - */ - view: TabView - - // Owm methods of Adw-1.Adw.TabButton - - /** - * Gets the tab view `self` displays. - * @returns the tab view - */ - get_view(): TabView | null - /** - * Sets the tab view to display. - * @param view a tab view - */ - set_view(view: TabView | null): void - - // Own signals of Adw-1.Adw.TabButton - - connect(sigName: "activate", callback: TabButton.ActivateSignalCallback): number - connect_after(sigName: "activate", callback: TabButton.ActivateSignalCallback): number - emit(sigName: "activate", ...args: any[]): void - connect(sigName: "clicked", callback: TabButton.ClickedSignalCallback): number - connect_after(sigName: "clicked", callback: TabButton.ClickedSignalCallback): number - emit(sigName: "clicked", ...args: any[]): void - - // Class property signals of Adw-1.Adw.TabButton - - connect(sigName: "notify::view", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::view", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::view", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::action-name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: TabButton, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A button that displays the number of [class`TabView]` pages. - * - * - * - * tab-button - * - * - * `AdwTabButton` is a button that displays the number of pages in a given - * `AdwTabView`, as well as whether one of the inactive pages needs attention. - * - * It's intended to be used as a visible indicator when there's no visible tab - * bar, typically opening an [class`TabOverview]` on click, e.g. via the - * `overview.open` action name: - * - * ```xml - * - * view - * overview.open - * - * ``` - * - * ## CSS nodes - * - * `AdwTabButton` has a main CSS node with name `tabbutton`. - * - * # Accessibility - * - * `AdwTabButton` uses the `GTK_ACCESSIBLE_ROLE_BUTTON` role. - * @class - */ -class TabButton extends Gtk.Widget { - - // Own properties of Adw-1.Adw.TabButton - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TabButton - - constructor(config?: TabButton.ConstructorProperties) - /** - * Creates a new `AdwTabButton`. - * @constructor - * @returns the newly created `AdwTabButton` - */ - constructor() - /** - * Creates a new `AdwTabButton`. - * @constructor - * @returns the newly created `AdwTabButton` - */ - static new(): TabButton - _init(config?: TabButton.ConstructorProperties): void -} - -module TabOverview { - - // Signal callback interfaces - - /** - * Signal callback interface for `create-tab` - */ - interface CreateTabSignalCallback { - ($obj: TabOverview): TabPage - } - - /** - * Signal callback interface for `extra-drag-drop` - */ - interface ExtraDragDropSignalCallback { - ($obj: TabOverview, page: TabPage, value: any): boolean - } - - /** - * Signal callback interface for `extra-drag-value` - */ - interface ExtraDragValueSignalCallback { - ($obj: TabOverview, page: TabPage, value: any): Gdk.DragAction - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TabOverview - - /** - * The child widget. - */ - child?: Gtk.Widget | null - /** - * Whether to enable new tab button. - * - * Connect to the [signal`TabOverview:`:create-tab] signal to use it. - */ - enable_new_tab?: boolean | null - /** - * Whether to enable search in tabs. - * - * Search matches tab titles and tooltips, as well as keywords, set via - * [property`TabPage:`keyword]. Use keywords to search in e.g. page URLs in a - * web browser. - * - * During search, tab reordering and drag-n-drop are disabled. - * - * Use [property`TabOverview:`search-active] to check out if search is - * currently active. - */ - enable_search?: boolean | null - /** - * Whether the drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - */ - extra_drag_preload?: boolean | null - /** - * Whether thumbnails use inverted layout. - * - * If set to `TRUE`, thumbnails will have the close or unpin buttons at the - * beginning and the indicator at the end rather than the other way around. - */ - inverted?: boolean | null - /** - * Whether the overview is open. - */ - open?: boolean | null - /** - * The secondary menu model. - * - * Use it to add extra actions, e.g. to open a new window or undo closed tab. - */ - secondary_menu?: Gio.MenuModel | null - /** - * Whether to show end title buttons in the overview's header bar. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - */ - show_end_title_buttons?: boolean | null - /** - * Whether to show start title buttons in the overview's header bar. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - */ - show_start_title_buttons?: boolean | null - /** - * The tab view the overview controls. - * - * The view must be inside the tab overview, see [property`TabOverview:`child]. - */ - view?: TabView | null - } - -} - -interface TabOverview extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.TabOverview - - /** - * The child widget. - */ - child: Gtk.Widget - /** - * Whether to enable new tab button. - * - * Connect to the [signal`TabOverview:`:create-tab] signal to use it. - */ - enable_new_tab: boolean - /** - * Whether to enable search in tabs. - * - * Search matches tab titles and tooltips, as well as keywords, set via - * [property`TabPage:`keyword]. Use keywords to search in e.g. page URLs in a - * web browser. - * - * During search, tab reordering and drag-n-drop are disabled. - * - * Use [property`TabOverview:`search-active] to check out if search is - * currently active. - */ - enable_search: boolean - /** - * The unique action on the `current-drop` of the - * [signal`TabOverview:`:extra-drag-drop]. - * - * This property should only be used during a - * [signal`TabOverview:`:extra-drag-drop] and is always a subset of what was - * originally passed to [method`TabOverview`.setup_extra_drop_target]. - */ - readonly extra_drag_preferred_action: Gdk.DragAction - /** - * Whether the drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - */ - extra_drag_preload: boolean - /** - * Whether thumbnails use inverted layout. - * - * If set to `TRUE`, thumbnails will have the close or unpin buttons at the - * beginning and the indicator at the end rather than the other way around. - */ - inverted: boolean - /** - * Whether the overview is open. - */ - open: boolean - /** - * Whether search is currently active. - * - * See [property`TabOverview:`enable-search]. - */ - readonly search_active: boolean - /** - * The secondary menu model. - * - * Use it to add extra actions, e.g. to open a new window or undo closed tab. - */ - secondary_menu: Gio.MenuModel - /** - * Whether to show end title buttons in the overview's header bar. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - */ - show_end_title_buttons: boolean - /** - * Whether to show start title buttons in the overview's header bar. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - */ - show_start_title_buttons: boolean - /** - * The tab view the overview controls. - * - * The view must be inside the tab overview, see [property`TabOverview:`child]. - */ - view: TabView - - // Owm methods of Adw-1.Adw.TabOverview - - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Gets whether to new tab button is enabled for `self`. - * @returns whether new tab button is enabled - */ - get_enable_new_tab(): boolean - /** - * Gets whether search in tabs is enabled for `self`. - * @returns whether search is enabled - */ - get_enable_search(): boolean - /** - * Gets the current action during a drop on the extra_drop_target. - * @returns the drag action of the current drop. - */ - get_extra_drag_preferred_action(): Gdk.DragAction - /** - * Gets whether drop data should be preloaded on hover. - * @returns whether drop data should be preloaded on hover - */ - get_extra_drag_preload(): boolean - /** - * Gets whether thumbnails use inverted layout. - * @returns whether thumbnails use inverted layout - */ - get_inverted(): boolean - /** - * Gets whether `self` is open. - * @returns whether the overview is open - */ - get_open(): boolean - /** - * Gets whether search is currently active for `self`. - * - * See [property`TabOverview:`enable-search]. - * @returns whether search is active - */ - get_search_active(): boolean - /** - * Gets the secondary menu model for `self`. - * @returns the secondary menu model - */ - get_secondary_menu(): Gio.MenuModel | null - /** - * Gets whether end title buttons are shown in `self'`s header bar. - * @returns whether end title buttons are shown - */ - get_show_end_title_buttons(): boolean - /** - * Gets whether start title buttons are shown in `self'`s header bar. - * @returns whether start title buttons are shown - */ - get_show_start_title_buttons(): boolean - /** - * Gets the tab view `self` controls. - * @returns the tab view - */ - get_view(): TabView | null - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - /** - * Sets whether to enable new tab button for `self`. - * - * Connect to the [signal`TabOverview:`:create-tab] signal to use it. - * @param enable_new_tab whether to enable new tab button - */ - set_enable_new_tab(enable_new_tab: boolean): void - /** - * Sets whether to enable search in tabs for `self`. - * - * Search matches tab titles and tooltips, as well as keywords, set via - * [property`TabPage:`keyword]. Use keywords to search in e.g. page URLs in a web - * browser. - * - * During search, tab reordering and drag-n-drop are disabled. - * - * Use [property`TabOverview:`search-active] to check out if search is currently - * active. - * @param enable_search whether to enable search - */ - set_enable_search(enable_search: boolean): void - /** - * Sets whether drop data should be preloaded on hover. - * - * See [property`Gtk`.DropTarget:preload]. - * @param preload whether to preload drop data - */ - set_extra_drag_preload(preload: boolean): void - /** - * Sets whether thumbnails use inverted layout. - * - * If set to `TRUE`, thumbnails will have the close or unpin button at the - * beginning and the indicator at the end rather than the other way around. - * @param inverted whether thumbnails use inverted layout - */ - set_inverted(inverted: boolean): void - /** - * Sets whether the to open `self`. - * @param open whether the overview is open - */ - set_open(open: boolean): void - /** - * Sets the secondary menu model for `self`. - * - * Use it to add extra actions, e.g. to open a new window or undo closed tab. - * @param secondary_menu a menu model - */ - set_secondary_menu(secondary_menu: Gio.MenuModel | null): void - /** - * Sets whether to show end title buttons in `self'`s header bar. - * - * See [property`HeaderBar:`show-start-title-buttons] for the other side. - * @param show_end_title_buttons whether to show end title buttons - */ - set_show_end_title_buttons(show_end_title_buttons: boolean): void - /** - * Sets whether to show start title buttons in `self'`s header bar. - * - * See [property`HeaderBar:`show-end-title-buttons] for the other side. - * @param show_start_title_buttons whether to show start title buttons - */ - set_show_start_title_buttons(show_start_title_buttons: boolean): void - /** - * Sets the tab view to control. - * - * The view must be inside `self,` see [property`TabOverview:`child]. - * @param view a tab view - */ - set_view(view: TabView | null): void - /** - * Sets the supported types for this drop target. - * - * Sets up an extra drop target on tabs. - * - * This allows to drag arbitrary content onto tabs, for example URLs in a web - * browser. - * - * If a tab is hovered for a certain period of time while dragging the content, - * it will be automatically selected. - * - * The [signal`TabOverview:`:extra-drag-drop] signal can be used to handle the - * drop. - * @param actions the supported actions - * @param types all supported `GType`s that can be dropped - */ - setup_extra_drop_target(actions: Gdk.DragAction, types: GObject.GType[] | null): void - - // Own signals of Adw-1.Adw.TabOverview - - connect(sigName: "create-tab", callback: TabOverview.CreateTabSignalCallback): number - connect_after(sigName: "create-tab", callback: TabOverview.CreateTabSignalCallback): number - emit(sigName: "create-tab", ...args: any[]): void - connect(sigName: "extra-drag-drop", callback: TabOverview.ExtraDragDropSignalCallback): number - connect_after(sigName: "extra-drag-drop", callback: TabOverview.ExtraDragDropSignalCallback): number - emit(sigName: "extra-drag-drop", page: TabPage, value: any, ...args: any[]): void - connect(sigName: "extra-drag-value", callback: TabOverview.ExtraDragValueSignalCallback): number - connect_after(sigName: "extra-drag-value", callback: TabOverview.ExtraDragValueSignalCallback): number - emit(sigName: "extra-drag-value", page: TabPage, value: any, ...args: any[]): void - - // Class property signals of Adw-1.Adw.TabOverview - - connect(sigName: "notify::child", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::enable-new-tab", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-new-tab", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-new-tab", ...args: any[]): void - connect(sigName: "notify::enable-search", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enable-search", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enable-search", ...args: any[]): void - connect(sigName: "notify::extra-drag-preferred-action", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extra-drag-preferred-action", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extra-drag-preferred-action", ...args: any[]): void - connect(sigName: "notify::extra-drag-preload", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extra-drag-preload", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extra-drag-preload", ...args: any[]): void - connect(sigName: "notify::inverted", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::inverted", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::inverted", ...args: any[]): void - connect(sigName: "notify::open", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::open", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::open", ...args: any[]): void - connect(sigName: "notify::search-active", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::search-active", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::search-active", ...args: any[]): void - connect(sigName: "notify::secondary-menu", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::secondary-menu", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::secondary-menu", ...args: any[]): void - connect(sigName: "notify::show-end-title-buttons", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-end-title-buttons", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-end-title-buttons", ...args: any[]): void - connect(sigName: "notify::show-start-title-buttons", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-start-title-buttons", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-start-title-buttons", ...args: any[]): void - connect(sigName: "notify::view", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::view", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::view", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TabOverview, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A tab overview for [class`TabView]`. - * - * - * - * tab-overview - * - * - * `AdwTabOverview` is a widget that can display tabs from an `AdwTabView` in a - * grid. - * - * `AdwTabOverview` shows a thumbnail for each tab. By default thumbnails are - * static for all pages except the selected one. They can be made always live - * by setting [property`TabPage:`live-thumbnail] to `TRUE`, or refreshed with - * [method`TabPage`.invalidate_thumbnail] or - * [method`TabView`.invalidate_thumbnails] otherwise. - * - * If the pages are too tall or too wide, the thumbnails will be cropped; use - * [property`TabPage:`thumbnail-xalign] and [property`TabPage:`thumbnail-yalign] to - * control which part of the page should be visible in this case. - * - * Pinned tabs are shown as smaller cards without thumbnails above the other - * tabs. Unlike in [class`TabBar]`, they still have titles, as well as an unpin - * button. - * - * `AdwTabOverview` provides search in open tabs. It searches in tab titles and - * tooltips, as well as [property`TabPage:`keyword]. - * - * If [property`TabOverview:`enable-new-tab] is set to `TRUE`, a new tab button - * will be shown. Connect to the [signal`TabOverview:`:create-tab] signal to use - * it. - * - * [property`TabOverview:`secondary-menu] can be used to provide a secondary menu - * for the overview. Use it to add extra actions, e.g. to open a new window or - * undo closed tab. - * - * `AdwTabOverview` is intended to be used as the direct child of the window, - * with the rest of the window contents set as the [property`TabOverview:`child]. - * The child is expected to contain an [class`TabView]`. - * - * `AdwTabOverview` shows window buttons by default. They can be disabled by - * setting [property`TabOverview:`show-start-title-buttons] and/or - * [property`TabOverview:`show-start-title-buttons] and/or - * [property`TabOverview:`show-end-title-buttons] to `FALSE`. - * - * If search and window buttons are disabled, and secondary menu is not set, the - * header bar will be hidden. - * - * ## Actions - * - * `AdwTabOverview` defines the `overview.open` and `overview.close` actions for - * opening and closing itself. They can be convenient when used together with - * [class`TabButton]`. - * - * ## CSS nodes - * - * `AdwTabOverview` has a single CSS node with name `taboverview`. - * @class - */ -class TabOverview extends Gtk.Widget { - - // Own properties of Adw-1.Adw.TabOverview - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TabOverview - - constructor(config?: TabOverview.ConstructorProperties) - /** - * Creates a new `AdwTabOverview`. - * @constructor - * @returns the newly created `AdwTabOverview` - */ - constructor() - /** - * Creates a new `AdwTabOverview`. - * @constructor - * @returns the newly created `AdwTabOverview` - */ - static new(): TabOverview - _init(config?: TabOverview.ConstructorProperties): void -} - -module TabPage { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TabPage - - /** - * The child of the page. - */ - child?: Gtk.Widget | null - /** - * The icon of the page. - * - * [class`TabBar]` and [class`TabOverview]` display the icon next to the title, - * unless [property`TabPage:`loading] is set to `TRUE`. - * - * `AdwTabBar` also won't show the icon if the page is pinned and - * [propertyTabPage:indicator-icon] is set. - */ - icon?: Gio.Icon | null - /** - * Whether the indicator icon is activatable. - * - * If set to `TRUE`, [signal`TabView:`:indicator-activated] will be emitted - * when the indicator icon is clicked. - * - * If [property`TabPage:`indicator-icon] is not set, does nothing. - */ - indicator_activatable?: boolean | null - /** - * An indicator icon for the page. - * - * A common use case is an audio or camera indicator in a web browser. - * - * [class`TabBar]` will show it at the beginning of the tab, alongside icon - * representing [property`TabPage:`icon] or loading spinner. - * - * If the page is pinned, the indicator will be shown instead of icon or - * spinner. - * - * [class`TabOverview]` will show it at the at the top part of the thumbnail. - * - * [property`TabPage:`indicator-tooltip] can be used to set the tooltip on the - * indicator icon. - * - * If [property`TabPage:`indicator-activatable] is set to `TRUE`, the - * indicator icon can act as a button. - */ - indicator_icon?: Gio.Icon | null - /** - * The tooltip of the indicator icon. - * - * The tooltip can be marked up with the Pango text markup language. - * - * See [property`TabPage:`indicator-icon]. - */ - indicator_tooltip?: string | null - /** - * The search keyboard of the page. - * - * [class`TabOverview]` can search pages by their keywords in addition to their - * titles and tooltips. - * - * Keywords allow to include e.g. page URLs into tab search in a web browser. - */ - keyword?: string | null - /** - * Whether to enable live thumbnail for this page. - * - * When set to `TRUE`, the page's thumbnail in [class`TabOverview]` will update - * immediately when the page is redrawn or resized. - * - * If it's set to `FALSE`, the thumbnail will only be live when the page is - * selected, and otherwise it will be static and will only update when - * [method`TabPage`.invalidate_thumbnail] or - * [method`TabView`.invalidate_thumbnails] is called. - */ - live_thumbnail?: boolean | null - /** - * Whether the page is loading. - * - * If set to `TRUE`, [class`TabBar]` and [class`TabOverview]` will display a - * spinner in place of icon. - * - * If the page is pinned and [property`TabPage:`indicator-icon] is set, - * loading status will not be visible with `AdwTabBar`. - */ - loading?: boolean | null - /** - * Whether the page needs attention. - * - * [class`TabBar]` will display a line under the tab representing the page if - * set to `TRUE`. If the tab is not visible, the corresponding edge of the tab - * bar will be highlighted. - * - * [class`TabOverview]` will display a dot in the corner of the thumbnail if set - * to `TRUE`. - * - * [class`TabButton]` will display a dot if any of the pages that aren't - * selected have this property set to `TRUE`. - */ - needs_attention?: boolean | null - /** - * The parent page of the page. - * - * See [method`TabView`.add_page] and [method`TabView`.close_page]. - */ - parent?: TabPage | null - /** - * The horizontal alignment of the page thumbnail. - * - * If the page is so wide that [class`TabOverview]` can't display it completely - * and has to crop it, horizontal alignment will determine which part of the - * page will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * start edge will be visible and 1 means the end edge will be visible. - * - * The default horizontal alignment is 0. - */ - thumbnail_xalign?: number | null - /** - * The vertical alignment of the page thumbnail. - * - * If the page is so tall that [class`TabOverview]` can't display it completely - * and has to crop it, vertical alignment will determine which part of the - * page will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * top edge will be visible and 1 means the bottom edge will be visible. - * - * The default vertical alignment is 0. - */ - thumbnail_yalign?: number | null - /** - * The title of the page. - * - * [class`TabBar]` will display it in the center of the tab unless it's pinned, - * and will use it as a tooltip unless [property`TabPage:`tooltip] is set. - * - * [class`TabOverview]` will display it below the thumbnail unless it's pinned, - * or inside the card otherwise, and will use it as a tooltip unless - * [property`TabPage:`tooltip] is set. - */ - title?: string | null - /** - * The tooltip of the page. - * - * The tooltip can be marked up with the Pango text markup language. - * - * If not set, [class`TabBar]` and [class`TabOverview]` will use - * [property`TabPage:`title] as a tooltip instead. - */ - tooltip?: string | null - } - -} - -interface TabPage extends Gtk.Accessible { - - // Own properties of Adw-1.Adw.TabPage - - /** - * The child of the page. - */ - readonly child: Gtk.Widget - /** - * The icon of the page. - * - * [class`TabBar]` and [class`TabOverview]` display the icon next to the title, - * unless [property`TabPage:`loading] is set to `TRUE`. - * - * `AdwTabBar` also won't show the icon if the page is pinned and - * [propertyTabPage:indicator-icon] is set. - */ - icon: Gio.Icon - /** - * Whether the indicator icon is activatable. - * - * If set to `TRUE`, [signal`TabView:`:indicator-activated] will be emitted - * when the indicator icon is clicked. - * - * If [property`TabPage:`indicator-icon] is not set, does nothing. - */ - indicator_activatable: boolean - /** - * An indicator icon for the page. - * - * A common use case is an audio or camera indicator in a web browser. - * - * [class`TabBar]` will show it at the beginning of the tab, alongside icon - * representing [property`TabPage:`icon] or loading spinner. - * - * If the page is pinned, the indicator will be shown instead of icon or - * spinner. - * - * [class`TabOverview]` will show it at the at the top part of the thumbnail. - * - * [property`TabPage:`indicator-tooltip] can be used to set the tooltip on the - * indicator icon. - * - * If [property`TabPage:`indicator-activatable] is set to `TRUE`, the - * indicator icon can act as a button. - */ - indicator_icon: Gio.Icon - /** - * The tooltip of the indicator icon. - * - * The tooltip can be marked up with the Pango text markup language. - * - * See [property`TabPage:`indicator-icon]. - */ - indicator_tooltip: string | null - /** - * The search keyboard of the page. - * - * [class`TabOverview]` can search pages by their keywords in addition to their - * titles and tooltips. - * - * Keywords allow to include e.g. page URLs into tab search in a web browser. - */ - keyword: string | null - /** - * Whether to enable live thumbnail for this page. - * - * When set to `TRUE`, the page's thumbnail in [class`TabOverview]` will update - * immediately when the page is redrawn or resized. - * - * If it's set to `FALSE`, the thumbnail will only be live when the page is - * selected, and otherwise it will be static and will only update when - * [method`TabPage`.invalidate_thumbnail] or - * [method`TabView`.invalidate_thumbnails] is called. - */ - live_thumbnail: boolean - /** - * Whether the page is loading. - * - * If set to `TRUE`, [class`TabBar]` and [class`TabOverview]` will display a - * spinner in place of icon. - * - * If the page is pinned and [property`TabPage:`indicator-icon] is set, - * loading status will not be visible with `AdwTabBar`. - */ - loading: boolean - /** - * Whether the page needs attention. - * - * [class`TabBar]` will display a line under the tab representing the page if - * set to `TRUE`. If the tab is not visible, the corresponding edge of the tab - * bar will be highlighted. - * - * [class`TabOverview]` will display a dot in the corner of the thumbnail if set - * to `TRUE`. - * - * [class`TabButton]` will display a dot if any of the pages that aren't - * selected have this property set to `TRUE`. - */ - needs_attention: boolean - /** - * The parent page of the page. - * - * See [method`TabView`.add_page] and [method`TabView`.close_page]. - */ - readonly parent: TabPage - /** - * Whether the page is pinned. - * - * See [method`TabView`.set_page_pinned]. - */ - readonly pinned: boolean - /** - * Whether the page is selected. - */ - readonly selected: boolean - /** - * The horizontal alignment of the page thumbnail. - * - * If the page is so wide that [class`TabOverview]` can't display it completely - * and has to crop it, horizontal alignment will determine which part of the - * page will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * start edge will be visible and 1 means the end edge will be visible. - * - * The default horizontal alignment is 0. - */ - thumbnail_xalign: number - /** - * The vertical alignment of the page thumbnail. - * - * If the page is so tall that [class`TabOverview]` can't display it completely - * and has to crop it, vertical alignment will determine which part of the - * page will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * top edge will be visible and 1 means the bottom edge will be visible. - * - * The default vertical alignment is 0. - */ - thumbnail_yalign: number - /** - * The title of the page. - * - * [class`TabBar]` will display it in the center of the tab unless it's pinned, - * and will use it as a tooltip unless [property`TabPage:`tooltip] is set. - * - * [class`TabOverview]` will display it below the thumbnail unless it's pinned, - * or inside the card otherwise, and will use it as a tooltip unless - * [property`TabPage:`tooltip] is set. - */ - title: string | null - /** - * The tooltip of the page. - * - * The tooltip can be marked up with the Pango text markup language. - * - * If not set, [class`TabBar]` and [class`TabOverview]` will use - * [property`TabPage:`title] as a tooltip instead. - */ - tooltip: string | null - - // Owm methods of Adw-1.Adw.TabPage - - /** - * Gets the child of `self`. - * @returns the child of @self - */ - get_child(): Gtk.Widget - /** - * Gets the icon of `self`. - * @returns the icon of @self - */ - get_icon(): Gio.Icon | null - /** - * Gets whether the indicator of `self` is activatable. - * @returns whether the indicator is activatable - */ - get_indicator_activatable(): boolean - /** - * Gets the indicator icon of `self`. - * @returns the indicator icon of @self - */ - get_indicator_icon(): Gio.Icon | null - /** - * Gets the tooltip of the indicator icon of `self`. - * @returns the indicator tooltip of @self - */ - get_indicator_tooltip(): string | null - /** - * Gets the search keyword of `self`. - * @returns the search keyword of @self - */ - get_keyword(): string | null - /** - * Gets whether to live thumbnail is enabled `self`. - * @returns whether live thumbnail is enabled - */ - get_live_thumbnail(): boolean - /** - * Gets whether `self` is loading. - * @returns whether @self is loading - */ - get_loading(): boolean - /** - * Gets whether `self` needs attention. - * @returns whether @self needs attention - */ - get_needs_attention(): boolean - /** - * Gets the parent page of `self`. - * - * See [method`TabView`.add_page] and [method`TabView`.close_page]. - * @returns the parent page - */ - get_parent(): TabPage | null - /** - * Gets whether `self` is pinned. - * - * See [method`TabView`.set_page_pinned]. - * @returns whether @self is pinned - */ - get_pinned(): boolean - /** - * Gets whether `self` is selected. - * @returns whether @self is selected - */ - get_selected(): boolean - /** - * Gets the horizontal alignment of the thumbnail for `self`. - * @returns the horizontal alignment - */ - get_thumbnail_xalign(): number - /** - * Gets the vertical alignment of the thumbnail for `self`. - * @returns the vertical alignment - */ - get_thumbnail_yalign(): number - /** - * Gets the title of `self`. - * @returns the title of @self - */ - get_title(): string | null - /** - * Gets the tooltip of `self`. - * @returns the tooltip of @self - */ - get_tooltip(): string | null - /** - * Invalidates thumbnail for `self`. - * - * If an [class`TabOverview]` is open, the thumbnail representing `self` will be - * immediately updated. Otherwise it will be update when opening the overview. - * - * Does nothing if [property`TabPage:`live-thumbnail] is set to `TRUE`. - * - * See also [method`TabView`.invalidate_thumbnails]. - */ - invalidate_thumbnail(): void - /** - * Sets the icon of `self`. - * - * [class`TabBar]` and [class`TabOverview]` display the icon next to the title, - * unless [property`TabPage:`loading] is set to `TRUE`. - * - * `AdwTabBar` also won't show the icon if the page is pinned and - * [propertyTabPage:indicator-icon] is set. - * @param icon the icon of `self` - */ - set_icon(icon: Gio.Icon | null): void - /** - * Sets whether the indicator of `self` is activatable. - * - * If set to `TRUE`, [signal`TabView:`:indicator-activated] will be emitted - * when the indicator icon is clicked. - * - * If [property`TabPage:`indicator-icon] is not set, does nothing. - * @param activatable whether the indicator is activatable - */ - set_indicator_activatable(activatable: boolean): void - /** - * Sets the indicator icon of `self`. - * - * A common use case is an audio or camera indicator in a web browser. - * - * [class`TabBar]` will show it at the beginning of the tab, alongside icon - * representing [property`TabPage:`icon] or loading spinner. - * - * If the page is pinned, the indicator will be shown instead of icon or - * spinner. - * - * [class`TabOverview]` will show it at the at the top part of the thumbnail. - * - * [property`TabPage:`indicator-tooltip] can be used to set the tooltip on the - * indicator icon. - * - * If [property`TabPage:`indicator-activatable] is set to `TRUE`, the - * indicator icon can act as a button. - * @param indicator_icon the indicator icon of `self` - */ - set_indicator_icon(indicator_icon: Gio.Icon | null): void - /** - * Sets the tooltip of the indicator icon of `self`. - * - * The tooltip can be marked up with the Pango text markup language. - * - * See [property`TabPage:`indicator-icon]. - * @param tooltip the indicator tooltip of `self` - */ - set_indicator_tooltip(tooltip: string | null): void - /** - * Sets the search keyword for `self`. - * - * [class`TabOverview]` can search pages by their keywords in addition to their - * titles and tooltips. - * - * Keywords allow to include e.g. page URLs into tab search in a web browser. - * @param keyword the search keyword - */ - set_keyword(keyword: string | null): void - /** - * Sets whether to enable live thumbnail for `self`. - * - * When set to `TRUE`, `self'`s thumbnail in [class`TabOverview]` will update - * immediately when `self` is redrawn or resized. - * - * If it's set to `FALSE`, the thumbnail will only be live when the `self` is - * selected, and otherwise it will be static and will only update when - * [method`TabPage`.invalidate_thumbnail] or - * [method`TabView`.invalidate_thumbnails] is called. - * @param live_thumbnail whether to enable live thumbnail - */ - set_live_thumbnail(live_thumbnail: boolean): void - /** - * Sets whether `self` is loading. - * - * If set to `TRUE`, [class`TabBar]` and [class`TabOverview]` will display a - * spinner in place of icon. - * - * If the page is pinned and [property`TabPage:`indicator-icon] is set, loading - * status will not be visible with `AdwTabBar`. - * @param loading whether `self` is loading - */ - set_loading(loading: boolean): void - /** - * Sets whether `self` needs attention. - * - * [class`TabBar]` will display a line under the tab representing the page if - * set to `TRUE`. If the tab is not visible, the corresponding edge of the tab - * bar will be highlighted. - * - * [class`TabOverview]` will display a dot in the corner of the thumbnail if set - * to `TRUE`. - * - * [class`TabButton]` will display a dot if any of the pages that aren't - * selected have [property`TabPage:`needs-attention] set to `TRUE`. - * @param needs_attention whether `self` needs attention - */ - set_needs_attention(needs_attention: boolean): void - /** - * Sets the horizontal alignment of the thumbnail for `self`. - * - * If the page is so wide that [class`TabOverview]` can't display it completely - * and has to crop it, horizontal alignment will determine which part of the - * page will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * start edge will be visible and 1 means the end edge will be visible. - * - * The default horizontal alignment is 0. - * @param xalign the new value - */ - set_thumbnail_xalign(xalign: number): void - /** - * Sets the vertical alignment of the thumbnail for `self`. - * - * If the page is so tall that [class`TabOverview]` can't display it completely - * and has to crop it, vertical alignment will determine which part of the page - * will be visible. - * - * For example, 0.5 means the center of the page will be visible, 0 means the - * top edge will be visible and 1 means the bottom edge will be visible. - * - * The default vertical alignment is 0. - * @param yalign the new value - */ - set_thumbnail_yalign(yalign: number): void - /** - * [class`TabBar]` will display it in the center of the tab unless it's pinned, - * and will use it as a tooltip unless [property`TabPage:`tooltip] is set. - * - * [class`TabOverview]` will display it below the thumbnail unless it's pinned, - * or inside the card otherwise, and will use it as a tooltip unless - * [property`TabPage:`tooltip] is set. - * - * Sets the title of `self`. - * @param title the title of `self` - */ - set_title(title: string | null): void - /** - * Sets the tooltip of `self`. - * - * The tooltip can be marked up with the Pango text markup language. - * - * If not set, [class`TabBar]` and [class`TabOverview]` will use - * [property`TabPage:`title] as a tooltip instead. - * @param tooltip the tooltip of `self` - */ - set_tooltip(tooltip: string | null): void - - // Class property signals of Adw-1.Adw.TabPage - - connect(sigName: "notify::child", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::icon", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon", ...args: any[]): void - connect(sigName: "notify::indicator-activatable", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::indicator-activatable", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::indicator-activatable", ...args: any[]): void - connect(sigName: "notify::indicator-icon", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::indicator-icon", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::indicator-icon", ...args: any[]): void - connect(sigName: "notify::indicator-tooltip", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::indicator-tooltip", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::indicator-tooltip", ...args: any[]): void - connect(sigName: "notify::keyword", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::keyword", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::keyword", ...args: any[]): void - connect(sigName: "notify::live-thumbnail", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::live-thumbnail", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::live-thumbnail", ...args: any[]): void - connect(sigName: "notify::loading", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::loading", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::loading", ...args: any[]): void - connect(sigName: "notify::needs-attention", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::needs-attention", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::needs-attention", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::pinned", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pinned", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pinned", ...args: any[]): void - connect(sigName: "notify::selected", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected", ...args: any[]): void - connect(sigName: "notify::thumbnail-xalign", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::thumbnail-xalign", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::thumbnail-xalign", ...args: any[]): void - connect(sigName: "notify::thumbnail-yalign", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::thumbnail-yalign", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::thumbnail-yalign", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::tooltip", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TabPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An auxiliary class used by [class`TabView]`. - * @class - */ -class TabPage extends GObject.Object { - - // Own properties of Adw-1.Adw.TabPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TabPage - - constructor(config?: TabPage.ConstructorProperties) - _init(config?: TabPage.ConstructorProperties): void -} - -module TabView { - - // Signal callback interfaces - - /** - * Signal callback interface for `close-page` - */ - interface ClosePageSignalCallback { - ($obj: TabView, page: TabPage): boolean - } - - /** - * Signal callback interface for `create-window` - */ - interface CreateWindowSignalCallback { - ($obj: TabView): TabView | null - } - - /** - * Signal callback interface for `indicator-activated` - */ - interface IndicatorActivatedSignalCallback { - ($obj: TabView, page: TabPage): void - } - - /** - * Signal callback interface for `page-attached` - */ - interface PageAttachedSignalCallback { - ($obj: TabView, page: TabPage, position: number): void - } - - /** - * Signal callback interface for `page-detached` - */ - interface PageDetachedSignalCallback { - ($obj: TabView, page: TabPage, position: number): void - } - - /** - * Signal callback interface for `page-reordered` - */ - interface PageReorderedSignalCallback { - ($obj: TabView, page: TabPage, position: number): void - } - - /** - * Signal callback interface for `setup-menu` - */ - interface SetupMenuSignalCallback { - ($obj: TabView, page: TabPage | null): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TabView - - /** - * Default page icon. - * - * If a page doesn't provide its own icon via [property`TabPage:`icon], a - * default icon may be used instead for contexts where having an icon is - * necessary. - * - * [class`TabBar]` will use default icon for pinned tabs in case the page is - * not loading, doesn't have an icon and an indicator. Default icon is never - * used for tabs that aren't pinned. - * - * [class`TabOverview]` will use default icon for pages with missing - * thumbnails. - * - * By default, the `adw-tab-icon-missing-symbolic` icon is used. - */ - default_icon?: Gio.Icon | null - /** - * Tab context menu model. - * - * When a context menu is shown for a tab, it will be constructed from the - * provided menu model. Use the [signal`TabView:`:setup-menu] signal to set up - * the menu actions for the particular tab. - */ - menu_model?: Gio.MenuModel | null - /** - * The currently selected page. - */ - selected_page?: TabPage | null - /** - * The enabled shortcuts. - * - * See [flags`TabViewShortcuts]` for the list of the available shortcuts. All - * of the shortcuts are enabled by default. - * - * [method`TabView`.add_shortcuts] and [method`TabView`.remove_shortcuts] - * provide a convenient way to manage individual shortcuts. - */ - shortcuts?: TabViewShortcuts | null - } - -} - -interface TabView extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.TabView - - /** - * Default page icon. - * - * If a page doesn't provide its own icon via [property`TabPage:`icon], a - * default icon may be used instead for contexts where having an icon is - * necessary. - * - * [class`TabBar]` will use default icon for pinned tabs in case the page is - * not loading, doesn't have an icon and an indicator. Default icon is never - * used for tabs that aren't pinned. - * - * [class`TabOverview]` will use default icon for pages with missing - * thumbnails. - * - * By default, the `adw-tab-icon-missing-symbolic` icon is used. - */ - default_icon: Gio.Icon - /** - * Whether a page is being transferred. - * - * This property will be set to `TRUE` when a drag-n-drop tab transfer starts - * on any `AdwTabView`, and to `FALSE` after it ends. - * - * During the transfer, children cannot receive pointer input and a tab can - * be safely dropped on the tab view. - */ - readonly is_transferring_page: boolean - /** - * Tab context menu model. - * - * When a context menu is shown for a tab, it will be constructed from the - * provided menu model. Use the [signal`TabView:`:setup-menu] signal to set up - * the menu actions for the particular tab. - */ - menu_model: Gio.MenuModel - /** - * The number of pages in the tab view. - */ - readonly n_pages: number - /** - * The number of pinned pages in the tab view. - * - * See [method`TabView`.set_page_pinned]. - */ - readonly n_pinned_pages: number - /** - * A selection model with the tab view's pages. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the selected - * page. - */ - readonly pages: Gtk.SelectionModel - /** - * The currently selected page. - */ - selected_page: TabPage - /** - * The enabled shortcuts. - * - * See [flags`TabViewShortcuts]` for the list of the available shortcuts. All - * of the shortcuts are enabled by default. - * - * [method`TabView`.add_shortcuts] and [method`TabView`.remove_shortcuts] - * provide a convenient way to manage individual shortcuts. - */ - shortcuts: TabViewShortcuts - - // Owm methods of Adw-1.Adw.TabView - - /** - * Adds `child` to `self` with `parent` as the parent. - * - * This function can be used to automatically position new pages, and to select - * the correct page when this page is closed while being selected (see - * [method`TabView`.close_page]). - * - * If `parent` is `NULL`, this function is equivalent to [method`TabView`.append]. - * @param child a widget to add - * @param parent a parent page for `child` - * @returns the page object representing @child - */ - add_page(child: Gtk.Widget, parent: TabPage | null): TabPage - /** - * Adds `shortcuts` for `self`. - * - * See [property`TabView:`shortcuts] for details. - * @param shortcuts the shortcuts to add - */ - add_shortcuts(shortcuts: TabViewShortcuts): void - /** - * Inserts `child` as the last non-pinned page. - * @param child a widget to add - * @returns the page object representing @child - */ - append(child: Gtk.Widget): TabPage - /** - * Inserts `child` as the last pinned page. - * @param child a widget to add - * @returns the page object representing @child - */ - append_pinned(child: Gtk.Widget): TabPage - /** - * Requests to close all pages other than `page`. - * @param page a page of `self` - */ - close_other_pages(page: TabPage): void - /** - * Requests to close `page`. - * - * Calling this function will result in the [signal`TabView:`:close-page] signal - * being emitted for `page`. Closing the page can then be confirmed or - * denied via [method`TabView`.close_page_finish]. - * - * If the page is waiting for a [method`TabView`.close_page_finish] call, this - * function will do nothing. - * - * The default handler for [signal`TabView:`:close-page] will immediately confirm - * closing the page if it's non-pinned, or reject it if it's pinned. This - * behavior can be changed by registering your own handler for that signal. - * - * If `page` was selected, another page will be selected instead: - * - * If the [property`TabPage:`parent] value is `NULL`, the next page will be - * selected when possible, or if the page was already last, the previous page - * will be selected instead. - * - * If it's not `NULL`, the previous page will be selected if it's a descendant - * (possibly indirect) of the parent. If both the previous page and the parent - * are pinned, the parent will be selected instead. - * @param page a page of `self` - */ - close_page(page: TabPage): void - /** - * Completes a [method`TabView`.close_page] call for `page`. - * - * If `confirm` is `TRUE`, `page` will be closed. If it's `FALSE`, it will be - * reverted to its previous state and [method`TabView`.close_page] can be called - * for it again. - * - * This function should not be called unless a custom handler for - * [signal`TabView:`:close-page] is used. - * @param page a page of `self` - * @param confirm whether to confirm or deny closing `page` - */ - close_page_finish(page: TabPage, confirm: boolean): void - /** - * Requests to close all pages after `page`. - * @param page a page of `self` - */ - close_pages_after(page: TabPage): void - /** - * Requests to close all pages before `page`. - * @param page a page of `self` - */ - close_pages_before(page: TabPage): void - /** - * Gets the default icon of `self`. - * @returns the default icon of @self. - */ - get_default_icon(): Gio.Icon - /** - * Whether a page is being transferred. - * - * The corresponding property will be set to `TRUE` when a drag-n-drop tab - * transfer starts on any `AdwTabView`, and to `FALSE` after it ends. - * - * During the transfer, children cannot receive pointer input and a tab can - * be safely dropped on the tab view. - * @returns whether a page is being transferred - */ - get_is_transferring_page(): boolean - /** - * Gets the tab context menu model for `self`. - * @returns the tab context menu model for @self - */ - get_menu_model(): Gio.MenuModel | null - /** - * Gets the number of pages in `self`. - * @returns the number of pages in @self - */ - get_n_pages(): number - /** - * Gets the number of pinned pages in `self`. - * - * See [method`TabView`.set_page_pinned]. - * @returns the number of pinned pages in @self - */ - get_n_pinned_pages(): number - /** - * Gets the [class`TabPage]` representing the child at `position`. - * @param position the index of the page in `self,` starting from 0 - * @returns the page object at @position - */ - get_nth_page(position: number): TabPage - /** - * Gets the [class`TabPage]` object representing `child`. - * @param child a child in `self` - * @returns the page object for @child - */ - get_page(child: Gtk.Widget): TabPage - /** - * Finds the position of `page` in `self,` starting from 0. - * @param page a page of `self` - * @returns the position of @page in @self - */ - get_page_position(page: TabPage): number - /** - * Returns a [iface`Gio`.ListModel] that contains the pages of `self`. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the selected - * page. - * @returns a `GtkSelectionModel` for the pages of @self - */ - get_pages(): Gtk.SelectionModel - /** - * Gets the currently selected page in `self`. - * @returns the selected page - */ - get_selected_page(): TabPage | null - /** - * Gets the enabled shortcuts for `self`. - * @returns the shortcut mask - */ - get_shortcuts(): TabViewShortcuts - /** - * Inserts a non-pinned page at `position`. - * - * It's an error to try to insert a page before a pinned page, in that case - * [method`TabView`.insert_pinned] should be used instead. - * @param child a widget to add - * @param position the position to add `child` at, starting from 0 - * @returns the page object representing @child - */ - insert(child: Gtk.Widget, position: number): TabPage - /** - * Inserts a pinned page at `position`. - * - * It's an error to try to insert a pinned page after a non-pinned page, in - * that case [method`TabView`.insert] should be used instead. - * @param child a widget to add - * @param position the position to add `child` at, starting from 0 - * @returns the page object representing @child - */ - insert_pinned(child: Gtk.Widget, position: number): TabPage - /** - * Invalidates thumbnails for all pages in `self`. - * - * This is a convenience method, equivalent to calling - * [method`TabPage`.invalidate_thumbnail] on each page. - */ - invalidate_thumbnails(): void - /** - * Inserts `child` as the first non-pinned page. - * @param child a widget to add - * @returns the page object representing @child - */ - prepend(child: Gtk.Widget): TabPage - /** - * Inserts `child` as the first pinned page. - * @param child a widget to add - * @returns the page object representing @child - */ - prepend_pinned(child: Gtk.Widget): TabPage - /** - * Removes `shortcuts` from `self`. - * - * See [property`TabView:`shortcuts] for details. - * @param shortcuts the shortcuts to reomve - */ - remove_shortcuts(shortcuts: TabViewShortcuts): void - /** - * Reorders `page` to before its previous page if possible. - * @param page a page of `self` - * @returns whether @page was moved - */ - reorder_backward(page: TabPage): boolean - /** - * Reorders `page` to the first possible position. - * @param page a page of `self` - * @returns whether @page was moved - */ - reorder_first(page: TabPage): boolean - /** - * Reorders `page` to after its next page if possible. - * @param page a page of `self` - * @returns whether @page was moved - */ - reorder_forward(page: TabPage): boolean - /** - * Reorders `page` to the last possible position. - * @param page a page of `self` - * @returns whether @page was moved - */ - reorder_last(page: TabPage): boolean - /** - * Reorders `page` to `position`. - * - * It's a programmer error to try to reorder a pinned page after a non-pinned - * one, or a non-pinned page before a pinned one. - * @param page a page of `self` - * @param position the position to insert the page at, starting at 0 - * @returns whether @page was moved - */ - reorder_page(page: TabPage, position: number): boolean - /** - * Selects the page after the currently selected page. - * - * If the last page was already selected, this function does nothing. - * @returns whether the selected page was changed - */ - select_next_page(): boolean - /** - * Selects the page before the currently selected page. - * - * If the first page was already selected, this function does nothing. - * @returns whether the selected page was changed - */ - select_previous_page(): boolean - /** - * Sets the default page icon for `self`. - * - * If a page doesn't provide its own icon via [property`TabPage:`icon], a default - * icon may be used instead for contexts where having an icon is necessary. - * - * [class`TabBar]` will use default icon for pinned tabs in case the page is not - * loading, doesn't have an icon and an indicator. Default icon is never used - * for tabs that aren't pinned. - * - * [class`TabOverview]` will use default icon for pages with missing thumbnails. - * - * By default, the `adw-tab-icon-missing-symbolic` icon is used. - * @param default_icon the default icon - */ - set_default_icon(default_icon: Gio.Icon): void - /** - * Sets the tab context menu model for `self`. - * - * When a context menu is shown for a tab, it will be constructed from the - * provided menu model. Use the [signal`TabView:`:setup-menu] signal to set up - * the menu actions for the particular tab. - * @param menu_model a menu model - */ - set_menu_model(menu_model: Gio.MenuModel | null): void - /** - * Pins or unpins `page`. - * - * Pinned pages are guaranteed to be placed before all non-pinned pages; at any - * given moment the first [property`TabView:`n-pinned-pages] pages in `self` are - * guaranteed to be pinned. - * - * When a page is pinned or unpinned, it's automatically reordered: pinning a - * page moves it after other pinned pages; unpinning a page moves it before - * other non-pinned pages. - * - * Pinned pages can still be reordered between each other. - * - * [class`TabBar]` will display pinned pages in a compact form, never showing the - * title or close button, and only showing a single icon, selected in the - * following order: - * - * 1. [property`TabPage:`indicator-icon] - * 2. A spinner if [property`TabPage:`loading] is `TRUE` - * 3. [property`TabPage:`icon] - * 4. [property`TabView:`default-icon] - * - * [class`TabOverview]` will not show a thumbnail for pinned pages, and replace - * the close button with an unpin button. Unlike `AdwTabBar`, it will still - * display the page's title, icon and indicator separately. - * - * Pinned pages cannot be closed by default, see [signal`TabView:`:close-page] - * for how to override that behavior. - * - * Changes the value of the [property`TabPage:`pinned] property. - * @param page a page of `self` - * @param pinned whether `page` should be pinned - */ - set_page_pinned(page: TabPage, pinned: boolean): void - /** - * Sets the currently selected page in `self`. - * @param selected_page a page in `self` - */ - set_selected_page(selected_page: TabPage): void - /** - * Sets the enabled shortcuts for `self`. - * - * See [flags`TabViewShortcuts]` for the list of the available shortcuts. All of - * the shortcuts are enabled by default. - * - * [method`TabView`.add_shortcuts] and [method`TabView`.remove_shortcuts] provide - * a convenient way to manage individual shortcuts. - * @param shortcuts the new shortcuts - */ - set_shortcuts(shortcuts: TabViewShortcuts): void - /** - * Transfers `page` from `self` to `other_view`. - * - * The `page` object will be reused. - * - * It's a programmer error to try to insert a pinned page after a non-pinned - * one, or a non-pinned page before a pinned one. - * @param page a page of `self` - * @param other_view the tab view to transfer the page to - * @param position the position to insert the page at, starting at 0 - */ - transfer_page(page: TabPage, other_view: TabView, position: number): void - - // Own signals of Adw-1.Adw.TabView - - connect(sigName: "close-page", callback: TabView.ClosePageSignalCallback): number - connect_after(sigName: "close-page", callback: TabView.ClosePageSignalCallback): number - emit(sigName: "close-page", page: TabPage, ...args: any[]): void - connect(sigName: "create-window", callback: TabView.CreateWindowSignalCallback): number - connect_after(sigName: "create-window", callback: TabView.CreateWindowSignalCallback): number - emit(sigName: "create-window", ...args: any[]): void - connect(sigName: "indicator-activated", callback: TabView.IndicatorActivatedSignalCallback): number - connect_after(sigName: "indicator-activated", callback: TabView.IndicatorActivatedSignalCallback): number - emit(sigName: "indicator-activated", page: TabPage, ...args: any[]): void - connect(sigName: "page-attached", callback: TabView.PageAttachedSignalCallback): number - connect_after(sigName: "page-attached", callback: TabView.PageAttachedSignalCallback): number - emit(sigName: "page-attached", page: TabPage, position: number, ...args: any[]): void - connect(sigName: "page-detached", callback: TabView.PageDetachedSignalCallback): number - connect_after(sigName: "page-detached", callback: TabView.PageDetachedSignalCallback): number - emit(sigName: "page-detached", page: TabPage, position: number, ...args: any[]): void - connect(sigName: "page-reordered", callback: TabView.PageReorderedSignalCallback): number - connect_after(sigName: "page-reordered", callback: TabView.PageReorderedSignalCallback): number - emit(sigName: "page-reordered", page: TabPage, position: number, ...args: any[]): void - connect(sigName: "setup-menu", callback: TabView.SetupMenuSignalCallback): number - connect_after(sigName: "setup-menu", callback: TabView.SetupMenuSignalCallback): number - emit(sigName: "setup-menu", page: TabPage | null, ...args: any[]): void - - // Class property signals of Adw-1.Adw.TabView - - connect(sigName: "notify::default-icon", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-icon", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-icon", ...args: any[]): void - connect(sigName: "notify::is-transferring-page", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-transferring-page", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-transferring-page", ...args: any[]): void - connect(sigName: "notify::menu-model", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::menu-model", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::menu-model", ...args: any[]): void - connect(sigName: "notify::n-pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-pages", ...args: any[]): void - connect(sigName: "notify::n-pinned-pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-pinned-pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-pinned-pages", ...args: any[]): void - connect(sigName: "notify::pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pages", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pages", ...args: any[]): void - connect(sigName: "notify::selected-page", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected-page", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected-page", ...args: any[]): void - connect(sigName: "notify::shortcuts", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::shortcuts", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::shortcuts", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TabView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A dynamic tabbed container. - * - * `AdwTabView` is a container which shows one child at a time. While it - * provides keyboard shortcuts for switching between pages, it does not provide - * a visible tab switcher and relies on external widgets for that, such as - * [class`TabBar]`, [class`TabOverview]` and [class`TabButton]`. - * - * `AdwTabView` maintains a [class`TabPage]` object for each page, which holds - * additional per-page properties. You can obtain the `AdwTabPage` for a page - * with [method`TabView`.get_page], and as the return value for - * [method`TabView`.append] and other functions for adding children. - * - * `AdwTabView` only aims to be useful for dynamic tabs in multi-window - * document-based applications, such as web browsers, file managers, text - * editors or terminals. It does not aim to replace [class`Gtk`.Notebook] for use - * cases such as tabbed dialogs. - * - * As such, it does not support disabling page reordering or detaching. - * - * `AdwTabView` adds a number of global page switching and reordering shortcuts. - * The [property`TabView:`shortcuts] property can be used to manage them. - * - * See [flags`TabViewShortcuts]` for the list of the available shortcuts. All of - * the shortcuts are enabled by default. - * - * [method`TabView`.add_shortcuts] and [method`TabView`.remove_shortcuts] can be - * used to manage shortcuts in a convenient way, for example: - * - * ```c - * adw_tab_view_remove_shortcuts (view, ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME | - * ADW_TAB_VIEW_SHORTCUT_CONTROL_END); - * ``` - * - * ## CSS nodes - * - * `AdwTabView` has a main CSS node with the name `tabview`. - * - * ## Accessibility - * - * `AdwTabView` uses the `GTK_ACCESSIBLE_ROLE_TAB_PANEL` for the tab pages which - * are the accessible parent objects of the child widgets. - * @class - */ -class TabView extends Gtk.Widget { - - // Own properties of Adw-1.Adw.TabView - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TabView - - constructor(config?: TabView.ConstructorProperties) - /** - * Creates a new `AdwTabView`. - * @constructor - * @returns the newly created `AdwTabView` - */ - constructor() - /** - * Creates a new `AdwTabView`. - * @constructor - * @returns the newly created `AdwTabView` - */ - static new(): TabView - _init(config?: TabView.ConstructorProperties): void -} - -module TimedAnimation { - - // Constructor properties interface - - interface ConstructorProperties extends Animation.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.TimedAnimation - - /** - * Whether the animation changes direction on every iteration. - */ - alternate?: boolean | null - /** - * Duration of the animation, in milliseconds. - * - * Describes how much time the animation will take. - * - * If the animation repeats more than once, describes the duration of one - * iteration. - */ - duration?: number | null - /** - * Easing function used in the animation. - * - * Describes the curve the value is interpolated on. - * - * See [enum`Easing]` for the description of specific easing functions. - */ - easing?: Easing | null - /** - * Number of times the animation will play. - * - * If set to 0, the animation will repeat endlessly. - */ - repeat_count?: number | null - /** - * Whether the animation plays backwards. - */ - reverse?: boolean | null - /** - * The value to animate from. - * - * The animation will start at this value and end at - * [property`TimedAnimation:`value-to]. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will end at - * this value instead. - */ - value_from?: number | null - /** - * The value to animate to. - * - * The animation will start at [property`TimedAnimation:`value-from] and end at - * this value. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will start - * at this value instead. - */ - value_to?: number | null - } - -} - -interface TimedAnimation { - - // Own properties of Adw-1.Adw.TimedAnimation - - /** - * Whether the animation changes direction on every iteration. - */ - alternate: boolean - /** - * Duration of the animation, in milliseconds. - * - * Describes how much time the animation will take. - * - * If the animation repeats more than once, describes the duration of one - * iteration. - */ - duration: number - /** - * Easing function used in the animation. - * - * Describes the curve the value is interpolated on. - * - * See [enum`Easing]` for the description of specific easing functions. - */ - easing: Easing - /** - * Number of times the animation will play. - * - * If set to 0, the animation will repeat endlessly. - */ - repeat_count: number - /** - * Whether the animation plays backwards. - */ - reverse: boolean - /** - * The value to animate from. - * - * The animation will start at this value and end at - * [property`TimedAnimation:`value-to]. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will end at - * this value instead. - */ - value_from: number - /** - * The value to animate to. - * - * The animation will start at [property`TimedAnimation:`value-from] and end at - * this value. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will start - * at this value instead. - */ - value_to: number - - // Owm methods of Adw-1.Adw.TimedAnimation - - /** - * Gets whether `self` changes direction on every iteration. - * @returns whether @self alternates - */ - get_alternate(): boolean - /** - * Gets the duration of `self`. - * @returns the duration of @self, in milliseconds - */ - get_duration(): number - /** - * Gets the easing function `self` uses. - * @returns the easing function @self uses - */ - get_easing(): Easing - /** - * Gets the number of times `self` will play. - * @returns the number of times @self will play - */ - get_repeat_count(): number - /** - * Gets whether `self` plays backwards. - * @returns whether @self plays backwards - */ - get_reverse(): boolean - /** - * Gets the value `self` will animate from. - * @returns the value to animate from - */ - get_value_from(): number - /** - * Gets the value `self` will animate to. - * @returns the value to animate to - */ - get_value_to(): number - /** - * Sets whether `self` changes direction on every iteration. - * @param alternate whether `self` alternates - */ - set_alternate(alternate: boolean): void - /** - * Sets the duration of `self`. - * - * If the animation repeats more than once, sets the duration of one iteration. - * @param duration the duration to use, in milliseconds - */ - set_duration(duration: number): void - /** - * Sets the easing function `self` will use. - * - * See [enum`Easing]` for the description of specific easing functions. - * @param easing the easing function to use - */ - set_easing(easing: Easing): void - /** - * Sets the number of times `self` will play. - * - * If set to 0, `self` will repeat endlessly. - * @param repeat_count the number of times `self` will play - */ - set_repeat_count(repeat_count: number): void - /** - * Sets whether `self` plays backwards. - * @param reverse whether `self` plays backwards - */ - set_reverse(reverse: boolean): void - /** - * Sets the value `self` will animate from. - * - * The animation will start at this value and end at - * [property`TimedAnimation:`value-to]. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will end at - * this value instead. - * @param value the value to animate from - */ - set_value_from(value: number): void - /** - * Sets the value `self` will animate to. - * - * The animation will start at [property`TimedAnimation:`value-from] and end at - * this value. - * - * If [property`TimedAnimation:`reverse] is `TRUE`, the animation will start - * at this value instead. - * @param value the value to animate to - */ - set_value_to(value: number): void - - // Class property signals of Adw-1.Adw.TimedAnimation - - connect(sigName: "notify::alternate", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::alternate", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::alternate", ...args: any[]): void - connect(sigName: "notify::duration", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::duration", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::duration", ...args: any[]): void - connect(sigName: "notify::easing", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::easing", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::easing", ...args: any[]): void - connect(sigName: "notify::repeat-count", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::repeat-count", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::repeat-count", ...args: any[]): void - connect(sigName: "notify::reverse", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reverse", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reverse", ...args: any[]): void - connect(sigName: "notify::value-from", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value-from", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value-from", ...args: any[]): void - connect(sigName: "notify::value-to", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value-to", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value-to", ...args: any[]): void - connect(sigName: "notify::follow-enable-animations-setting", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::follow-enable-animations-setting", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::follow-enable-animations-setting", ...args: any[]): void - connect(sigName: "notify::state", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::state", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::state", ...args: any[]): void - connect(sigName: "notify::target", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::target", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::target", ...args: any[]): void - connect(sigName: "notify::value", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value", ...args: any[]): void - connect(sigName: "notify::widget", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::widget", callback: (($obj: TimedAnimation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::widget", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A time-based [class`Animation]`. - * - * `AdwTimedAnimation` implements a simple animation interpolating the given - * value from [property`TimedAnimation:`value-from] to - * [property`TimedAnimation:`value-to] over - * [property`TimedAnimation:`duration] milliseconds using the curve described by - * [property`TimedAnimation:`easing]. - * - * If [property`TimedAnimation:`reverse] is set to `TRUE`, `AdwTimedAnimation` - * will instead animate from [property`TimedAnimation:`value-to] to - * [property`TimedAnimation:`value-from], and the easing curve will be inverted. - * - * The animation can repeat a certain amount of times, or endlessly, depending - * on the [property`TimedAnimation:`repeat-count] value. If - * [property`TimedAnimation:`alternate] is set to `TRUE`, it will also change the - * direction every other iteration. - * @class - */ -class TimedAnimation extends Animation { - - // Own properties of Adw-1.Adw.TimedAnimation - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.TimedAnimation - - constructor(config?: TimedAnimation.ConstructorProperties) - /** - * Creates a new `AdwTimedAnimation` on `widget` to animate `target` from `from` - * to `to`. - * @constructor - * @param widget a widget to create animation on - * @param from a value to animate from - * @param to a value to animate to - * @param duration a duration for the animation - * @param target a target value to animate - * @returns the newly created animation - */ - constructor(widget: Gtk.Widget, from: number, to: number, duration: number, target: AnimationTarget) - /** - * Creates a new `AdwTimedAnimation` on `widget` to animate `target` from `from` - * to `to`. - * @constructor - * @param widget a widget to create animation on - * @param from a value to animate from - * @param to a value to animate to - * @param duration a duration for the animation - * @param target a target value to animate - * @returns the newly created animation - */ - static new(widget: Gtk.Widget, from: number, to: number, duration: number, target: AnimationTarget): TimedAnimation - _init(config?: TimedAnimation.ConstructorProperties): void -} - -module Toast { - - // Signal callback interfaces - - /** - * Signal callback interface for `button-clicked` - */ - interface ButtonClickedSignalCallback { - ($obj: Toast): void - } - - /** - * Signal callback interface for `dismissed` - */ - interface DismissedSignalCallback { - ($obj: Toast): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Toast - - /** - * The name of the associated action. - * - * It will be activated when clicking the button. - * - * See [property`Toast:`action-target]. - */ - action_name?: string | null - /** - * The parameter for action invocations. - */ - action_target?: GLib.Variant | null - /** - * The label to show on the button. - * - * Underlines in the button text can be used to indicate a mnemonic. - * - * If set to `NULL`, the button won't be shown. - * - * See [property`Toast:`action-name]. - */ - button_label?: string | null - /** - * The custom title widget. - * - * It will be displayed instead of the title if set. In this case, - * [property`Toast:`title] is ignored. - * - * Setting a custom title will unset [property`Toast:`title]. - */ - custom_title?: Gtk.Widget | null - /** - * The priority of the toast. - * - * Priority controls how the toast behaves when another toast is already - * being displayed. - * - * If the priority is `ADW_TOAST_PRIORITY_NORMAL`, the toast will be queued. - * - * If the priority is `ADW_TOAST_PRIORITY_HIGH`, the toast will be displayed - * immediately, pushing the previous toast into the queue instead. - */ - priority?: ToastPriority | null - /** - * The timeout of the toast, in seconds. - * - * If timeout is 0, the toast is displayed indefinitely until manually - * dismissed. - * - * Toasts cannot disappear while being hovered, pressed (on touchscreen), or - * have keyboard focus inside them. - */ - timeout?: number | null - /** - * The title of the toast. - * - * The title can be marked up with the Pango text markup language. - * - * Setting a title will unset [property`Toast:`custom-title]. - * - * If [property`Toast:`custom-title] is set, it will be used instead. - */ - title?: string | null - /** - * Whether to use Pango markup for the toast title. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup?: boolean | null - } - -} - -interface Toast { - - // Own properties of Adw-1.Adw.Toast - - /** - * The name of the associated action. - * - * It will be activated when clicking the button. - * - * See [property`Toast:`action-target]. - */ - action_name: string | null - /** - * The parameter for action invocations. - */ - action_target: GLib.Variant - /** - * The label to show on the button. - * - * Underlines in the button text can be used to indicate a mnemonic. - * - * If set to `NULL`, the button won't be shown. - * - * See [property`Toast:`action-name]. - */ - button_label: string | null - /** - * The custom title widget. - * - * It will be displayed instead of the title if set. In this case, - * [property`Toast:`title] is ignored. - * - * Setting a custom title will unset [property`Toast:`title]. - */ - custom_title: Gtk.Widget - /** - * The priority of the toast. - * - * Priority controls how the toast behaves when another toast is already - * being displayed. - * - * If the priority is `ADW_TOAST_PRIORITY_NORMAL`, the toast will be queued. - * - * If the priority is `ADW_TOAST_PRIORITY_HIGH`, the toast will be displayed - * immediately, pushing the previous toast into the queue instead. - */ - priority: ToastPriority - /** - * The timeout of the toast, in seconds. - * - * If timeout is 0, the toast is displayed indefinitely until manually - * dismissed. - * - * Toasts cannot disappear while being hovered, pressed (on touchscreen), or - * have keyboard focus inside them. - */ - timeout: number - /** - * The title of the toast. - * - * The title can be marked up with the Pango text markup language. - * - * Setting a title will unset [property`Toast:`custom-title]. - * - * If [property`Toast:`custom-title] is set, it will be used instead. - */ - title: string | null - /** - * Whether to use Pango markup for the toast title. - * - * See also [func`Pango`.parse_markup]. - */ - use_markup: boolean - - // Owm methods of Adw-1.Adw.Toast - - /** - * Dismisses `self`. - * - * Does nothing if `self` has already been dismissed, or hasn't been added to an - * [class`ToastOverlay]`. - */ - dismiss(): void - /** - * Gets the name of the associated action. - * @returns the action name - */ - get_action_name(): string | null - /** - * Gets the parameter for action invocations. - * @returns the action target - */ - get_action_target_value(): GLib.Variant | null - /** - * Gets the label to show on the button. - * @returns the button label - */ - get_button_label(): string | null - /** - * Gets the custom title widget of `self`. - * @returns the custom title widget - */ - get_custom_title(): Gtk.Widget | null - /** - * Gets priority for `self`. - * @returns the priority - */ - get_priority(): ToastPriority - /** - * Gets timeout for `self`. - * @returns the timeout - */ - get_timeout(): number - /** - * Gets the title that will be displayed on the toast. - * - * If a custom title has been set with [method`Adw`.Toast.set_custom_title] - * the return value will be %NULL. - * @returns the title - */ - get_title(): string | null - /** - * Gets whether to use Pango markup for the toast title. - * @returns whether the toast uses markup - */ - get_use_markup(): boolean - /** - * Sets the name of the associated action. - * - * It will be activated when clicking the button. - * - * See [property`Toast:`action-target]. - * @param action_name the action name - */ - set_action_name(action_name: string | null): void - /** - * Sets the parameter for action invocations. - * - * If the `action_target` variant has a floating reference this function - * will sink it. - * @param action_target the action target - */ - set_action_target_value(action_target: GLib.Variant | null): void - /** - * Sets the label to show on the button. - * - * Underlines in the button text can be used to indicate a mnemonic. - * - * If set to `NULL`, the button won't be shown. - * - * See [property`Toast:`action-name]. - * @param button_label a button label - */ - set_button_label(button_label: string | null): void - /** - * Sets the custom title widget of `self`. - * - * It will be displayed instead of the title if set. In this case, - * [property`Toast:`title] is ignored. - * - * Setting a custom title will unset [property`Toast:`title]. - * @param widget the custom title widget - */ - set_custom_title(widget: Gtk.Widget | null): void - /** - * Sets the action name and its parameter. - * - * `detailed_action_name` is a string in the format accepted by - * [func`Gio`.Action.parse_detailed_name]. - * @param detailed_action_name the detailed action name - */ - set_detailed_action_name(detailed_action_name: string | null): void - /** - * Sets priority for `self`. - * - * Priority controls how the toast behaves when another toast is already - * being displayed. - * - * If `priority` is `ADW_TOAST_PRIORITY_NORMAL`, the toast will be queued. - * - * If `priority` is `ADW_TOAST_PRIORITY_HIGH`, the toast will be displayed - * immediately, pushing the previous toast into the queue instead. - * @param priority the priority - */ - set_priority(priority: ToastPriority): void - /** - * Sets timeout for `self`. - * - * If `timeout` is 0, the toast is displayed indefinitely until manually - * dismissed. - * - * Toasts cannot disappear while being hovered, pressed (on touchscreen), or - * have keyboard focus inside them. - * @param timeout the timeout - */ - set_timeout(timeout: number): void - /** - * Sets the title that will be displayed on the toast. - * - * The title can be marked up with the Pango text markup language. - * - * Setting a title will unset [property`Toast:`custom-title]. - * - * If [property`Toast:`custom-title] is set, it will be used instead. - * @param title a title - */ - set_title(title: string | null): void - /** - * Whether to use Pango markup for the toast title. - * - * See also [func`Pango`.parse_markup]. - * @param use_markup whether to use markup - */ - set_use_markup(use_markup: boolean): void - - // Own signals of Adw-1.Adw.Toast - - connect(sigName: "button-clicked", callback: Toast.ButtonClickedSignalCallback): number - connect_after(sigName: "button-clicked", callback: Toast.ButtonClickedSignalCallback): number - emit(sigName: "button-clicked", ...args: any[]): void - connect(sigName: "dismissed", callback: Toast.DismissedSignalCallback): number - connect_after(sigName: "dismissed", callback: Toast.DismissedSignalCallback): number - emit(sigName: "dismissed", ...args: any[]): void - - // Class property signals of Adw-1.Adw.Toast - - connect(sigName: "notify::action-name", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-name", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-name", ...args: any[]): void - connect(sigName: "notify::action-target", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::action-target", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::action-target", ...args: any[]): void - connect(sigName: "notify::button-label", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::button-label", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::button-label", ...args: any[]): void - connect(sigName: "notify::custom-title", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::custom-title", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::custom-title", ...args: any[]): void - connect(sigName: "notify::priority", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::priority", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::priority", ...args: any[]): void - connect(sigName: "notify::timeout", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::timeout", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::timeout", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::use-markup", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-markup", callback: (($obj: Toast, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-markup", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A helper object for [class`ToastOverlay]`. - * - * Toasts are meant to be passed into [method`ToastOverlay`.add_toast] as - * follows: - * - * ```c - * adw_toast_overlay_add_toast (overlay, adw_toast_new (_("Simple Toast"))); - * ``` - * - * - * - * toast-simple - * - * - * Toasts always have a close button. They emit the [signal`Toast:`:dismissed] - * signal when disappearing. - * - * [property`Toast:`timeout] determines how long the toast stays on screen, while - * [property`Toast:`priority] determines how it behaves if another toast is - * already being displayed. - * - * Toast titles use Pango markup by default, set [property`Toast:`use-markup] to - * `FALSE` if this is unwanted. - * - * [property`Toast:`custom-title] can be used to replace the title label with a - * custom widget. - * - * ## Actions - * - * Toasts can have one button on them, with a label and an attached - * [iface`Gio`.Action]. - * - * ```c - * AdwToast *toast = adw_toast_new (_("Toast with Action")); - * - * adw_toast_set_button_label (toast, _("_Example")); - * adw_toast_set_action_name (toast, "win.example"); - * - * adw_toast_overlay_add_toast (overlay, toast); - * ``` - * - * - * - * toast-action - * - * - * ## Modifying toasts - * - * Toasts can be modified after they have been shown. For this, an `AdwToast` - * reference must be kept around while the toast is visible. - * - * A common use case for this is using toasts as undo prompts that stack with - * each other, allowing to batch undo the last deleted items: - * - * ```c - * - * static void - * toast_undo_cb (GtkWidget *sender, - * const char *action, - * GVariant *param) - * { - * // Undo the deletion - * } - * - * static void - * dismissed_cb (MyWindow *self) - * { - * self->undo_toast = NULL; - * - * // Permanently delete the items - * } - * - * static void - * delete_item (MyWindow *self, - * MyItem *item) - * { - * g_autofree char *title = NULL; - * int n_items; - * - * // Mark the item as waiting for deletion - * n_items = ... // The number of waiting items - * - * if (!self->undo_toast) { - * self->undo_toast = adw_toast_new_format (_("‘%s’ deleted"), ...); - * - * adw_toast_set_priority (self->undo_toast, ADW_TOAST_PRIORITY_HIGH); - * adw_toast_set_button_label (self->undo_toast, _("_Undo")); - * adw_toast_set_action_name (self->undo_toast, "toast.undo"); - * - * g_signal_connect_swapped (self->undo_toast, "dismissed", - * G_CALLBACK (dismissed_cb), self); - * - * adw_toast_overlay_add_toast (self->toast_overlay, self->undo_toast); - * - * return; - * } - * - * title = - * g_strdup_printf (ngettext ("%d item deleted", - * "%d items deleted", - * n_items), n_items); - * - * adw_toast_set_title (self->undo_toast, title); - * - * // Bump the toast timeout - * adw_toast_overlay_add_toast (self->toast_overlay, g_object_ref (self->undo_toast)); - * } - * - * static void - * my_window_class_init (MyWindowClass *klass) - * { - * GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); - * - * gtk_widget_class_install_action (widget_class, "toast.undo", NULL, toast_undo_cb); - * } - * ``` - * - * - * - * toast-undo - * - * @class - */ -class Toast extends GObject.Object { - - // Own properties of Adw-1.Adw.Toast - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Toast - - constructor(config?: Toast.ConstructorProperties) - /** - * Creates a new `AdwToast`. - * - * The toast will use `title` as its title. - * - * `title` can be marked up with the Pango text markup language. - * @constructor - * @param title the title to be displayed - * @returns the new created `AdwToast` - */ - constructor(title: string | null) - /** - * Creates a new `AdwToast`. - * - * The toast will use `title` as its title. - * - * `title` can be marked up with the Pango text markup language. - * @constructor - * @param title the title to be displayed - * @returns the new created `AdwToast` - */ - static new(title: string | null): Toast - _init(config?: Toast.ConstructorProperties): void -} - -module ToastOverlay { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ToastOverlay - - /** - * The child widget. - */ - child?: Gtk.Widget | null - } - -} - -interface ToastOverlay extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ToastOverlay - - /** - * The child widget. - */ - child: Gtk.Widget - - // Owm methods of Adw-1.Adw.ToastOverlay - - /** - * Displays `toast`. - * - * Only one toast can be shown at a time; if a toast is already being displayed, - * either `toast` or the original toast will be placed in a queue, depending on - * the priority of `toast`. See [property`Toast:`priority]. - * - * If called on a toast that's already displayed, its timeout will be reset. - * - * If called on a toast currently in the queue, the toast will be bumped - * forward to be shown as soon as possible. - * @param toast a toast - */ - add_toast(toast: Toast): void - /** - * Gets the child widget of `self`. - * @returns the child widget of @self - */ - get_child(): Gtk.Widget | null - /** - * Sets the child widget of `self`. - * @param child the child widget - */ - set_child(child: Gtk.Widget | null): void - - // Class property signals of Adw-1.Adw.ToastOverlay - - connect(sigName: "notify::child", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ToastOverlay, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget showing toasts above its content. - * - * - * - * toast-overlay - * - * - * Much like [class`Gtk`.Overlay], `AdwToastOverlay` is a container with a single - * main child, on top of which it can display a [class`Toast]`, overlaid. - * Toasts can be shown with [method`ToastOverlay`.add_toast]. - * - * See [class`Toast]` for details. - * - * ## CSS nodes - * - * ``` - * toastoverlay - * ├── [child] - * ├── toast - * ┊ ├── widget - * ┊ │ ├── [label.heading] - * │ ╰── [custom title] - * ├── [button] - * ╰── button.circular.flat - * ``` - * - * `AdwToastOverlay`'s CSS node is called `toastoverlay`. It contains the child, - * as well as zero or more `toast` subnodes. - * - * Each of the `toast` nodes contains a `widget` subnode, optionally a `button` - * subnode, and another `button` subnode with `.circular` and `.flat` style - * classes. - * - * The `widget` subnode contains a `label` subnode with the `.heading` style - * class, or a custom widget provided by the application. - * - * ## Accessibility - * - * `AdwToastOverlay` uses the `GTK_ACCESSIBLE_ROLE_TAB_GROUP` role. - * @class - */ -class ToastOverlay extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ToastOverlay - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ToastOverlay - - constructor(config?: ToastOverlay.ConstructorProperties) - /** - * Creates a new `AdwToastOverlay`. - * @constructor - * @returns the new created `AdwToastOverlay` - */ - constructor() - /** - * Creates a new `AdwToastOverlay`. - * @constructor - * @returns the new created `AdwToastOverlay` - */ - static new(): ToastOverlay - _init(config?: ToastOverlay.ConstructorProperties): void -} - -module ToolbarView { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ToolbarView - - /** - * Appearance of the bottom bars. - * - * If set to `ADW_TOOLBAR_FLAT`, bottom bars are flat and scrolling content - * has a subtle undershoot shadow when touching them, same as the - * [`.undershoot-bottom`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the bottom of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a bottom bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-bottom-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, bottom bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the bottom bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [property`ToolbarView:`top-bar-style]. - */ - bottom_bar_style?: ToolbarStyle | null - /** - * The content widget. - */ - content?: Gtk.Widget | null - /** - * Whether the content widget can extend behind bottom bars. - * - * This can be used in combination with - * [property`ToolbarView:`reveal-bottom-bars] to show and hide toolbars in - * fullscreen. - * - * See [property`ToolbarView:`extend-content-to-top-edge]. - */ - extend_content_to_bottom_edge?: boolean | null - /** - * Whether the content widget can extend behind top bars. - * - * This can be used in combination with [property`ToolbarView:`reveal-top-bars] - * to show and hide toolbars in fullscreen. - * - * See [property`ToolbarView:`extend-content-to-bottom-edge]. - */ - extend_content_to_top_edge?: boolean | null - /** - * Whether bottom bars are visible. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-bottom-edge] to show and hide - * toolbars in fullscreen. - * - * See [property`ToolbarView:`reveal-top-bars]. - */ - reveal_bottom_bars?: boolean | null - /** - * Whether top bars are revealed. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-top-edge] to show and hide toolbars - * in fullscreen. - * - * See [property`ToolbarView:`reveal-bottom-bars]. - */ - reveal_top_bars?: boolean | null - /** - * Appearance of the top bars. - * - * If set to `ADW_TOOLBAR_FLAT`, top bars are flat and scrolling content has a - * subtle undershoot shadow when touching them, same as the - * [`.undershoot-top`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the top of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a top bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-top-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, top bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the top bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [property`ToolbarView:`bottom-bar-style]. - */ - top_bar_style?: ToolbarStyle | null - } - -} - -interface ToolbarView extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ToolbarView - - /** - * The current bottom bar height. - * - * Bottom bar height does change depending on - * [property`ToolbarView:`reveal-bottom-bars], including during the transition. - * - * See [property`ToolbarView:`top-bar-height]. - */ - readonly bottom_bar_height: number - /** - * Appearance of the bottom bars. - * - * If set to `ADW_TOOLBAR_FLAT`, bottom bars are flat and scrolling content - * has a subtle undershoot shadow when touching them, same as the - * [`.undershoot-bottom`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the bottom of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a bottom bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-bottom-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, bottom bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the bottom bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [property`ToolbarView:`top-bar-style]. - */ - bottom_bar_style: ToolbarStyle - /** - * The content widget. - */ - content: Gtk.Widget - /** - * Whether the content widget can extend behind bottom bars. - * - * This can be used in combination with - * [property`ToolbarView:`reveal-bottom-bars] to show and hide toolbars in - * fullscreen. - * - * See [property`ToolbarView:`extend-content-to-top-edge]. - */ - extend_content_to_bottom_edge: boolean - /** - * Whether the content widget can extend behind top bars. - * - * This can be used in combination with [property`ToolbarView:`reveal-top-bars] - * to show and hide toolbars in fullscreen. - * - * See [property`ToolbarView:`extend-content-to-bottom-edge]. - */ - extend_content_to_top_edge: boolean - /** - * Whether bottom bars are visible. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-bottom-edge] to show and hide - * toolbars in fullscreen. - * - * See [property`ToolbarView:`reveal-top-bars]. - */ - reveal_bottom_bars: boolean - /** - * Whether top bars are revealed. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-top-edge] to show and hide toolbars - * in fullscreen. - * - * See [property`ToolbarView:`reveal-bottom-bars]. - */ - reveal_top_bars: boolean - /** - * The current top bar height. - * - * Top bar height does change depending [property`ToolbarView:`reveal-top-bars], - * including during the transition. - * - * See [property`ToolbarView:`bottom-bar-height]. - */ - readonly top_bar_height: number - /** - * Appearance of the top bars. - * - * If set to `ADW_TOOLBAR_FLAT`, top bars are flat and scrolling content has a - * subtle undershoot shadow when touching them, same as the - * [`.undershoot-top`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the top of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a top bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-top-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, top bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the top bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [property`ToolbarView:`bottom-bar-style]. - */ - top_bar_style: ToolbarStyle - - // Owm methods of Adw-1.Adw.ToolbarView - - /** - * Adds a bottom bar to `self`. - * @param widget a widget - */ - add_bottom_bar(widget: Gtk.Widget): void - /** - * Adds a top bar to `self`. - * @param widget a widget - */ - add_top_bar(widget: Gtk.Widget): void - /** - * Gets the current bottom bar height for `self`. - * - * Bottom bar height does change depending on - * [property`ToolbarView:`reveal-bottom-bars], including during the transition. - * - * See [method`ToolbarView`.get_top_bar_height]. - * @returns the current bottom bar height - */ - get_bottom_bar_height(): number - /** - * Gets appearance of the botom bars for `self`. - * @returns bottom bar style - */ - get_bottom_bar_style(): ToolbarStyle - /** - * Gets the content widget for `self`. - * @returns the content widget - */ - get_content(): Gtk.Widget | null - /** - * Gets whether the content widget can extend behind bottom bars. - * @returns whether content extends behind bottom bars - */ - get_extend_content_to_bottom_edge(): boolean - /** - * Gets whether the content widget can extend behind top bars. - * @returns whether content extends behind top bars - */ - get_extend_content_to_top_edge(): boolean - /** - * Gets whether bottom bars are revealed for `self`. - * @returns whether bottom bars are revealed - */ - get_reveal_bottom_bars(): boolean - /** - * Gets whether top bars are revealed for `self`. - * @returns whether top bars are revealed - */ - get_reveal_top_bars(): boolean - /** - * Gets the current top bar height for `self`. - * - * Top bar height does change depending on - * [property`ToolbarView:`reveal-top-bars], including during the transition. - * - * See [method`ToolbarView`.get_bottom_bar_height]. - * @returns the current top bar height - */ - get_top_bar_height(): number - /** - * Gets appearance of the top bars for `self`. - * @returns top bar style - */ - get_top_bar_style(): ToolbarStyle - /** - * Removes a child from `self`. - * @param widget the child to be removed - */ - remove(widget: Gtk.Widget): void - /** - * Sets appearance of the bottom bars for `self`. - * - * If set to `ADW_TOOLBAR_FLAT`, bottom bars are flat and scrolling content has - * a subtle undershoot shadow when touching them, same as the - * [`.undershoot-bottom`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the bottom of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a bottom bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-bottom-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, bottom bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the bottom bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [method`ToolbarView`.set_top_bar_style]. - * @param style bottom bar style - */ - set_bottom_bar_style(style: ToolbarStyle): void - /** - * Sets the content widget for `self`. - * @param content the content widget - */ - set_content(content: Gtk.Widget | null): void - /** - * Sets whether the content widget can extend behind bottom bars. - * - * This can be used in combination with [property`ToolbarView:`reveal-bottom-bars] - * to show and hide toolbars in fullscreen. - * - * See [method`ToolbarView`.set_extend_content_to_top_edge]. - * @param extend whether content extends behind bottom bars - */ - set_extend_content_to_bottom_edge(extend: boolean): void - /** - * Sets whether the content widget can extend behind top bars. - * - * This can be used in combination with [property`ToolbarView:`reveal-top-bars] - * to show and hide toolbars in fullscreen. - * - * See [method`ToolbarView`.set_extend_content_to_bottom_edge]. - * @param extend whether content extends behind top bars - */ - set_extend_content_to_top_edge(extend: boolean): void - /** - * Sets whether bottom bars are revealed for `self`. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-bottom-edge] to show and hide - * toolbars in fullscreen. - * - * See [method`ToolbarView`.set_reveal_top_bars]. - * @param reveal whether to reveal bottom bars - */ - set_reveal_bottom_bars(reveal: boolean): void - /** - * Sets whether top bars are revealed for `self`. - * - * The transition will be animated. - * - * This can be used in combination with - * [property`ToolbarView:`extend-content-to-top-edge] to show and hide toolbars - * in fullscreen. - * - * See [method`ToolbarView`.set_reveal_bottom_bars]. - * @param reveal whether to reveal top bars - */ - set_reveal_top_bars(reveal: boolean): void - /** - * Sets appearance of the top bars for `self`. - * - * If set to `ADW_TOOLBAR_FLAT`, top bars are flat and scrolling content has a - * subtle undershoot shadow when touching them, same as the - * [`.undershoot-top`](style-classes.html#undershot-indicators) - * style class. This works well for simple content, e.g. [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the top of the page is - * uniform. Additionally, windows with sidebars should always use this style. - * - * Undershoot shadow is only present if a top bar is actually present and - * visible. It is also never present if - * [property`ToolbarView:`extend-content-to-top-edge] is set to `TRUE`. - * - * If set to `ADW_TOOLBAR_RAISED`, top bars have an opaque background and a - * persistent shadow, this is suitable for content such as - * [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are directly adjacent to the top bars, or - * [class`TabView]`, where each page can have a different background. - * - * `ADW_TOOLBAR_RAISED_BORDER` is similar to `ADW_TOOLBAR_RAISED`, but the - * shadow is replaced with a more subtle border. This can be useful for - * applications like image viewers. - * - * See also [method`ToolbarView`.set_bottom_bar_style]. - * @param style top bar style - */ - set_top_bar_style(style: ToolbarStyle): void - - // Class property signals of Adw-1.Adw.ToolbarView - - connect(sigName: "notify::bottom-bar-height", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::bottom-bar-height", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::bottom-bar-height", ...args: any[]): void - connect(sigName: "notify::bottom-bar-style", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::bottom-bar-style", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::bottom-bar-style", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::extend-content-to-bottom-edge", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extend-content-to-bottom-edge", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extend-content-to-bottom-edge", ...args: any[]): void - connect(sigName: "notify::extend-content-to-top-edge", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::extend-content-to-top-edge", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::extend-content-to-top-edge", ...args: any[]): void - connect(sigName: "notify::reveal-bottom-bars", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-bottom-bars", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-bottom-bars", ...args: any[]): void - connect(sigName: "notify::reveal-top-bars", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal-top-bars", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal-top-bars", ...args: any[]): void - connect(sigName: "notify::top-bar-height", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::top-bar-height", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::top-bar-height", ...args: any[]): void - connect(sigName: "notify::top-bar-style", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::top-bar-style", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::top-bar-style", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ToolbarView, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A widget containing a page, as well as top and/or bottom bars. - * - * - * - * toolbar-view - * - * - * `AdwToolbarView` has a single content widget and one or multiple top and - * bottom bars, shown at the top and bottom sides respectively. - * - * Example of an `AdwToolbarView` UI definition: - * ```xml - * - * - * - * - * - * - * - * - * - * - * ``` - * - * The following kinds of top and bottom bars are supported: - * - * - [class`HeaderBar]` - * - [class`TabBar]` - * - [class`ViewSwitcherBar]` - * - [class`Gtk`.ActionBar] - * - [class`Gtk`.HeaderBar] - * - [class`Gtk`.PopoverMenuBar] - * - [class`Gtk`.SearchBar] - * - Any [class`Gtk`.Box] or a similar widget with the - * [`.toolbar`](style-classes.html#toolbars) style class - * - * By default, top and bottom bars are flat and scrolling content has a subtle - * undershoot shadow, same as when using the - * [`.undershoot-top`](style-classes.html#undershot-indicators) and - * [`.undershoot-bottom`](style-classes.html#undershot-indicators) style - * classes. This works well in most cases, e.g. with [class`StatusPage]` or - * [class`PreferencesPage]`, where the background at the top and bottom parts of - * the page is uniform. Additionally, windows with sidebars should always use - * this style. - * - * [property`ToolbarView:`top-bar-style] and - * [property`ToolbarView:`bottom-bar-style] properties can be used add an opaque - * background and a persistent shadow to top and bottom bars, this can be useful - * for content such as [utility panes](https://developer.gnome.org/hig/patterns/containers/utility-panes.html), - * where some elements are adjacent to the top/bottom bars, or [class`TabView]`, - * where each page can have a different background. - * - * - * - * toolbar-view-flat-1 - * - * - * - * toolbar-view-flat-2 - * - * - * - * toolbar-view-raised - * - * - * `AdwToolbarView` ensures the top and bottom bars have consistent backdrop - * styles and vertical spacing. For comparison: - * - * - * - * toolbar-view-spacing - * - * - * - * toolbar-view-spacing-box - * - * - * Any top and bottom bars can also be dragged to move the window, equivalent - * to putting them into a [class`Gtk`.WindowHandle]. - * - * Content is typically place between top and bottom bars, but can also extend - * behind them. This is controlled with the - * [property`ToolbarView:`extend-content-to-top-edge] and - * [property`ToolbarView:`extend-content-to-bottom-edge] properties. - * - * Top and bottom bars can be hidden and revealed with an animation using the - * [property`ToolbarView:`reveal-top-bars] and - * [property`ToolbarView:`reveal-bottom-bars] properties. - * - * ## `AdwToolbarView` as `GtkBuildable` - * - * The `AdwToolbarView` implementation of the [iface`Gtk`.Buildable] interface - * supports adding a top bar by specifying “top” as the “type” attribute of a - * `` element, or adding a bottom bar by specifying “bottom”. - * - * ## Accessibility - * - * `AdwToolbarView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. - * @class - */ -class ToolbarView extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ToolbarView - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ToolbarView - - constructor(config?: ToolbarView.ConstructorProperties) - /** - * Creates a new `AdwToolbarView`. - * @constructor - * @returns the newly created `AdwToolbarView` - */ - constructor() - /** - * Creates a new `AdwToolbarView`. - * @constructor - * @returns the newly created `AdwToolbarView` - */ - static new(): ToolbarView - _init(config?: ToolbarView.ConstructorProperties): void -} - -module ViewStack { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewStack - - /** - * Whether the stack is horizontally homogeneous. - * - * If the stack is horizontally homogeneous, it allocates the same width for - * all children. - * - * If it's `FALSE`, the stack may change width when a different child becomes - * visible. - */ - hhomogeneous?: boolean | null - /** - * Whether the stack is vertically homogeneous. - * - * If the stack is vertically homogeneous, it allocates the same height for - * all children. - * - * If it's `FALSE`, the stack may change height when a different child becomes - * visible. - */ - vhomogeneous?: boolean | null - /** - * The widget currently visible in the stack. - */ - visible_child?: Gtk.Widget | null - /** - * The name of the widget currently visible in the stack. - * - * See [property`ViewStack:`visible-child]. - */ - visible_child_name?: string | null - } - -} - -interface ViewStack extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ViewStack - - /** - * Whether the stack is horizontally homogeneous. - * - * If the stack is horizontally homogeneous, it allocates the same width for - * all children. - * - * If it's `FALSE`, the stack may change width when a different child becomes - * visible. - */ - hhomogeneous: boolean - /** - * A selection model with the stack's pages. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the visible - * page. - */ - readonly pages: Gtk.SelectionModel - /** - * Whether the stack is vertically homogeneous. - * - * If the stack is vertically homogeneous, it allocates the same height for - * all children. - * - * If it's `FALSE`, the stack may change height when a different child becomes - * visible. - */ - vhomogeneous: boolean - /** - * The widget currently visible in the stack. - */ - visible_child: Gtk.Widget - /** - * The name of the widget currently visible in the stack. - * - * See [property`ViewStack:`visible-child]. - */ - visible_child_name: string | null - - // Owm methods of Adw-1.Adw.ViewStack - - /** - * Adds a child to `self`. - * @param child the widget to add - * @returns the [class@ViewStackPage] for @child - */ - add(child: Gtk.Widget): ViewStackPage - /** - * Adds a child to `self`. - * - * The child is identified by the `name`. - * @param child the widget to add - * @param name the name for `child` - * @returns the `AdwViewStackPage` for @child - */ - add_named(child: Gtk.Widget, name: string | null): ViewStackPage - /** - * Adds a child to `self`. - * - * The child is identified by the `name`. The `title` will be used by - * [class`ViewSwitcher]` to represent `child,` so it should be short. - * @param child the widget to add - * @param name the name for `child` - * @param title a human-readable title for `child` - * @returns the `AdwViewStackPage` for @child - */ - add_titled(child: Gtk.Widget, name: string | null, title: string | null): ViewStackPage - /** - * Adds a child to `self`. - * - * The child is identified by the `name`. The `title` and `icon_name` will be used - * by [class`ViewSwitcher]` to represent `child`. - * @param child the widget to add - * @param name the name for `child` - * @param title a human-readable title for `child` - * @param icon_name an icon name for `child` - * @returns the `AdwViewStackPage` for @child - */ - add_titled_with_icon(child: Gtk.Widget, name: string | null, title: string | null, icon_name: string | null): ViewStackPage - /** - * Finds the child with `name` in `self`. - * @param name the name of the child to find - * @returns the requested child - */ - get_child_by_name(name: string | null): Gtk.Widget | null - /** - * Gets whether `self` is horizontally homogeneous. - * @returns whether @self is horizontally homogeneous - */ - get_hhomogeneous(): boolean - /** - * Gets the [class`ViewStackPage]` object for `child`. - * @param child a child of `self` - * @returns the page object for @child - */ - get_page(child: Gtk.Widget): ViewStackPage - /** - * Returns a [iface`Gio`.ListModel] that contains the pages of the stack. - * - * This can be used to keep an up-to-date view. The model also implements - * [iface`Gtk`.SelectionModel] and can be used to track and change the visible - * page. - * @returns a `GtkSelectionModel` for the stack's children - */ - get_pages(): Gtk.SelectionModel - /** - * Gets whether `self` is vertically homogeneous. - * @returns whether @self is vertically homogeneous - */ - get_vhomogeneous(): boolean - /** - * Gets the currently visible child of `self,` . - * @returns the visible child - */ - get_visible_child(): Gtk.Widget | null - /** - * Returns the name of the currently visible child of `self`. - * @returns the name of the visible child - */ - get_visible_child_name(): string | null - /** - * Removes a child widget from `self`. - * @param child the child to remove - */ - remove(child: Gtk.Widget): void - /** - * Sets `self` to be horizontally homogeneous or not. - * - * If the stack is horizontally homogeneous, it allocates the same width for - * all children. - * - * If it's `FALSE`, the stack may change width when a different child becomes - * visible. - * @param hhomogeneous whether to make `self` horizontally homogeneous - */ - set_hhomogeneous(hhomogeneous: boolean): void - /** - * Sets `self` to be vertically homogeneous or not. - * - * If the stack is vertically homogeneous, it allocates the same height for - * all children. - * - * If it's `FALSE`, the stack may change height when a different child becomes - * visible. - * @param vhomogeneous whether to make `self` vertically homogeneous - */ - set_vhomogeneous(vhomogeneous: boolean): void - /** - * Makes `child` the visible child of `self`. - * @param child a child of `self` - */ - set_visible_child(child: Gtk.Widget): void - /** - * Makes the child with `name` visible. - * - * See [property`ViewStack:`visible-child]. - * @param name the name of the child - */ - set_visible_child_name(name: string | null): void - - // Class property signals of Adw-1.Adw.ViewStack - - connect(sigName: "notify::hhomogeneous", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hhomogeneous", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hhomogeneous", ...args: any[]): void - connect(sigName: "notify::pages", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pages", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pages", ...args: any[]): void - connect(sigName: "notify::vhomogeneous", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vhomogeneous", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vhomogeneous", ...args: any[]): void - connect(sigName: "notify::visible-child", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-child", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-child", ...args: any[]): void - connect(sigName: "notify::visible-child-name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible-child-name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible-child-name", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ViewStack, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A view container for [class`ViewSwitcher]`. - * - * `AdwViewStack` is a container which only shows one page at a time. - * It is typically used to hold an application's main views. - * - * It doesn't provide a way to transition between pages. - * Instead, a separate widget such as [class`ViewSwitcher]` can be used with - * `AdwViewStack` to provide this functionality. - * - * `AdwViewStack` pages can have a title, an icon, an attention request, and a - * numbered badge that [class`ViewSwitcher]` will use to let users identify which - * page is which. Set them using the [property`ViewStackPage:`title], - * [property`ViewStackPage:`icon-name], - * [property`ViewStackPage:`needs-attention], and - * [property`ViewStackPage:`badge-number] properties. - * - * Unlike [class`Gtk`.Stack], transitions between views are not animated. - * - * `AdwViewStack` maintains a [class`ViewStackPage]` object for each added child, - * which holds additional per-child properties. You obtain the - * [class`ViewStackPage]` for a child with [method`ViewStack`.get_page] and you - * can obtain a [iface`Gtk`.SelectionModel] containing all the pages with - * [method`ViewStack`.get_pages]. - * - * ## AdwViewStack as GtkBuildable - * - * To set child-specific properties in a .ui file, create - * [class`ViewStackPage]` objects explicitly, and set the child widget as a - * property on it: - * - * ```xml - * - * - * - * overview - * Overview - * - * - * Welcome! - * - * - * - * - * - * ``` - * - * ## CSS nodes - * - * `AdwViewStack` has a single CSS node named `stack`. - * - * ## Accessibility - * - * `AdwViewStack` uses the `GTK_ACCESSIBLE_ROLE_TAB_PANEL` for the stack pages - * which are the accessible parent objects of the child widgets. - * @class - */ -class ViewStack extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ViewStack - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewStack - - constructor(config?: ViewStack.ConstructorProperties) - /** - * Creates a new `AdwViewStack`. - * @constructor - * @returns the newly created `AdwViewStack` - */ - constructor() - /** - * Creates a new `AdwViewStack`. - * @constructor - * @returns the newly created `AdwViewStack` - */ - static new(): ViewStack - _init(config?: ViewStack.ConstructorProperties): void -} - -module ViewStackPage { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewStackPage - - /** - * The badge number for this page. - * - * [class`ViewSwitcher]` can display it as a badge next to the page icon. It is - * commonly used to display a number of unread items within the page. - * - * It can be used together with [property`ViewStack{`age}:needs-attention]. - */ - badge_number?: number | null - /** - * The stack child to which the page belongs. - */ - child?: Gtk.Widget | null - /** - * The icon name of the child page. - */ - icon_name?: string | null - /** - * The name of the child page. - */ - name?: string | null - /** - * Whether the page requires the user attention. - * - * [class`ViewSwitcher]` will display it as a dot next to the page icon. - */ - needs_attention?: boolean | null - /** - * The title of the child page. - */ - title?: string | null - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline?: boolean | null - /** - * Whether this page is visible. - * - * This is independent from the [property`Gtk`.Widget:visible] property of - * [property`ViewStackPage:`child]. - */ - visible?: boolean | null - } - -} - -interface ViewStackPage extends Gtk.Accessible { - - // Own properties of Adw-1.Adw.ViewStackPage - - /** - * The badge number for this page. - * - * [class`ViewSwitcher]` can display it as a badge next to the page icon. It is - * commonly used to display a number of unread items within the page. - * - * It can be used together with [property`ViewStack{`age}:needs-attention]. - */ - badge_number: number - /** - * The stack child to which the page belongs. - */ - readonly child: Gtk.Widget - /** - * The icon name of the child page. - */ - icon_name: string | null - /** - * The name of the child page. - */ - name: string | null - /** - * Whether the page requires the user attention. - * - * [class`ViewSwitcher]` will display it as a dot next to the page icon. - */ - needs_attention: boolean - /** - * The title of the child page. - */ - title: string | null - /** - * Whether an embedded underline in the title indicates a mnemonic. - */ - use_underline: boolean - /** - * Whether this page is visible. - * - * This is independent from the [property`Gtk`.Widget:visible] property of - * [property`ViewStackPage:`child]. - */ - visible: boolean - - // Owm methods of Adw-1.Adw.ViewStackPage - - /** - * Gets the badge number for this page. - * @returns the badge number for this page - */ - get_badge_number(): number - /** - * Gets the stack child to which `self` belongs. - * @returns the child to which @self belongs - */ - get_child(): Gtk.Widget - /** - * Gets the icon name of the page. - * @returns the icon name of the page - */ - get_icon_name(): string | null - /** - * Gets the name of the page. - * @returns the name of the page - */ - get_name(): string | null - /** - * Gets whether the page requires the user attention. - * @returns whether the page needs attention - */ - get_needs_attention(): boolean - /** - * Gets the page title. - * @returns the page title - */ - get_title(): string | null - /** - * Gets whether underlines in the page title indicate mnemonics. - * @returns whether underlines in the page title indicate mnemonics - */ - get_use_underline(): boolean - /** - * Gets whether `self` is visible in its `AdwViewStack`. - * - * This is independent from the [property`Gtk`.Widget:visible] - * property of its widget. - * @returns whether @self is visible - */ - get_visible(): boolean - /** - * Sets the badge number for this page. - * - * [class`ViewSwitcher]` can display it as a badge next to the page icon. It is - * commonly used to display a number of unread items within the page. - * - * It can be used together with [property`ViewStack{`age}:needs-attention]. - * @param badge_number the new value to set - */ - set_badge_number(badge_number: number): void - /** - * Sets the icon name of the page. - * @param icon_name the icon name - */ - set_icon_name(icon_name: string | null): void - /** - * Sets the name of the page. - * @param name the page name - */ - set_name(name: string | null): void - /** - * Sets whether the page requires the user attention. - * - * [class`ViewSwitcher]` will display it as a dot next to the page icon. - * @param needs_attention the new value to set - */ - set_needs_attention(needs_attention: boolean): void - /** - * Sets the page title. - * @param title the page title - */ - set_title(title: string | null): void - /** - * Sets whether underlines in the page title indicate mnemonics. - * @param use_underline the new value to set - */ - set_use_underline(use_underline: boolean): void - /** - * Sets whether `page` is visible in its `AdwViewStack`. - * - * This is independent from the [property`Gtk`.Widget:visible] property of - * [property`ViewStackPage:`child]. - * @param visible whether `self` is visible - */ - set_visible(visible: boolean): void - - // Class property signals of Adw-1.Adw.ViewStackPage - - connect(sigName: "notify::badge-number", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::badge-number", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::badge-number", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::needs-attention", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::needs-attention", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::needs-attention", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::use-underline", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::use-underline", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::use-underline", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ViewStackPage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An auxiliary class used by [class`ViewStack]`. - * @class - */ -class ViewStackPage extends GObject.Object { - - // Own properties of Adw-1.Adw.ViewStackPage - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewStackPage - - constructor(config?: ViewStackPage.ConstructorProperties) - _init(config?: ViewStackPage.ConstructorProperties): void -} - -module ViewStackPages { - - // Constructor properties interface - - interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, Gtk.SelectionModel.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewStackPages - - /** - * The selected [class`ViewStackPage]` within the [class`ViewStackPages]`. - * - * This can be used to keep an up-to-date view of the [class`ViewStackPage]` for - * The visible [class`ViewStackPage]` within the associated [class`ViewStackPages]`. - * - * This can be used to keep an up-to-date view of the visible child. - */ - selected_page?: ViewStackPage | null - } - -} - -interface ViewStackPages extends Gio.ListModel, Gtk.SelectionModel { - - // Own properties of Adw-1.Adw.ViewStackPages - - /** - * The selected [class`ViewStackPage]` within the [class`ViewStackPages]`. - * - * This can be used to keep an up-to-date view of the [class`ViewStackPage]` for - * The visible [class`ViewStackPage]` within the associated [class`ViewStackPages]`. - * - * This can be used to keep an up-to-date view of the visible child. - */ - selected_page: ViewStackPage - - // Owm methods of Adw-1.Adw.ViewStackPages - - /** - * Gets the [class`ViewStackPage]` for the visible child of a view stack - * - * Gets the [class`ViewStackPage]` for the visible child of the associated stack. - * - * Returns `NULL` if there's no selected page. - * @returns the stack page - */ - get_selected_page(): ViewStackPage | null - /** - * Sets the visible child in the associated [class`ViewStack]`. - * - * See [property`ViewStack:`visible-child]. - * @param page a stack page within the associated stack - */ - set_selected_page(page: ViewStackPage): void - - // Class property signals of Adw-1.Adw.ViewStackPages - - connect(sigName: "notify::selected-page", callback: (($obj: ViewStackPages, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected-page", callback: (($obj: ViewStackPages, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected-page", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An auxiliary class used by [class`ViewStack]`. - * - * See [property`ViewStack:`pages]. - * @class - */ -class ViewStackPages extends GObject.Object { - - // Own properties of Adw-1.Adw.ViewStackPages - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewStackPages - - constructor(config?: ViewStackPages.ConstructorProperties) - _init(config?: ViewStackPages.ConstructorProperties): void -} - -module ViewSwitcher { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewSwitcher - - /** - * The policy to determine which mode to use. - */ - policy?: ViewSwitcherPolicy | null - /** - * The stack the view switcher controls. - */ - stack?: ViewStack | null - } - -} - -interface ViewSwitcher extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ViewSwitcher - - /** - * The policy to determine which mode to use. - */ - policy: ViewSwitcherPolicy - /** - * The stack the view switcher controls. - */ - stack: ViewStack - - // Owm methods of Adw-1.Adw.ViewSwitcher - - /** - * Gets the policy of `self`. - * @returns the policy of @self - */ - get_policy(): ViewSwitcherPolicy - /** - * Gets the stack controlled by `self`. - * @returns the stack - */ - get_stack(): ViewStack | null - /** - * Sets the policy of `self`. - * @param policy the new policy - */ - set_policy(policy: ViewSwitcherPolicy): void - /** - * Sets the stack controlled by `self`. - * @param stack a stack - */ - set_stack(stack: ViewStack | null): void - - // Class property signals of Adw-1.Adw.ViewSwitcher - - connect(sigName: "notify::policy", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::policy", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::policy", ...args: any[]): void - connect(sigName: "notify::stack", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::stack", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::stack", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcher, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An adaptive view switcher. - * - * - * - * view-switcher - * - * - * An adaptive view switcher designed to switch between multiple views - * contained in a [class`ViewStack]` in a similar fashion to - * [class`Gtk`.StackSwitcher]. - * - * `AdwViewSwitcher` buttons always have an icon and a label. They can be - * displayed side by side, or icon on top of the label. This can be controlled - * via the [property`ViewSwitcher:`policy] property. - * - * `AdwViewSwitcher` is intended to be used in a header bar together with - * [class`ViewSwitcherBar]` at the bottom of the window, and a [class`Breakpoint]` - * showing the view switcher bar on narrow sizes, while removing the view - * switcher from the header bar, as follows: - * - * ```xml - * - * 360 - * 200 - * - * - * max-width: 550sp - * True - * - * - * - * - * - * - * - * - * - * stack - * wide - * - * - * - * - * - * - * - * - * - * stack - * - * - * - * - * - * ``` - * - * It's recommended to set [property`ViewSwitcher:`policy] to - * `ADW_VIEW_SWITCHER_POLICY_WIDE` in this case. - * - * You may have to adjust the breakpoint condition for your specific pages. - * - * ## CSS nodes - * - * `AdwViewSwitcher` has a single CSS node with name `viewswitcher`. It can have - * the style classes `.wide` and `.narrow`, matching its policy. - * - * ## Accessibility - * - * `AdwViewSwitcher` uses the `GTK_ACCESSIBLE_ROLE_TAB_LIST` role and uses the - * `GTK_ACCESSIBLE_ROLE_TAB` for its buttons. - * @class - */ -class ViewSwitcher extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ViewSwitcher - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewSwitcher - - constructor(config?: ViewSwitcher.ConstructorProperties) - /** - * Creates a new `AdwViewSwitcher`. - * @constructor - * @returns the newly created `AdwViewSwitcher` - */ - constructor() - /** - * Creates a new `AdwViewSwitcher`. - * @constructor - * @returns the newly created `AdwViewSwitcher` - */ - static new(): ViewSwitcher - _init(config?: ViewSwitcher.ConstructorProperties): void -} - -module ViewSwitcherBar { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewSwitcherBar - - /** - * Whether the bar should be revealed or hidden. - */ - reveal?: boolean | null - /** - * The stack the view switcher controls. - */ - stack?: ViewStack | null - } - -} - -interface ViewSwitcherBar extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ViewSwitcherBar - - /** - * Whether the bar should be revealed or hidden. - */ - reveal: boolean - /** - * The stack the view switcher controls. - */ - stack: ViewStack - - // Owm methods of Adw-1.Adw.ViewSwitcherBar - - /** - * Gets whether `self` should be revealed or hidden. - * @returns whether @self is revealed - */ - get_reveal(): boolean - /** - * Gets the stack controlled by `self`. - * @returns the stack - */ - get_stack(): ViewStack | null - /** - * Sets whether `self` should be revealed or hidden. - * @param reveal whether to reveal `self` - */ - set_reveal(reveal: boolean): void - /** - * Sets the stack controlled by `self`. - * @param stack a stack - */ - set_stack(stack: ViewStack | null): void - - // Class property signals of Adw-1.Adw.ViewSwitcherBar - - connect(sigName: "notify::reveal", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reveal", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reveal", ...args: any[]): void - connect(sigName: "notify::stack", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::stack", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::stack", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcherBar, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A view switcher action bar. - * - * - * - * view-switcher-bar - * - * - * An action bar letting you switch between multiple views contained in a - * [class`ViewStack]`, via an [class`ViewSwitcher]`. It is designed to be put at - * the bottom of a window and to be revealed only on really narrow windows, e.g. - * on mobile phones. It can't be revealed if there are less than two pages. - * - * `AdwViewSwitcherBar` is intended to be used together with - * `AdwViewSwitcher` in a header bar, and a [class`Breakpoint]` showing the view - * switcher bar on narrow sizes, while removing the view switcher from the - * header bar, as follows: - * - * ```xml - * - * 360 - * 200 - * - * - * max-width: 550sp - * True - * - * - * - * - * - * - * - * - * - * stack - * wide - * - * - * - * - * - * - * - * - * - * stack - * - * - * - * - * - * ``` - * - * It's recommended to set [property`ViewSwitcher:`policy] to - * `ADW_VIEW_SWITCHER_POLICY_WIDE` in this case. - * - * You may have to adjust the breakpoint condition for your specific pages. - * - * ## CSS nodes - * - * `AdwViewSwitcherBar` has a single CSS node with name` viewswitcherbar`. - * @class - */ -class ViewSwitcherBar extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ViewSwitcherBar - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewSwitcherBar - - constructor(config?: ViewSwitcherBar.ConstructorProperties) - /** - * Creates a new `AdwViewSwitcherBar`. - * @constructor - * @returns the newly created `AdwViewSwitcherBar` - */ - constructor() - /** - * Creates a new `AdwViewSwitcherBar`. - * @constructor - * @returns the newly created `AdwViewSwitcherBar` - */ - static new(): ViewSwitcherBar - _init(config?: ViewSwitcherBar.ConstructorProperties): void -} - -module ViewSwitcherTitle { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.ViewSwitcherTitle - - /** - * The stack the view switcher controls. - */ - stack?: ViewStack | null - /** - * The subtitle to display. - * - * The subtitle should give the user additional details. - */ - subtitle?: string | null - /** - * The title to display. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - */ - title?: string | null - /** - * Whether the view switcher is enabled. - * - * If it is disabled, the title will be displayed instead. This allows to - * programmatically hide the view switcher even if it fits in the available - * space. - * - * This can be used e.g. to ensure the view switcher is hidden below a certain - * window width, or any other constraint you find suitable. - */ - view_switcher_enabled?: boolean | null - } - -} - -interface ViewSwitcherTitle extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.ViewSwitcherTitle - - /** - * The stack the view switcher controls. - */ - stack: ViewStack - /** - * The subtitle to display. - * - * The subtitle should give the user additional details. - */ - subtitle: string | null - /** - * The title to display. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - */ - title: string | null - /** - * Whether the title is currently visible. - * - * If the title is visible, it means the view switcher is hidden an it may be - * wanted to show an alternative switcher, e.g. a [class`ViewSwitcherBar]`. - */ - readonly title_visible: boolean - /** - * Whether the view switcher is enabled. - * - * If it is disabled, the title will be displayed instead. This allows to - * programmatically hide the view switcher even if it fits in the available - * space. - * - * This can be used e.g. to ensure the view switcher is hidden below a certain - * window width, or any other constraint you find suitable. - */ - view_switcher_enabled: boolean - - // Owm methods of Adw-1.Adw.ViewSwitcherTitle - - /** - * Gets the stack controlled by `self`. - * @returns the stack - */ - get_stack(): ViewStack | null - /** - * Gets the subtitle of `self`. - * @returns the subtitle - */ - get_subtitle(): string | null - /** - * Gets the title of `self`. - * @returns the title - */ - get_title(): string | null - /** - * Gets whether the title of `self` is currently visible. - * - * If the title is visible, it means the view switcher is hidden an it may be - * wanted to show an alternative switcher, e.g. a [class`ViewSwitcherBar]`. - * @returns whether the title of @self is currently visible - */ - get_title_visible(): boolean - /** - * Gets whether `self'`s view switcher is enabled. - * @returns whether the view switcher is enabled - */ - get_view_switcher_enabled(): boolean - /** - * Sets the stack controlled by `self`. - * @param stack a stack - */ - set_stack(stack: ViewStack | null): void - /** - * Sets the subtitle of `self`. - * - * The subtitle should give the user additional details. - * @param subtitle a subtitle - */ - set_subtitle(subtitle: string | null): void - /** - * Sets the title of `self`. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - * @param title a title - */ - set_title(title: string | null): void - /** - * Sets whether `self'`s view switcher is enabled. - * - * If it is disabled, the title will be displayed instead. This allows to - * programmatically hide the view switcher even if it fits in the available - * space. - * - * This can be used e.g. to ensure the view switcher is hidden below a certain - * window width, or any other constraint you find suitable. - * @param enabled whether the view switcher is enabled - */ - set_view_switcher_enabled(enabled: boolean): void - - // Class property signals of Adw-1.Adw.ViewSwitcherTitle - - connect(sigName: "notify::stack", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::stack", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::stack", ...args: any[]): void - connect(sigName: "notify::subtitle", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::title-visible", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title-visible", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title-visible", ...args: any[]): void - connect(sigName: "notify::view-switcher-enabled", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::view-switcher-enabled", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::view-switcher-enabled", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: ViewSwitcherTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A view switcher title. - * - * - * - * view-switcher-title - * - * - * A widget letting you switch between multiple views contained by a - * [class`ViewStack]` via an [class`ViewSwitcher]`. - * - * It is designed to be used as the title widget of a [class`HeaderBar]`, and - * will display the window's title when the window is too narrow to fit the view - * switcher e.g. on mobile phones, or if there are less than two views. - * - * In order to center the title in narrow windows, the header bar should have - * [property`HeaderBar:`centering-policy] set to - * `ADW_CENTERING_POLICY_STRICT`. - * - * `AdwViewSwitcherTitle` is intended to be used together with - * [class`ViewSwitcherBar]`. - * - * A common use case is to bind the [property`ViewSwitcherBar:`reveal] property - * to [property`ViewSwitcherTitle:`title-visible] to automatically reveal the - * view switcher bar when the title label is displayed in place of the view - * switcher, as follows: - * - * ```xml - * - * - * - * - * - * strict - * - * - * stack - * - * - * - * - * - * - * - * - * - * stack - * - * title - * - * - * - * - * - * - * ``` - * - * ## CSS nodes - * - * `AdwViewSwitcherTitle` has a single CSS node with name `viewswitchertitle`. - * @class - */ -class ViewSwitcherTitle extends Gtk.Widget { - - // Own properties of Adw-1.Adw.ViewSwitcherTitle - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.ViewSwitcherTitle - - constructor(config?: ViewSwitcherTitle.ConstructorProperties) - /** - * Creates a new `AdwViewSwitcherTitle`. - * @constructor - * @returns the newly created `AdwViewSwitcherTitle` - */ - constructor() - /** - * Creates a new `AdwViewSwitcherTitle`. - * @constructor - * @returns the newly created `AdwViewSwitcherTitle` - */ - static new(): ViewSwitcherTitle - _init(config?: ViewSwitcherTitle.ConstructorProperties): void -} - -module Window { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Native.ConstructorProperties, Gtk.Root.ConstructorProperties, Gtk.ShortcutManager.ConstructorProperties, Gtk.Window.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.Window - - /** - * The content widget. - * - * This property should always be used instead of [property`Gtk`.Window:child]. - */ - content?: Gtk.Widget | null - } - -} - -interface Window extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager { - - // Own properties of Adw-1.Adw.Window - - /** - * The content widget. - * - * This property should always be used instead of [property`Gtk`.Window:child]. - */ - content: Gtk.Widget - /** - * The current breakpoint. - */ - readonly current_breakpoint: Breakpoint - - // Own fields of Adw-1.Adw.Window - - parent_instance: Gtk.Window & Gtk.Widget & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Adw-1.Adw.Window - - /** - * Adds `breakpoint` to `self`. - * @param breakpoint the breakpoint to add - */ - add_breakpoint(breakpoint: Breakpoint): void - /** - * Gets the content widget of `self`. - * - * This method should always be used instead of [method`Gtk`.Window.get_child]. - * @returns the content widget of @self - */ - get_content(): Gtk.Widget | null - /** - * Gets the current breakpoint. - * @returns the current breakpoint - */ - get_current_breakpoint(): Breakpoint | null - /** - * Sets the content widget of `self`. - * - * This method should always be used instead of [method`Gtk`.Window.set_child]. - * @param content the content widget - */ - set_content(content: Gtk.Widget | null): void - - // Class property signals of Adw-1.Adw.Window - - connect(sigName: "notify::content", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::current-breakpoint", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::current-breakpoint", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::current-breakpoint", ...args: any[]): void - connect(sigName: "notify::application", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::application", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::application", ...args: any[]): void - connect(sigName: "notify::child", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child", ...args: any[]): void - connect(sigName: "notify::decorated", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::decorated", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::decorated", ...args: any[]): void - connect(sigName: "notify::default-height", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-height", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-height", ...args: any[]): void - connect(sigName: "notify::default-widget", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-widget", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-widget", ...args: any[]): void - connect(sigName: "notify::default-width", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::default-width", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::default-width", ...args: any[]): void - connect(sigName: "notify::deletable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deletable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deletable", ...args: any[]): void - connect(sigName: "notify::destroy-with-parent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::destroy-with-parent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::destroy-with-parent", ...args: any[]): void - connect(sigName: "notify::display", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::display", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::display", ...args: any[]): void - connect(sigName: "notify::focus-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-visible", ...args: any[]): void - connect(sigName: "notify::focus-widget", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-widget", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-widget", ...args: any[]): void - connect(sigName: "notify::fullscreened", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fullscreened", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fullscreened", ...args: any[]): void - connect(sigName: "notify::handle-menubar-accel", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::handle-menubar-accel", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::handle-menubar-accel", ...args: any[]): void - connect(sigName: "notify::hide-on-close", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hide-on-close", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hide-on-close", ...args: any[]): void - connect(sigName: "notify::icon-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::icon-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::icon-name", ...args: any[]): void - connect(sigName: "notify::is-active", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::is-active", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::is-active", ...args: any[]): void - connect(sigName: "notify::maximized", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::maximized", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::maximized", ...args: any[]): void - connect(sigName: "notify::mnemonics-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mnemonics-visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mnemonics-visible", ...args: any[]): void - connect(sigName: "notify::modal", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::modal", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::modal", ...args: any[]): void - connect(sigName: "notify::resizable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::resizable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::resizable", ...args: any[]): void - connect(sigName: "notify::startup-id", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::startup-id", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::startup-id", ...args: any[]): void - connect(sigName: "notify::suspended", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::suspended", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::suspended", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::titlebar", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::titlebar", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::titlebar", ...args: any[]): void - connect(sigName: "notify::transient-for", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transient-for", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transient-for", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A freeform window. - * - * - * - * window - * - * - * The `AdwWindow` widget is a subclass of [class`Gtk`.Window] which has no - * titlebar area. Instead, [class`ToolbarView]` can be used together with - * [class`HeaderBar]` or [class`Gtk`.HeaderBar] as follows: - * - * ```xml - * - * - * - * - * - * - * - * - * - * - * - * - * ``` - * - * Using [property`Gtk`.Window:titlebar] or [property`Gtk`.Window:child] - * is not supported and will result in a crash. Use [property`Window:`content] - * instead. - * - * ## Breakpoints - * - * `AdwWindow` can be used with [class`Breakpoint]` the same way as - * [class`BreakpointBin]`. Refer to that widget's documentation for details. - * - * Example: - * - * ```xml - * - * 360 - * 200 - * - * - * - * - * - * - * - * - * - * - * True - * False - * - * - * - * - * - * - * max-width: 500px - * True - * - * - * - * ``` - * - * Like `AdwBreakpointBin`, if breakpoints are used, `AdwWindow` doesn't have a - * minimum size, and [property`Gtk`.Widget:width-request] and - * [property`Gtk`.Widget:height-request] properties must be set manually. - * @class - */ -class Window extends Gtk.Window { - - // Own properties of Adw-1.Adw.Window - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.Window - - constructor(config?: Window.ConstructorProperties) - /** - * Creates a new `AdwWindow`. - * @constructor - * @returns the newly created `AdwWindow` - */ - constructor() - /** - * Creates a new `AdwWindow`. - * @constructor - * @returns the newly created `AdwWindow` - */ - static new(): Window - _init(config?: Window.ConstructorProperties): void -} - -module WindowTitle { - - // Constructor properties interface - - interface ConstructorProperties extends Gtk.Accessible.ConstructorProperties, Gtk.Buildable.ConstructorProperties, Gtk.ConstraintTarget.ConstructorProperties, Gtk.Widget.ConstructorProperties { - - // Own constructor properties of Adw-1.Adw.WindowTitle - - /** - * The subtitle to display. - * - * The subtitle should give the user additional details. - */ - subtitle?: string | null - /** - * The title to display. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - */ - title?: string | null - } - -} - -interface WindowTitle extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget { - - // Own properties of Adw-1.Adw.WindowTitle - - /** - * The subtitle to display. - * - * The subtitle should give the user additional details. - */ - subtitle: string | null - /** - * The title to display. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - */ - title: string | null - - // Owm methods of Adw-1.Adw.WindowTitle - - /** - * Gets the subtitle of `self`. - * @returns the subtitle - */ - get_subtitle(): string | null - /** - * Gets the title of `self`. - * @returns the title - */ - get_title(): string | null - /** - * Sets the subtitle of `self`. - * - * The subtitle should give the user additional details. - * @param subtitle a subtitle - */ - set_subtitle(subtitle: string | null): void - /** - * Sets the title of `self`. - * - * The title typically identifies the current view or content item, and - * generally does not use the application name. - * @param title a title - */ - set_title(title: string | null): void - - // Class property signals of Adw-1.Adw.WindowTitle - - connect(sigName: "notify::subtitle", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::subtitle", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::subtitle", ...args: any[]): void - connect(sigName: "notify::title", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::title", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::title", ...args: any[]): void - connect(sigName: "notify::can-focus", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-focus", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-focus", ...args: any[]): void - connect(sigName: "notify::can-target", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-target", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-target", ...args: any[]): void - connect(sigName: "notify::css-classes", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-classes", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-classes", ...args: any[]): void - connect(sigName: "notify::css-name", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::css-name", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::css-name", ...args: any[]): void - connect(sigName: "notify::cursor", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::cursor", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::cursor", ...args: any[]): void - connect(sigName: "notify::focus-on-click", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focus-on-click", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focus-on-click", ...args: any[]): void - connect(sigName: "notify::focusable", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::focusable", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::focusable", ...args: any[]): void - connect(sigName: "notify::halign", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::halign", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::halign", ...args: any[]): void - connect(sigName: "notify::has-default", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-default", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-default", ...args: any[]): void - connect(sigName: "notify::has-focus", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-focus", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-focus", ...args: any[]): void - connect(sigName: "notify::has-tooltip", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-tooltip", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-tooltip", ...args: any[]): void - connect(sigName: "notify::height-request", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height-request", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height-request", ...args: any[]): void - connect(sigName: "notify::hexpand", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand", ...args: any[]): void - connect(sigName: "notify::hexpand-set", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::hexpand-set", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::hexpand-set", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-end", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-end", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-end", ...args: any[]): void - connect(sigName: "notify::margin-start", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-start", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-start", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::overflow", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::overflow", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::overflow", ...args: any[]): void - connect(sigName: "notify::parent", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::parent", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::parent", ...args: any[]): void - connect(sigName: "notify::receives-default", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::receives-default", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::receives-default", ...args: any[]): void - connect(sigName: "notify::root", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::root", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::root", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::sensitive", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::sensitive", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::sensitive", ...args: any[]): void - connect(sigName: "notify::tooltip-markup", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-markup", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-markup", ...args: any[]): void - connect(sigName: "notify::tooltip-text", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tooltip-text", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tooltip-text", ...args: any[]): void - connect(sigName: "notify::valign", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::valign", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::valign", ...args: any[]): void - connect(sigName: "notify::vexpand", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand", ...args: any[]): void - connect(sigName: "notify::vexpand-set", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vexpand-set", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vexpand-set", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width-request", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width-request", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width-request", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: WindowTitle, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A helper widget for setting a window's title and subtitle. - * - * - * - * window-title - * - * - * `AdwWindowTitle` shows a title and subtitle. It's intended to be used as the - * title child of [class`Gtk`.HeaderBar] or [class`HeaderBar]`. - * - * ## CSS nodes - * - * `AdwWindowTitle` has a single CSS node with name `windowtitle`. - * @class - */ -class WindowTitle extends Gtk.Widget { - - // Own properties of Adw-1.Adw.WindowTitle - - static name: string - static $gtype: GObject.GType - - // Constructors of Adw-1.Adw.WindowTitle - - constructor(config?: WindowTitle.ConstructorProperties) - /** - * Creates a new `AdwWindowTitle`. - * @constructor - * @param title a title - * @param subtitle a subtitle - * @returns the newly created `AdwWindowTitle` - */ - constructor(title: string | null, subtitle: string | null) - /** - * Creates a new `AdwWindowTitle`. - * @constructor - * @param title a title - * @param subtitle a subtitle - * @returns the newly created `AdwWindowTitle` - */ - static new(title: string | null, subtitle: string | null): WindowTitle - _init(config?: WindowTitle.ConstructorProperties): void -} - -interface AboutWindowClass { - - // Own fields of Adw-1.Adw.AboutWindowClass - - parent_class: WindowClass -} - -abstract class AboutWindowClass { - - // Own properties of Adw-1.Adw.AboutWindowClass - - static name: string -} - -interface ActionRowClass { - - // Own fields of Adw-1.Adw.ActionRowClass - - /** - * The parent class - * @field - */ - parent_class: PreferencesRowClass - activate: (self: ActionRow) => void -} - -abstract class ActionRowClass { - - // Own properties of Adw-1.Adw.ActionRowClass - - static name: string -} - -interface AnimationClass { -} - -abstract class AnimationClass { - - // Own properties of Adw-1.Adw.AnimationClass - - static name: string -} - -interface AnimationTargetClass { -} - -abstract class AnimationTargetClass { - - // Own properties of Adw-1.Adw.AnimationTargetClass - - static name: string -} - -interface ApplicationClass { - - // Own fields of Adw-1.Adw.ApplicationClass - - /** - * The parent class - * @field - */ - parent_class: Gtk.ApplicationClass -} - -abstract class ApplicationClass { - - // Own properties of Adw-1.Adw.ApplicationClass - - static name: string -} - -interface ApplicationWindowClass { - - // Own fields of Adw-1.Adw.ApplicationWindowClass - - parent_class: Gtk.ApplicationWindowClass -} - -abstract class ApplicationWindowClass { - - // Own properties of Adw-1.Adw.ApplicationWindowClass - - static name: string -} - -interface AvatarClass { - - // Own fields of Adw-1.Adw.AvatarClass - - parent_class: Gtk.WidgetClass -} - -abstract class AvatarClass { - - // Own properties of Adw-1.Adw.AvatarClass - - static name: string -} - -interface BannerClass { - - // Own fields of Adw-1.Adw.BannerClass - - parent_class: Gtk.WidgetClass -} - -abstract class BannerClass { - - // Own properties of Adw-1.Adw.BannerClass - - static name: string -} - -interface BinClass { - - // Own fields of Adw-1.Adw.BinClass - - parent_class: Gtk.WidgetClass -} - -abstract class BinClass { - - // Own properties of Adw-1.Adw.BinClass - - static name: string -} - -interface BreakpointBinClass { - - // Own fields of Adw-1.Adw.BreakpointBinClass - - parent_class: Gtk.WidgetClass -} - -abstract class BreakpointBinClass { - - // Own properties of Adw-1.Adw.BreakpointBinClass - - static name: string -} - -interface BreakpointClass { - - // Own fields of Adw-1.Adw.BreakpointClass - - parent_class: GObject.ObjectClass -} - -abstract class BreakpointClass { - - // Own properties of Adw-1.Adw.BreakpointClass - - static name: string -} - -interface BreakpointCondition { - - // Owm methods of Adw-1.Adw.BreakpointCondition - - /** - * Copies `self`. - * @returns a copy of @self - */ - copy(): BreakpointCondition - /** - * Frees `self`. - */ - free(): void - /** - * Returns a textual representation of `self`. - * - * The returned string can be parsed by [func`BreakpointCondition`.parse]. - * @returns A newly allocated text string - */ - to_string(): string | null -} - -/** - * Describes condition for an [class`Breakpoint]`. - * @record - */ -class BreakpointCondition { - - // Own properties of Adw-1.Adw.BreakpointCondition - - static name: string - - // Constructors of Adw-1.Adw.BreakpointCondition - - /** - * Creates a condition that triggers when `condition_1` and `condition_2` are both - * true. - * @constructor - * @param condition_1 first condition - * @param condition_2 second condition - * @returns the newly created condition - */ - static new_and(condition_1: BreakpointCondition, condition_2: BreakpointCondition): BreakpointCondition - /** - * Creates a condition that triggers on length changes. - * @constructor - * @param type the length type - * @param value the length value - * @param unit the length unit - * @returns the newly created condition - */ - static new_length(type: BreakpointConditionLengthType, value: number, unit: LengthUnit): BreakpointCondition - /** - * Creates a condition that triggers when either `condition_1` or `condition_2` is - * true. - * @constructor - * @param condition_1 first condition - * @param condition_2 second condition - * @returns the newly created condition - */ - static new_or(condition_1: BreakpointCondition, condition_2: BreakpointCondition): BreakpointCondition - /** - * Creates a condition that triggers on ratio changes. - * - * The ratio is represented as `width` divided by `height`. - * @constructor - * @param type the ratio type - * @param width ratio width - * @param height ratio height - * @returns the newly created condition - */ - static new_ratio(type: BreakpointConditionRatioType, width: number, height: number): BreakpointCondition - /** - * Parses a condition from a string. - * - * Length conditions are specified as `: []`, where: - * - * - `` can be `min-width`, `max-width`, `min-height` or `max-height` - * - `` is a fractional number - * - `` can be `px`, `pt` or `sp` - * - * If the unit is omitted, `px` is assumed. - * - * See [ctor`BreakpointCondition`.new_length]. - * - * Examples: - * - * - `min-width: 500px` - * - `min-height: 400pt` - * - `max-width: 100sp` - * - `max-height: 500` - * - * Ratio conditions are specified as `: [/]`, where: - * - * - `` can be `min-aspect-ratio` or `max-aspect-ratio` - * - `` and `` are integer numbers - * - * See [ctor`BreakpointCondition`.new_ratio]. - * - * The ratio is represented as `` divided by ``. - * - * If `` is omitted, it's assumed to be 1. - * - * Examples: - * - * - `min-aspect-ratio: 4/3` - * - `max-aspect-ratio: 1` - * - * The logical operators `and`, `or` can be used to compose a complex condition - * as follows: - * - * - ` and `: the condition is true when both - * ``s are true, same as when using - * [ctor`BreakpointCondition`.new_and] - * - ` or `: the condition is true when either of the - * ``s is true, same as when using - * [ctor`BreakpointCondition`.new_or] - * - * Examples: - * - * - `min-width: 400px and max-aspect-ratio: 4/3` - * - `max-width: 360sp or max-width: 360px` - * - * Conditions can be further nested using parentheses, for example: - * - * - `min-width: 400px and (max-aspect-ratio: 4/3 or max-height: 400px)` - * - * If parentheses are omitted, the first operator takes priority. - * @param str the string specifying the condition - * @returns the parsed condition - */ - static parse(str: string | null): BreakpointCondition -} - -interface ButtonContentClass { - - // Own fields of Adw-1.Adw.ButtonContentClass - - parent_class: Gtk.WidgetClass -} - -abstract class ButtonContentClass { - - // Own properties of Adw-1.Adw.ButtonContentClass - - static name: string -} - -interface CallbackAnimationTargetClass { -} - -abstract class CallbackAnimationTargetClass { - - // Own properties of Adw-1.Adw.CallbackAnimationTargetClass - - static name: string -} - -interface CarouselClass { - - // Own fields of Adw-1.Adw.CarouselClass - - parent_class: Gtk.WidgetClass -} - -abstract class CarouselClass { - - // Own properties of Adw-1.Adw.CarouselClass - - static name: string -} - -interface CarouselIndicatorDotsClass { - - // Own fields of Adw-1.Adw.CarouselIndicatorDotsClass - - parent_class: Gtk.WidgetClass -} - -abstract class CarouselIndicatorDotsClass { - - // Own properties of Adw-1.Adw.CarouselIndicatorDotsClass - - static name: string -} - -interface CarouselIndicatorLinesClass { - - // Own fields of Adw-1.Adw.CarouselIndicatorLinesClass - - parent_class: Gtk.WidgetClass -} - -abstract class CarouselIndicatorLinesClass { - - // Own properties of Adw-1.Adw.CarouselIndicatorLinesClass - - static name: string -} - -interface ClampClass { - - // Own fields of Adw-1.Adw.ClampClass - - parent_class: Gtk.WidgetClass -} - -abstract class ClampClass { - - // Own properties of Adw-1.Adw.ClampClass - - static name: string -} - -interface ClampLayoutClass { - - // Own fields of Adw-1.Adw.ClampLayoutClass - - parent_class: Gtk.LayoutManagerClass -} - -abstract class ClampLayoutClass { - - // Own properties of Adw-1.Adw.ClampLayoutClass - - static name: string -} - -interface ClampScrollableClass { - - // Own fields of Adw-1.Adw.ClampScrollableClass - - parent_class: Gtk.WidgetClass -} - -abstract class ClampScrollableClass { - - // Own properties of Adw-1.Adw.ClampScrollableClass - - static name: string -} - -interface ComboRowClass { - - // Own fields of Adw-1.Adw.ComboRowClass - - /** - * The parent class - * @field - */ - parent_class: ActionRowClass -} - -abstract class ComboRowClass { - - // Own properties of Adw-1.Adw.ComboRowClass - - static name: string -} - -interface EntryRowClass { - - // Own fields of Adw-1.Adw.EntryRowClass - - /** - * The parent class - * @field - */ - parent_class: PreferencesRowClass -} - -abstract class EntryRowClass { - - // Own properties of Adw-1.Adw.EntryRowClass - - static name: string -} - -interface EnumListItemClass { - - // Own fields of Adw-1.Adw.EnumListItemClass - - parent_class: GObject.ObjectClass -} - -abstract class EnumListItemClass { - - // Own properties of Adw-1.Adw.EnumListItemClass - - static name: string -} - -interface EnumListModelClass { - - // Own fields of Adw-1.Adw.EnumListModelClass - - parent_class: GObject.ObjectClass -} - -abstract class EnumListModelClass { - - // Own properties of Adw-1.Adw.EnumListModelClass - - static name: string -} - -interface ExpanderRowClass { - - // Own fields of Adw-1.Adw.ExpanderRowClass - - /** - * The parent class - * @field - */ - parent_class: PreferencesRowClass -} - -abstract class ExpanderRowClass { - - // Own properties of Adw-1.Adw.ExpanderRowClass - - static name: string -} - -interface FlapClass { - - // Own fields of Adw-1.Adw.FlapClass - - parent_class: Gtk.WidgetClass -} - -abstract class FlapClass { - - // Own properties of Adw-1.Adw.FlapClass - - static name: string -} - -interface HeaderBarClass { - - // Own fields of Adw-1.Adw.HeaderBarClass - - parent_class: Gtk.WidgetClass -} - -abstract class HeaderBarClass { - - // Own properties of Adw-1.Adw.HeaderBarClass - - static name: string -} - -interface LeafletClass { - - // Own fields of Adw-1.Adw.LeafletClass - - parent_class: Gtk.WidgetClass -} - -abstract class LeafletClass { - - // Own properties of Adw-1.Adw.LeafletClass - - static name: string -} - -interface LeafletPageClass { - - // Own fields of Adw-1.Adw.LeafletPageClass - - parent_class: GObject.ObjectClass -} - -abstract class LeafletPageClass { - - // Own properties of Adw-1.Adw.LeafletPageClass - - static name: string -} - -interface MessageDialogClass { - - // Own fields of Adw-1.Adw.MessageDialogClass - - parent_class: Gtk.WindowClass - response: (self: MessageDialog, response: string | null) => void -} - -abstract class MessageDialogClass { - - // Own properties of Adw-1.Adw.MessageDialogClass - - static name: string -} - -interface NavigationPageClass { - - // Own fields of Adw-1.Adw.NavigationPageClass - - parent_class: Gtk.WidgetClass - showing: (self: NavigationPage) => void - shown: (self: NavigationPage) => void - hiding: (self: NavigationPage) => void - hidden: (self: NavigationPage) => void -} - -abstract class NavigationPageClass { - - // Own properties of Adw-1.Adw.NavigationPageClass - - static name: string -} - -interface NavigationSplitViewClass { - - // Own fields of Adw-1.Adw.NavigationSplitViewClass - - parent_class: Gtk.WidgetClass -} - -abstract class NavigationSplitViewClass { - - // Own properties of Adw-1.Adw.NavigationSplitViewClass - - static name: string -} - -interface NavigationViewClass { - - // Own fields of Adw-1.Adw.NavigationViewClass - - parent_class: Gtk.WidgetClass -} - -abstract class NavigationViewClass { - - // Own properties of Adw-1.Adw.NavigationViewClass - - static name: string -} - -interface OverlaySplitViewClass { - - // Own fields of Adw-1.Adw.OverlaySplitViewClass - - parent_class: Gtk.WidgetClass -} - -abstract class OverlaySplitViewClass { - - // Own properties of Adw-1.Adw.OverlaySplitViewClass - - static name: string -} - -interface PasswordEntryRowClass { - - // Own fields of Adw-1.Adw.PasswordEntryRowClass - - parent_class: EntryRowClass -} - -abstract class PasswordEntryRowClass { - - // Own properties of Adw-1.Adw.PasswordEntryRowClass - - static name: string -} - -interface PreferencesGroupClass { - - // Own fields of Adw-1.Adw.PreferencesGroupClass - - /** - * The parent class - * @field - */ - parent_class: Gtk.WidgetClass -} - -abstract class PreferencesGroupClass { - - // Own properties of Adw-1.Adw.PreferencesGroupClass - - static name: string -} - -interface PreferencesPageClass { - - // Own fields of Adw-1.Adw.PreferencesPageClass - - /** - * The parent class - * @field - */ - parent_class: Gtk.WidgetClass -} - -abstract class PreferencesPageClass { - - // Own properties of Adw-1.Adw.PreferencesPageClass - - static name: string -} - -interface PreferencesRowClass { - - // Own fields of Adw-1.Adw.PreferencesRowClass - - /** - * The parent class - * @field - */ - parent_class: Gtk.ListBoxRowClass -} - -abstract class PreferencesRowClass { - - // Own properties of Adw-1.Adw.PreferencesRowClass - - static name: string -} - -interface PreferencesWindowClass { - - // Own fields of Adw-1.Adw.PreferencesWindowClass - - /** - * The parent class - * @field - */ - parent_class: WindowClass -} - -abstract class PreferencesWindowClass { - - // Own properties of Adw-1.Adw.PreferencesWindowClass - - static name: string -} - -interface PropertyAnimationTargetClass { -} - -abstract class PropertyAnimationTargetClass { - - // Own properties of Adw-1.Adw.PropertyAnimationTargetClass - - static name: string -} - -interface SpinRowClass { - - // Own fields of Adw-1.Adw.SpinRowClass - - parent_class: ActionRowClass -} - -abstract class SpinRowClass { - - // Own properties of Adw-1.Adw.SpinRowClass - - static name: string -} - -interface SplitButtonClass { - - // Own fields of Adw-1.Adw.SplitButtonClass - - parent_class: Gtk.WidgetClass -} - -abstract class SplitButtonClass { - - // Own properties of Adw-1.Adw.SplitButtonClass - - static name: string -} - -interface SpringAnimationClass { -} - -abstract class SpringAnimationClass { - - // Own properties of Adw-1.Adw.SpringAnimationClass - - static name: string -} - -interface SpringParams { - - // Owm methods of Adw-1.Adw.SpringParams - - /** - * Gets the damping of `self`. - * @returns the damping - */ - get_damping(): number - /** - * Gets the damping ratio of `self`. - * @returns the damping ratio - */ - get_damping_ratio(): number - /** - * Gets the mass of `self`. - * @returns the mass - */ - get_mass(): number - /** - * Gets the stiffness of `self`. - * @returns the stiffness - */ - get_stiffness(): number - /** - * Increases the reference count of `self`. - * @returns @self - */ - ref(): SpringParams - /** - * Decreases the reference count of `self`. - * - * If the last reference is dropped, the structure is freed. - */ - unref(): void -} - -/** - * Physical parameters of a spring for [class`SpringAnimation]`. - * - * Any spring can be described by three parameters: mass, stiffness and damping. - * - * An undamped spring will produce an oscillatory motion which will go on - * forever. - * - * The frequency and amplitude of the oscillations will be determined by the - * stiffness (how "strong" the spring is) and its mass (how much "inertia" it - * has). - * - * If damping is larger than 0, the amplitude of that oscillating motion will - * exponientally decrease over time. If that damping is strong enough that the - * spring can't complete a full oscillation, it's called an overdamped spring. - * - * If we the spring can oscillate, it's called an underdamped spring. - * - * The value between these two behaviors is called critical damping; a - * critically damped spring will comes to rest in the minimum possible time - * without producing oscillations. - * - * The damping can be replaced by damping ratio, which produces the following - * springs: - * - * * 0: an undamped spring. - * * Between 0 and 1: an underdamped spring. - * * 1: a critically damped spring. - * * Larger than 1: an overdamped spring. - * - * As such - * @record - */ -class SpringParams { - - // Own properties of Adw-1.Adw.SpringParams - - static name: string - - // Constructors of Adw-1.Adw.SpringParams - - /** - * Creates a new `AdwSpringParams` from `mass,` `stiffness` and `damping_ratio`. - * - * The damping value is calculated from `damping_ratio` and the other two - * parameters. - * - * * If `damping_ratio` is 0, the spring will not be damped and will oscillate - * endlessly. - * * If `damping_ratio` is between 0 and 1, the spring is underdamped and will - * always overshoot. - * * If `damping_ratio` is 1, the spring is critically damped and will reach its - * resting position the quickest way possible. - * * If `damping_ratio` is larger than 1, the spring is overdamped and will reach - * its resting position faster than it can complete an oscillation. - * - * [ctor`SpringParams`.new_full] allows to pass a raw damping value instead. - * @constructor - * @param damping_ratio the damping ratio of the spring - * @param mass the mass of the spring - * @param stiffness the stiffness of the spring - * @returns the newly created spring parameters - */ - constructor(damping_ratio: number, mass: number, stiffness: number) - /** - * Creates a new `AdwSpringParams` from `mass,` `stiffness` and `damping_ratio`. - * - * The damping value is calculated from `damping_ratio` and the other two - * parameters. - * - * * If `damping_ratio` is 0, the spring will not be damped and will oscillate - * endlessly. - * * If `damping_ratio` is between 0 and 1, the spring is underdamped and will - * always overshoot. - * * If `damping_ratio` is 1, the spring is critically damped and will reach its - * resting position the quickest way possible. - * * If `damping_ratio` is larger than 1, the spring is overdamped and will reach - * its resting position faster than it can complete an oscillation. - * - * [ctor`SpringParams`.new_full] allows to pass a raw damping value instead. - * @constructor - * @param damping_ratio the damping ratio of the spring - * @param mass the mass of the spring - * @param stiffness the stiffness of the spring - * @returns the newly created spring parameters - */ - static new(damping_ratio: number, mass: number, stiffness: number): SpringParams - /** - * Creates a new `AdwSpringParams` from `mass,` `stiffness` and `damping`. - * - * See [ctor`SpringParams`.new] for a simplified constructor using damping ratio - * instead of `damping`. - * @constructor - * @param damping the damping of the spring - * @param mass the mass of the spring - * @param stiffness the stiffness of the spring - * @returns the newly created spring parameters - */ - static new_full(damping: number, mass: number, stiffness: number): SpringParams -} - -interface SqueezerClass { - - // Own fields of Adw-1.Adw.SqueezerClass - - parent_class: Gtk.WidgetClass -} - -abstract class SqueezerClass { - - // Own properties of Adw-1.Adw.SqueezerClass - - static name: string -} - -interface SqueezerPageClass { - - // Own fields of Adw-1.Adw.SqueezerPageClass - - parent_class: GObject.ObjectClass -} - -abstract class SqueezerPageClass { - - // Own properties of Adw-1.Adw.SqueezerPageClass - - static name: string -} - -interface StatusPageClass { - - // Own fields of Adw-1.Adw.StatusPageClass - - parent_class: Gtk.WidgetClass -} - -abstract class StatusPageClass { - - // Own properties of Adw-1.Adw.StatusPageClass - - static name: string -} - -interface StyleManagerClass { - - // Own fields of Adw-1.Adw.StyleManagerClass - - parent_class: GObject.ObjectClass -} - -abstract class StyleManagerClass { - - // Own properties of Adw-1.Adw.StyleManagerClass - - static name: string -} - -interface SwipeTrackerClass { - - // Own fields of Adw-1.Adw.SwipeTrackerClass - - parent_class: GObject.ObjectClass -} - -abstract class SwipeTrackerClass { - - // Own properties of Adw-1.Adw.SwipeTrackerClass - - static name: string -} - -interface SwipeableInterface { - - // Own fields of Adw-1.Adw.SwipeableInterface - - /** - * The parent interface. - * @field - */ - parent: GObject.TypeInterface - get_distance: (self: Swipeable) => number - get_snap_points: (self: Swipeable) => number[] - get_progress: (self: Swipeable) => number - get_cancel_progress: (self: Swipeable) => number - get_swipe_area: (self: Swipeable, navigation_direction: NavigationDirection, is_drag: boolean) => /* rect */ Gdk.Rectangle -} - -/** - * An interface for swipeable widgets. - * @record - */ -abstract class SwipeableInterface { - - // Own properties of Adw-1.Adw.SwipeableInterface - - static name: string -} - -interface SwitchRowClass { - - // Own fields of Adw-1.Adw.SwitchRowClass - - parent_class: ActionRowClass -} - -abstract class SwitchRowClass { - - // Own properties of Adw-1.Adw.SwitchRowClass - - static name: string -} - -interface TabBarClass { - - // Own fields of Adw-1.Adw.TabBarClass - - parent_class: Gtk.WidgetClass -} - -abstract class TabBarClass { - - // Own properties of Adw-1.Adw.TabBarClass - - static name: string -} - -interface TabButtonClass { - - // Own fields of Adw-1.Adw.TabButtonClass - - parent_class: Gtk.WidgetClass -} - -abstract class TabButtonClass { - - // Own properties of Adw-1.Adw.TabButtonClass - - static name: string -} - -interface TabOverviewClass { - - // Own fields of Adw-1.Adw.TabOverviewClass - - parent_class: Gtk.WidgetClass -} - -abstract class TabOverviewClass { - - // Own properties of Adw-1.Adw.TabOverviewClass - - static name: string -} - -interface TabPageClass { - - // Own fields of Adw-1.Adw.TabPageClass - - parent_class: GObject.ObjectClass -} - -abstract class TabPageClass { - - // Own properties of Adw-1.Adw.TabPageClass - - static name: string -} - -interface TabViewClass { - - // Own fields of Adw-1.Adw.TabViewClass - - parent_class: Gtk.WidgetClass -} - -abstract class TabViewClass { - - // Own properties of Adw-1.Adw.TabViewClass - - static name: string -} - -interface TimedAnimationClass { -} - -abstract class TimedAnimationClass { - - // Own properties of Adw-1.Adw.TimedAnimationClass - - static name: string -} - -interface ToastClass { - - // Own fields of Adw-1.Adw.ToastClass - - parent_class: GObject.ObjectClass -} - -abstract class ToastClass { - - // Own properties of Adw-1.Adw.ToastClass - - static name: string -} - -interface ToastOverlayClass { - - // Own fields of Adw-1.Adw.ToastOverlayClass - - parent_class: Gtk.WidgetClass -} - -abstract class ToastOverlayClass { - - // Own properties of Adw-1.Adw.ToastOverlayClass - - static name: string -} - -interface ToolbarViewClass { - - // Own fields of Adw-1.Adw.ToolbarViewClass - - parent_class: Gtk.WidgetClass -} - -abstract class ToolbarViewClass { - - // Own properties of Adw-1.Adw.ToolbarViewClass - - static name: string -} - -interface ViewStackClass { - - // Own fields of Adw-1.Adw.ViewStackClass - - parent_class: Gtk.WidgetClass -} - -abstract class ViewStackClass { - - // Own properties of Adw-1.Adw.ViewStackClass - - static name: string -} - -interface ViewStackPageClass { - - // Own fields of Adw-1.Adw.ViewStackPageClass - - parent_class: GObject.ObjectClass -} - -abstract class ViewStackPageClass { - - // Own properties of Adw-1.Adw.ViewStackPageClass - - static name: string -} - -interface ViewStackPagesClass { - - // Own fields of Adw-1.Adw.ViewStackPagesClass - - parent_class: GObject.ObjectClass -} - -abstract class ViewStackPagesClass { - - // Own properties of Adw-1.Adw.ViewStackPagesClass - - static name: string -} - -interface ViewSwitcherBarClass { - - // Own fields of Adw-1.Adw.ViewSwitcherBarClass - - parent_class: Gtk.WidgetClass -} - -abstract class ViewSwitcherBarClass { - - // Own properties of Adw-1.Adw.ViewSwitcherBarClass - - static name: string -} - -interface ViewSwitcherClass { - - // Own fields of Adw-1.Adw.ViewSwitcherClass - - parent_class: Gtk.WidgetClass -} - -abstract class ViewSwitcherClass { - - // Own properties of Adw-1.Adw.ViewSwitcherClass - - static name: string -} - -interface ViewSwitcherTitleClass { - - // Own fields of Adw-1.Adw.ViewSwitcherTitleClass - - parent_class: Gtk.WidgetClass -} - -abstract class ViewSwitcherTitleClass { - - // Own properties of Adw-1.Adw.ViewSwitcherTitleClass - - static name: string -} - -interface WindowClass { - - // Own fields of Adw-1.Adw.WindowClass - - parent_class: Gtk.WindowClass -} - -abstract class WindowClass { - - // Own properties of Adw-1.Adw.WindowClass - - static name: string -} - -interface WindowTitleClass { - - // Own fields of Adw-1.Adw.WindowTitleClass - - parent_class: Gtk.WidgetClass -} - -abstract class WindowTitleClass { - - // Own properties of Adw-1.Adw.WindowTitleClass - - static name: string -} - -/** - * Name of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188 - */ -const __name__: string -/** - * Version of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189 - */ -const __version__: string -} - -export default Adw; -// END \ No newline at end of file diff --git a/@types/gir-generated/ambient.d.ts b/@types/gir-generated/ambient.d.ts deleted file mode 100644 index f580b69..0000000 --- a/@types/gir-generated/ambient.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules -// https://stackoverflow.com/questions/45099605/ambient-declaration-with-an-imported-type-in-typescript - -declare module 'gettext' { - const Gettext: typeof import('./gettext.js').default; - export default Gettext; - - export const LocaleCategory: typeof import('./gettext.js').LocaleCategory; - export const setlocale: typeof import('./gettext.js').setlocale; - export const textdomain: typeof import('./gettext.js').textdomain; - export const bindtextdomain: typeof import('./gettext.js').bindtextdomain; - export const gettext: typeof import('./gettext.js').gettext; - export const dgettext: typeof import('./gettext.js').dgettext; - export const dcgettext: typeof import('./gettext.js').dcgettext; - export const ngettext: typeof import('./gettext.js').ngettext; - export const dngettext: typeof import('./gettext.js').dngettext; - export const pgettext: typeof import('./gettext.js').pgettext; - export const dpgettext: typeof import('./gettext.js').dpgettext; - export const domain: typeof import('./gettext.js').domain; -} - -declare module 'system' { - const System: typeof import('./gettext.js').default; - export default System; - - export const programInvocationName: typeof import('./system.js').programInvocationName; - export const version: typeof import('./system.js').version; - export const programPath: typeof import('./system.js').programPath; - export const programArgs: typeof import('./system.js').programArgs; - export const exit: typeof import('./system.js').exit; - export const addressOfGObject: typeof import('./system.js').addressOfGObject; - export const addressOf: typeof import('./system.js').addressOf; - export const gc: typeof import('./system.js').gc; - export const refcount: typeof import('./system.js').refcount; - export const dumpHeap: typeof import('./system.js').dumpHeap; - export const dumpMemoryInfo: typeof import('./system.js').dumpMemoryInfo; -} - -declare module 'cairo' { - const Cairo: typeof import('./cairo.js').default; - export default Cairo; -} - diff --git a/@types/gir-generated/atk-1.0-ambient.d.ts b/@types/gir-generated/atk-1.0-ambient.d.ts deleted file mode 100644 index fdba953..0000000 --- a/@types/gir-generated/atk-1.0-ambient.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -declare module 'gi://Atk?version=1.0' { - const Atk10: typeof import('./atk-1.0.js').default; - export default Atk10; -} - -declare module 'gi://Atk' { - const Atk10: typeof import('./atk-1.0.js').default; - export default Atk10; -} - - diff --git a/@types/gir-generated/atk-1.0-import.d.ts b/@types/gir-generated/atk-1.0-import.d.ts deleted file mode 100644 index b391250..0000000 --- a/@types/gir-generated/atk-1.0-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -type Atk10 = typeof import('./atk-1.0.js').default; - -declare global { - export interface GjsGiImports { - Atk: Atk10; - } -} - -export default GjsGiImports; - - diff --git a/@types/gir-generated/atk-1.0.d.ts b/@types/gir-generated/atk-1.0.d.ts deleted file mode 100644 index 3416014..0000000 --- a/@types/gir-generated/atk-1.0.d.ts +++ /dev/null @@ -1,8276 +0,0 @@ - -/* - * Type Definitions for Gjs (https://gjs.guide/) - * - * These type definitions are automatically generated, do not edit them by hand. - * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir - */ - -import './atk-1.0-import.d.ts'; -/** - * Atk-1.0 - */ - -import type GObject from './gobject-2.0.js'; -import type GLib from './glib-2.0.js'; - -export namespace Atk { - -/** - * Specifies how xy coordinates are to be interpreted. Used by functions such - * as atk_component_get_position() and atk_text_get_character_extents() - */ -enum CoordType { - /** - * specifies xy coordinates relative to the screen - */ - SCREEN, - /** - * specifies xy coordinates relative to the widget's - * top-level window - */ - WINDOW, - /** - * specifies xy coordinates relative to the widget's - * immediate parent. Since: 2.30 - */ - PARENT, -} -/** - * Specifies the type of a keyboard evemt. - */ -enum KeyEventType { - /** - * specifies a key press event - */ - PRESS, - /** - * specifies a key release event - */ - RELEASE, - /** - * Not a valid value; specifies end of enumeration - */ - LAST_DEFINED, -} -/** - * Describes the layer of a component - * - * These enumerated "layer values" are used when determining which UI - * rendering layer a component is drawn into, which can help in making - * determinations of when components occlude one another. - */ -enum Layer { - /** - * The object does not have a layer - */ - INVALID, - /** - * This layer is reserved for the desktop background - */ - BACKGROUND, - /** - * This layer is used for Canvas components - */ - CANVAS, - /** - * This layer is normally used for components - */ - WIDGET, - /** - * This layer is used for layered components - */ - MDI, - /** - * This layer is used for popup components, such as menus - */ - POPUP, - /** - * This layer is reserved for future use. - */ - OVERLAY, - /** - * This layer is used for toplevel windows. - */ - WINDOW, -} -/** - * Enumeration used to indicate a type of live region and how assertive it - * should be in terms of speaking notifications. Currently, this is only used - * for "notification" events, but it may be used for additional purposes - * in the future. - */ -enum Live { - /** - * No live region. - */ - NONE, - /** - * This live region should be considered polite. - */ - POLITE, - /** - * This live region should be considered assertive. - */ - ASSERTIVE, -} -/** - * Describes the type of the relation - */ -enum RelationType { - /** - * Not used, represens "no relationship" or an error condition. - */ - NULL, - /** - * Indicates an object controlled by one or more target objects. - */ - CONTROLLED_BY, - /** - * Indicates an object is an controller for one or more target objects. - */ - CONTROLLER_FOR, - /** - * Indicates an object is a label for one or more target objects. - */ - LABEL_FOR, - /** - * Indicates an object is labelled by one or more target objects. - */ - LABELLED_BY, - /** - * Indicates an object is a member of a group of one or more target objects. - */ - MEMBER_OF, - /** - * Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell. - */ - NODE_CHILD_OF, - /** - * Indicates that the object has content that flows logically to another - * AtkObject in a sequential way, (for instance text-flow). - */ - FLOWS_TO, - /** - * Indicates that the object has content that flows logically from - * another AtkObject in a sequential way, (for instance text-flow). - */ - FLOWS_FROM, - /** - * Indicates a subwindow attached to a component but otherwise has no connection in the UI heirarchy to that component. - */ - SUBWINDOW_OF, - /** - * Indicates that the object visually embeds - * another object's content, i.e. this object's content flows around - * another's content. - */ - EMBEDS, - /** - * Reciprocal of %ATK_RELATION_EMBEDS, indicates that - * this object's content is visualy embedded in another object. - */ - EMBEDDED_BY, - /** - * Indicates that an object is a popup for another object. - */ - POPUP_FOR, - /** - * Indicates that an object is a parent window of another object. - */ - PARENT_WINDOW_OF, - /** - * Reciprocal of %ATK_RELATION_DESCRIPTION_FOR. Indicates that one - * or more target objects provide descriptive information about this object. This relation - * type is most appropriate for information that is not essential as its presentation may - * be user-configurable and/or limited to an on-demand mechanism such as an assistive - * technology command. For brief, essential information such as can be found in a widget's - * on-screen label, use %ATK_RELATION_LABELLED_BY. For an on-screen error message, use - * %ATK_RELATION_ERROR_MESSAGE. For lengthy extended descriptive information contained in - * an on-screen object, consider using %ATK_RELATION_DETAILS as assistive technologies may - * provide a means for the user to navigate to objects containing detailed descriptions so - * that their content can be more closely reviewed. - */ - DESCRIBED_BY, - /** - * Reciprocal of %ATK_RELATION_DESCRIBED_BY. Indicates that this - * object provides descriptive information about the target object(s). See also - * %ATK_RELATION_DETAILS_FOR and %ATK_RELATION_ERROR_FOR. - */ - DESCRIPTION_FOR, - /** - * Indicates an object is a cell in a treetable and is expanded to display other cells in the same column. - */ - NODE_PARENT_OF, - /** - * Reciprocal of %ATK_RELATION_DETAILS_FOR. Indicates that this object - * has a detailed or extended description, the contents of which can be found in the target - * object(s). This relation type is most appropriate for information that is sufficiently - * lengthy as to make navigation to the container of that information desirable. For less - * verbose information suitable for announcement only, see %ATK_RELATION_DESCRIBED_BY. If - * the detailed information describes an error condition, %ATK_RELATION_ERROR_FOR should be - * used instead. `Since:` ATK-2.26. - */ - DETAILS, - /** - * Reciprocal of %ATK_RELATION_DETAILS. Indicates that this object - * provides a detailed or extended description about the target object(s). See also - * %ATK_RELATION_DESCRIPTION_FOR and %ATK_RELATION_ERROR_FOR. `Since:` ATK-2.26. - */ - DETAILS_FOR, - /** - * Reciprocal of %ATK_RELATION_ERROR_FOR. Indicates that this object - * has one or more errors, the nature of which is described in the contents of the target - * object(s). Objects that have this relation type should also contain %ATK_STATE_INVALID_ENTRY - * in their #AtkStateSet. `Since:` ATK-2.26. - */ - ERROR_MESSAGE, - /** - * Reciprocal of %ATK_RELATION_ERROR_MESSAGE. Indicates that this object - * contains an error message describing an invalid condition in the target object(s). `Since:` - * ATK_2.26. - */ - ERROR_FOR, - /** - * Not used, this value indicates the end of the enumeration. - */ - LAST_DEFINED, -} -/** - * Describes the role of an object - * - * These are the built-in enumerated roles that UI components can have - * in ATK. Other roles may be added at runtime, so an AtkRole >= - * %ATK_ROLE_LAST_DEFINED is not necessarily an error. - */ -enum Role { - /** - * Invalid role - */ - INVALID, - /** - * A label which represents an accelerator - */ - ACCELERATOR_LABEL, - /** - * An object which is an alert to the user. Assistive Technologies typically respond to ATK_ROLE_ALERT by reading the entire onscreen contents of containers advertising this role. Should be used for warning dialogs, etc. - */ - ALERT, - /** - * An object which is an animated image - */ - ANIMATION, - /** - * An arrow in one of the four cardinal directions - */ - ARROW, - /** - * An object that displays a calendar and allows the user to select a date - */ - CALENDAR, - /** - * An object that can be drawn into and is used to trap events - */ - CANVAS, - /** - * A choice that can be checked or unchecked and provides a separate indicator for the current state - */ - CHECK_BOX, - /** - * A menu item with a check box - */ - CHECK_MENU_ITEM, - /** - * A specialized dialog that lets the user choose a color - */ - COLOR_CHOOSER, - /** - * The header for a column of data - */ - COLUMN_HEADER, - /** - * A collapsible list of choices the user can select from - */ - COMBO_BOX, - /** - * An object whose purpose is to allow a user to edit a date - */ - DATE_EDITOR, - /** - * An inconifed internal frame within a DESKTOP_PANE - */ - DESKTOP_ICON, - /** - * A pane that supports internal frames and iconified versions of those internal frames - */ - DESKTOP_FRAME, - /** - * An object whose purpose is to allow a user to set a value - */ - DIAL, - /** - * A top level window with title bar and a border - */ - DIALOG, - /** - * A pane that allows the user to navigate through and select the contents of a directory - */ - DIRECTORY_PANE, - /** - * An object used for drawing custom user interface elements - */ - DRAWING_AREA, - /** - * A specialized dialog that lets the user choose a file - */ - FILE_CHOOSER, - /** - * A object that fills up space in a user interface - */ - FILLER, - /** - * A specialized dialog that lets the user choose a font - */ - FONT_CHOOSER, - /** - * A top level window with a title bar, border, menubar, etc. - */ - FRAME, - /** - * A pane that is guaranteed to be painted on top of all panes beneath it - */ - GLASS_PANE, - /** - * A document container for HTML, whose children represent the document content - */ - HTML_CONTAINER, - /** - * A small fixed size picture, typically used to decorate components - */ - ICON, - /** - * An object whose primary purpose is to display an image - */ - IMAGE, - /** - * A frame-like object that is clipped by a desktop pane - */ - INTERNAL_FRAME, - /** - * An object used to present an icon or short string in an interface - */ - LABEL, - /** - * A specialized pane that allows its children to be drawn in layers, providing a form of stacking order - */ - LAYERED_PANE, - /** - * An object that presents a list of objects to the user and allows the user to select one or more of them - */ - LIST, - /** - * An object that represents an element of a list - */ - LIST_ITEM, - /** - * An object usually found inside a menu bar that contains a list of actions the user can choose from - */ - MENU, - /** - * An object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from - */ - MENU_BAR, - /** - * An object usually contained in a menu that presents an action the user can choose - */ - MENU_ITEM, - /** - * A specialized pane whose primary use is inside a DIALOG - */ - OPTION_PANE, - /** - * An object that is a child of a page tab list - */ - PAGE_TAB, - /** - * An object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object - */ - PAGE_TAB_LIST, - /** - * A generic container that is often used to group objects - */ - PANEL, - /** - * A text object uses for passwords, or other places where the text content is not shown visibly to the user - */ - PASSWORD_TEXT, - /** - * A temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices - */ - POPUP_MENU, - /** - * An object used to indicate how much of a task has been completed - */ - PROGRESS_BAR, - /** - * An object the user can manipulate to tell the application to do something - */ - PUSH_BUTTON, - /** - * A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked - */ - RADIO_BUTTON, - /** - * A check menu item which belongs to a group. At each instant exactly one of the radio menu items from a group is selected - */ - RADIO_MENU_ITEM, - /** - * A specialized pane that has a glass pane and a layered pane as its children - */ - ROOT_PANE, - /** - * The header for a row of data - */ - ROW_HEADER, - /** - * An object usually used to allow a user to incrementally view a large amount of data. - */ - SCROLL_BAR, - /** - * An object that allows a user to incrementally view a large amount of information - */ - SCROLL_PANE, - /** - * An object usually contained in a menu to provide a visible and logical separation of the contents in a menu - */ - SEPARATOR, - /** - * An object that allows the user to select from a bounded range - */ - SLIDER, - /** - * A specialized panel that presents two other panels at the same time - */ - SPLIT_PANE, - /** - * An object used to get an integer or floating point number from the user - */ - SPIN_BUTTON, - /** - * An object which reports messages of minor importance to the user - */ - STATUSBAR, - /** - * An object used to represent information in terms of rows and columns - */ - TABLE, - /** - * A cell in a table - */ - TABLE_CELL, - /** - * The header for a column of a table - */ - TABLE_COLUMN_HEADER, - /** - * The header for a row of a table - */ - TABLE_ROW_HEADER, - /** - * A menu item used to tear off and reattach its menu - */ - TEAR_OFF_MENU_ITEM, - /** - * An object that represents an accessible terminal. (Since: 0.6) - */ - TERMINAL, - /** - * An interactive widget that supports multiple lines of text and - * optionally accepts user input, but whose purpose is not to solicit user input. - * Thus ATK_ROLE_TEXT is appropriate for the text view in a plain text editor - * but inappropriate for an input field in a dialog box or web form. For widgets - * whose purpose is to solicit input from the user, see ATK_ROLE_ENTRY and - * ATK_ROLE_PASSWORD_TEXT. For generic objects which display a brief amount of - * textual information, see ATK_ROLE_STATIC. - */ - TEXT, - /** - * A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state - */ - TOGGLE_BUTTON, - /** - * A bar or palette usually composed of push buttons or toggle buttons - */ - TOOL_BAR, - /** - * An object that provides information about another object - */ - TOOL_TIP, - /** - * An object used to represent hierarchical information to the user - */ - TREE, - /** - * An object capable of expanding and collapsing rows as well as showing multiple columns of data. (Since: 0.7) - */ - TREE_TABLE, - /** - * The object contains some Accessible information, but its role is not known - */ - UNKNOWN, - /** - * An object usually used in a scroll pane - */ - VIEWPORT, - /** - * A top level window with no title or border. - */ - WINDOW, - /** - * An object that serves as a document header. (Since: 1.1.1) - */ - HEADER, - /** - * An object that serves as a document footer. (Since: 1.1.1) - */ - FOOTER, - /** - * An object which is contains a paragraph of text content. (Since: 1.1.1) - */ - PARAGRAPH, - /** - * An object which describes margins and tab stops, etc. for text objects which it controls (should have CONTROLLER_FOR relation to such). (Since: 1.1.1) - */ - RULER, - /** - * The object is an application object, which may contain `ATK_ROLE_FRAME` objects or other types of accessibles. The root accessible of any application's ATK hierarchy should have ATK_ROLE_APPLICATION. (Since: 1.1.4) - */ - APPLICATION, - /** - * The object is a dialog or list containing items for insertion into an entry widget, for instance a list of words for completion of a text entry. (Since: 1.3) - */ - AUTOCOMPLETE, - /** - * The object is an editable text object in a toolbar. (Since: 1.5) - */ - EDIT_BAR, - /** - * The object is an embedded container within a document or panel. This role is a grouping "hint" indicating that the contained objects share a context. (Since: 1.7.2) - */ - EMBEDDED, - /** - * The object is a component whose textual content may be entered or modified by the user, provided `ATK_STATE_EDITABLE` is present. (Since: 1.11) - */ - ENTRY, - /** - * The object is a graphical depiction of quantitative data. It may contain multiple subelements whose attributes and/or description may be queried to obtain both the quantitative data and information about how the data is being presented. The LABELLED_BY relation is particularly important in interpreting objects of this type, as is the accessible-description property. (Since: 1.11) - */ - CHART, - /** - * The object contains descriptive information, usually textual, about another user interface element such as a table, chart, or image. (Since: 1.11) - */ - CAPTION, - /** - * The object is a visual frame or container which contains a view of document content. Document frames may occur within another Document instance, in which case the second document may be said to be embedded in the containing instance. HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a singleton descendant, should implement the Document interface. (Since: 1.11) - */ - DOCUMENT_FRAME, - /** - * The object serves as a heading for content which follows it in a document. The 'heading level' of the heading, if availabe, may be obtained by querying the object's attributes. - */ - HEADING, - /** - * The object is a containing instance which encapsulates a page of information. `ATK_ROLE_PAGE` is used in documents and content which support a paginated navigation model. (Since: 1.11) - */ - PAGE, - /** - * The object is a containing instance of document content which constitutes a particular 'logical' section of the document. The type of content within a section, and the nature of the section division itself, may be obtained by querying the object's attributes. Sections may be nested. (Since: 1.11) - */ - SECTION, - /** - * The object is redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should normally be ignored by clients. (Since: 1.11) - */ - REDUNDANT_OBJECT, - /** - * The object is a container for form controls, for instance as part of a - * web form or user-input form within a document. This role is primarily a tag/convenience for - * clients when navigating complex documents, it is not expected that ordinary GUI containers will - * always have ATK_ROLE_FORM. (Since: 1.12.0) - */ - FORM, - /** - * The object is a hypertext anchor, i.e. a "link" in a - * hypertext document. Such objects are distinct from 'inline' - * content which may also use the Hypertext/Hyperlink interfaces - * to indicate the range/location within a text object where - * an inline or embedded object lies. (Since: 1.12.1) - */ - LINK, - /** - * The object is a window or similar viewport - * which is used to allow composition or input of a 'complex character', - * in other words it is an "input method window." (Since: 1.12.1) - */ - INPUT_METHOD_WINDOW, - /** - * A row in a table. (Since: 2.1.0) - */ - TABLE_ROW, - /** - * An object that represents an element of a tree. (Since: 2.1.0) - */ - TREE_ITEM, - /** - * A document frame which contains a spreadsheet. (Since: 2.1.0) - */ - DOCUMENT_SPREADSHEET, - /** - * A document frame which contains a presentation or slide content. (Since: 2.1.0) - */ - DOCUMENT_PRESENTATION, - /** - * A document frame which contains textual content, such as found in a word processing application. (Since: 2.1.0) - */ - DOCUMENT_TEXT, - /** - * A document frame which contains HTML or other markup suitable for display in a web browser. (Since: 2.1.0) - */ - DOCUMENT_WEB, - /** - * A document frame which contains email content to be displayed or composed either in plain text or HTML. (Since: 2.1.0) - */ - DOCUMENT_EMAIL, - /** - * An object found within a document and designed to present a comment, note, or other annotation. In some cases, this object might not be visible until activated. (Since: 2.1.0) - */ - COMMENT, - /** - * A non-collapsible list of choices the user can select from. (Since: 2.1.0) - */ - LIST_BOX, - /** - * A group of related widgets. This group typically has a label. (Since: 2.1.0) - */ - GROUPING, - /** - * An image map object. Usually a graphic with multiple hotspots, where each hotspot can be activated resulting in the loading of another document or section of a document. (Since: 2.1.0) - */ - IMAGE_MAP, - /** - * A transitory object designed to present a message to the user, typically at the desktop level rather than inside a particular application. (Since: 2.1.0) - */ - NOTIFICATION, - /** - * An object designed to present a message to the user within an existing window. (Since: 2.1.0) - */ - INFO_BAR, - /** - * A bar that serves as a level indicator to, for instance, show the strength of a password or the state of a battery. (Since: 2.7.3) - */ - LEVEL_BAR, - /** - * A bar that serves as the title of a window or a - * dialog. (Since: 2.12) - */ - TITLE_BAR, - /** - * An object which contains a text section - * that is quoted from another source. (Since: 2.12) - */ - BLOCK_QUOTE, - /** - * An object which represents an audio element. (Since: 2.12) - */ - AUDIO, - /** - * An object which represents a video element. (Since: 2.12) - */ - VIDEO, - /** - * A definition of a term or concept. (Since: 2.12) - */ - DEFINITION, - /** - * A section of a page that consists of a - * composition that forms an independent part of a document, page, or - * site. Examples: A blog entry, a news story, a forum post. (Since: 2.12) - */ - ARTICLE, - /** - * A region of a web page intended as a - * navigational landmark. This is designed to allow Assistive - * Technologies to provide quick navigation among key regions within a - * document. (Since: 2.12) - */ - LANDMARK, - /** - * A text widget or container holding log content, such - * as chat history and error logs. In this role there is a - * relationship between the arrival of new items in the log and the - * reading order. The log contains a meaningful sequence and new - * information is added only to the end of the log, not at arbitrary - * points. (Since: 2.12) - */ - LOG, - /** - * A container where non-essential information - * changes frequently. Common usages of marquee include stock tickers - * and ad banners. The primary difference between a marquee and a log - * is that logs usually have a meaningful order or sequence of - * important content changes. (Since: 2.12) - */ - MARQUEE, - /** - * A text widget or container that holds a mathematical - * expression. (Since: 2.12) - */ - MATH, - /** - * A widget whose purpose is to display a rating, - * such as the number of stars associated with a song in a media - * player. Objects of this role should also implement - * AtkValue. (Since: 2.12) - */ - RATING, - /** - * An object containing a numerical counter which - * indicates an amount of elapsed time from a start point, or the time - * remaining until an end point. (Since: 2.12) - */ - TIMER, - /** - * An object that represents a list of - * term-value groups. A term-value group represents a individual - * description and consist of one or more names - * (ATK_ROLE_DESCRIPTION_TERM) followed by one or more values - * (ATK_ROLE_DESCRIPTION_VALUE). For each list, there should not be - * more than one group with the same term name. (Since: 2.12) - */ - DESCRIPTION_LIST, - /** - * An object that represents a term or phrase - * with a corresponding definition. (Since: 2.12) - */ - DESCRIPTION_TERM, - /** - * An object that represents the - * description, definition or value of a term. (Since: 2.12) - */ - DESCRIPTION_VALUE, - /** - * A generic non-container object whose purpose is to display a - * brief amount of information to the user and whose role is known by the - * implementor but lacks semantic value for the user. Examples in which - * %ATK_ROLE_STATIC is appropriate include the message displayed in a message box - * and an image used as an alternative means to display text. %ATK_ROLE_STATIC - * should not be applied to widgets which are traditionally interactive, objects - * which display a significant amount of content, or any object which has an - * accessible relation pointing to another object. Implementors should expose the - * displayed information through the accessible name of the object. If doing so seems - * inappropriate, it may indicate that a different role should be used. For - * labels which describe another widget, see %ATK_ROLE_LABEL. For text views, see - * %ATK_ROLE_TEXT. For generic containers, see %ATK_ROLE_PANEL. For objects whose - * role is not known by the implementor, see %ATK_ROLE_UNKNOWN. (Since: 2.16) - */ - STATIC, - /** - * An object that represents a mathematical fraction. - * (Since: 2.16) - */ - MATH_FRACTION, - /** - * An object that represents a mathematical expression - * displayed with a radical. (Since: 2.16) - */ - MATH_ROOT, - /** - * An object that contains text that is displayed as a - * subscript. (Since: 2.16) - */ - SUBSCRIPT, - /** - * An object that contains text that is displayed as a - * superscript. (Since: 2.16) - */ - SUPERSCRIPT, - /** - * An object that contains the text of a footnote. (Since: 2.26) - */ - FOOTNOTE, - /** - * Content previously deleted or proposed to be - * deleted, e.g. in revision history or a content view providing suggestions - * from reviewers. (Since: 2.34) - */ - CONTENT_DELETION, - /** - * Content previously inserted or proposed to be - * inserted, e.g. in revision history or a content view providing suggestions - * from reviewers. (Since: 2.34) - */ - CONTENT_INSERTION, - /** - * A run of content that is marked or highlighted, such as for - * reference purposes, or to call it out as having a special purpose. If the - * marked content has an associated section in the document elaborating on the - * reason for the mark, then %ATK_RELATION_DETAILS should be used on the mark - * to point to that associated section. In addition, the reciprocal relation - * %ATK_RELATION_DETAILS_FOR should be used on the associated content section - * to point back to the mark. (Since: 2.36) - */ - MARK, - /** - * A container for content that is called out as a proposed - * change from the current version of the document, such as by a reviewer of the - * content. This role should include either %ATK_ROLE_CONTENT_DELETION and/or - * %ATK_ROLE_CONTENT_INSERTION children, in any order, to indicate what the - * actual change is. (Since: 2.36) - */ - SUGGESTION, - /** - * A specialized push button to open a menu. - * (Since: 2.46) - */ - PUSH_BUTTON_MENU, - /** - * not a valid role, used for finding end of the enumeration - */ - LAST_DEFINED, -} -/** - * Specifies where an object should be placed on the screen when using scroll_to. - */ -enum ScrollType { - /** - * Scroll the object vertically and horizontally to bring - * its top left corner to the top left corner of the window. - */ - TOP_LEFT, - /** - * Scroll the object vertically and horizontally to - * bring its bottom right corner to the bottom right corner of the window. - */ - BOTTOM_RIGHT, - /** - * Scroll the object vertically to bring its top edge to - * the top edge of the window. - */ - TOP_EDGE, - /** - * Scroll the object vertically to bring its bottom - * edge to the bottom edge of the window. - */ - BOTTOM_EDGE, - /** - * Scroll the object vertically and horizontally to bring - * its left edge to the left edge of the window. - */ - LEFT_EDGE, - /** - * Scroll the object vertically and horizontally to - * bring its right edge to the right edge of the window. - */ - RIGHT_EDGE, - /** - * Scroll the object vertically and horizontally so that - * as much as possible of the object becomes visible. The exact placement is - * determined by the application. - */ - ANYWHERE, -} -/** - * The possible types of states of an object - */ -enum StateType { - /** - * Indicates an invalid state - probably an error condition. - */ - INVALID, - /** - * Indicates a window is currently the active window, or an object is the active subelement within a container or table. ATK_STATE_ACTIVE should not be used for objects which have ATK_STATE_FOCUSABLE or ATK_STATE_SELECTABLE: Those objects should use ATK_STATE_FOCUSED and ATK_STATE_SELECTED respectively. ATK_STATE_ACTIVE is a means to indicate that an object which is not focusable and not selectable is the currently-active item within its parent container. - */ - ACTIVE, - /** - * Indicates that the object is 'armed', i.e. will be activated by if a pointer button-release event occurs within its bounds. Buttons often enter this state when a pointer click occurs within their bounds, as a precursor to activation. ATK_STATE_ARMED has been deprecated since ATK-2.16 and should not be used in newly-written code. - */ - ARMED, - /** - * Indicates the current object is busy, i.e. onscreen representation is in the process of changing, or the object is temporarily unavailable for interaction due to activity already in progress. This state may be used by implementors of Document to indicate that content loading is underway. It also may indicate other 'pending' conditions; clients may wish to interrogate this object when the ATK_STATE_BUSY flag is removed. - */ - BUSY, - /** - * Indicates this object is currently checked, for instance a checkbox is 'non-empty'. - */ - CHECKED, - /** - * Indicates that this object no longer has a valid backing widget (for instance, if its peer object has been destroyed) - */ - DEFUNCT, - /** - * Indicates that this object can contain text, and that the - * user can change the textual contents of this object by editing those contents - * directly. For an object which is expected to be editable due to its type, but - * which cannot be edited due to the application or platform preventing the user - * from doing so, that object's #AtkStateSet should lack ATK_STATE_EDITABLE and - * should contain ATK_STATE_READ_ONLY. - */ - EDITABLE, - /** - * Indicates that this object is enabled, i.e. that it currently reflects some application state. Objects that are "greyed out" may lack this state, and may lack the STATE_SENSITIVE if direct user interaction cannot cause them to acquire STATE_ENABLED. See also: ATK_STATE_SENSITIVE - */ - ENABLED, - /** - * Indicates this object allows progressive disclosure of its children - */ - EXPANDABLE, - /** - * Indicates this object its expanded - see ATK_STATE_EXPANDABLE above - */ - EXPANDED, - /** - * Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus - */ - FOCUSABLE, - /** - * Indicates this object currently has the keyboard focus - */ - FOCUSED, - /** - * Indicates the orientation of this object is horizontal; used, for instance, by objects of ATK_ROLE_SCROLL_BAR. For objects where vertical/horizontal orientation is especially meaningful. - */ - HORIZONTAL, - /** - * Indicates this object is minimized and is represented only by an icon - */ - ICONIFIED, - /** - * Indicates something must be done with this object before the user can interact with an object in a different window - */ - MODAL, - /** - * Indicates this (text) object can contain multiple lines of text - */ - MULTI_LINE, - /** - * Indicates this object allows more than one of its children to be selected at the same time, or in the case of text objects, that the object supports non-contiguous text selections. - */ - MULTISELECTABLE, - /** - * Indicates this object paints every pixel within its rectangular region. - */ - OPAQUE, - /** - * Indicates this object is currently pressed. - */ - PRESSED, - /** - * Indicates the size of this object is not fixed - */ - RESIZABLE, - /** - * Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that can be selected - */ - SELECTABLE, - /** - * Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected - */ - SELECTED, - /** - * Indicates this object is sensitive, e.g. to user interaction. - * STATE_SENSITIVE usually accompanies STATE_ENABLED for user-actionable controls, - * but may be found in the absence of STATE_ENABLED if the current visible state of the - * control is "disconnected" from the application state. In such cases, direct user interaction - * can often result in the object gaining STATE_SENSITIVE, for instance if a user makes - * an explicit selection using an object whose current state is ambiguous or undefined. - * `see` STATE_ENABLED, STATE_INDETERMINATE. - */ - SENSITIVE, - /** - * Indicates this object, the object's parent, the object's parent's parent, and so on, - * are all 'shown' to the end-user, i.e. subject to "exposure" if blocking or obscuring objects do not interpose - * between this object and the top of the window stack. - */ - SHOWING, - /** - * Indicates this (text) object can contain only a single line of text - */ - SINGLE_LINE, - /** - * Indicates that the information returned for this object may no longer be - * synchronized with the application state. This is implied if the object has STATE_TRANSIENT, - * and can also occur towards the end of the object peer's lifecycle. It can also be used to indicate that - * the index associated with this object has changed since the user accessed the object (in lieu of - * "index-in-parent-changed" events). - */ - STALE, - /** - * Indicates this object is transient, i.e. a snapshot which may not emit events when its - * state changes. Data from objects with ATK_STATE_TRANSIENT should not be cached, since there may be no - * notification given when the cached data becomes obsolete. - */ - TRANSIENT, - /** - * Indicates the orientation of this object is vertical - */ - VERTICAL, - /** - * Indicates this object is visible, e.g. has been explicitly marked for exposure to the user. - * **note**: %ATK_STATE_VISIBLE is no guarantee that the object is actually unobscured on the screen, only - * that it is 'potentially' visible, barring obstruction, being scrolled or clipped out of the - * field of view, or having an ancestor container that has not yet made visible. - * A widget is potentially onscreen if it has both %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING. - * The absence of %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING is semantically equivalent to saying - * that an object is 'hidden'. See also %ATK_STATE_TRUNCATED, which applies if an object with - * %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING set lies within a viewport which means that its - * contents are clipped, e.g. a truncated spreadsheet cell or - * an image within a scrolling viewport. Mostly useful for screen-review and magnification - * algorithms. - */ - VISIBLE, - /** - * Indicates that "active-descendant-changed" event - * is sent when children become 'active' (i.e. are selected or navigated to onscreen). - * Used to prevent need to enumerate all children in very large containers, like tables. - * The presence of STATE_MANAGES_DESCENDANTS is an indication to the client. - * that the children should not, and need not, be enumerated by the client. - * Objects implementing this state are expected to provide relevant state - * notifications to listening clients, for instance notifications of visibility - * changes and activation of their contained child objects, without the client - * having previously requested references to those children. - */ - MANAGES_DESCENDANTS, - /** - * Indicates that the value, or some other quantifiable - * property, of this AtkObject cannot be fully determined. In the case of a large - * data set in which the total number of items in that set is unknown (e.g. 1 of - * 999+), implementors should expose the currently-known set size (999) along - * with this state. In the case of a check box, this state should be used to - * indicate that the check box is a tri-state check box which is currently - * neither checked nor unchecked. - */ - INDETERMINATE, - /** - * Indicates that an object is truncated, e.g. a text value in a speradsheet cell. - */ - TRUNCATED, - /** - * Indicates that explicit user interaction with an object is required by the user interface, e.g. a required field in a "web-form" interface. - */ - REQUIRED, - /** - * Indicates that the object has encountered an error condition due to failure of input validation. For instance, a form control may acquire this state in response to invalid or malformed user input. - */ - INVALID_ENTRY, - /** - * Indicates that the object in question implements some form of ¨typeahead¨ or - * pre-selection behavior whereby entering the first character of one or more sub-elements - * causes those elements to scroll into view or become selected. Subsequent character input - * may narrow the selection further as long as one or more sub-elements match the string. - * This state is normally only useful and encountered on objects that implement Selection. - * In some cases the typeahead behavior may result in full or partial ¨completion¨ of - * the data in the input field, in which case these input events may trigger text-changed - * events from the AtkText interface. This state supplants `ATK_ROLE_AUTOCOMPLETE`. - */ - SUPPORTS_AUTOCOMPLETION, - /** - * Indicates that the object in question supports text selection. It should only be exposed on objects which implement the Text interface, in order to distinguish this state from `ATK_STATE_SELECTABLE,` which infers that the object in question is a selectable child of an object which implements Selection. While similar, text selection and subelement selection are distinct operations. - */ - SELECTABLE_TEXT, - /** - * Indicates that the object is the "default" active component, i.e. the object which is activated by an end-user press of the "Enter" or "Return" key. Typically a "close" or "submit" button. - */ - DEFAULT, - /** - * Indicates that the object changes its appearance dynamically as an inherent part of its presentation. This state may come and go if an object is only temporarily animated on the way to a 'final' onscreen presentation. - * **note**: some applications, notably content viewers, may not be able to detect - * all kinds of animated content. Therefore the absence of this state should not - * be taken as definitive evidence that the object's visual representation is - * static; this state is advisory. - */ - ANIMATED, - /** - * Indicates that the object (typically a hyperlink) has already been 'activated', and/or its backing data has already been downloaded, rendered, or otherwise "visited". - */ - VISITED, - /** - * Indicates this object has the potential to be - * checked, such as a checkbox or toggle-able table cell. `Since:` - * ATK-2.12 - */ - CHECKABLE, - /** - * Indicates that the object has a popup context - * menu or sub-level menu which may or may not be showing. This means - * that activation renders conditional content. Note that ordinary - * tooltips are not considered popups in this context. `Since:` ATK-2.12 - */ - HAS_POPUP, - /** - * Indicates this object has a tooltip. `Since:` ATK-2.16 - */ - HAS_TOOLTIP, - /** - * Indicates that a widget which is ENABLED and SENSITIVE - * has a value which can be read, but not modified, by the user. Note that this - * state should only be applied to widget types whose value is normally directly - * user modifiable, such as check boxes, radio buttons, spin buttons, text input - * fields, and combo boxes, as a means to convey that the expected interaction - * with that widget is not possible. When the expected interaction with a - * widget does not include modification by the user, as is the case with - * labels and containers, ATK_STATE_READ_ONLY should not be applied. See also - * ATK_STATE_EDITABLE. `Since:` ATK-2-16 - */ - READ_ONLY, - /** - * Indicates this object is collapsed. `Since:` ATK-2.38 - */ - COLLAPSED, - /** - * Not a valid state, used for finding end of enumeration - */ - LAST_DEFINED, -} -/** - * Describes the text attributes supported - */ -enum TextAttribute { - /** - * Invalid attribute, like bad spelling or grammar. - */ - INVALID, - /** - * The pixel width of the left margin - */ - LEFT_MARGIN, - /** - * The pixel width of the right margin - */ - RIGHT_MARGIN, - /** - * The number of pixels that the text is indented - */ - INDENT, - /** - * Either "true" or "false" indicating whether text is visible or not - */ - INVISIBLE, - /** - * Either "true" or "false" indicating whether text is editable or not - */ - EDITABLE, - /** - * Pixels of blank space to leave above each newline-terminated line. - */ - PIXELS_ABOVE_LINES, - /** - * Pixels of blank space to leave below each newline-terminated line. - */ - PIXELS_BELOW_LINES, - /** - * Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph). - */ - PIXELS_INSIDE_WRAP, - /** - * "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character. - */ - BG_FULL_HEIGHT, - /** - * Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION. - */ - RISE, - /** - * "none", "single", "double", "low", or "error" - */ - UNDERLINE, - /** - * "true" or "false" whether the text is strikethrough - */ - STRIKETHROUGH, - /** - * The size of the characters in points. eg: 10 - */ - SIZE, - /** - * The scale of the characters. The value is a string representation of a double - */ - SCALE, - /** - * The weight of the characters. - */ - WEIGHT, - /** - * The language used - */ - LANGUAGE, - /** - * The font family name - */ - FAMILY_NAME, - /** - * The background color. The value is an RGB value of the format "%u,%u,%u" - */ - BG_COLOR, - /** - * The foreground color. The value is an RGB value of the format "%u,%u,%u" - */ - FG_COLOR, - /** - * "true" if a #GdkBitmap is set for stippling the background color. - */ - BG_STIPPLE, - /** - * "true" if a #GdkBitmap is set for stippling the foreground color. - */ - FG_STIPPLE, - /** - * The wrap mode of the text, if any. Values are "none", "char", "word", or "word_char". - */ - WRAP_MODE, - /** - * The direction of the text, if set. Values are "none", "ltr" or "rtl" - */ - DIRECTION, - /** - * The justification of the text, if set. Values are "left", "right", "center" or "fill" - */ - JUSTIFICATION, - /** - * The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" - */ - STRETCH, - /** - * The capitalization variant of the text, if set. Values are "normal" or "small_caps" - */ - VARIANT, - /** - * The slant style of the text, if set. Values are "normal", "oblique" or "italic" - */ - STYLE, - /** - * The vertical position with respect to the baseline. Values are "baseline", "super", or "sub". Note that a super or sub text attribute refers to position with respect to the baseline of the prior character. - */ - TEXT_POSITION, - /** - * not a valid text attribute, used for finding end of enumeration - */ - LAST_DEFINED, -} -/** - * Text boundary types used for specifying boundaries for regions of text. - * This enumeration is deprecated since 2.9.4 and should not be used. Use - * AtkTextGranularity with #atk_text_get_string_at_offset instead. - */ -enum TextBoundary { - /** - * Boundary is the boundary between characters - * (including non-printing characters) - */ - CHAR, - /** - * Boundary is the start (i.e. first character) of a word. - */ - WORD_START, - /** - * Boundary is the end (i.e. last - * character) of a word. - */ - WORD_END, - /** - * Boundary is the first character in a sentence. - */ - SENTENCE_START, - /** - * Boundary is the last (terminal) - * character in a sentence; in languages which use "sentence stop" - * punctuation such as English, the boundary is thus the '.', '?', or - * similar terminal punctuation character. - */ - SENTENCE_END, - /** - * Boundary is the initial character of the content or a - * character immediately following a newline, linefeed, or return character. - */ - LINE_START, - /** - * Boundary is the linefeed, or return - * character. - */ - LINE_END, -} -/** - * Describes the type of clipping required. - */ -enum TextClipType { - /** - * No clipping to be done - */ - NONE, - /** - * Text clipped by min coordinate is omitted - */ - MIN, - /** - * Text clipped by max coordinate is omitted - */ - MAX, - /** - * Only text fully within mix/max bound is retained - */ - BOTH, -} -/** - * Text granularity types used for specifying the granularity of the region of - * text we are interested in. - */ -enum TextGranularity { - /** - * Granularity is defined by the boundaries between characters - * (including non-printing characters) - */ - CHAR, - /** - * Granularity is defined by the boundaries of a word, - * starting at the beginning of the current word and finishing at the beginning of - * the following one, if present. - */ - WORD, - /** - * Granularity is defined by the boundaries of a sentence, - * starting at the beginning of the current sentence and finishing at the beginning of - * the following one, if present. - */ - SENTENCE, - /** - * Granularity is defined by the boundaries of a line, - * starting at the beginning of the current line and finishing at the beginning of - * the following one, if present. - */ - LINE, - /** - * Granularity is defined by the boundaries of a paragraph, - * starting at the beginning of the current paragraph and finishing at the beginning of - * the following one, if present. - */ - PARAGRAPH, -} -/** - * Default types for a given value. Those are defined in order to - * easily get localized strings to describe a given value or a given - * subrange, using atk_value_type_get_localized_name(). - */ -enum ValueType { - VERY_WEAK, - WEAK, - ACCEPTABLE, - STRONG, - VERY_STRONG, - VERY_LOW, - LOW, - MEDIUM, - HIGH, - VERY_HIGH, - VERY_BAD, - BAD, - GOOD, - VERY_GOOD, - BEST, - LAST_DEFINED, -} -/** - * Describes the type of link - * @bitfield - */ -enum HyperlinkStateFlags { - /** - * Link is inline - */ - INLINE, -} -/** - * Like atk_get_binary_age(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -const BINARY_AGE: number -/** - * Like atk_get_interface_age(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -const INTERFACE_AGE: number -/** - * Like atk_get_major_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -const MAJOR_VERSION: number -/** - * Like atk_get_micro_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -const MICRO_VERSION: number -/** - * Like atk_get_minor_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -const MINOR_VERSION: number -/** - * A macro that should be defined by the user prior to including - * the atk/atk.h header. - * The definition should be one of the predefined ATK version - * macros: %ATK_VERSION_2_12, %ATK_VERSION_2_14,... - * - * This macro defines the earliest version of ATK that the package is - * required to be able to compile against. - * - * If the compiler is configured to warn about the use of deprecated - * functions, then using functions that were deprecated in version - * %ATK_VERSION_MIN_REQUIRED or earlier will cause warnings (but - * using functions deprecated in later releases will not). - */ -const VERSION_MIN_REQUIRED: number -/** - * Frees the memory used by an #AtkAttributeSet, including all its - * #AtkAttributes. - * @param attrib_set The #AtkAttributeSet to free - */ -function attribute_set_free(attrib_set: AttributeSet): void -/** - * Cause the focus tracker functions which have been specified to be - * executed for the object. - * @param object an #AtkObject - */ -function focus_tracker_notify(object: Object): void -/** - * Returns the binary age as passed to libtool when building the ATK - * library the process is running against. - * @returns the binary age of the ATK library - */ -function get_binary_age(): number -/** - * Gets a default implementation of the #AtkObjectFactory/type - * registry. - * Note: For most toolkit maintainers, this will be the correct - * registry for registering new #AtkObject factories. Following - * a call to this function, maintainers may call atk_registry_set_factory_type() - * to associate an #AtkObjectFactory subclass with the GType of objects - * for whom accessibility information will be provided. - * @returns a default implementation of the #AtkObjectFactory/type registry - */ -function get_default_registry(): Registry -/** - * Gets the currently focused object. - * @returns the currently focused object for the current application - */ -function get_focus_object(): Object -/** - * Returns the interface age as passed to libtool when building the - * ATK library the process is running against. - * @returns the interface age of the ATK library - */ -function get_interface_age(): number -/** - * Returns the major version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 2.) - * - * This function is in the library, so it represents the ATK library - * your code is running against. In contrast, the #ATK_MAJOR_VERSION - * macro represents the major version of the ATK headers you have - * included when compiling your code. - * @returns the major version number of the ATK library - */ -function get_major_version(): number -/** - * Returns the micro version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 4.) - * - * This function is in the library, so it represents the ATK library - * your code is are running against. In contrast, the - * #ATK_MICRO_VERSION macro represents the micro version of the ATK - * headers you have included when compiling your code. - * @returns the micro version number of the ATK library - */ -function get_micro_version(): number -/** - * Returns the minor version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 7.) - * - * This function is in the library, so it represents the ATK library - * your code is are running against. In contrast, the - * #ATK_MINOR_VERSION macro represents the minor version of the ATK - * headers you have included when compiling your code. - * @returns the minor version number of the ATK library - */ -function get_minor_version(): number -/** - * Gets the root accessible container for the current application. - * @returns the root accessible container for the current application - */ -function get_root(): Object -/** - * Gets name string for the GUI toolkit implementing ATK for this application. - * @returns name string for the GUI toolkit implementing ATK for this application - */ -function get_toolkit_name(): string | null -/** - * Gets version string for the GUI toolkit implementing ATK for this application. - * @returns version string for the GUI toolkit implementing ATK for this application - */ -function get_toolkit_version(): string | null -/** - * Gets the current version for ATK. - * @returns version string for ATK - */ -function get_version(): string | null -/** - * Get the #AtkRelationType type corresponding to a relation name. - * @param name a string which is the (non-localized) name of an ATK relation type. - * @returns the #AtkRelationType enumerated type corresponding to the specified name, or #ATK_RELATION_NULL if no matching relation type is found. - */ -function relation_type_for_name(name: string | null): RelationType -/** - * Gets the description string describing the #AtkRelationType `type`. - * @param type The #AtkRelationType whose name is required - * @returns the string describing the AtkRelationType - */ -function relation_type_get_name(type: RelationType): string | null -/** - * Associate `name` with a new #AtkRelationType - * @param name a name string - * @returns an #AtkRelationType associated with @name - */ -function relation_type_register(name: string | null): RelationType -/** - * Removes the specified focus tracker from the list of functions - * to be called when any object receives focus. - * @param tracker_id the id of the focus tracker to remove - */ -function remove_focus_tracker(tracker_id: number): void -/** - * `listener_id` is the value returned by #atk_add_global_event_listener - * when you registered that event listener. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. ATK implementors are discouraged from - * reimplementing this method. - * - * Toolkit implementor note: this method is not intended to be used by - * ATK implementors but by ATK consumers. - * - * Removes the specified event listener - * @param listener_id the id of the event listener to remove - */ -function remove_global_event_listener(listener_id: number): void -/** - * `listener_id` is the value returned by #atk_add_key_event_listener - * when you registered that event listener. - * - * Removes the specified event listener. - * @param listener_id the id of the event listener to remove - */ -function remove_key_event_listener(listener_id: number): void -/** - * Get the #AtkRole type corresponding to a rolew name. - * @param name a string which is the (non-localized) name of an ATK role. - * @returns the #AtkRole enumerated type corresponding to the specified name, or #ATK_ROLE_INVALID if no matching role is found. - */ -function role_for_name(name: string | null): Role -/** - * Gets the localized description string describing the #AtkRole `role`. - * @param role The #AtkRole whose localized name is required - * @returns the localized string describing the AtkRole - */ -function role_get_localized_name(role: Role): string | null -/** - * Gets the description string describing the #AtkRole `role`. - * @param role The #AtkRole whose name is required - * @returns the string describing the AtkRole - */ -function role_get_name(role: Role): string | null -/** - * Registers the role specified by `name`. `name` must be a meaningful - * name. So it should not be empty, or consisting on whitespaces. - * @param name a character string describing the new role. - * @returns an #AtkRole for the new role if added properly. ATK_ROLE_INVALID in case of error. - */ -function role_register(name: string | null): Role -/** - * Gets the #AtkStateType corresponding to the description string `name`. - * @param name a character string state name - * @returns an #AtkStateType corresponding to @name - */ -function state_type_for_name(name: string | null): StateType -/** - * Gets the description string describing the #AtkStateType `type`. - * @param type The #AtkStateType whose name is required - * @returns the string describing the AtkStateType - */ -function state_type_get_name(type: StateType): string | null -/** - * Register a new object state. - * @param name a character string describing the new state. - * @returns an #AtkState value for the new state. - */ -function state_type_register(name: string | null): StateType -/** - * Get the #AtkTextAttribute type corresponding to a text attribute name. - * @param name a string which is the (non-localized) name of an ATK text attribute. - * @returns the #AtkTextAttribute enumerated type corresponding to the specified name, or #ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute is found. - */ -function text_attribute_for_name(name: string | null): TextAttribute -/** - * Gets the name corresponding to the #AtkTextAttribute - * @param attr The #AtkTextAttribute whose name is required - * @returns a string containing the name; this string should not be freed - */ -function text_attribute_get_name(attr: TextAttribute): string | null -/** - * Gets the value for the index of the #AtkTextAttribute - * @param attr The #AtkTextAttribute for which a value is required - * @param index_ The index of the required value - * @returns a string containing the value; this string should not be freed; %NULL is returned if there are no values maintained for the attr value. - */ -function text_attribute_get_value(attr: TextAttribute, index_: number): string | null -/** - * Associate `name` with a new #AtkTextAttribute - * @param name a name string - * @returns an #AtkTextAttribute associated with @name - */ -function text_attribute_register(name: string | null): TextAttribute -/** - * Frees the memory associated with an array of AtkTextRange. It is assumed - * that the array was returned by the function atk_text_get_bounded_ranges - * and is NULL terminated. - * @param ranges A pointer to an array of #AtkTextRange which is to be freed. - */ -function text_free_ranges(ranges: TextRange[]): void -/** - * Gets the localized description string describing the #AtkValueType `value_type`. - * @param value_type The #AtkValueType whose localized name is required - * @returns the localized string describing the #AtkValueType - */ -function value_type_get_localized_name(value_type: ValueType): string | null -/** - * Gets the description string describing the #AtkValueType `value_type`. - * @param value_type The #AtkValueType whose name is required - * @returns the string describing the #AtkValueType - */ -function value_type_get_name(value_type: ValueType): string | null -/** - * A function which is called when an object emits a matching event, - * as used in #atk_add_focus_tracker. - * Currently the only events for which object-specific handlers are - * supported are events of type "focus:". Most clients of ATK will prefer to - * attach signal handlers for the various ATK signals instead. - * - * see [id`atk_add_focus_tracker]` - * @callback - * @param obj An #AtkObject instance for whom the callback will be called when the specified event (e.g. 'focus:') takes place. - */ -interface EventListener { - (obj: Object): void -} -/** - * An #AtkEventListenerInit function is a special function that is - * called in order to initialize the per-object event registration system - * used by #AtkEventListener, if any preparation is required. - * - * see [id`atk_focus_tracker_init]` - * @callback - */ -interface EventListenerInit { - (): void -} -/** - * The type of callback function used for - * atk_component_add_focus_handler() and - * atk_component_remove_focus_handler() - * @callback - * @param object the #AtkObject that receives/lose the focus - * @param focus_in TRUE if the object receives the focus - */ -interface FocusHandler { - (object: Object, focus_in: boolean): void -} -/** - * An AtkFunction is a function definition used for padding which has - * been added to class and interface structures to allow for expansion - * in the future. - * @callback - * @returns not used - */ -interface Function { - (): boolean -} -/** - * An #AtkKeySnoopFunc is a type of callback which is called whenever a key event occurs, - * if registered via atk_add_key_event_listener. It allows for pre-emptive - * interception of key events via the return code as described below. - * @callback - * @param event an AtkKeyEventStruct containing information about the key event for which notification is being given. - * @returns TRUE (nonzero) if the event emission should be stopped and the event discarded without being passed to the normal GUI recipient; FALSE (zero) if the event dispatch to the client application should proceed as normal. see [id@atk_add_key_event_listener] - */ -interface KeySnoopFunc { - (event: KeyEventStruct): number -} -/** - * An AtkPropertyChangeHandler is a function which is executed when an - * AtkObject's property changes value. It is specified in a call to - * atk_object_connect_property_change_handler(). - * @callback - * @param obj atkobject which property changes - * @param vals values changed - */ -interface PropertyChangeHandler { - (obj: Object, vals: PropertyValues): void -} -module Action { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Action { - - // Owm methods of Atk-1.0.Atk.Action - - /** - * Perform the specified action on the object. - * @param i the action index corresponding to the action to be performed - * @returns %TRUE if success, %FALSE otherwise - */ - do_action(i: number): boolean - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the keybinding which can be used to activate this action, if one - * exists. The string returned should contain localized, human-readable, - * key sequences as they would appear when displayed on screen. It must - * be in the format "mnemonic;sequence;shortcut". - * - * - The mnemonic key activates the object if it is presently enabled onscreen. - * This typically corresponds to the underlined letter within the widget. - * Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for - * a button. - * - The sequence is the full list of keys which invoke the action even if the - * relevant element is not currently shown on screen. For instance, for a menu - * item the sequence is the keybindings used to open the parent menus before - * invoking. The sequence string is colon-delimited. Example: "Alt+F:N" in a - * traditional "New..." menu item. - * - The shortcut, if it exists, will invoke the same action without showing - * the component or its enclosing menus or dialogs. Example: "Ctrl+N" in a - * traditional "New..." menu item. - * - * Example: For a traditional "New..." menu item, the expected return value - * would be: "N;Alt+F:N;Ctrl+N" for the English locale and "N;Alt+D:N;Strg+N" - * for the German locale. If, hypothetically, this menu item lacked a mnemonic, - * it would be represented by ";;Ctrl+N" and ";;Strg+N" respectively. - * @param i the action index corresponding to the action to be performed - * @returns the keybinding which can be used to activate this action, or %NULL if there is no keybinding for this action. - */ - get_keybinding(i: number): string | null - /** - * Returns the localized name of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_localized_name(i: number): string | null - /** - * Gets the number of accessible actions available on the object. - * If there are more than one, the first one is considered the - * "default" action of the object. - * @returns a the number of actions, or 0 if @action does not implement this interface. - */ - get_n_actions(): number - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - - // Own virtual methods of Atk-1.0.Atk.Action - - /** - * Perform the specified action on the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns %TRUE if success, %FALSE otherwise - */ - vfunc_do_action(i: number): boolean - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the keybinding which can be used to activate this action, if one - * exists. The string returned should contain localized, human-readable, - * key sequences as they would appear when displayed on screen. It must - * be in the format "mnemonic;sequence;shortcut". - * - * - The mnemonic key activates the object if it is presently enabled onscreen. - * This typically corresponds to the underlined letter within the widget. - * Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for - * a button. - * - The sequence is the full list of keys which invoke the action even if the - * relevant element is not currently shown on screen. For instance, for a menu - * item the sequence is the keybindings used to open the parent menus before - * invoking. The sequence string is colon-delimited. Example: "Alt+F:N" in a - * traditional "New..." menu item. - * - The shortcut, if it exists, will invoke the same action without showing - * the component or its enclosing menus or dialogs. Example: "Ctrl+N" in a - * traditional "New..." menu item. - * - * Example: For a traditional "New..." menu item, the expected return value - * would be: "N;Alt+F:N;Ctrl+N" for the English locale and "N;Alt+D:N;Strg+N" - * for the German locale. If, hypothetically, this menu item lacked a mnemonic, - * it would be represented by ";;Ctrl+N" and ";;Strg+N" respectively. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns the keybinding which can be used to activate this action, or %NULL if there is no keybinding for this action. - */ - vfunc_get_keybinding(i: number): string | null - /** - * Returns the localized name of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_localized_name(i: number): string | null - /** - * Gets the number of accessible actions available on the object. - * If there are more than one, the first one is considered the - * "default" action of the object. - * @virtual - * @returns a the number of actions, or 0 if @action does not implement this interface. - */ - vfunc_get_n_actions(): number - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - - // Class property signals of Atk-1.0.Atk.Action - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface provided by UI components - * which the user can activate/interact with. - * - * #AtkAction should be implemented by instances of #AtkObject classes - * with which the user can interact directly, i.e. buttons, - * checkboxes, scrollbars, e.g. components which are not "passive" - * providers of UI information. - * - * Exceptions: when the user interaction is already covered by another - * appropriate interface such as #AtkEditableText (insert/delete text, - * etc.) or #AtkValue (set value) then these actions should not be - * exposed by #AtkAction as well. - * - * Though most UI interactions on components should be invocable via - * keyboard as well as mouse, there will generally be a close mapping - * between "mouse actions" that are possible on a component and the - * AtkActions. Where mouse and keyboard actions are redundant in - * effect, #AtkAction should expose only one action rather than - * exposing redundant actions if possible. By convention we have been - * using "mouse centric" terminology for #AtkAction names. - * @interface - */ -class Action extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Action - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Action - - constructor(config?: Action.ConstructorProperties) - _init(config?: Action.ConstructorProperties): void -} - -module Component { - - // Signal callback interfaces - - /** - * Signal callback interface for `bounds-changed` - */ - interface BoundsChangedSignalCallback { - ($obj: Component, arg1: Rectangle): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Component { - - // Owm methods of Atk-1.0.Atk.Component - - /** - * Checks whether the specified point is within the extent of the `component`. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. In general there are little reason to - * re-implement it. - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns %TRUE or %FALSE indicating whether the specified point is within the extent of the @component or not - */ - contains(x: number, y: number, coord_type: CoordType): boolean - /** - * Returns the alpha value (i.e. the opacity) for this - * `component,` on a scale from 0 (fully transparent) to 1.0 - * (fully opaque). - * @returns An alpha value from 0 to 1.0, inclusive. - */ - get_alpha(): number - /** - * Gets the rectangle which gives the extent of the `component`. - * - * If the extent can not be obtained (e.g. a non-embedded plug or missing - * support), all of x, y, width, height are set to -1. - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - get_extents(coord_type: CoordType): [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - /** - * Gets the layer of the component. - * @returns an #AtkLayer which is the layer of the component - */ - get_layer(): Layer - /** - * Gets the zorder of the component. The value G_MININT will be returned - * if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW. - * @returns a gint which is the zorder of the component, i.e. the depth at which the component is shown in relation to other components in the same container. - */ - get_mdi_zorder(): number - /** - * Gets the position of `component` in the form of - * a point specifying `component'`s top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - get_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Gets the size of the `component` in terms of width and height. - * - * If the size can not be obtained (e.g. a non-embedded plug or missing - * support), width and height are set to -1. - */ - get_size(): [ /* width */ number, /* height */ number ] - /** - * Grabs focus for this `component`. - * @returns %TRUE if successful, %FALSE otherwise. - */ - grab_focus(): boolean - /** - * Gets a reference to the accessible child, if one exists, at the - * coordinate point specified by `x` and `y`. - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns a reference to the accessible child, if one exists - */ - ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null - /** - * Remove the handler specified by `handler_id` from the list of - * functions to be executed when this object receives focus events - * (in or out). - * @param handler_id the handler id of the focus handler to be removed from `component` - */ - remove_focus_handler(handler_id: number): void - /** - * Makes `component` visible on the screen by scrolling all necessary parents. - * - * Contrary to atk_component_set_position, this does not actually move - * `component` in its parent, this only makes the parents scroll so that the - * object shows up on the screen, given its current position within the parents. - * @param type specify where the object should be made visible. - * @returns whether scrolling was successful. - */ - scroll_to(type: ScrollType): boolean - /** - * Move the top-left of `component` to a given position of the screen by - * scrolling all necessary parents. - * @param coords specify whether coordinates are relative to the screen or to the parent object. - * @param x x-position where to scroll to - * @param y y-position where to scroll to - * @returns whether scrolling was successful. - */ - scroll_to_point(coords: CoordType, x: number, y: number): boolean - /** - * Sets the extents of `component`. - * @param x x coordinate - * @param y y coordinate - * @param width width to set for `component` - * @param height height to set for `component` - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns %TRUE or %FALSE whether the extents were set or not - */ - set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean - /** - * Sets the position of `component`. - * - * Contrary to atk_component_scroll_to, this does not trigger any scrolling, - * this just moves `component` in its parent. - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the component's top level window - * @returns %TRUE or %FALSE whether or not the position was set or not - */ - set_position(x: number, y: number, coord_type: CoordType): boolean - /** - * Set the size of the `component` in terms of width and height. - * @param width width to set for `component` - * @param height height to set for `component` - * @returns %TRUE or %FALSE whether the size was set or not - */ - set_size(width: number, height: number): boolean - - // Own virtual methods of Atk-1.0.Atk.Component - - vfunc_bounds_changed(bounds: Rectangle): void - /** - * Checks whether the specified point is within the extent of the `component`. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. In general there are little reason to - * re-implement it. - * @virtual - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns %TRUE or %FALSE indicating whether the specified point is within the extent of the @component or not - */ - vfunc_contains(x: number, y: number, coord_type: CoordType): boolean - /** - * Returns the alpha value (i.e. the opacity) for this - * `component,` on a scale from 0 (fully transparent) to 1.0 - * (fully opaque). - * @virtual - * @returns An alpha value from 0 to 1.0, inclusive. - */ - vfunc_get_alpha(): number - /** - * Gets the rectangle which gives the extent of the `component`. - * - * If the extent can not be obtained (e.g. a non-embedded plug or missing - * support), all of x, y, width, height are set to -1. - * @virtual - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - vfunc_get_extents(coord_type: CoordType): [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - /** - * Gets the layer of the component. - * @virtual - * @returns an #AtkLayer which is the layer of the component - */ - vfunc_get_layer(): Layer - /** - * Gets the zorder of the component. The value G_MININT will be returned - * if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW. - * @virtual - * @returns a gint which is the zorder of the component, i.e. the depth at which the component is shown in relation to other components in the same container. - */ - vfunc_get_mdi_zorder(): number - /** - * Gets the position of `component` in the form of - * a point specifying `component'`s top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * @virtual - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - vfunc_get_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Gets the size of the `component` in terms of width and height. - * - * If the size can not be obtained (e.g. a non-embedded plug or missing - * support), width and height are set to -1. - * @virtual - */ - vfunc_get_size(): [ /* width */ number, /* height */ number ] - /** - * Grabs focus for this `component`. - * @virtual - * @returns %TRUE if successful, %FALSE otherwise. - */ - vfunc_grab_focus(): boolean - /** - * Gets a reference to the accessible child, if one exists, at the - * coordinate point specified by `x` and `y`. - * @virtual - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns a reference to the accessible child, if one exists - */ - vfunc_ref_accessible_at_point(x: number, y: number, coord_type: CoordType): Object | null - /** - * Remove the handler specified by `handler_id` from the list of - * functions to be executed when this object receives focus events - * (in or out). - * @virtual - * @param handler_id the handler id of the focus handler to be removed from `component` - */ - vfunc_remove_focus_handler(handler_id: number): void - /** - * Makes `component` visible on the screen by scrolling all necessary parents. - * - * Contrary to atk_component_set_position, this does not actually move - * `component` in its parent, this only makes the parents scroll so that the - * object shows up on the screen, given its current position within the parents. - * @virtual - * @param type specify where the object should be made visible. - * @returns whether scrolling was successful. - */ - vfunc_scroll_to(type: ScrollType): boolean - /** - * Move the top-left of `component` to a given position of the screen by - * scrolling all necessary parents. - * @virtual - * @param coords specify whether coordinates are relative to the screen or to the parent object. - * @param x x-position where to scroll to - * @param y y-position where to scroll to - * @returns whether scrolling was successful. - */ - vfunc_scroll_to_point(coords: CoordType, x: number, y: number): boolean - /** - * Sets the extents of `component`. - * @virtual - * @param x x coordinate - * @param y y coordinate - * @param width width to set for `component` - * @param height height to set for `component` - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - * @returns %TRUE or %FALSE whether the extents were set or not - */ - vfunc_set_extents(x: number, y: number, width: number, height: number, coord_type: CoordType): boolean - /** - * Sets the position of `component`. - * - * Contrary to atk_component_scroll_to, this does not trigger any scrolling, - * this just moves `component` in its parent. - * @virtual - * @param x x coordinate - * @param y y coordinate - * @param coord_type specifies whether the coordinates are relative to the screen or to the component's top level window - * @returns %TRUE or %FALSE whether or not the position was set or not - */ - vfunc_set_position(x: number, y: number, coord_type: CoordType): boolean - /** - * Set the size of the `component` in terms of width and height. - * @virtual - * @param width width to set for `component` - * @param height height to set for `component` - * @returns %TRUE or %FALSE whether the size was set or not - */ - vfunc_set_size(width: number, height: number): boolean - - // Own signals of Atk-1.0.Atk.Component - - connect(sigName: "bounds-changed", callback: Component.BoundsChangedSignalCallback): number - connect_after(sigName: "bounds-changed", callback: Component.BoundsChangedSignalCallback): number - emit(sigName: "bounds-changed", arg1: Rectangle, ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Component - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface provided by UI components - * which occupy a physical area on the screen. - * which the user can activate/interact with. - * - * #AtkComponent should be implemented by most if not all UI elements - * with an actual on-screen presence, i.e. components which can be - * said to have a screen-coordinate bounding box. Virtually all - * widgets will need to have #AtkComponent implementations provided - * for their corresponding #AtkObject class. In short, only UI - * elements which are *not* GUI elements will omit this ATK interface. - * - * A possible exception might be textual information with a - * transparent background, in which case text glyph bounding box - * information is provided by #AtkText. - * @interface - */ -class Component extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Component - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Component - - constructor(config?: Component.ConstructorProperties) - _init(config?: Component.ConstructorProperties): void -} - -module Document { - - // Signal callback interfaces - - /** - * Signal callback interface for `load-complete` - */ - interface LoadCompleteSignalCallback { - ($obj: Document): void - } - - /** - * Signal callback interface for `load-stopped` - */ - interface LoadStoppedSignalCallback { - ($obj: Document): void - } - - /** - * Signal callback interface for `page-changed` - */ - interface PageChangedSignalCallback { - ($obj: Document, page_number: number): void - } - - /** - * Signal callback interface for `reload` - */ - interface ReloadSignalCallback { - ($obj: Document): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Document { - - // Owm methods of Atk-1.0.Atk.Document - - /** - * Retrieves the value of the given `attribute_name` inside `document`. - * @param attribute_name a character string representing the name of the attribute whose value is being queried. - * @returns a string value associated with the named attribute for this document, or %NULL if a value for @attribute_name has not been specified for this document. - */ - get_attribute_value(attribute_name: string | null): string | null - /** - * Gets an AtkAttributeSet which describes document-wide - * attributes as name-value pairs. - * @returns An AtkAttributeSet containing the explicitly set name-value-pair attributes associated with this document as a whole. - */ - get_attributes(): AttributeSet - /** - * Retrieves the current page number inside `document`. - * @returns the current page number inside @document, or -1 if not implemented, not know by the implementor, or irrelevant. - */ - get_current_page_number(): number - /** - * Gets a %gpointer that points to an instance of the DOM. It is - * up to the caller to check atk_document_get_type to determine - * how to cast this pointer. - * @returns a %gpointer that points to an instance of the DOM. - */ - get_document(): any | null - /** - * Gets a string indicating the document type. - * @returns a string indicating the document type - */ - get_document_type(): string | null - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of the content of this document instance. Individual - * text substrings or images within this document may have - * a different locale, see atk_text_get_attributes and - * atk_image_get_image_locale. - * @returns a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of the document content as a whole, or NULL if the document content does not specify a locale. - */ - get_locale(): string | null - /** - * Retrieves the total number of pages inside `document`. - * @returns total page count of @document, or -1 if not implemented, not know by the implementor or irrelevant. - */ - get_page_count(): number - /** - * Sets the value for the given `attribute_name` inside `document`. - * @param attribute_name a character string representing the name of the attribute whose value is being set. - * @param attribute_value a string value to be associated with `attribute_name`. - * @returns %TRUE if @attribute_value is successfully associated with @attribute_name for this @document, and %FALSE if if the document does not allow the attribute to be modified - */ - set_attribute_value(attribute_name: string | null, attribute_value: string | null): boolean - - // Own virtual methods of Atk-1.0.Atk.Document - - /** - * Retrieves the current page number inside `document`. - * @virtual - * @returns the current page number inside @document, or -1 if not implemented, not know by the implementor, or irrelevant. - */ - vfunc_get_current_page_number(): number - /** - * Gets a %gpointer that points to an instance of the DOM. It is - * up to the caller to check atk_document_get_type to determine - * how to cast this pointer. - * @virtual - * @returns a %gpointer that points to an instance of the DOM. - */ - vfunc_get_document(): any | null - /** - * Retrieves the value of the given `attribute_name` inside `document`. - * @virtual - * @param attribute_name a character string representing the name of the attribute whose value is being queried. - * @returns a string value associated with the named attribute for this document, or %NULL if a value for @attribute_name has not been specified for this document. - */ - vfunc_get_document_attribute_value(attribute_name: string | null): string | null - /** - * Gets an AtkAttributeSet which describes document-wide - * attributes as name-value pairs. - * @virtual - * @returns An AtkAttributeSet containing the explicitly set name-value-pair attributes associated with this document as a whole. - */ - vfunc_get_document_attributes(): AttributeSet - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of the content of this document instance. Individual - * text substrings or images within this document may have - * a different locale, see atk_text_get_attributes and - * atk_image_get_image_locale. - * @virtual - * @returns a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of the document content as a whole, or NULL if the document content does not specify a locale. - */ - vfunc_get_document_locale(): string | null - /** - * Gets a string indicating the document type. - * @virtual - * @returns a string indicating the document type - */ - vfunc_get_document_type(): string | null - /** - * Retrieves the total number of pages inside `document`. - * @virtual - * @returns total page count of @document, or -1 if not implemented, not know by the implementor or irrelevant. - */ - vfunc_get_page_count(): number - /** - * Sets the value for the given `attribute_name` inside `document`. - * @virtual - * @param attribute_name a character string representing the name of the attribute whose value is being set. - * @param attribute_value a string value to be associated with `attribute_name`. - * @returns %TRUE if @attribute_value is successfully associated with @attribute_name for this @document, and %FALSE if if the document does not allow the attribute to be modified - */ - vfunc_set_document_attribute(attribute_name: string | null, attribute_value: string | null): boolean - - // Own signals of Atk-1.0.Atk.Document - - connect(sigName: "load-complete", callback: Document.LoadCompleteSignalCallback): number - connect_after(sigName: "load-complete", callback: Document.LoadCompleteSignalCallback): number - emit(sigName: "load-complete", ...args: any[]): void - connect(sigName: "load-stopped", callback: Document.LoadStoppedSignalCallback): number - connect_after(sigName: "load-stopped", callback: Document.LoadStoppedSignalCallback): number - emit(sigName: "load-stopped", ...args: any[]): void - connect(sigName: "page-changed", callback: Document.PageChangedSignalCallback): number - connect_after(sigName: "page-changed", callback: Document.PageChangedSignalCallback): number - emit(sigName: "page-changed", page_number: number, ...args: any[]): void - connect(sigName: "reload", callback: Document.ReloadSignalCallback): number - connect_after(sigName: "reload", callback: Document.ReloadSignalCallback): number - emit(sigName: "reload", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Document - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface which represents the toplevel - * container for document content. - * - * The AtkDocument interface should be supported by any object whose - * content is a representation or view of a document. The AtkDocument - * interface should appear on the toplevel container for the document - * content; however AtkDocument instances may be nested (i.e. an - * AtkDocument may be a descendant of another AtkDocument) in those - * cases where one document contains "embedded content" which can - * reasonably be considered a document in its own right. - * @interface - */ -class Document extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Document - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Document - - constructor(config?: Document.ConstructorProperties) - _init(config?: Document.ConstructorProperties): void -} - -module EditableText { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface EditableText { - - // Owm methods of Atk-1.0.Atk.EditableText - - /** - * Copy text from `start_pos` up to, but not including `end_pos` - * to the clipboard. - * @param start_pos start position - * @param end_pos end position - */ - copy_text(start_pos: number, end_pos: number): void - /** - * Copy text from `start_pos` up to, but not including `end_pos` - * to the clipboard and then delete from the widget. - * @param start_pos start position - * @param end_pos end position - */ - cut_text(start_pos: number, end_pos: number): void - /** - * Delete text `start_pos` up to, but not including `end_pos`. - * @param start_pos start position - * @param end_pos end position - */ - delete_text(start_pos: number, end_pos: number): void - /** - * Insert text at a given position. - * @param string the text to insert - * @param length the length of text to insert, in bytes - * @param position The caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text. - */ - insert_text(string: string | null, length: number, position: number): void - /** - * Paste text from clipboard to specified `position`. - * @param position position to paste - */ - paste_text(position: number): void - /** - * Sets the attributes for a specified range. See the ATK_ATTRIBUTE - * macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes - * that can be set. Note that other attributes that do not have corresponding - * ATK_ATTRIBUTE macros may also be set for certain text widgets. - * @param attrib_set an #AtkAttributeSet - * @param start_offset start of range in which to set attributes - * @param end_offset end of range in which to set attributes - * @returns %TRUE if attributes successfully set for the specified range, otherwise %FALSE - */ - set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean - /** - * Set text contents of `text`. - * @param string string to set for text contents of `text` - */ - set_text_contents(string: string | null): void - - // Own virtual methods of Atk-1.0.Atk.EditableText - - /** - * Copy text from `start_pos` up to, but not including `end_pos` - * to the clipboard. - * @virtual - * @param start_pos start position - * @param end_pos end position - */ - vfunc_copy_text(start_pos: number, end_pos: number): void - /** - * Copy text from `start_pos` up to, but not including `end_pos` - * to the clipboard and then delete from the widget. - * @virtual - * @param start_pos start position - * @param end_pos end position - */ - vfunc_cut_text(start_pos: number, end_pos: number): void - /** - * Delete text `start_pos` up to, but not including `end_pos`. - * @virtual - * @param start_pos start position - * @param end_pos end position - */ - vfunc_delete_text(start_pos: number, end_pos: number): void - /** - * Insert text at a given position. - * @virtual - * @param string the text to insert - * @param length the length of text to insert, in bytes - * @param position The caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text. - */ - vfunc_insert_text(string: string | null, length: number, position: number): void - /** - * Paste text from clipboard to specified `position`. - * @virtual - * @param position position to paste - */ - vfunc_paste_text(position: number): void - /** - * Sets the attributes for a specified range. See the ATK_ATTRIBUTE - * macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes - * that can be set. Note that other attributes that do not have corresponding - * ATK_ATTRIBUTE macros may also be set for certain text widgets. - * @virtual - * @param attrib_set an #AtkAttributeSet - * @param start_offset start of range in which to set attributes - * @param end_offset end of range in which to set attributes - * @returns %TRUE if attributes successfully set for the specified range, otherwise %FALSE - */ - vfunc_set_run_attributes(attrib_set: AttributeSet, start_offset: number, end_offset: number): boolean - /** - * Set text contents of `text`. - * @virtual - * @param string string to set for text contents of `text` - */ - vfunc_set_text_contents(string: string | null): void - - // Class property signals of Atk-1.0.Atk.EditableText - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented by components containing user-editable text content. - * - * #AtkEditableText should be implemented by UI components which - * contain text which the user can edit, via the #AtkObject - * corresponding to that component (see #AtkObject). - * - * #AtkEditableText is a subclass of #AtkText, and as such, an object - * which implements #AtkEditableText is by definition an #AtkText - * implementor as well. - * - * See [iface`AtkText]` - * @interface - */ -class EditableText extends GObject.Object { - - // Own properties of Atk-1.0.Atk.EditableText - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.EditableText - - constructor(config?: EditableText.ConstructorProperties) - _init(config?: EditableText.ConstructorProperties): void -} - -module HyperlinkImpl { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface HyperlinkImpl { - - // Owm methods of Atk-1.0.Atk.HyperlinkImpl - - /** - * Gets the hyperlink associated with this object. - * @returns an AtkHyperlink object which points to this implementing AtkObject. - */ - get_hyperlink(): Hyperlink - - // Own virtual methods of Atk-1.0.Atk.HyperlinkImpl - - /** - * Gets the hyperlink associated with this object. - * @virtual - * @returns an AtkHyperlink object which points to this implementing AtkObject. - */ - vfunc_get_hyperlink(): Hyperlink - - // Class property signals of Atk-1.0.Atk.HyperlinkImpl - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A queryable interface which allows AtkHyperlink instances - * associated with an AtkObject to be obtained. AtkHyperlinkImpl - * corresponds to AT-SPI's Hyperlink interface, and differs from - * AtkHyperlink in that AtkHyperlink is an object type, rather than an - * interface, and thus cannot be directly queried. FTW - * @interface - */ -class HyperlinkImpl extends GObject.Object { - - // Own properties of Atk-1.0.Atk.HyperlinkImpl - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.HyperlinkImpl - - constructor(config?: HyperlinkImpl.ConstructorProperties) - _init(config?: HyperlinkImpl.ConstructorProperties): void -} - -module Hypertext { - - // Signal callback interfaces - - /** - * Signal callback interface for `link-selected` - */ - interface LinkSelectedSignalCallback { - ($obj: Hypertext, arg1: number): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Hypertext { - - // Owm methods of Atk-1.0.Atk.Hypertext - - /** - * Gets the link in this hypertext document at index - * `link_index` - * @param link_index an integer specifying the desired link - * @returns the link in this hypertext document at index @link_index - */ - get_link(link_index: number): Hyperlink - /** - * Gets the index into the array of hyperlinks that is associated with - * the character specified by `char_index`. - * @param char_index a character index - * @returns an index into the array of hyperlinks in @hypertext, or -1 if there is no hyperlink associated with this character. - */ - get_link_index(char_index: number): number - /** - * Gets the number of links within this hypertext document. - * @returns the number of links within this hypertext document - */ - get_n_links(): number - - // Own virtual methods of Atk-1.0.Atk.Hypertext - - /** - * Gets the link in this hypertext document at index - * `link_index` - * @virtual - * @param link_index an integer specifying the desired link - * @returns the link in this hypertext document at index @link_index - */ - vfunc_get_link(link_index: number): Hyperlink - /** - * Gets the index into the array of hyperlinks that is associated with - * the character specified by `char_index`. - * @virtual - * @param char_index a character index - * @returns an index into the array of hyperlinks in @hypertext, or -1 if there is no hyperlink associated with this character. - */ - vfunc_get_link_index(char_index: number): number - /** - * Gets the number of links within this hypertext document. - * @virtual - * @returns the number of links within this hypertext document - */ - vfunc_get_n_links(): number - vfunc_link_selected(link_index: number): void - - // Own signals of Atk-1.0.Atk.Hypertext - - connect(sigName: "link-selected", callback: Hypertext.LinkSelectedSignalCallback): number - connect_after(sigName: "link-selected", callback: Hypertext.LinkSelectedSignalCallback): number - emit(sigName: "link-selected", arg1: number, ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Hypertext - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface which provides standard mechanism for manipulating hyperlinks. - * - * An interface used for objects which implement linking between - * multiple resource or content locations, or multiple 'markers' - * within a single document. A Hypertext instance is associated with - * one or more Hyperlinks, which are associated with particular - * offsets within the Hypertext's included content. While this - * interface is derived from Text, there is no requirement that - * Hypertext instances have textual content; they may implement Image - * as well, and Hyperlinks need not have non-zero text offsets. - * @interface - */ -class Hypertext extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Hypertext - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Hypertext - - constructor(config?: Hypertext.ConstructorProperties) - _init(config?: Hypertext.ConstructorProperties): void -} - -module Image { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Image { - - // Owm methods of Atk-1.0.Atk.Image - - /** - * Get a textual description of this image. - * @returns a string representing the image description - */ - get_image_description(): string | null - /** - * Retrieves the locale identifier associated to the #AtkImage. - * @returns a string corresponding to the POSIX `LC_MESSAGES` locale used by the image description, or %NULL if the image does not specify a locale. - */ - get_image_locale(): string | null - /** - * Gets the position of the image in the form of a point specifying the - * images top-left corner. - * - * If the position can not be obtained (e.g. missing support), x and y are set - * to -1. - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - get_image_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Get the width and height in pixels for the specified image. - * The values of `width` and `height` are returned as -1 if the - * values cannot be obtained (for instance, if the object is not onscreen). - * - * If the size can not be obtained (e.g. missing support), x and y are set - * to -1. - */ - get_image_size(): [ /* width */ number, /* height */ number ] - /** - * Sets the textual description for this image. - * @param description a string description to set for `image` - * @returns boolean TRUE, or FALSE if operation could not be completed. - */ - set_image_description(description: string | null): boolean - - // Own virtual methods of Atk-1.0.Atk.Image - - /** - * Get a textual description of this image. - * @virtual - * @returns a string representing the image description - */ - vfunc_get_image_description(): string | null - /** - * Retrieves the locale identifier associated to the #AtkImage. - * @virtual - * @returns a string corresponding to the POSIX `LC_MESSAGES` locale used by the image description, or %NULL if the image does not specify a locale. - */ - vfunc_get_image_locale(): string | null - /** - * Gets the position of the image in the form of a point specifying the - * images top-left corner. - * - * If the position can not be obtained (e.g. missing support), x and y are set - * to -1. - * @virtual - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - vfunc_get_image_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Get the width and height in pixels for the specified image. - * The values of `width` and `height` are returned as -1 if the - * values cannot be obtained (for instance, if the object is not onscreen). - * - * If the size can not be obtained (e.g. missing support), x and y are set - * to -1. - * @virtual - */ - vfunc_get_image_size(): [ /* width */ number, /* height */ number ] - /** - * Sets the textual description for this image. - * @virtual - * @param description a string description to set for `image` - * @returns boolean TRUE, or FALSE if operation could not be completed. - */ - vfunc_set_image_description(description: string | null): boolean - - // Class property signals of Atk-1.0.Atk.Image - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK Interface implemented by components - * which expose image or pixmap content on-screen. - * - * #AtkImage should be implemented by #AtkObject subtypes on behalf of - * components which display image/pixmap information onscreen, and - * which provide information (other than just widget borders, etc.) - * via that image content. For instance, icons, buttons with icons, - * toolbar elements, and image viewing panes typically should - * implement #AtkImage. - * - * #AtkImage primarily provides two types of information: coordinate - * information (useful for screen review mode of screenreaders, and - * for use by onscreen magnifiers), and descriptive information. The - * descriptive information is provided for alternative, text-only - * presentation of the most significant information present in the - * image. - * @interface - */ -class Image extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Image - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Image - - constructor(config?: Image.ConstructorProperties) - _init(config?: Image.ConstructorProperties): void -} - -module ImplementorIface { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface ImplementorIface { - - // Class property signals of Atk-1.0.Atk.ImplementorIface - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The AtkImplementor interface is implemented by objects for which - * AtkObject peers may be obtained via calls to - * iface->(ref_accessible)(implementor); - * @interface - */ -class ImplementorIface extends GObject.Object { - - // Own properties of Atk-1.0.Atk.ImplementorIface - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.ImplementorIface - - constructor(config?: ImplementorIface.ConstructorProperties) - _init(config?: ImplementorIface.ConstructorProperties): void -} - -module Selection { - - // Signal callback interfaces - - /** - * Signal callback interface for `selection-changed` - */ - interface SelectionChangedSignalCallback { - ($obj: Selection): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Selection { - - // Owm methods of Atk-1.0.Atk.Selection - - /** - * Adds the specified accessible child of the object to the - * object's selection. - * @param i a #gint specifying the child index. - * @returns TRUE if success, FALSE otherwise. - */ - add_selection(i: number): boolean - /** - * Clears the selection in the object so that no children in the object - * are selected. - * @returns TRUE if success, FALSE otherwise. - */ - clear_selection(): boolean - /** - * Gets the number of accessible children currently selected. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @returns a gint representing the number of items selected, or 0 if @selection does not implement this interface. - */ - get_selection_count(): number - /** - * Determines if the current child of this object is selected - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @param i a #gint specifying the child index. - * @returns a gboolean representing the specified child is selected, or 0 if @selection does not implement this interface. - */ - is_child_selected(i: number): boolean - /** - * Gets a reference to the accessible object representing the specified - * selected child of the object. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @param i a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - * @returns an #AtkObject representing the selected accessible, or %NULL if @selection does not implement this interface. - */ - ref_selection(i: number): Object | null - /** - * Removes the specified child of the object from the object's selection. - * @param i a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - * @returns TRUE if success, FALSE otherwise. - */ - remove_selection(i: number): boolean - /** - * Causes every child of the object to be selected if the object - * supports multiple selections. - * @returns TRUE if success, FALSE otherwise. - */ - select_all_selection(): boolean - - // Own virtual methods of Atk-1.0.Atk.Selection - - /** - * Adds the specified accessible child of the object to the - * object's selection. - * @virtual - * @param i a #gint specifying the child index. - * @returns TRUE if success, FALSE otherwise. - */ - vfunc_add_selection(i: number): boolean - /** - * Clears the selection in the object so that no children in the object - * are selected. - * @virtual - * @returns TRUE if success, FALSE otherwise. - */ - vfunc_clear_selection(): boolean - /** - * Gets the number of accessible children currently selected. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @virtual - * @returns a gint representing the number of items selected, or 0 if @selection does not implement this interface. - */ - vfunc_get_selection_count(): number - /** - * Determines if the current child of this object is selected - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @virtual - * @param i a #gint specifying the child index. - * @returns a gboolean representing the specified child is selected, or 0 if @selection does not implement this interface. - */ - vfunc_is_child_selected(i: number): boolean - /** - * Gets a reference to the accessible object representing the specified - * selected child of the object. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * @virtual - * @param i a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - * @returns an #AtkObject representing the selected accessible, or %NULL if @selection does not implement this interface. - */ - vfunc_ref_selection(i: number): Object | null - /** - * Removes the specified child of the object from the object's selection. - * @virtual - * @param i a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - * @returns TRUE if success, FALSE otherwise. - */ - vfunc_remove_selection(i: number): boolean - /** - * Causes every child of the object to be selected if the object - * supports multiple selections. - * @virtual - * @returns TRUE if success, FALSE otherwise. - */ - vfunc_select_all_selection(): boolean - vfunc_selection_changed(): void - - // Own signals of Atk-1.0.Atk.Selection - - connect(sigName: "selection-changed", callback: Selection.SelectionChangedSignalCallback): number - connect_after(sigName: "selection-changed", callback: Selection.SelectionChangedSignalCallback): number - emit(sigName: "selection-changed", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Selection - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented by container objects whose #AtkObject children can be selected. - * - * #AtkSelection should be implemented by UI components with children - * which are exposed by #atk_object_ref_child and - * #atk_object_get_n_children, if the use of the parent UI component - * ordinarily involves selection of one or more of the objects - * corresponding to those #AtkObject children - for example, - * selectable lists. - * - * Note that other types of "selection" (for instance text selection) - * are accomplished a other ATK interfaces - #AtkSelection is limited - * to the selection/deselection of children. - * @interface - */ -class Selection extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Selection - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Selection - - constructor(config?: Selection.ConstructorProperties) - _init(config?: Selection.ConstructorProperties): void -} - -module StreamableContent { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface StreamableContent { - - // Owm methods of Atk-1.0.Atk.StreamableContent - - /** - * Gets the character string of the specified mime type. The first mime - * type is at position 0, the second at position 1, and so on. - * @param i a gint representing the position of the mime type starting from 0 - * @returns a gchar* representing the specified mime type; the caller should not free the character string. - */ - get_mime_type(i: number): string | null - /** - * Gets the number of mime types supported by this object. - * @returns a gint which is the number of mime types supported by the object. - */ - get_n_mime_types(): number - /** - * Gets the content in the specified mime type. - * @param mime_type a gchar* representing the mime type - * @returns A #GIOChannel which contains the content in the specified mime type. - */ - get_stream(mime_type: string | null): GLib.IOChannel - /** - * Get a string representing a URI in IETF standard format - * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content - * may be streamed in the specified mime-type, if one is available. - * If mime_type is NULL, the URI for the default (and possibly only) mime-type is - * returned. - * - * Note that it is possible for get_uri to return NULL but for - * get_stream to work nonetheless, since not all GIOChannels connect to URIs. - * @param mime_type a gchar* representing the mime type, or NULL to request a URI for the default mime type. - * @returns Returns a string representing a URI, or %NULL if no corresponding URI can be constructed. - */ - get_uri(mime_type: string | null): string | null - - // Own virtual methods of Atk-1.0.Atk.StreamableContent - - /** - * Gets the character string of the specified mime type. The first mime - * type is at position 0, the second at position 1, and so on. - * @virtual - * @param i a gint representing the position of the mime type starting from 0 - * @returns a gchar* representing the specified mime type; the caller should not free the character string. - */ - vfunc_get_mime_type(i: number): string | null - /** - * Gets the number of mime types supported by this object. - * @virtual - * @returns a gint which is the number of mime types supported by the object. - */ - vfunc_get_n_mime_types(): number - /** - * Gets the content in the specified mime type. - * @virtual - * @param mime_type a gchar* representing the mime type - * @returns A #GIOChannel which contains the content in the specified mime type. - */ - vfunc_get_stream(mime_type: string | null): GLib.IOChannel - /** - * Get a string representing a URI in IETF standard format - * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content - * may be streamed in the specified mime-type, if one is available. - * If mime_type is NULL, the URI for the default (and possibly only) mime-type is - * returned. - * - * Note that it is possible for get_uri to return NULL but for - * get_stream to work nonetheless, since not all GIOChannels connect to URIs. - * @virtual - * @param mime_type a gchar* representing the mime type, or NULL to request a URI for the default mime type. - * @returns Returns a string representing a URI, or %NULL if no corresponding URI can be constructed. - */ - vfunc_get_uri(mime_type: string | null): string | null - - // Class property signals of Atk-1.0.Atk.StreamableContent - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface which provides access to streamable content. - * - * An interface whereby an object allows its backing content to be - * streamed to clients. Typical implementors would be images or - * icons, HTML content, or multimedia display/rendering widgets. - * - * Negotiation of content type is allowed. Clients may examine the - * backing data and transform, convert, or parse the content in order - * to present it in an alternate form to end-users. - * - * The AtkStreamableContent interface is particularly useful for - * saving, printing, or post-processing entire documents, or for - * persisting alternate views of a document. If document content - * itself is being serialized, stored, or converted, then use of the - * AtkStreamableContent interface can help address performance - * issues. Unlike most ATK interfaces, this interface is not strongly - * tied to the current user-agent view of the a particular document, - * but may in some cases give access to the underlying model data. - * @interface - */ -class StreamableContent extends GObject.Object { - - // Own properties of Atk-1.0.Atk.StreamableContent - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.StreamableContent - - constructor(config?: StreamableContent.ConstructorProperties) - _init(config?: StreamableContent.ConstructorProperties): void -} - -module Table { - - // Signal callback interfaces - - /** - * Signal callback interface for `column-deleted` - */ - interface ColumnDeletedSignalCallback { - ($obj: Table, arg1: number, arg2: number): void - } - - /** - * Signal callback interface for `column-inserted` - */ - interface ColumnInsertedSignalCallback { - ($obj: Table, arg1: number, arg2: number): void - } - - /** - * Signal callback interface for `column-reordered` - */ - interface ColumnReorderedSignalCallback { - ($obj: Table): void - } - - /** - * Signal callback interface for `model-changed` - */ - interface ModelChangedSignalCallback { - ($obj: Table): void - } - - /** - * Signal callback interface for `row-deleted` - */ - interface RowDeletedSignalCallback { - ($obj: Table, arg1: number, arg2: number): void - } - - /** - * Signal callback interface for `row-inserted` - */ - interface RowInsertedSignalCallback { - ($obj: Table, arg1: number, arg2: number): void - } - - /** - * Signal callback interface for `row-reordered` - */ - interface RowReorderedSignalCallback { - ($obj: Table): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Table { - - // Owm methods of Atk-1.0.Atk.Table - - /** - * Adds the specified `column` to the selection. - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column was successfully added to the selection, or 0 if value does not implement this interface. - */ - add_column_selection(column: number): boolean - /** - * Adds the specified `row` to the selection. - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if row was successfully added to selection, or 0 if value does not implement this interface. - */ - add_row_selection(row: number): boolean - /** - * Gets the caption for the `table`. - * @returns a AtkObject* representing the table caption, or %NULL if value does not implement this interface. - */ - get_caption(): Object | null - /** - * Gets a #gint representing the column at the specified `index_`. - * @param index_ a #gint representing an index in `table` - * @returns a gint representing the column at the specified index, or -1 if the table does not implement this method. - */ - get_column_at_index(index_: number): number - /** - * Gets the description text of the specified `column` in the table - * @param column a #gint representing a column in `table` - * @returns a gchar* representing the column description, or %NULL if value does not implement this interface. - */ - get_column_description(column: number): string | null - /** - * Gets the number of columns occupied by the accessible object - * at the specified `row` and `column` in the `table`. - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gint representing the column extent at specified position, or 0 if value does not implement this interface. - */ - get_column_extent_at(row: number, column: number): number - /** - * Gets the column header of a specified column in an accessible table. - * @param column a #gint representing a column in the table - * @returns a AtkObject* representing the specified column header, or %NULL if value does not implement this interface. - */ - get_column_header(column: number): Object | null - /** - * Gets a #gint representing the index at the specified `row` and - * `column`. - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a #gint representing the index at specified position. The value -1 is returned if the object at row,column is not a child of table or table does not implement this interface. - */ - get_index_at(row: number, column: number): number - /** - * Gets the number of columns in the table. - * @returns a gint representing the number of columns, or 0 if value does not implement this interface. - */ - get_n_columns(): number - /** - * Gets the number of rows in the table. - * @returns a gint representing the number of rows, or 0 if value does not implement this interface. - */ - get_n_rows(): number - /** - * Gets a #gint representing the row at the specified `index_`. - * @param index_ a #gint representing an index in `table` - * @returns a gint representing the row at the specified index, or -1 if the table does not implement this method. - */ - get_row_at_index(index_: number): number - /** - * Gets the description text of the specified row in the table - * @param row a #gint representing a row in `table` - * @returns a gchar* representing the row description, or %NULL if value does not implement this interface. - */ - get_row_description(row: number): string | null - /** - * Gets the number of rows occupied by the accessible object - * at a specified `row` and `column` in the `table`. - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gint representing the row extent at specified position, or 0 if value does not implement this interface. - */ - get_row_extent_at(row: number, column: number): number - /** - * Gets the row header of a specified row in an accessible table. - * @param row a #gint representing a row in the table - * @returns a AtkObject* representing the specified row header, or %NULL if value does not implement this interface. - */ - get_row_header(row: number): Object | null - /** - * Gets the selected columns of the table by initializing **selected with - * the selected column numbers. This array should be freed by the caller. - * @param selected a #gint** that is to contain the selected columns numbers - * @returns a gint representing the number of selected columns, or %0 if value does not implement this interface. - */ - get_selected_columns(selected: number): number - /** - * Gets the selected rows of the table by initializing **selected with - * the selected row numbers. This array should be freed by the caller. - * @param selected a #gint** that is to contain the selected row numbers - * @returns a gint representing the number of selected rows, or zero if value does not implement this interface. - */ - get_selected_rows(selected: number): number - /** - * Gets the summary description of the table. - * @returns a AtkObject* representing a summary description of the table, or zero if value does not implement this interface. - */ - get_summary(): Object - /** - * Gets a boolean value indicating whether the specified `column` - * is selected - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column is selected, or 0 if value does not implement this interface. - */ - is_column_selected(column: number): boolean - /** - * Gets a boolean value indicating whether the specified `row` - * is selected - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if the row is selected, or 0 if value does not implement this interface. - */ - is_row_selected(row: number): boolean - /** - * Gets a boolean value indicating whether the accessible object - * at the specified `row` and `column` is selected - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the cell is selected, or 0 if value does not implement this interface. - */ - is_selected(row: number, column: number): boolean - /** - * Get a reference to the table cell at `row,` `column`. This cell - * should implement the interface #AtkTableCell - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns an #AtkObject representing the referred to accessible - */ - ref_at(row: number, column: number): Object - /** - * Adds the specified `column` to the selection. - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column was successfully removed from the selection, or 0 if value does not implement this interface. - */ - remove_column_selection(column: number): boolean - /** - * Removes the specified `row` from the selection. - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if the row was successfully removed from the selection, or 0 if value does not implement this interface. - */ - remove_row_selection(row: number): boolean - /** - * Sets the caption for the table. - * @param caption a #AtkObject representing the caption to set for `table` - */ - set_caption(caption: Object): void - /** - * Sets the description text for the specified `column` of the `table`. - * @param column a #gint representing a column in `table` - * @param description a #gchar representing the description text to set for the specified `column` of the `table` - */ - set_column_description(column: number, description: string | null): void - /** - * Sets the specified column header to `header`. - * @param column a #gint representing a column in `table` - * @param header an #AtkTable - */ - set_column_header(column: number, header: Object): void - /** - * Sets the description text for the specified `row` of `table`. - * @param row a #gint representing a row in `table` - * @param description a #gchar representing the description text to set for the specified `row` of `table` - */ - set_row_description(row: number, description: string | null): void - /** - * Sets the specified row header to `header`. - * @param row a #gint representing a row in `table` - * @param header an #AtkTable - */ - set_row_header(row: number, header: Object): void - /** - * Sets the summary description of the table. - * @param accessible an #AtkObject representing the summary description to set for `table` - */ - set_summary(accessible: Object): void - - // Own virtual methods of Atk-1.0.Atk.Table - - /** - * Adds the specified `column` to the selection. - * @virtual - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column was successfully added to the selection, or 0 if value does not implement this interface. - */ - vfunc_add_column_selection(column: number): boolean - /** - * Adds the specified `row` to the selection. - * @virtual - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if row was successfully added to selection, or 0 if value does not implement this interface. - */ - vfunc_add_row_selection(row: number): boolean - vfunc_column_deleted(column: number, num_deleted: number): void - vfunc_column_inserted(column: number, num_inserted: number): void - vfunc_column_reordered(): void - /** - * Gets the caption for the `table`. - * @virtual - * @returns a AtkObject* representing the table caption, or %NULL if value does not implement this interface. - */ - vfunc_get_caption(): Object | null - /** - * Gets a #gint representing the column at the specified `index_`. - * @virtual - * @param index_ a #gint representing an index in `table` - * @returns a gint representing the column at the specified index, or -1 if the table does not implement this method. - */ - vfunc_get_column_at_index(index_: number): number - /** - * Gets the description text of the specified `column` in the table - * @virtual - * @param column a #gint representing a column in `table` - * @returns a gchar* representing the column description, or %NULL if value does not implement this interface. - */ - vfunc_get_column_description(column: number): string | null - /** - * Gets the number of columns occupied by the accessible object - * at the specified `row` and `column` in the `table`. - * @virtual - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gint representing the column extent at specified position, or 0 if value does not implement this interface. - */ - vfunc_get_column_extent_at(row: number, column: number): number - /** - * Gets the column header of a specified column in an accessible table. - * @virtual - * @param column a #gint representing a column in the table - * @returns a AtkObject* representing the specified column header, or %NULL if value does not implement this interface. - */ - vfunc_get_column_header(column: number): Object | null - /** - * Gets a #gint representing the index at the specified `row` and - * `column`. - * @virtual - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a #gint representing the index at specified position. The value -1 is returned if the object at row,column is not a child of table or table does not implement this interface. - */ - vfunc_get_index_at(row: number, column: number): number - /** - * Gets the number of columns in the table. - * @virtual - * @returns a gint representing the number of columns, or 0 if value does not implement this interface. - */ - vfunc_get_n_columns(): number - /** - * Gets the number of rows in the table. - * @virtual - * @returns a gint representing the number of rows, or 0 if value does not implement this interface. - */ - vfunc_get_n_rows(): number - /** - * Gets a #gint representing the row at the specified `index_`. - * @virtual - * @param index_ a #gint representing an index in `table` - * @returns a gint representing the row at the specified index, or -1 if the table does not implement this method. - */ - vfunc_get_row_at_index(index_: number): number - /** - * Gets the description text of the specified row in the table - * @virtual - * @param row a #gint representing a row in `table` - * @returns a gchar* representing the row description, or %NULL if value does not implement this interface. - */ - vfunc_get_row_description(row: number): string | null - /** - * Gets the number of rows occupied by the accessible object - * at a specified `row` and `column` in the `table`. - * @virtual - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gint representing the row extent at specified position, or 0 if value does not implement this interface. - */ - vfunc_get_row_extent_at(row: number, column: number): number - /** - * Gets the row header of a specified row in an accessible table. - * @virtual - * @param row a #gint representing a row in the table - * @returns a AtkObject* representing the specified row header, or %NULL if value does not implement this interface. - */ - vfunc_get_row_header(row: number): Object | null - /** - * Gets the selected columns of the table by initializing **selected with - * the selected column numbers. This array should be freed by the caller. - * @virtual - * @param selected a #gint** that is to contain the selected columns numbers - * @returns a gint representing the number of selected columns, or %0 if value does not implement this interface. - */ - vfunc_get_selected_columns(selected: number): number - /** - * Gets the selected rows of the table by initializing **selected with - * the selected row numbers. This array should be freed by the caller. - * @virtual - * @param selected a #gint** that is to contain the selected row numbers - * @returns a gint representing the number of selected rows, or zero if value does not implement this interface. - */ - vfunc_get_selected_rows(selected: number): number - /** - * Gets the summary description of the table. - * @virtual - * @returns a AtkObject* representing a summary description of the table, or zero if value does not implement this interface. - */ - vfunc_get_summary(): Object - /** - * Gets a boolean value indicating whether the specified `column` - * is selected - * @virtual - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column is selected, or 0 if value does not implement this interface. - */ - vfunc_is_column_selected(column: number): boolean - /** - * Gets a boolean value indicating whether the specified `row` - * is selected - * @virtual - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if the row is selected, or 0 if value does not implement this interface. - */ - vfunc_is_row_selected(row: number): boolean - /** - * Gets a boolean value indicating whether the accessible object - * at the specified `row` and `column` is selected - * @virtual - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the cell is selected, or 0 if value does not implement this interface. - */ - vfunc_is_selected(row: number, column: number): boolean - vfunc_model_changed(): void - /** - * Get a reference to the table cell at `row,` `column`. This cell - * should implement the interface #AtkTableCell - * @virtual - * @param row a #gint representing a row in `table` - * @param column a #gint representing a column in `table` - * @returns an #AtkObject representing the referred to accessible - */ - vfunc_ref_at(row: number, column: number): Object - /** - * Adds the specified `column` to the selection. - * @virtual - * @param column a #gint representing a column in `table` - * @returns a gboolean representing if the column was successfully removed from the selection, or 0 if value does not implement this interface. - */ - vfunc_remove_column_selection(column: number): boolean - /** - * Removes the specified `row` from the selection. - * @virtual - * @param row a #gint representing a row in `table` - * @returns a gboolean representing if the row was successfully removed from the selection, or 0 if value does not implement this interface. - */ - vfunc_remove_row_selection(row: number): boolean - vfunc_row_deleted(row: number, num_deleted: number): void - vfunc_row_inserted(row: number, num_inserted: number): void - vfunc_row_reordered(): void - /** - * Sets the caption for the table. - * @virtual - * @param caption a #AtkObject representing the caption to set for `table` - */ - vfunc_set_caption(caption: Object): void - /** - * Sets the description text for the specified `column` of the `table`. - * @virtual - * @param column a #gint representing a column in `table` - * @param description a #gchar representing the description text to set for the specified `column` of the `table` - */ - vfunc_set_column_description(column: number, description: string | null): void - /** - * Sets the specified column header to `header`. - * @virtual - * @param column a #gint representing a column in `table` - * @param header an #AtkTable - */ - vfunc_set_column_header(column: number, header: Object): void - /** - * Sets the description text for the specified `row` of `table`. - * @virtual - * @param row a #gint representing a row in `table` - * @param description a #gchar representing the description text to set for the specified `row` of `table` - */ - vfunc_set_row_description(row: number, description: string | null): void - /** - * Sets the specified row header to `header`. - * @virtual - * @param row a #gint representing a row in `table` - * @param header an #AtkTable - */ - vfunc_set_row_header(row: number, header: Object): void - /** - * Sets the summary description of the table. - * @virtual - * @param accessible an #AtkObject representing the summary description to set for `table` - */ - vfunc_set_summary(accessible: Object): void - - // Own signals of Atk-1.0.Atk.Table - - connect(sigName: "column-deleted", callback: Table.ColumnDeletedSignalCallback): number - connect_after(sigName: "column-deleted", callback: Table.ColumnDeletedSignalCallback): number - emit(sigName: "column-deleted", arg1: number, arg2: number, ...args: any[]): void - connect(sigName: "column-inserted", callback: Table.ColumnInsertedSignalCallback): number - connect_after(sigName: "column-inserted", callback: Table.ColumnInsertedSignalCallback): number - emit(sigName: "column-inserted", arg1: number, arg2: number, ...args: any[]): void - connect(sigName: "column-reordered", callback: Table.ColumnReorderedSignalCallback): number - connect_after(sigName: "column-reordered", callback: Table.ColumnReorderedSignalCallback): number - emit(sigName: "column-reordered", ...args: any[]): void - connect(sigName: "model-changed", callback: Table.ModelChangedSignalCallback): number - connect_after(sigName: "model-changed", callback: Table.ModelChangedSignalCallback): number - emit(sigName: "model-changed", ...args: any[]): void - connect(sigName: "row-deleted", callback: Table.RowDeletedSignalCallback): number - connect_after(sigName: "row-deleted", callback: Table.RowDeletedSignalCallback): number - emit(sigName: "row-deleted", arg1: number, arg2: number, ...args: any[]): void - connect(sigName: "row-inserted", callback: Table.RowInsertedSignalCallback): number - connect_after(sigName: "row-inserted", callback: Table.RowInsertedSignalCallback): number - emit(sigName: "row-inserted", arg1: number, arg2: number, ...args: any[]): void - connect(sigName: "row-reordered", callback: Table.RowReorderedSignalCallback): number - connect_after(sigName: "row-reordered", callback: Table.RowReorderedSignalCallback): number - emit(sigName: "row-reordered", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Table - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented for UI components which contain tabular or row/column information. - * - * #AtkTable should be implemented by components which present - * elements ordered via rows and columns. It may also be used to - * present tree-structured information if the nodes of the trees can - * be said to contain multiple "columns". Individual elements of an - * #AtkTable are typically referred to as "cells". Those cells should - * implement the interface #AtkTableCell, but #Atk doesn't require - * them to be direct children of the current #AtkTable. They can be - * grand-children, grand-grand-children etc. #AtkTable provides the - * API needed to get a individual cell based on the row and column - * numbers. - * - * Children of #AtkTable are frequently "lightweight" objects, that - * is, they may not have backing widgets in the host UI toolkit. They - * are therefore often transient. - * - * Since tables are often very complex, #AtkTable includes provision - * for offering simplified summary information, as well as row and - * column headers and captions. Headers and captions are #AtkObjects - * which may implement other interfaces (#AtkText, #AtkImage, etc.) as - * appropriate. #AtkTable summaries may themselves be (simplified) - * #AtkTables, etc. - * - * Note for implementors: in the past, #AtkTable required that all the - * cells should be direct children of #AtkTable, and provided some - * index based methods to request the cells. The practice showed that - * that forcing made #AtkTable implementation complex, and hard to - * expose other kind of children, like rows or captions. Right now, - * index-based methods are deprecated. - * @interface - */ -class Table extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Table - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Table - - constructor(config?: Table.ConstructorProperties) - _init(config?: Table.ConstructorProperties): void -} - -module TableCell { - - // Constructor properties interface - - interface ConstructorProperties extends Object.ConstructorProperties, GObject.Object.ConstructorProperties { - } - -} - -interface TableCell extends Object { - - // Owm methods of Atk-1.0.Atk.TableCell - - /** - * Returns the column headers as an array of cell accessibles. - * @returns a GPtrArray of AtkObjects representing the column header cells. - */ - get_column_header_cells(): Object[] - /** - * Returns the number of columns occupied by this cell accessible. - * @returns a gint representing the number of columns occupied by this cell, or 0 if the cell does not implement this method. - */ - get_column_span(): number - /** - * Retrieves the tabular position of this cell. - * @returns TRUE if successful; FALSE otherwise. - */ - get_position(): [ /* returnType */ boolean, /* row */ number, /* column */ number ] - /** - * Gets the row and column indexes and span of this cell accessible. - * - * Note: If the object does not implement this function, then, by default, atk - * will implement this function by calling get_row_span and get_column_span - * on the object. - * @returns TRUE if successful; FALSE otherwise. - */ - get_row_column_span(): [ /* returnType */ boolean, /* row */ number, /* column */ number, /* row_span */ number, /* column_span */ number ] - /** - * Returns the row headers as an array of cell accessibles. - * @returns a GPtrArray of AtkObjects representing the row header cells. - */ - get_row_header_cells(): Object[] - /** - * Returns the number of rows occupied by this cell accessible. - * @returns a gint representing the number of rows occupied by this cell, or 0 if the cell does not implement this method. - */ - get_row_span(): number - /** - * Returns a reference to the accessible of the containing table. - * @returns the atk object for the containing table. - */ - get_table(): Object - - // Own virtual methods of Atk-1.0.Atk.TableCell - - /** - * Returns the column headers as an array of cell accessibles. - * @virtual - * @returns a GPtrArray of AtkObjects representing the column header cells. - */ - vfunc_get_column_header_cells(): Object[] - /** - * Returns the number of columns occupied by this cell accessible. - * @virtual - * @returns a gint representing the number of columns occupied by this cell, or 0 if the cell does not implement this method. - */ - vfunc_get_column_span(): number - /** - * Retrieves the tabular position of this cell. - * @virtual - * @returns TRUE if successful; FALSE otherwise. - */ - vfunc_get_position(): [ /* returnType */ boolean, /* row */ number, /* column */ number ] - /** - * Gets the row and column indexes and span of this cell accessible. - * - * Note: If the object does not implement this function, then, by default, atk - * will implement this function by calling get_row_span and get_column_span - * on the object. - * @virtual - * @returns TRUE if successful; FALSE otherwise. - */ - vfunc_get_row_column_span(): [ /* returnType */ boolean, /* row */ number, /* column */ number, /* row_span */ number, /* column_span */ number ] - /** - * Returns the row headers as an array of cell accessibles. - * @virtual - * @returns a GPtrArray of AtkObjects representing the row header cells. - */ - vfunc_get_row_header_cells(): Object[] - /** - * Returns the number of rows occupied by this cell accessible. - * @virtual - * @returns a gint representing the number of rows occupied by this cell, or 0 if the cell does not implement this method. - */ - vfunc_get_row_span(): number - /** - * Returns a reference to the accessible of the containing table. - * @virtual - * @returns the atk object for the containing table. - */ - vfunc_get_table(): Object - - // Class property signals of Atk-1.0.Atk.TableCell - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: TableCell, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented for a cell inside a two-dimentional #AtkTable - * - * Being #AtkTable a component which present elements ordered via rows - * and columns, an #AtkTableCell is the interface which each of those - * elements, so "cells" should implement. - * - * See [iface`AtkTable]` - * @interface - */ -class TableCell extends GObject.Object { - - // Own properties of Atk-1.0.Atk.TableCell - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.TableCell - - constructor(config?: TableCell.ConstructorProperties) - _init(config?: TableCell.ConstructorProperties): void -} - -module Text { - - // Signal callback interfaces - - /** - * Signal callback interface for `text-attributes-changed` - */ - interface TextAttributesChangedSignalCallback { - ($obj: Text): void - } - - /** - * Signal callback interface for `text-caret-moved` - */ - interface TextCaretMovedSignalCallback { - ($obj: Text, arg1: number): void - } - - /** - * Signal callback interface for `text-changed` - */ - interface TextChangedSignalCallback { - ($obj: Text, arg1: number, arg2: number): void - } - - /** - * Signal callback interface for `text-insert` - */ - interface TextInsertSignalCallback { - ($obj: Text, arg1: number, arg2: number, arg3: string | null): void - } - - /** - * Signal callback interface for `text-remove` - */ - interface TextRemoveSignalCallback { - ($obj: Text, arg1: number, arg2: number, arg3: string | null): void - } - - /** - * Signal callback interface for `text-selection-changed` - */ - interface TextSelectionChangedSignalCallback { - ($obj: Text): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Text { - - // Owm methods of Atk-1.0.Atk.Text - - /** - * Adds a selection bounded by the specified offsets. - * @param start_offset the starting character offset of the selected region - * @param end_offset the offset of the first character after the selected region. - * @returns %TRUE if successful, %FALSE otherwise - */ - add_selection(start_offset: number, end_offset: number): boolean - /** - * Get the ranges of text in the specified bounding box. - * @param rect An AtkTextRectangle giving the dimensions of the bounding box. - * @param coord_type Specify whether coordinates are relative to the screen or widget window. - * @param x_clip_type Specify the horizontal clip type. - * @param y_clip_type Specify the vertical clip type. - * @returns Array of AtkTextRange. The last element of the array returned by this function will be NULL. - */ - get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[] - /** - * Gets the offset of the position of the caret (cursor). - * @returns the character offset of the position of the caret or -1 if the caret is not located inside the element or in the case of any other failure. - */ - get_caret_offset(): number - /** - * Gets the specified text. - * @param offset a character offset within `text` - * @returns the character at @offset or 0 in the case of failure. - */ - get_character_at_offset(offset: number): string - /** - * Gets the character count. - * @returns the number of characters or -1 in case of failure. - */ - get_character_count(): number - /** - * If the extent can not be obtained (e.g. missing support), all of x, y, width, - * height are set to -1. - * - * Get the bounding box containing the glyph representing the character at - * a particular text offset. - * @param offset The offset of the text character for which bounding information is required. - * @param coords specify whether coordinates are relative to the screen or widget window - */ - get_character_extents(offset: number, coords: CoordType): [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - /** - * Creates an #AtkAttributeSet which consists of the default values of - * attributes for the text. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * @returns an #AtkAttributeSet which contains the default text attributes for this #AtkText. This #AtkAttributeSet should be freed by a call to atk_attribute_set_free(). - */ - get_default_attributes(): AttributeSet - /** - * Gets the number of selected regions. - * @returns The number of selected regions, or -1 in the case of failure. - */ - get_n_selections(): number - /** - * Gets the offset of the character located at coordinates `x` and `y`. `x` and `y` - * are interpreted as being relative to the screen or this widget's window - * depending on `coords`. - * @param x screen x-position of character - * @param y screen y-position of character - * @param coords specify whether coordinates are relative to the screen or widget window - * @returns the offset to the character which is located at the specified @x and @y coordinates of -1 in case of failure. - */ - get_offset_at_point(x: number, y: number, coords: CoordType): number - /** - * Get the bounding box for text within the specified range. - * - * If the extents can not be obtained (e.g. or missing support), the rectangle - * fields are set to -1. - * @param start_offset The offset of the first text character for which boundary information is required. - * @param end_offset The offset of the text character after the last character for which boundary information is required. - * @param coord_type Specify whether coordinates are relative to the screen or widget window. - */ - get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): /* rect */ TextRectangle - /** - * Creates an #AtkAttributeSet which consists of the attributes explicitly - * set at the position `offset` in the text. `start_offset` and `end_offset` are - * set to the start and end of the range around `offset` where the attributes are - * invariant. Note that `end_offset` is the offset of the first character - * after the range. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * @param offset the character offset at which to get the attributes, -1 means the offset of the character to be inserted at the caret location. - * @returns an #AtkAttributeSet which contains the attributes explicitly set at @offset. This #AtkAttributeSet should be freed by a call to atk_attribute_set_free(). - */ - get_run_attributes(offset: number): [ /* returnType */ AttributeSet, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the text from the specified selection. - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @returns a newly allocated string containing the selected text. Use g_free() to free the returned string. - */ - get_selection(selection_num: number): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets a portion of the text exposed through an #AtkText according to a given `offset` - * and a specific `granularity,` along with the start and end offsets defining the - * boundaries of such a portion of text. - * - * If `granularity` is ATK_TEXT_GRANULARITY_CHAR the character at the - * offset is returned. - * - * If `granularity` is ATK_TEXT_GRANULARITY_WORD the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If `granularity` is ATK_TEXT_GRANULARITY_SENTENCE the returned string - * is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If `granularity` is ATK_TEXT_GRANULARITY_LINE the returned string - * is from the line start at or before the offset to the line - * start after the offset. - * - * If `granularity` is ATK_TEXT_GRANULARITY_PARAGRAPH the returned string - * is from the start of the paragraph at or before the offset to the start - * of the following paragraph after the offset. - * @param offset position - * @param granularity An #AtkTextGranularity - * @returns a newly allocated string containing the text at the @offset bounded by the specified @granularity. Use g_free() to free the returned string. Returns %NULL if the offset is invalid or no implementation is available. - */ - get_string_at_offset(offset: number, granularity: TextGranularity): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * @param start_offset a starting character offset within `text` - * @param end_offset an ending character offset within `text,` or -1 for the end of the string. - * @returns a newly allocated string containing the text from @start_offset up to, but not including @end_offset. Use g_free() to free the returned string. - */ - get_text(start_offset: number, end_offset: number): string | null - /** - * Gets the specified text. - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text after @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - get_text_after_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * - * If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the - * offset is returned. - * - * If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned - * string is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned - * string is from the line start at or before the offset to the line - * start after the offset. - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text at @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - get_text_at_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text before @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - get_text_before_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Removes the specified selection. - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @returns %TRUE if successful, %FALSE otherwise - */ - remove_selection(selection_num: number): boolean - /** - * Makes a substring of `text` visible on the screen by scrolling all necessary parents. - * @param start_offset start offset in the `text` - * @param end_offset end offset in the `text,` or -1 for the end of the text. - * @param type specify where the object should be made visible. - * @returns whether scrolling was successful. - */ - scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean - /** - * Move the top-left of a substring of `text` to a given position of the screen - * by scrolling all necessary parents. - * @param start_offset start offset in the `text` - * @param end_offset end offset in the `text,` or -1 for the end of the text. - * @param coords specify whether coordinates are relative to the screen or to the parent object. - * @param x x-position where to scroll to - * @param y y-position where to scroll to - * @returns whether scrolling was successful. - */ - scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean - /** - * Sets the caret (cursor) position to the specified `offset`. - * - * In the case of rich-text content, this method should either grab focus - * or move the sequential focus navigation starting point (if the application - * supports this concept) as if the user had clicked on the new caret position. - * Typically, this means that the target of this operation is the node containing - * the new caret position or one of its ancestors. In other words, after this - * method is called, if the user advances focus, it should move to the first - * focusable node following the new caret position. - * - * Calling this method should also scroll the application viewport in a way - * that matches the behavior of the application's typical caret motion or tab - * navigation as closely as possible. This also means that if the application's - * caret motion or focus navigation does not trigger a scroll operation, this - * method should not trigger one either. If the application does not have a caret - * motion or focus navigation operation, this method should try to scroll the new - * caret position into view while minimizing unnecessary scroll motion. - * @param offset the character offset of the new caret position - * @returns %TRUE if successful, %FALSE otherwise. - */ - set_caret_offset(offset: number): boolean - /** - * Changes the start and end offset of the specified selection. - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @param start_offset the new starting character offset of the selection - * @param end_offset the new end position of (e.g. offset immediately past) the selection - * @returns %TRUE if successful, %FALSE otherwise - */ - set_selection(selection_num: number, start_offset: number, end_offset: number): boolean - - // Own virtual methods of Atk-1.0.Atk.Text - - /** - * Adds a selection bounded by the specified offsets. - * @virtual - * @param start_offset the starting character offset of the selected region - * @param end_offset the offset of the first character after the selected region. - * @returns %TRUE if successful, %FALSE otherwise - */ - vfunc_add_selection(start_offset: number, end_offset: number): boolean - /** - * Get the ranges of text in the specified bounding box. - * @virtual - * @param rect An AtkTextRectangle giving the dimensions of the bounding box. - * @param coord_type Specify whether coordinates are relative to the screen or widget window. - * @param x_clip_type Specify the horizontal clip type. - * @param y_clip_type Specify the vertical clip type. - * @returns Array of AtkTextRange. The last element of the array returned by this function will be NULL. - */ - vfunc_get_bounded_ranges(rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType): TextRange[] - /** - * Gets the offset of the position of the caret (cursor). - * @virtual - * @returns the character offset of the position of the caret or -1 if the caret is not located inside the element or in the case of any other failure. - */ - vfunc_get_caret_offset(): number - /** - * Gets the specified text. - * @virtual - * @param offset a character offset within `text` - * @returns the character at @offset or 0 in the case of failure. - */ - vfunc_get_character_at_offset(offset: number): string - /** - * Gets the character count. - * @virtual - * @returns the number of characters or -1 in case of failure. - */ - vfunc_get_character_count(): number - /** - * If the extent can not be obtained (e.g. missing support), all of x, y, width, - * height are set to -1. - * - * Get the bounding box containing the glyph representing the character at - * a particular text offset. - * @virtual - * @param offset The offset of the text character for which bounding information is required. - * @param coords specify whether coordinates are relative to the screen or widget window - */ - vfunc_get_character_extents(offset: number, coords: CoordType): [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - /** - * Creates an #AtkAttributeSet which consists of the default values of - * attributes for the text. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * @virtual - * @returns an #AtkAttributeSet which contains the default text attributes for this #AtkText. This #AtkAttributeSet should be freed by a call to atk_attribute_set_free(). - */ - vfunc_get_default_attributes(): AttributeSet - /** - * Gets the number of selected regions. - * @virtual - * @returns The number of selected regions, or -1 in the case of failure. - */ - vfunc_get_n_selections(): number - /** - * Gets the offset of the character located at coordinates `x` and `y`. `x` and `y` - * are interpreted as being relative to the screen or this widget's window - * depending on `coords`. - * @virtual - * @param x screen x-position of character - * @param y screen y-position of character - * @param coords specify whether coordinates are relative to the screen or widget window - * @returns the offset to the character which is located at the specified @x and @y coordinates of -1 in case of failure. - */ - vfunc_get_offset_at_point(x: number, y: number, coords: CoordType): number - /** - * Get the bounding box for text within the specified range. - * - * If the extents can not be obtained (e.g. or missing support), the rectangle - * fields are set to -1. - * @virtual - * @param start_offset The offset of the first text character for which boundary information is required. - * @param end_offset The offset of the text character after the last character for which boundary information is required. - * @param coord_type Specify whether coordinates are relative to the screen or widget window. - */ - vfunc_get_range_extents(start_offset: number, end_offset: number, coord_type: CoordType): /* rect */ TextRectangle - /** - * Creates an #AtkAttributeSet which consists of the attributes explicitly - * set at the position `offset` in the text. `start_offset` and `end_offset` are - * set to the start and end of the range around `offset` where the attributes are - * invariant. Note that `end_offset` is the offset of the first character - * after the range. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * @virtual - * @param offset the character offset at which to get the attributes, -1 means the offset of the character to be inserted at the caret location. - * @returns an #AtkAttributeSet which contains the attributes explicitly set at @offset. This #AtkAttributeSet should be freed by a call to atk_attribute_set_free(). - */ - vfunc_get_run_attributes(offset: number): [ /* returnType */ AttributeSet, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the text from the specified selection. - * @virtual - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @returns a newly allocated string containing the selected text. Use g_free() to free the returned string. - */ - vfunc_get_selection(selection_num: number): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets a portion of the text exposed through an #AtkText according to a given `offset` - * and a specific `granularity,` along with the start and end offsets defining the - * boundaries of such a portion of text. - * - * If `granularity` is ATK_TEXT_GRANULARITY_CHAR the character at the - * offset is returned. - * - * If `granularity` is ATK_TEXT_GRANULARITY_WORD the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If `granularity` is ATK_TEXT_GRANULARITY_SENTENCE the returned string - * is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If `granularity` is ATK_TEXT_GRANULARITY_LINE the returned string - * is from the line start at or before the offset to the line - * start after the offset. - * - * If `granularity` is ATK_TEXT_GRANULARITY_PARAGRAPH the returned string - * is from the start of the paragraph at or before the offset to the start - * of the following paragraph after the offset. - * @virtual - * @param offset position - * @param granularity An #AtkTextGranularity - * @returns a newly allocated string containing the text at the @offset bounded by the specified @granularity. Use g_free() to free the returned string. Returns %NULL if the offset is invalid or no implementation is available. - */ - vfunc_get_string_at_offset(offset: number, granularity: TextGranularity): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * @virtual - * @param start_offset a starting character offset within `text` - * @param end_offset an ending character offset within `text,` or -1 for the end of the string. - * @returns a newly allocated string containing the text from @start_offset up to, but not including @end_offset. Use g_free() to free the returned string. - */ - vfunc_get_text(start_offset: number, end_offset: number): string | null - /** - * Gets the specified text. - * @virtual - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text after @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - vfunc_get_text_after_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * - * If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the - * offset is returned. - * - * If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned - * string is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned - * string is from the line start at or before the offset to the line - * start after the offset. - * @virtual - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text at @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - vfunc_get_text_at_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Gets the specified text. - * @virtual - * @param offset position - * @param boundary_type An #AtkTextBoundary - * @returns a newly allocated string containing the text before @offset bounded by the specified @boundary_type. Use g_free() to free the returned string. - */ - vfunc_get_text_before_offset(offset: number, boundary_type: TextBoundary): [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - /** - * Removes the specified selection. - * @virtual - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @returns %TRUE if successful, %FALSE otherwise - */ - vfunc_remove_selection(selection_num: number): boolean - /** - * Makes a substring of `text` visible on the screen by scrolling all necessary parents. - * @virtual - * @param start_offset start offset in the `text` - * @param end_offset end offset in the `text,` or -1 for the end of the text. - * @param type specify where the object should be made visible. - * @returns whether scrolling was successful. - */ - vfunc_scroll_substring_to(start_offset: number, end_offset: number, type: ScrollType): boolean - /** - * Move the top-left of a substring of `text` to a given position of the screen - * by scrolling all necessary parents. - * @virtual - * @param start_offset start offset in the `text` - * @param end_offset end offset in the `text,` or -1 for the end of the text. - * @param coords specify whether coordinates are relative to the screen or to the parent object. - * @param x x-position where to scroll to - * @param y y-position where to scroll to - * @returns whether scrolling was successful. - */ - vfunc_scroll_substring_to_point(start_offset: number, end_offset: number, coords: CoordType, x: number, y: number): boolean - /** - * Sets the caret (cursor) position to the specified `offset`. - * - * In the case of rich-text content, this method should either grab focus - * or move the sequential focus navigation starting point (if the application - * supports this concept) as if the user had clicked on the new caret position. - * Typically, this means that the target of this operation is the node containing - * the new caret position or one of its ancestors. In other words, after this - * method is called, if the user advances focus, it should move to the first - * focusable node following the new caret position. - * - * Calling this method should also scroll the application viewport in a way - * that matches the behavior of the application's typical caret motion or tab - * navigation as closely as possible. This also means that if the application's - * caret motion or focus navigation does not trigger a scroll operation, this - * method should not trigger one either. If the application does not have a caret - * motion or focus navigation operation, this method should try to scroll the new - * caret position into view while minimizing unnecessary scroll motion. - * @virtual - * @param offset the character offset of the new caret position - * @returns %TRUE if successful, %FALSE otherwise. - */ - vfunc_set_caret_offset(offset: number): boolean - /** - * Changes the start and end offset of the specified selection. - * @virtual - * @param selection_num The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - * @param start_offset the new starting character offset of the selection - * @param end_offset the new end position of (e.g. offset immediately past) the selection - * @returns %TRUE if successful, %FALSE otherwise - */ - vfunc_set_selection(selection_num: number, start_offset: number, end_offset: number): boolean - vfunc_text_attributes_changed(): void - vfunc_text_caret_moved(location: number): void - vfunc_text_changed(position: number, length: number): void - vfunc_text_selection_changed(): void - - // Own signals of Atk-1.0.Atk.Text - - connect(sigName: "text-attributes-changed", callback: Text.TextAttributesChangedSignalCallback): number - connect_after(sigName: "text-attributes-changed", callback: Text.TextAttributesChangedSignalCallback): number - emit(sigName: "text-attributes-changed", ...args: any[]): void - connect(sigName: "text-caret-moved", callback: Text.TextCaretMovedSignalCallback): number - connect_after(sigName: "text-caret-moved", callback: Text.TextCaretMovedSignalCallback): number - emit(sigName: "text-caret-moved", arg1: number, ...args: any[]): void - connect(sigName: "text-changed", callback: Text.TextChangedSignalCallback): number - connect_after(sigName: "text-changed", callback: Text.TextChangedSignalCallback): number - emit(sigName: "text-changed", arg1: number, arg2: number, ...args: any[]): void - connect(sigName: "text-insert", callback: Text.TextInsertSignalCallback): number - connect_after(sigName: "text-insert", callback: Text.TextInsertSignalCallback): number - emit(sigName: "text-insert", arg1: number, arg2: number, arg3: string | null, ...args: any[]): void - connect(sigName: "text-remove", callback: Text.TextRemoveSignalCallback): number - connect_after(sigName: "text-remove", callback: Text.TextRemoveSignalCallback): number - emit(sigName: "text-remove", arg1: number, arg2: number, arg3: string | null, ...args: any[]): void - connect(sigName: "text-selection-changed", callback: Text.TextSelectionChangedSignalCallback): number - connect_after(sigName: "text-selection-changed", callback: Text.TextSelectionChangedSignalCallback): number - emit(sigName: "text-selection-changed", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Text - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented by components with text content. - * - * #AtkText should be implemented by #AtkObjects on behalf of widgets - * that have text content which is either attributed or otherwise - * non-trivial. #AtkObjects whose text content is simple, - * unattributed, and very brief may expose that content via - * #atk_object_get_name instead; however if the text is editable, - * multi-line, typically longer than three or four words, attributed, - * selectable, or if the object already uses the 'name' ATK property - * for other information, the #AtkText interface should be used to - * expose the text content. In the case of editable text content, - * #AtkEditableText (a subtype of the #AtkText interface) should be - * implemented instead. - * - * #AtkText provides not only traversal facilities and change - * notification for text content, but also caret tracking and glyph - * bounding box calculations. Note that the text strings are exposed - * as UTF-8, and are therefore potentially multi-byte, and - * caret-to-byte offset mapping makes no assumptions about the - * character length; also bounding box glyph-to-offset mapping may be - * complex for languages which use ligatures. - * @interface - */ -class Text extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Text - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Text - - constructor(config?: Text.ConstructorProperties) - _init(config?: Text.ConstructorProperties): void - /** - * Frees the memory associated with an array of AtkTextRange. It is assumed - * that the array was returned by the function atk_text_get_bounded_ranges - * and is NULL terminated. - * @param ranges A pointer to an array of #AtkTextRange which is to be freed. - */ - static free_ranges(ranges: TextRange[]): void -} - -module Value { - - // Signal callback interfaces - - /** - * Signal callback interface for `value-changed` - */ - interface ValueChangedSignalCallback { - ($obj: Value, value: number, text: string | null): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Value { - - // Owm methods of Atk-1.0.Atk.Value - - /** - * Gets the value of this object. - */ - get_current_value(): /* value */ any - /** - * Gets the minimum increment by which the value of this object may be - * changed. If zero, the minimum increment is undefined, which may - * mean that it is limited only by the floating point precision of the - * platform. - * @returns the minimum increment by which the value of this object may be changed. zero if undefined. - */ - get_increment(): number - /** - * Gets the maximum value of this object. - */ - get_maximum_value(): /* value */ any - /** - * Gets the minimum increment by which the value of this object may be changed. If zero, - * the minimum increment is undefined, which may mean that it is limited only by the - * floating point precision of the platform. - */ - get_minimum_increment(): /* value */ any - /** - * Gets the minimum value of this object. - */ - get_minimum_value(): /* value */ any - /** - * Gets the range of this object. - * @returns a newly allocated #AtkRange that represents the minimum, maximum and descriptor (if available) of @obj. NULL if that range is not defined. - */ - get_range(): Range | null - /** - * Gets the list of subranges defined for this object. See #AtkValue - * introduction for examples of subranges and when to expose them. - * @returns an #GSList of #AtkRange which each of the subranges defined for this object. Free the returns list with g_slist_free(). - */ - get_sub_ranges(): Range[] - /** - * Gets the current value and the human readable text alternative of - * `obj`. `text` is a newly created string, that must be freed by the - * caller. Can be NULL if no descriptor is available. - */ - get_value_and_text(): [ /* value */ number, /* text */ string | null ] - /** - * Sets the value of this object. - * @param value a #GValue which is the desired new accessible value. - * @returns %TRUE if new value is successfully set, %FALSE otherwise. - */ - set_current_value(value: any): boolean - /** - * Sets the value of this object. - * - * This method is intended to provide a way to change the value of the - * object. In any case, it is possible that the value can't be - * modified (ie: a read-only component). If the value changes due this - * call, it is possible that the text could change, and will trigger - * an #AtkValue::value-changed signal emission. - * - * Note for implementors: the deprecated atk_value_set_current_value() - * method returned TRUE or FALSE depending if the value was assigned - * or not. In the practice several implementors were not able to - * decide it, and returned TRUE in any case. For that reason it is not - * required anymore to return if the value was properly assigned or - * not. - * @param new_value a double which is the desired new accessible value. - */ - set_value(new_value: number): void - - // Own virtual methods of Atk-1.0.Atk.Value - - /** - * Gets the value of this object. - * @virtual - */ - vfunc_get_current_value(): /* value */ any - /** - * Gets the minimum increment by which the value of this object may be - * changed. If zero, the minimum increment is undefined, which may - * mean that it is limited only by the floating point precision of the - * platform. - * @virtual - * @returns the minimum increment by which the value of this object may be changed. zero if undefined. - */ - vfunc_get_increment(): number - /** - * Gets the maximum value of this object. - * @virtual - */ - vfunc_get_maximum_value(): /* value */ any - /** - * Gets the minimum increment by which the value of this object may be changed. If zero, - * the minimum increment is undefined, which may mean that it is limited only by the - * floating point precision of the platform. - * @virtual - */ - vfunc_get_minimum_increment(): /* value */ any - /** - * Gets the minimum value of this object. - * @virtual - */ - vfunc_get_minimum_value(): /* value */ any - /** - * Gets the range of this object. - * @virtual - * @returns a newly allocated #AtkRange that represents the minimum, maximum and descriptor (if available) of @obj. NULL if that range is not defined. - */ - vfunc_get_range(): Range | null - /** - * Gets the list of subranges defined for this object. See #AtkValue - * introduction for examples of subranges and when to expose them. - * @virtual - * @returns an #GSList of #AtkRange which each of the subranges defined for this object. Free the returns list with g_slist_free(). - */ - vfunc_get_sub_ranges(): Range[] - /** - * Gets the current value and the human readable text alternative of - * `obj`. `text` is a newly created string, that must be freed by the - * caller. Can be NULL if no descriptor is available. - * @virtual - */ - vfunc_get_value_and_text(): [ /* value */ number, /* text */ string | null ] - /** - * Sets the value of this object. - * @virtual - * @param value a #GValue which is the desired new accessible value. - * @returns %TRUE if new value is successfully set, %FALSE otherwise. - */ - vfunc_set_current_value(value: any): boolean - /** - * Sets the value of this object. - * - * This method is intended to provide a way to change the value of the - * object. In any case, it is possible that the value can't be - * modified (ie: a read-only component). If the value changes due this - * call, it is possible that the text could change, and will trigger - * an #AtkValue::value-changed signal emission. - * - * Note for implementors: the deprecated atk_value_set_current_value() - * method returned TRUE or FALSE depending if the value was assigned - * or not. In the practice several implementors were not able to - * decide it, and returned TRUE in any case. For that reason it is not - * required anymore to return if the value was properly assigned or - * not. - * @virtual - * @param new_value a double which is the desired new accessible value. - */ - vfunc_set_value(new_value: number): void - - // Own signals of Atk-1.0.Atk.Value - - connect(sigName: "value-changed", callback: Value.ValueChangedSignalCallback): number - connect_after(sigName: "value-changed", callback: Value.ValueChangedSignalCallback): number - emit(sigName: "value-changed", value: number, text: string | null, ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Value - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK interface implemented by valuators and components which display or select a value from a bounded range of values. - * - * #AtkValue should be implemented for components which either display - * a value from a bounded range, or which allow the user to specify a - * value from a bounded range, or both. For instance, most sliders and - * range controls, as well as dials, should have #AtkObject - * representations which implement #AtkValue on the component's - * behalf. #AtKValues may be read-only, in which case attempts to - * alter the value return would fail. - * - * - * On the subject of current value text - * - * In addition to providing the current value, implementors can - * optionally provide an end-user-consumable textual description - * associated with this value. This description should be included - * when the numeric value fails to convey the full, on-screen - * representation seen by users. - * - * - * - * Password strength - * A password strength meter whose value changes as the user types - * their new password. Red is used for values less than 4.0, yellow - * for values between 4.0 and 7.0, and green for values greater than - * 7.0. In this instance, value text should be provided by the - * implementor. Appropriate value text would be "weak", "acceptable," - * and "strong" respectively. - * - * - * A level bar whose value changes to reflect the battery charge. The - * color remains the same regardless of the charge and there is no - * on-screen text reflecting the fullness of the battery. In this - * case, because the position within the bar is the only indication - * the user has of the current charge, value text should not be - * provided by the implementor. - * - * - * Implementor Notes - * - * Implementors should bear in mind that assistive technologies will - * likely prefer the value text provided over the numeric value when - * presenting a widget's value. As a result, strings not intended for - * end users should not be exposed in the value text, and strings - * which are exposed should be localized. In the case of widgets which - * display value text on screen, for instance through a separate label - * in close proximity to the value-displaying widget, it is still - * expected that implementors will expose the value text using the - * above API. - * - * - * - * #AtkValue should NOT be implemented for widgets whose displayed - * value is not reflective of a meaningful amount. For instance, a - * progress pulse indicator whose value alternates between 0.0 and 1.0 - * to indicate that some process is still taking place should not - * implement #AtkValue because the current value does not reflect - * progress towards completion. - * - * - * - * - * - * On the subject of ranges - * - * In addition to providing the minimum and maximum values, - * implementors can optionally provide details about subranges - * associated with the widget. These details should be provided by the - * implementor when both of the following are communicated visually to - * the end user: - * - * - * The existence of distinct ranges such as "weak", - * "acceptable", and "strong" indicated by color, bar tick marks, - * and/or on-screen text. - * Where the current value stands within a given subrange, - * for instance illustrating progression from very "weak" towards - * nearly "acceptable" through changes in shade and/or position on - * the bar within the "weak" subrange. - * - * - * If both of the above do not apply to the widget, it should be - * sufficient to expose the numeric value, along with the value text - * if appropriate, to make the widget accessible. - * - * - * - * Implementor Notes - * - * If providing subrange details is deemed necessary, all possible - * values of the widget are expected to fall within one of the - * subranges defined by the implementor. - * - * - * - * - * - * On the subject of localization of end-user-consumable text - * values - * - * Because value text and subrange descriptors are human-consumable, - * implementors are expected to provide localized strings which can be - * directly presented to end users via their assistive technology. In - * order to simplify this for implementors, implementors can use - * atk_value_type_get_localized_name() with the following - * already-localized constants for commonly-needed values can be used: - * - * - * - * ATK_VALUE_VERY_WEAK - * ATK_VALUE_WEAK - * ATK_VALUE_ACCEPTABLE - * ATK_VALUE_STRONG - * ATK_VALUE_VERY_STRONG - * ATK_VALUE_VERY_LOW - * ATK_VALUE_LOW - * ATK_VALUE_MEDIUM - * ATK_VALUE_HIGH - * ATK_VALUE_VERY_HIGH - * ATK_VALUE_VERY_BAD - * ATK_VALUE_BAD - * ATK_VALUE_GOOD - * ATK_VALUE_VERY_GOOD - * ATK_VALUE_BEST - * ATK_VALUE_SUBSUBOPTIMAL - * ATK_VALUE_SUBOPTIMAL - * ATK_VALUE_OPTIMAL - * - * - * Proposals for additional constants, along with their use cases, - * should be submitted to the GNOME Accessibility Team. - * - * - * - * - * On the subject of changes - * - * Note that if there is a textual description associated with the new - * numeric value, that description should be included regardless of - * whether or not it has also changed. - * - * - * @interface - */ -class Value extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Value - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Value - - constructor(config?: Value.ConstructorProperties) - _init(config?: Value.ConstructorProperties): void -} - -module Window { - - // Signal callback interfaces - - /** - * Signal callback interface for `activate` - */ - interface ActivateSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `create` - */ - interface CreateSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `deactivate` - */ - interface DeactivateSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `destroy` - */ - interface DestroySignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `maximize` - */ - interface MaximizeSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `minimize` - */ - interface MinimizeSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `move` - */ - interface MoveSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `resize` - */ - interface ResizeSignalCallback { - ($obj: Window): void - } - - /** - * Signal callback interface for `restore` - */ - interface RestoreSignalCallback { - ($obj: Window): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Object.ConstructorProperties, GObject.Object.ConstructorProperties { - } - -} - -interface Window extends Object { - - // Own signals of Atk-1.0.Atk.Window - - connect(sigName: "activate", callback: Window.ActivateSignalCallback): number - connect_after(sigName: "activate", callback: Window.ActivateSignalCallback): number - emit(sigName: "activate", ...args: any[]): void - connect(sigName: "create", callback: Window.CreateSignalCallback): number - connect_after(sigName: "create", callback: Window.CreateSignalCallback): number - emit(sigName: "create", ...args: any[]): void - connect(sigName: "deactivate", callback: Window.DeactivateSignalCallback): number - connect_after(sigName: "deactivate", callback: Window.DeactivateSignalCallback): number - emit(sigName: "deactivate", ...args: any[]): void - connect(sigName: "destroy", callback: Window.DestroySignalCallback): number - connect_after(sigName: "destroy", callback: Window.DestroySignalCallback): number - emit(sigName: "destroy", ...args: any[]): void - connect(sigName: "maximize", callback: Window.MaximizeSignalCallback): number - connect_after(sigName: "maximize", callback: Window.MaximizeSignalCallback): number - emit(sigName: "maximize", ...args: any[]): void - connect(sigName: "minimize", callback: Window.MinimizeSignalCallback): number - connect_after(sigName: "minimize", callback: Window.MinimizeSignalCallback): number - emit(sigName: "minimize", ...args: any[]): void - connect(sigName: "move", callback: Window.MoveSignalCallback): number - connect_after(sigName: "move", callback: Window.MoveSignalCallback): number - emit(sigName: "move", ...args: any[]): void - connect(sigName: "resize", callback: Window.ResizeSignalCallback): number - connect_after(sigName: "resize", callback: Window.ResizeSignalCallback): number - emit(sigName: "resize", ...args: any[]): void - connect(sigName: "restore", callback: Window.RestoreSignalCallback): number - connect_after(sigName: "restore", callback: Window.RestoreSignalCallback): number - emit(sigName: "restore", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Window - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Window, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The ATK Interface provided by UI components that represent a top-level window. - * - * #AtkWindow should be implemented by the UI elements that represent - * a top-level window, such as the main window of an application or - * dialog. - * - * See [class`AtkObject]` - * @interface - */ -class Window extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Window - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Window - - constructor(config?: Window.ConstructorProperties) - _init(config?: Window.ConstructorProperties): void -} - -module GObjectAccessible { - - // Constructor properties interface - - interface ConstructorProperties extends Object.ConstructorProperties { - } - -} - -interface GObjectAccessible { - - // Own fields of Atk-1.0.Atk.GObjectAccessible - - parent: Object & GObject.Object - - // Owm methods of Atk-1.0.Atk.GObjectAccessible - - /** - * Gets the GObject for which `obj` is the accessible object. - * @returns a #GObject which is the object for which @obj is the accessible object - */ - get_object(): GObject.Object - - // Class property signals of Atk-1.0.Atk.GObjectAccessible - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: GObjectAccessible, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * This object class is derived from AtkObject and can be used as a basis implementing accessible objects. - * - * This object class is derived from AtkObject. It can be used as a - * basis for implementing accessible objects for GObjects which are - * not derived from GtkWidget. One example of its use is in providing - * an accessible object for GnomeCanvasItem in the GAIL library. - * @class - */ -class GObjectAccessible extends Object { - - // Own properties of Atk-1.0.Atk.GObjectAccessible - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.GObjectAccessible - - constructor(config?: GObjectAccessible.ConstructorProperties) - _init(config?: GObjectAccessible.ConstructorProperties): void - /** - * Gets the accessible object for the specified `obj`. - * @param obj a #GObject - * @returns a #AtkObject which is the accessible object for the @obj - */ - static for_object(obj: GObject.Object): Object -} - -module Hyperlink { - - // Signal callback interfaces - - /** - * Signal callback interface for `link-activated` - */ - interface LinkActivatedSignalCallback { - ($obj: Hyperlink): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Action.ConstructorProperties, GObject.Object.ConstructorProperties { - } - -} - -interface Hyperlink extends Action { - - // Own properties of Atk-1.0.Atk.Hyperlink - - readonly end_index: number - readonly number_of_anchors: number - /** - * Selected link - */ - readonly selected_link: boolean - readonly start_index: number - - // Own fields of Atk-1.0.Atk.Hyperlink - - parent: GObject.Object - - // Owm methods of Atk-1.0.Atk.Hyperlink - - /** - * Gets the index with the hypertext document at which this link ends. - * @returns the index with the hypertext document at which this link ends - */ - get_end_index(): number - /** - * Gets the number of anchors associated with this hyperlink. - * @returns the number of anchors associated with this hyperlink - */ - get_n_anchors(): number - /** - * Returns the item associated with this hyperlinks nth anchor. - * For instance, the returned #AtkObject will implement #AtkText - * if `link_` is a text hyperlink, #AtkImage if `link_` is an image - * hyperlink etc. - * - * Multiple anchors are primarily used by client-side image maps. - * @param i a (zero-index) integer specifying the desired anchor - * @returns an #AtkObject associated with this hyperlinks i-th anchor - */ - get_object(i: number): Object - /** - * Gets the index with the hypertext document at which this link begins. - * @returns the index with the hypertext document at which this link begins - */ - get_start_index(): number - /** - * Get a the URI associated with the anchor specified - * by `i` of `link_`. - * - * Multiple anchors are primarily used by client-side image maps. - * @param i a (zero-index) integer specifying the desired anchor - * @returns a string specifying the URI - */ - get_uri(i: number): string | null - /** - * Indicates whether the link currently displays some or all of its - * content inline. Ordinary HTML links will usually return - * %FALSE, but an inline <src> HTML element will return - * %TRUE. - * @returns whether or not this link displays its content inline. - */ - is_inline(): boolean - /** - * Determines whether this AtkHyperlink is selected - * @returns True if the AtkHyperlink is selected, False otherwise - */ - is_selected_link(): boolean - /** - * Since the document that a link is associated with may have changed - * this method returns %TRUE if the link is still valid (with - * respect to the document it references) and %FALSE otherwise. - * @returns whether or not this link is still valid - */ - is_valid(): boolean - - // Own virtual methods of Atk-1.0.Atk.Hyperlink - - /** - * Gets the index with the hypertext document at which this link ends. - * @virtual - * @returns the index with the hypertext document at which this link ends - */ - vfunc_get_end_index(): number - /** - * Gets the number of anchors associated with this hyperlink. - * @virtual - * @returns the number of anchors associated with this hyperlink - */ - vfunc_get_n_anchors(): number - /** - * Returns the item associated with this hyperlinks nth anchor. - * For instance, the returned #AtkObject will implement #AtkText - * if `link_` is a text hyperlink, #AtkImage if `link_` is an image - * hyperlink etc. - * - * Multiple anchors are primarily used by client-side image maps. - * @virtual - * @param i a (zero-index) integer specifying the desired anchor - * @returns an #AtkObject associated with this hyperlinks i-th anchor - */ - vfunc_get_object(i: number): Object - /** - * Gets the index with the hypertext document at which this link begins. - * @virtual - * @returns the index with the hypertext document at which this link begins - */ - vfunc_get_start_index(): number - /** - * Get a the URI associated with the anchor specified - * by `i` of `link_`. - * - * Multiple anchors are primarily used by client-side image maps. - * @virtual - * @param i a (zero-index) integer specifying the desired anchor - * @returns a string specifying the URI - */ - vfunc_get_uri(i: number): string | null - /** - * Determines whether this AtkHyperlink is selected - * @virtual - * @returns True if the AtkHyperlink is selected, False otherwise - */ - vfunc_is_selected_link(): boolean - /** - * Since the document that a link is associated with may have changed - * this method returns %TRUE if the link is still valid (with - * respect to the document it references) and %FALSE otherwise. - * @virtual - * @returns whether or not this link is still valid - */ - vfunc_is_valid(): boolean - vfunc_link_activated(): void - vfunc_link_state(): number - - // Own signals of Atk-1.0.Atk.Hyperlink - - connect(sigName: "link-activated", callback: Hyperlink.LinkActivatedSignalCallback): number - connect_after(sigName: "link-activated", callback: Hyperlink.LinkActivatedSignalCallback): number - emit(sigName: "link-activated", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Hyperlink - - connect(sigName: "notify::end-index", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::end-index", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::end-index", ...args: any[]): void - connect(sigName: "notify::number-of-anchors", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::number-of-anchors", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::number-of-anchors", ...args: any[]): void - connect(sigName: "notify::selected-link", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::selected-link", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::selected-link", ...args: any[]): void - connect(sigName: "notify::start-index", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::start-index", callback: (($obj: Hyperlink, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::start-index", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An ATK object which encapsulates a link or set of links in a hypertext document. - * - * An ATK object which encapsulates a link or set of links (for - * instance in the case of client-side image maps) in a hypertext - * document. It may implement the AtkAction interface. AtkHyperlink - * may also be used to refer to inline embedded content, since it - * allows specification of a start and end offset within the host - * AtkHypertext object. - * @class - */ -class Hyperlink extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Hyperlink - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Hyperlink - - constructor(config?: Hyperlink.ConstructorProperties) - _init(config?: Hyperlink.ConstructorProperties): void -} - -module Misc { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Misc { - - // Own fields of Atk-1.0.Atk.Misc - - parent: GObject.Object - - // Owm methods of Atk-1.0.Atk.Misc - - /** - * Take the thread mutex for the GUI toolkit, - * if one exists. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER). - */ - threads_enter(): void - /** - * Release the thread mutex for the GUI toolkit, - * if one exists. This method, and atk_misc_threads_enter, - * are needed in some situations by threaded application code which - * services ATK requests, since fulfilling ATK requests often - * requires calling into the GUI toolkit. If a long-running or - * potentially blocking call takes place inside such a block, it should - * be bracketed by atk_misc_threads_leave/atk_misc_threads_enter calls. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE). - */ - threads_leave(): void - - // Own virtual methods of Atk-1.0.Atk.Misc - - /** - * Take the thread mutex for the GUI toolkit, - * if one exists. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER). - * @virtual - */ - vfunc_threads_enter(): void - /** - * Release the thread mutex for the GUI toolkit, - * if one exists. This method, and atk_misc_threads_enter, - * are needed in some situations by threaded application code which - * services ATK requests, since fulfilling ATK requests often - * requires calling into the GUI toolkit. If a long-running or - * potentially blocking call takes place inside such a block, it should - * be bracketed by atk_misc_threads_leave/atk_misc_threads_enter calls. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE). - * @virtual - */ - vfunc_threads_leave(): void - - // Class property signals of Atk-1.0.Atk.Misc - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A set of ATK utility functions for thread locking - * - * A set of utility functions for thread locking. This interface and - * all his related methods are deprecated since 2.12. - * @class - */ -class Misc extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Misc - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Misc - - constructor(config?: Misc.ConstructorProperties) - _init(config?: Misc.ConstructorProperties): void - /** - * Obtain the singleton instance of AtkMisc for this application. - * @returns The singleton instance of AtkMisc for this application. - */ - static get_instance(): Misc -} - -module NoOpObject { - - // Constructor properties interface - - interface ConstructorProperties extends Action.ConstructorProperties, Component.ConstructorProperties, Document.ConstructorProperties, EditableText.ConstructorProperties, Hypertext.ConstructorProperties, Image.ConstructorProperties, Selection.ConstructorProperties, Table.ConstructorProperties, TableCell.ConstructorProperties, Text.ConstructorProperties, Value.ConstructorProperties, Window.ConstructorProperties, Object.ConstructorProperties { - } - -} - -interface NoOpObject extends Action, Component, Document, EditableText, Hypertext, Image, Selection, Table, TableCell, Text, Value, Window { - - // Own fields of Atk-1.0.Atk.NoOpObject - - parent: Object & GObject.Object - - // Conflicting methods - - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Gets the position of `component` in the form of - * a point specifying `component'`s top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - get_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Retrieves the tabular position of this cell. - * @returns TRUE if successful; FALSE otherwise. - */ - get_position(): [ /* returnType */ boolean, /* row */ number, /* column */ number ] - /** - * Adds the specified accessible child of the object to the - * object's selection. - * @param i a #gint specifying the child index. - * @returns TRUE if success, FALSE otherwise. - */ - add_selection(i: number): boolean - /** - * Adds a selection bounded by the specified offsets. - * @param start_offset the starting character offset of the selected region - * @param end_offset the offset of the first character after the selected region. - * @returns %TRUE if successful, %FALSE otherwise - */ - add_selection(start_offset: number, end_offset: number): boolean - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - /** - * Gets the position of `component` in the form of - * a point specifying `component'`s top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * @virtual - * @param coord_type specifies whether the coordinates are relative to the screen or to the components top level window - */ - vfunc_get_position(coord_type: CoordType): [ /* x */ number, /* y */ number ] - /** - * Retrieves the tabular position of this cell. - * @virtual - * @returns TRUE if successful; FALSE otherwise. - */ - vfunc_get_position(): [ /* returnType */ boolean, /* row */ number, /* column */ number ] - /** - * Adds the specified accessible child of the object to the - * object's selection. - * @virtual - * @param i a #gint specifying the child index. - * @returns TRUE if success, FALSE otherwise. - */ - vfunc_add_selection(i: number): boolean - /** - * Adds a selection bounded by the specified offsets. - * @virtual - * @param start_offset the starting character offset of the selected region - * @param end_offset the offset of the first character after the selected region. - * @returns %TRUE if successful, %FALSE otherwise - */ - vfunc_add_selection(start_offset: number, end_offset: number): boolean - - // Class property signals of Atk-1.0.Atk.NoOpObject - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: NoOpObject, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An AtkObject which purports to implement all ATK interfaces. - * - * An AtkNoOpObject is an AtkObject which purports to implement all - * ATK interfaces. It is the type of AtkObject which is created if an - * accessible object is requested for an object type for which no - * factory type is specified. - * @class - */ -class NoOpObject extends Object { - - // Own properties of Atk-1.0.Atk.NoOpObject - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.NoOpObject - - constructor(config?: NoOpObject.ConstructorProperties) - /** - * Provides a default (non-functioning stub) #AtkObject. - * Application maintainers should not use this method. - * @constructor - * @param obj a #GObject - * @returns a default (non-functioning stub) #AtkObject - */ - constructor(obj: GObject.Object) - /** - * Provides a default (non-functioning stub) #AtkObject. - * Application maintainers should not use this method. - * @constructor - * @param obj a #GObject - * @returns a default (non-functioning stub) #AtkObject - */ - static new(obj: GObject.Object): NoOpObject - _init(config?: NoOpObject.ConstructorProperties): void -} - -module NoOpObjectFactory { - - // Constructor properties interface - - interface ConstructorProperties extends ObjectFactory.ConstructorProperties { - } - -} - -interface NoOpObjectFactory { - - // Own fields of Atk-1.0.Atk.NoOpObjectFactory - - parent: ObjectFactory & GObject.Object - - // Class property signals of Atk-1.0.Atk.NoOpObjectFactory - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The AtkObjectFactory which creates an AtkNoOpObject. - * - * The AtkObjectFactory which creates an AtkNoOpObject. An instance of - * this is created by an AtkRegistry if no factory type has not been - * specified to create an accessible object of a particular type. - * @class - */ -class NoOpObjectFactory extends ObjectFactory { - - // Own properties of Atk-1.0.Atk.NoOpObjectFactory - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.NoOpObjectFactory - - constructor(config?: NoOpObjectFactory.ConstructorProperties) - /** - * Creates an instance of an #AtkObjectFactory which generates primitive - * (non-functioning) #AtkObjects. - * @constructor - * @returns an instance of an #AtkObjectFactory - */ - constructor() - /** - * Creates an instance of an #AtkObjectFactory which generates primitive - * (non-functioning) #AtkObjects. - * @constructor - * @returns an instance of an #AtkObjectFactory - */ - static new(): NoOpObjectFactory - _init(config?: NoOpObjectFactory.ConstructorProperties): void -} - -module Object { - - // Signal callback interfaces - - /** - * Signal callback interface for `active-descendant-changed` - */ - interface ActiveDescendantChangedSignalCallback { - ($obj: Object, arg1: Object): void - } - - /** - * Signal callback interface for `announcement` - */ - interface AnnouncementSignalCallback { - ($obj: Object, arg1: string | null): void - } - - /** - * Signal callback interface for `children-changed` - */ - interface ChildrenChangedSignalCallback { - ($obj: Object, arg1: number, arg2: Object): void - } - - /** - * Signal callback interface for `focus-event` - */ - interface FocusEventSignalCallback { - ($obj: Object, arg1: boolean): void - } - - /** - * Signal callback interface for `notification` - */ - interface NotificationSignalCallback { - ($obj: Object, arg1: string | null, arg2: number): void - } - - /** - * Signal callback interface for `property-change` - */ - interface PropertyChangeSignalCallback { - ($obj: Object, arg1: PropertyValues): void - } - - /** - * Signal callback interface for `state-change` - */ - interface StateChangeSignalCallback { - ($obj: Object, arg1: string | null, arg2: boolean): void - } - - /** - * Signal callback interface for `visible-data-changed` - */ - interface VisibleDataChangedSignalCallback { - ($obj: Object): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Atk-1.0.Atk.Object - - accessible_description?: string | null - accessible_name?: string | null - accessible_parent?: Object | null - accessible_role?: Role | null - /** - * Table caption. - */ - accessible_table_caption?: string | null - accessible_table_caption_object?: Object | null - /** - * Accessible table column description. - */ - accessible_table_column_description?: string | null - /** - * Accessible table column header. - */ - accessible_table_column_header?: Object | null - /** - * Accessible table row description. - */ - accessible_table_row_description?: string | null - /** - * Accessible table row header. - */ - accessible_table_row_header?: Object | null - accessible_table_summary?: Object | null - /** - * Numeric value of this object, in case being and AtkValue. - */ - accessible_value?: number | null - } - -} - -interface Object { - - // Own properties of Atk-1.0.Atk.Object - - readonly accessible_component_layer: number - readonly accessible_component_mdi_zorder: number - accessible_description: string | null - readonly accessible_hypertext_nlinks: number - accessible_name: string | null - accessible_role: Role - /** - * Table caption. - */ - accessible_table_caption: string | null - accessible_table_caption_object: Object - /** - * Accessible table column description. - */ - accessible_table_column_description: string | null - /** - * Accessible table column header. - */ - accessible_table_column_header: Object - /** - * Accessible table row description. - */ - accessible_table_row_description: string | null - /** - * Accessible table row header. - */ - accessible_table_row_header: Object - accessible_table_summary: Object - /** - * Numeric value of this object, in case being and AtkValue. - */ - accessible_value: number - - // Own fields of Atk-1.0.Atk.Object - - parent: GObject.Object - description: string | null - name: string | null - accessible_parent: Object - role: Role - relation_set: RelationSet - layer: Layer - - // Owm methods of Atk-1.0.Atk.Object - - /** - * Adds a relationship of the specified type with the specified target. - * @param relationship The #AtkRelationType of the relation - * @param target The #AtkObject which is to be the target of the relation. - * @returns TRUE if the relationship is added. - */ - add_relationship(relationship: RelationType, target: Object): boolean - /** - * Gets the accessible id of the accessible. - * @returns a character string representing the accessible id of the object, or NULL if no such string was set. - */ - get_accessible_id(): string | null - /** - * Get a list of properties applied to this object as a whole, as an #AtkAttributeSet consisting of - * name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, - * as distinct from strongly-typed object data available via other get/set methods. - * Not all objects have explicit "name-value pair" #AtkAttributeSet properties. - * @returns an #AtkAttributeSet consisting of all explicit properties/annotations applied to the object, or an empty set if the object has no name-value pair attributes assigned to it. This #atkattributeset should be freed by a call to atk_attribute_set_free(). - */ - get_attributes(): AttributeSet - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Gets the 0-based index of this accessible in its parent; returns -1 if the - * accessible does not have an accessible parent. - * @returns an integer which is the index of the accessible in its parent - */ - get_index_in_parent(): number - /** - * Gets the layer of the accessible. - * @returns an #AtkLayer which is the layer of the accessible - */ - get_layer(): Layer - /** - * Gets the zorder of the accessible. The value G_MININT will be returned - * if the layer of the accessible is not ATK_LAYER_MDI. - * @returns a gint which is the zorder of the accessible, i.e. the depth at which the component is shown in relation to other components in the same container. - */ - get_mdi_zorder(): number - /** - * Gets the number of accessible children of the accessible. - * @returns an integer representing the number of accessible children of the accessible. - */ - get_n_accessible_children(): number - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of `accessible`. - * @returns a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of @accessible. - */ - get_object_locale(): string | null - /** - * Gets the accessible parent of the accessible. By default this is - * the one assigned with atk_object_set_parent(), but it is assumed - * that ATK implementors have ways to get the parent of the object - * without the need of assigning it manually with - * atk_object_set_parent(), and will return it with this method. - * - * If you are only interested on the parent assigned with - * atk_object_set_parent(), use atk_object_peek_parent(). - * @returns an #AtkObject representing the accessible parent of the accessible - */ - get_parent(): Object - /** - * Gets the role of the accessible. - * @returns an #AtkRole which is the role of the accessible - */ - get_role(): Role - /** - * This function is called when implementing subclasses of #AtkObject. - * It does initialization required for the new object. It is intended - * that this function should called only in the ..._new() functions used - * to create an instance of a subclass of #AtkObject - * @param data a #gpointer which identifies the object for which the AtkObject was created. - */ - initialize(data: any | null): void - /** - * Emits a state-change signal for the specified state. - * - * Note that as a general rule when the state of an existing object changes, - * emitting a notification is expected. - * @param state an #AtkState whose state is changed - * @param value a gboolean which indicates whether the state is being set on or off - */ - notify_state_change(state: State, value: boolean): void - /** - * Gets the accessible parent of the accessible, if it has been - * manually assigned with atk_object_set_parent. Otherwise, this - * function returns %NULL. - * - * This method is intended as an utility for ATK implementors, and not - * to be exposed to accessible tools. See atk_object_get_parent() for - * further reference. - * @returns an #AtkObject representing the accessible parent of the accessible if assigned - */ - peek_parent(): Object - /** - * Gets a reference to the specified accessible child of the object. - * The accessible children are 0-based so the first accessible child is - * at index 0, the second at index 1 and so on. - * @param i a gint representing the position of the child, starting from 0 - * @returns an #AtkObject representing the specified accessible child of the accessible. - */ - ref_accessible_child(i: number): Object - /** - * Gets the #AtkRelationSet associated with the object. - * @returns an #AtkRelationSet representing the relation set of the object. - */ - ref_relation_set(): RelationSet - /** - * Gets a reference to the state set of the accessible; the caller must - * unreference it when it is no longer needed. - * @returns a reference to an #AtkStateSet which is the state set of the accessible - */ - ref_state_set(): StateSet - /** - * Removes a property change handler. - * @param handler_id a guint which identifies the handler to be removed. - */ - remove_property_change_handler(handler_id: number): void - /** - * Removes a relationship of the specified type with the specified target. - * @param relationship The #AtkRelationType of the relation - * @param target The #AtkObject which is the target of the relation to be removed. - * @returns TRUE if the relationship is removed. - */ - remove_relationship(relationship: RelationType, target: Object): boolean - /** - * Sets the accessible ID of the accessible. This is not meant to be presented - * to the user, but to be an ID which is stable over application development. - * Typically, this is the gtkbuilder ID. Such an ID will be available for - * instance to identify a given well-known accessible object for tailored screen - * reading, or for automatic regression testing. - * @param name a character string to be set as the accessible id - */ - set_accessible_id(name: string | null): void - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Sets the accessible name of the accessible. You can't set the name - * to NULL. This is reserved for the initial value. In this aspect - * NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the name to - * a empty value you can use "". - * @param name a character string to be set as the accessible name - */ - set_name(name: string | null): void - /** - * Sets the accessible parent of the accessible. `parent` can be NULL. - * @param parent an #AtkObject to be set as the accessible parent - */ - set_parent(parent: Object): void - /** - * Sets the role of the accessible. - * @param role an #AtkRole to be set as the role - */ - set_role(role: Role): void - - // Own virtual methods of Atk-1.0.Atk.Object - - vfunc_active_descendant_changed(child: any | null): void - vfunc_children_changed(change_index: number, changed_child: any | null): void - vfunc_focus_event(focus_in: boolean): void - /** - * Get a list of properties applied to this object as a whole, as an #AtkAttributeSet consisting of - * name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, - * as distinct from strongly-typed object data available via other get/set methods. - * Not all objects have explicit "name-value pair" #AtkAttributeSet properties. - * @virtual - * @returns an #AtkAttributeSet consisting of all explicit properties/annotations applied to the object, or an empty set if the object has no name-value pair attributes assigned to it. This #atkattributeset should be freed by a call to atk_attribute_set_free(). - */ - vfunc_get_attributes(): AttributeSet - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Gets the 0-based index of this accessible in its parent; returns -1 if the - * accessible does not have an accessible parent. - * @virtual - * @returns an integer which is the index of the accessible in its parent - */ - vfunc_get_index_in_parent(): number - /** - * Gets the layer of the accessible. - * @virtual - * @returns an #AtkLayer which is the layer of the accessible - */ - vfunc_get_layer(): Layer - /** - * Gets the zorder of the accessible. The value G_MININT will be returned - * if the layer of the accessible is not ATK_LAYER_MDI. - * @virtual - * @returns a gint which is the zorder of the accessible, i.e. the depth at which the component is shown in relation to other components in the same container. - */ - vfunc_get_mdi_zorder(): number - vfunc_get_n_children(): number - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of `accessible`. - * @virtual - * @returns a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of @accessible. - */ - vfunc_get_object_locale(): string | null - /** - * Gets the accessible parent of the accessible. By default this is - * the one assigned with atk_object_set_parent(), but it is assumed - * that ATK implementors have ways to get the parent of the object - * without the need of assigning it manually with - * atk_object_set_parent(), and will return it with this method. - * - * If you are only interested on the parent assigned with - * atk_object_set_parent(), use atk_object_peek_parent(). - * @virtual - * @returns an #AtkObject representing the accessible parent of the accessible - */ - vfunc_get_parent(): Object - /** - * Gets the role of the accessible. - * @virtual - * @returns an #AtkRole which is the role of the accessible - */ - vfunc_get_role(): Role - /** - * This function is called when implementing subclasses of #AtkObject. - * It does initialization required for the new object. It is intended - * that this function should called only in the ..._new() functions used - * to create an instance of a subclass of #AtkObject - * @virtual - * @param data a #gpointer which identifies the object for which the AtkObject was created. - */ - vfunc_initialize(data: any | null): void - vfunc_property_change(values: PropertyValues): void - /** - * Gets the #AtkRelationSet associated with the object. - * @virtual - * @returns an #AtkRelationSet representing the relation set of the object. - */ - vfunc_ref_relation_set(): RelationSet - /** - * Gets a reference to the state set of the accessible; the caller must - * unreference it when it is no longer needed. - * @virtual - * @returns a reference to an #AtkStateSet which is the state set of the accessible - */ - vfunc_ref_state_set(): StateSet - /** - * Removes a property change handler. - * @virtual - * @param handler_id a guint which identifies the handler to be removed. - */ - vfunc_remove_property_change_handler(handler_id: number): void - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - /** - * Sets the accessible name of the accessible. You can't set the name - * to NULL. This is reserved for the initial value. In this aspect - * NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the name to - * a empty value you can use "". - * @virtual - * @param name a character string to be set as the accessible name - */ - vfunc_set_name(name: string | null): void - /** - * Sets the accessible parent of the accessible. `parent` can be NULL. - * @virtual - * @param parent an #AtkObject to be set as the accessible parent - */ - vfunc_set_parent(parent: Object): void - /** - * Sets the role of the accessible. - * @virtual - * @param role an #AtkRole to be set as the role - */ - vfunc_set_role(role: Role): void - vfunc_state_change(name: string | null, state_set: boolean): void - vfunc_visible_data_changed(): void - - // Own signals of Atk-1.0.Atk.Object - - connect(sigName: "active-descendant-changed", callback: Object.ActiveDescendantChangedSignalCallback): number - connect_after(sigName: "active-descendant-changed", callback: Object.ActiveDescendantChangedSignalCallback): number - emit(sigName: "active-descendant-changed", arg1: Object, ...args: any[]): void - connect(sigName: "announcement", callback: Object.AnnouncementSignalCallback): number - connect_after(sigName: "announcement", callback: Object.AnnouncementSignalCallback): number - emit(sigName: "announcement", arg1: string | null, ...args: any[]): void - connect(sigName: "children-changed", callback: Object.ChildrenChangedSignalCallback): number - connect_after(sigName: "children-changed", callback: Object.ChildrenChangedSignalCallback): number - emit(sigName: "children-changed", arg1: number, arg2: Object, ...args: any[]): void - connect(sigName: "focus-event", callback: Object.FocusEventSignalCallback): number - connect_after(sigName: "focus-event", callback: Object.FocusEventSignalCallback): number - emit(sigName: "focus-event", arg1: boolean, ...args: any[]): void - connect(sigName: "notification", callback: Object.NotificationSignalCallback): number - connect_after(sigName: "notification", callback: Object.NotificationSignalCallback): number - emit(sigName: "notification", arg1: string | null, arg2: number, ...args: any[]): void - connect(sigName: "property-change", callback: Object.PropertyChangeSignalCallback): number - connect_after(sigName: "property-change", callback: Object.PropertyChangeSignalCallback): number - emit(sigName: "property-change", arg1: PropertyValues, ...args: any[]): void - connect(sigName: "state-change", callback: Object.StateChangeSignalCallback): number - connect_after(sigName: "state-change", callback: Object.StateChangeSignalCallback): number - emit(sigName: "state-change", arg1: string | null, arg2: boolean, ...args: any[]): void - connect(sigName: "visible-data-changed", callback: Object.VisibleDataChangedSignalCallback): number - connect_after(sigName: "visible-data-changed", callback: Object.VisibleDataChangedSignalCallback): number - emit(sigName: "visible-data-changed", ...args: any[]): void - - // Class property signals of Atk-1.0.Atk.Object - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Object, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The base object class for the Accessibility Toolkit API. - * - * This class is the primary class for accessibility support via the - * Accessibility ToolKit (ATK). Objects which are instances of - * #AtkObject (or instances of AtkObject-derived types) are queried - * for properties which relate basic (and generic) properties of a UI - * component such as name and description. Instances of #AtkObject - * may also be queried as to whether they implement other ATK - * interfaces (e.g. #AtkAction, #AtkComponent, etc.), as appropriate - * to the role which a given UI component plays in a user interface. - * - * All UI components in an application which provide useful - * information or services to the user must provide corresponding - * #AtkObject instances on request (in GTK+, for instance, usually on - * a call to #gtk_widget_get_accessible ()), either via ATK support - * built into the toolkit for the widget class or ancestor class, or - * in the case of custom widgets, if the inherited #AtkObject - * implementation is insufficient, via instances of a new #AtkObject - * subclass. - * - * See [class`AtkObjectFactory]`, [class`AtkRegistry]`. (GTK+ users see also - * #GtkAccessible). - * @class - */ -class Object extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Object - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Object - - constructor(config?: Object.ConstructorProperties) - _init(config?: Object.ConstructorProperties): void -} - -module ObjectFactory { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface ObjectFactory { - - // Own fields of Atk-1.0.Atk.ObjectFactory - - parent: GObject.Object - - // Owm methods of Atk-1.0.Atk.ObjectFactory - - /** - * Provides an #AtkObject that implements an accessibility interface - * on behalf of `obj` - * @param obj a #GObject - * @returns an #AtkObject that implements an accessibility interface on behalf of @obj - */ - create_accessible(obj: GObject.Object): Object - /** - * Gets the GType of the accessible which is created by the factory. - * @returns the type of the accessible which is created by the @factory. The value G_TYPE_INVALID is returned if no type if found. - */ - get_accessible_type(): GObject.GType - /** - * Inform `factory` that it is no longer being used to create - * accessibles. When called, `factory` may need to inform - * #AtkObjects which it has created that they need to be re-instantiated. - * Note: primarily used for runtime replacement of #AtkObjectFactorys - * in object registries. - */ - invalidate(): void - - // Own virtual methods of Atk-1.0.Atk.ObjectFactory - - /** - * Inform `factory` that it is no longer being used to create - * accessibles. When called, `factory` may need to inform - * #AtkObjects which it has created that they need to be re-instantiated. - * Note: primarily used for runtime replacement of #AtkObjectFactorys - * in object registries. - * @virtual - */ - vfunc_invalidate(): void - - // Class property signals of Atk-1.0.Atk.ObjectFactory - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The base object class for a factory used to - * create accessible objects for objects of a specific GType. - * - * This class is the base object class for a factory used to create an - * accessible object for a specific GType. The function - * atk_registry_set_factory_type() is normally called to store in the - * registry the factory type to be used to create an accessible of a - * particular GType. - * @class - */ -class ObjectFactory extends GObject.Object { - - // Own properties of Atk-1.0.Atk.ObjectFactory - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.ObjectFactory - - constructor(config?: ObjectFactory.ConstructorProperties) - _init(config?: ObjectFactory.ConstructorProperties): void -} - -module Plug { - - // Constructor properties interface - - interface ConstructorProperties extends Component.ConstructorProperties, Object.ConstructorProperties { - } - -} - -interface Plug extends Component { - - // Own fields of Atk-1.0.Atk.Plug - - parent: Object & GObject.Object - - // Owm methods of Atk-1.0.Atk.Plug - - /** - * Gets the unique ID of an #AtkPlug object, which can be used to - * embed inside of an #AtkSocket using atk_socket_embed(). - * - * Internally, this calls a class function that should be registered - * by the IPC layer (usually at-spi2-atk). The implementor of an - * #AtkPlug object should call this function (after atk-bridge is - * loaded) and pass the value to the process implementing the - * #AtkSocket, so it could embed the plug. - * @returns the unique ID for the plug - */ - get_id(): string | null - /** - * Sets `child` as accessible child of `plug` and `plug` as accessible parent of - * `child`. `child` can be NULL. - * - * In some cases, one can not use the AtkPlug type directly as accessible - * object for the toplevel widget of the application. For instance in the gtk - * case, GtkPlugAccessible can not inherit both from GtkWindowAccessible and - * from AtkPlug. In such a case, one can create, in addition to the standard - * accessible object for the toplevel widget, an AtkPlug object, and make the - * former the child of the latter by calling atk_plug_set_child(). - * @param child an #AtkObject to be set as accessible child of `plug`. - */ - set_child(child: Object): void - - // Own virtual methods of Atk-1.0.Atk.Plug - - vfunc_get_object_id(): string | null - - // Class property signals of Atk-1.0.Atk.Plug - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Plug, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Toplevel for embedding into other processes - * - * See [class`AtkSocket]` - * @class - */ -class Plug extends Object { - - // Own properties of Atk-1.0.Atk.Plug - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Plug - - constructor(config?: Plug.ConstructorProperties) - /** - * Creates a new #AtkPlug instance. - * @constructor - * @returns the newly created #AtkPlug - */ - constructor() - /** - * Creates a new #AtkPlug instance. - * @constructor - * @returns the newly created #AtkPlug - */ - static new(): Plug - _init(config?: Plug.ConstructorProperties): void -} - -module Registry { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Registry { - - // Own fields of Atk-1.0.Atk.Registry - - parent: GObject.Object - factory_type_registry: GLib.HashTable - factory_singleton_cache: GLib.HashTable - - // Owm methods of Atk-1.0.Atk.Registry - - /** - * Gets an #AtkObjectFactory appropriate for creating #AtkObjects - * appropriate for `type`. - * @param type a #GType with which to look up the associated #AtkObjectFactory - * @returns an #AtkObjectFactory appropriate for creating #AtkObjects appropriate for @type. - */ - get_factory(type: GObject.GType): ObjectFactory - /** - * Provides a #GType indicating the #AtkObjectFactory subclass - * associated with `type`. - * @param type a #GType with which to look up the associated #AtkObjectFactory subclass - * @returns a #GType associated with type @type - */ - get_factory_type(type: GObject.GType): GObject.GType - /** - * Associate an #AtkObjectFactory subclass with a #GType. Note: - * The associated `factory_type` will thereafter be responsible for - * the creation of new #AtkObject implementations for instances - * appropriate for `type`. - * @param type an #AtkObject type - * @param factory_type an #AtkObjectFactory type to associate with `type`. Must implement AtkObject appropriate for `type`. - */ - set_factory_type(type: GObject.GType, factory_type: GObject.GType): void - - // Class property signals of Atk-1.0.Atk.Registry - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An object used to store the GType of the - * factories used to create an accessible object for an object of a - * particular GType. - * - * The AtkRegistry is normally used to create appropriate ATK "peers" - * for user interface components. Application developers usually need - * only interact with the AtkRegistry by associating appropriate ATK - * implementation classes with GObject classes via the - * atk_registry_set_factory_type call, passing the appropriate GType - * for application custom widget classes. - * @class - */ -class Registry extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Registry - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Registry - - constructor(config?: Registry.ConstructorProperties) - _init(config?: Registry.ConstructorProperties): void -} - -module Relation { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Atk-1.0.Atk.Relation - - relation_type?: RelationType | null - target?: GObject.ValueArray | null - } - -} - -interface Relation { - - // Own properties of Atk-1.0.Atk.Relation - - relation_type: RelationType - - // Own fields of Atk-1.0.Atk.Relation - - parent: GObject.Object - target: any[] - relationship: RelationType - - // Owm methods of Atk-1.0.Atk.Relation - - /** - * Adds the specified AtkObject to the target for the relation, if it is - * not already present. See also atk_object_add_relationship(). - * @param target an #AtkObject - */ - add_target(target: Object): void - /** - * Gets the type of `relation` - * @returns the type of @relation - */ - get_relation_type(): RelationType - /** - * Gets the target list of `relation` - * @returns the target list of @relation - */ - get_target(): Object[] - /** - * Remove the specified AtkObject from the target for the relation. - * @param target an #AtkObject - * @returns TRUE if the removal is successful. - */ - remove_target(target: Object): boolean - - // Class property signals of Atk-1.0.Atk.Relation - - connect(sigName: "notify::relation-type", callback: (($obj: Relation, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::relation-type", callback: (($obj: Relation, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::relation-type", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An object used to describe a relation between a - * object and one or more other objects. - * - * An AtkRelation describes a relation between an object and one or - * more other objects. The actual relations that an object has with - * other objects are defined as an AtkRelationSet, which is a set of - * AtkRelations. - * @class - */ -class Relation extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Relation - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Relation - - constructor(config?: Relation.ConstructorProperties) - /** - * Create a new relation for the specified key and the specified list - * of targets. See also atk_object_add_relationship(). - * @constructor - * @param targets an array of pointers to #AtkObjects - * @param relationship an #AtkRelationType with which to create the new #AtkRelation - * @returns a pointer to a new #AtkRelation - */ - constructor(targets: Object[], relationship: RelationType) - /** - * Create a new relation for the specified key and the specified list - * of targets. See also atk_object_add_relationship(). - * @constructor - * @param targets an array of pointers to #AtkObjects - * @param relationship an #AtkRelationType with which to create the new #AtkRelation - * @returns a pointer to a new #AtkRelation - */ - static new(targets: Object[], relationship: RelationType): Relation - _init(config?: Relation.ConstructorProperties): void -} - -module RelationSet { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface RelationSet { - - // Own fields of Atk-1.0.Atk.RelationSet - - parent: GObject.Object - relations: any[] - - // Owm methods of Atk-1.0.Atk.RelationSet - - /** - * Add a new relation to the current relation set if it is not already - * present. - * This function ref's the AtkRelation so the caller of this function - * should unref it to ensure that it will be destroyed when the AtkRelationSet - * is destroyed. - * @param relation an #AtkRelation - */ - add(relation: Relation): void - /** - * Add a new relation of the specified type with the specified target to - * the current relation set if the relation set does not contain a relation - * of that type. If it is does contain a relation of that typea the target - * is added to the relation. - * @param relationship an #AtkRelationType - * @param target an #AtkObject - */ - add_relation_by_type(relationship: RelationType, target: Object): void - /** - * Determines whether the relation set contains a relation that matches the - * specified type. - * @param relationship an #AtkRelationType - * @returns %TRUE if @relationship is the relationship type of a relation in @set, %FALSE otherwise - */ - contains(relationship: RelationType): boolean - /** - * Determines whether the relation set contains a relation that - * matches the specified pair formed by type `relationship` and object - * `target`. - * @param relationship an #AtkRelationType - * @param target an #AtkObject - * @returns %TRUE if @set contains a relation with the relationship type @relationship with an object @target, %FALSE otherwise - */ - contains_target(relationship: RelationType, target: Object): boolean - /** - * Determines the number of relations in a relation set. - * @returns an integer representing the number of relations in the set. - */ - get_n_relations(): number - /** - * Determines the relation at the specified position in the relation set. - * @param i a gint representing a position in the set, starting from 0. - * @returns a #AtkRelation, which is the relation at position i in the set. - */ - get_relation(i: number): Relation - /** - * Finds a relation that matches the specified type. - * @param relationship an #AtkRelationType - * @returns an #AtkRelation, which is a relation matching the specified type. - */ - get_relation_by_type(relationship: RelationType): Relation - /** - * Removes a relation from the relation set. - * This function unref's the #AtkRelation so it will be deleted unless there - * is another reference to it. - * @param relation an #AtkRelation - */ - remove(relation: Relation): void - - // Class property signals of Atk-1.0.Atk.RelationSet - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A set of AtkRelations, normally the set of - * AtkRelations which an AtkObject has. - * - * The AtkRelationSet held by an object establishes its relationships - * with objects beyond the normal "parent/child" hierarchical - * relationships that all user interface objects have. - * AtkRelationSets establish whether objects are labelled or - * controlled by other components, share group membership with other - * components (for instance within a radio-button group), or share - * content which "flows" between them, among other types of possible - * relationships. - * @class - */ -class RelationSet extends GObject.Object { - - // Own properties of Atk-1.0.Atk.RelationSet - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.RelationSet - - constructor(config?: RelationSet.ConstructorProperties) - /** - * Creates a new empty relation set. - * @constructor - * @returns a new #AtkRelationSet - */ - constructor() - /** - * Creates a new empty relation set. - * @constructor - * @returns a new #AtkRelationSet - */ - static new(): RelationSet - _init(config?: RelationSet.ConstructorProperties): void -} - -module Socket { - - // Constructor properties interface - - interface ConstructorProperties extends Component.ConstructorProperties, Object.ConstructorProperties { - } - -} - -interface Socket extends Component { - - // Own fields of Atk-1.0.Atk.Socket - - parent: Object & GObject.Object - - // Owm methods of Atk-1.0.Atk.Socket - - /** - * Embeds the children of an #AtkPlug as the children of the - * #AtkSocket. The plug may be in the same process or in a different - * process. - * - * The class item used by this function should be filled in by the IPC - * layer (usually at-spi2-atk). The implementor of the AtkSocket - * should call this function and pass the id for the plug as returned - * by atk_plug_get_id(). It is the responsibility of the application - * to pass the plug id on to the process implementing the #AtkSocket - * as needed. - * @param plug_id the ID of an #AtkPlug - */ - embed(plug_id: string | null): void - /** - * Determines whether or not the socket has an embedded plug. - * @returns TRUE if a plug is embedded in the socket - */ - is_occupied(): boolean - - // Own virtual methods of Atk-1.0.Atk.Socket - - /** - * Embeds the children of an #AtkPlug as the children of the - * #AtkSocket. The plug may be in the same process or in a different - * process. - * - * The class item used by this function should be filled in by the IPC - * layer (usually at-spi2-atk). The implementor of the AtkSocket - * should call this function and pass the id for the plug as returned - * by atk_plug_get_id(). It is the responsibility of the application - * to pass the plug id on to the process implementing the #AtkSocket - * as needed. - * @virtual - * @param plug_id the ID of an #AtkPlug - */ - vfunc_embed(plug_id: string | null): void - - // Class property signals of Atk-1.0.Atk.Socket - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Socket, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Container for AtkPlug objects from other processes - * - * Together with #AtkPlug, #AtkSocket provides the ability to embed - * accessibles from one process into another in a fashion that is - * transparent to assistive technologies. #AtkSocket works as the - * container of #AtkPlug, embedding it using the method - * atk_socket_embed(). Any accessible contained in the #AtkPlug will - * appear to the assistive technologies as being inside the - * application that created the #AtkSocket. - * - * The communication between a #AtkSocket and a #AtkPlug is done by - * the IPC layer of the accessibility framework, normally implemented - * by the D-Bus based implementation of AT-SPI (at-spi2). If that is - * the case, at-spi-atk2 is the responsible to implement the abstract - * methods atk_plug_get_id() and atk_socket_embed(), so an ATK - * implementor shouldn't reimplement them. The process that contains - * the #AtkPlug is responsible to send the ID returned by - * atk_plug_id() to the process that contains the #AtkSocket, so it - * could call the method atk_socket_embed() in order to embed it. - * - * For the same reasons, an implementor doesn't need to implement - * atk_object_get_n_accessible_children() and - * atk_object_ref_accessible_child(). All the logic related to those - * functions will be implemented by the IPC layer. - * - * See [class`AtkPlug]` - * @class - */ -class Socket extends Object { - - // Own properties of Atk-1.0.Atk.Socket - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Socket - - constructor(config?: Socket.ConstructorProperties) - /** - * Creates a new #AtkSocket. - * @constructor - * @returns the newly created #AtkSocket instance - */ - constructor() - /** - * Creates a new #AtkSocket. - * @constructor - * @returns the newly created #AtkSocket instance - */ - static new(): Socket - _init(config?: Socket.ConstructorProperties): void -} - -module StateSet { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface StateSet { - - // Own fields of Atk-1.0.Atk.StateSet - - parent: GObject.Object - - // Owm methods of Atk-1.0.Atk.StateSet - - /** - * Adds the state of the specified type to the state set if it is not already - * present. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to add a state to a newly-created set which will then be returned by - * #atk_object_ref_state_set. It should not be used to modify the existing state - * of an object. See also #atk_object_notify_state_change. - * @param type an #AtkStateType - * @returns %TRUE if the state for @type is not already in @set. - */ - add_state(type: StateType): boolean - /** - * Adds the states of the specified types to the state set. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to add states to a newly-created set which will then be returned by - * #atk_object_ref_state_set. It should not be used to modify the existing state - * of an object. See also #atk_object_notify_state_change. - * @param types an array of #AtkStateType - */ - add_states(types: StateType[]): void - /** - * Constructs the intersection of the two sets, returning %NULL if the - * intersection is empty. - * @param compare_set another #AtkStateSet - * @returns a new #AtkStateSet which is the intersection of the two sets. - */ - and_sets(compare_set: StateSet): StateSet - /** - * Removes all states from the state set. - */ - clear_states(): void - /** - * Checks whether the state for the specified type is in the specified set. - * @param type an #AtkStateType - * @returns %TRUE if @type is the state type is in @set. - */ - contains_state(type: StateType): boolean - /** - * Checks whether the states for all the specified types are in the - * specified set. - * @param types an array of #AtkStateType - * @returns %TRUE if all the states for @type are in @set. - */ - contains_states(types: StateType[]): boolean - /** - * Checks whether the state set is empty, i.e. has no states set. - * @returns %TRUE if @set has no states set, otherwise %FALSE - */ - is_empty(): boolean - /** - * Constructs the union of the two sets. - * @param compare_set another #AtkStateSet - * @returns a new #AtkStateSet which is the union of the two sets, returning %NULL is empty. - */ - or_sets(compare_set: StateSet): StateSet | null - /** - * Removes the state for the specified type from the state set. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to remove a state to a newly-created set which will then be returned - * by #atk_object_ref_state_set. It should not be used to modify the existing - * state of an object. See also #atk_object_notify_state_change. - * @param type an #AtkType - * @returns %TRUE if @type was the state type is in @set. - */ - remove_state(type: StateType): boolean - /** - * Constructs the exclusive-or of the two sets, returning %NULL is empty. - * The set returned by this operation contains the states in exactly - * one of the two sets. - * @param compare_set another #AtkStateSet - * @returns a new #AtkStateSet which contains the states which are in exactly one of the two sets. - */ - xor_sets(compare_set: StateSet): StateSet - - // Class property signals of Atk-1.0.Atk.StateSet - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An AtkStateSet contains the states of an object. - * - * An AtkStateSet is a read-only representation of the full set of #AtkStates - * that apply to an object at a given time. This set is not meant to be - * modified, but rather created when #atk_object_ref_state_set() is called. - * @class - */ -class StateSet extends GObject.Object { - - // Own properties of Atk-1.0.Atk.StateSet - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.StateSet - - constructor(config?: StateSet.ConstructorProperties) - /** - * Creates a new empty state set. - * @constructor - * @returns a new #AtkStateSet - */ - constructor() - /** - * Creates a new empty state set. - * @constructor - * @returns a new #AtkStateSet - */ - static new(): StateSet - _init(config?: StateSet.ConstructorProperties): void -} - -module Util { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Util { - - // Own fields of Atk-1.0.Atk.Util - - parent: GObject.Object - - // Class property signals of Atk-1.0.Atk.Util - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A set of ATK utility functions for event and toolkit support. - * - * A set of ATK utility functions which are used to support event - * registration of various types, and obtaining the 'root' accessible - * of a process and information about the current ATK implementation - * and toolkit version. - * @class - */ -class Util extends GObject.Object { - - // Own properties of Atk-1.0.Atk.Util - - static name: string - static $gtype: GObject.GType - - // Constructors of Atk-1.0.Atk.Util - - constructor(config?: Util.ConstructorProperties) - _init(config?: Util.ConstructorProperties): void -} - -interface ActionIface { - - // Own fields of Atk-1.0.Atk.ActionIface - - do_action: (action: Action, i: number) => boolean - get_n_actions: (action: Action) => number - get_description: (action: Action, i: number) => string | null - get_name: (action: Action, i: number) => string | null - get_keybinding: (action: Action, i: number) => string | null - set_description: (action: Action, i: number, desc: string | null) => boolean - get_localized_name: (action: Action, i: number) => string | null -} - -/** - * The #AtkAction interface should be supported by any object that can - * perform one or more actions. The interface provides the standard - * mechanism for an assistive technology to determine what those actions - * are as well as tell the object to perform them. Any object that can - * be manipulated should support this interface. - * @record - */ -abstract class ActionIface { - - // Own properties of Atk-1.0.Atk.ActionIface - - static name: string -} - -interface Attribute { - - // Own fields of Atk-1.0.Atk.Attribute - - /** - * The attribute name. - * @field - */ - name: string | null - /** - * the value of the attribute, represented as a string. - * @field - */ - value: string | null -} - -/** - * AtkAttribute is a string name/value pair representing a generic - * attribute. This can be used to expose additional information from - * an accessible object as a whole (see atk_object_get_attributes()) - * or an document (see atk_document_get_attributes()). In the case of - * text attributes (see atk_text_get_default_attributes()), - * #AtkTextAttribute enum defines all the possible text attribute - * names. You can use atk_text_attribute_get_name() to get the string - * name from the enum value. See also atk_text_attribute_for_name() - * and atk_text_attribute_get_value() for more information. - * - * A string name/value pair representing a generic attribute. - * @record - */ -class Attribute { - - // Own properties of Atk-1.0.Atk.Attribute - - static name: string - - // Constructors of Atk-1.0.Atk.Attribute - - /** - * Frees the memory used by an #AtkAttributeSet, including all its - * #AtkAttributes. - * @param attrib_set The #AtkAttributeSet to free - */ - static set_free(attrib_set: AttributeSet): void -} - -interface ComponentIface { - - // Own fields of Atk-1.0.Atk.ComponentIface - - contains: (component: Component, x: number, y: number, coord_type: CoordType) => boolean - ref_accessible_at_point: (component: Component, x: number, y: number, coord_type: CoordType) => Object | null - get_extents: (component: Component, coord_type: CoordType) => [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - get_position: (component: Component, coord_type: CoordType) => [ /* x */ number, /* y */ number ] - get_size: (component: Component) => [ /* width */ number, /* height */ number ] - grab_focus: (component: Component) => boolean - remove_focus_handler: (component: Component, handler_id: number) => void - set_extents: (component: Component, x: number, y: number, width: number, height: number, coord_type: CoordType) => boolean - set_position: (component: Component, x: number, y: number, coord_type: CoordType) => boolean - set_size: (component: Component, width: number, height: number) => boolean - get_layer: (component: Component) => Layer - get_mdi_zorder: (component: Component) => number - bounds_changed: (component: Component, bounds: Rectangle) => void - get_alpha: (component: Component) => number - scroll_to: (component: Component, type: ScrollType) => boolean - scroll_to_point: (component: Component, coords: CoordType, x: number, y: number) => boolean -} - -/** - * The AtkComponent interface should be supported by any object that is - * rendered on the screen. The interface provides the standard mechanism - * for an assistive technology to determine and set the graphical - * representation of an object. - * @record - */ -abstract class ComponentIface { - - // Own properties of Atk-1.0.Atk.ComponentIface - - static name: string -} - -interface DocumentIface { - - // Own fields of Atk-1.0.Atk.DocumentIface - - parent: GObject.TypeInterface - get_document_type: (document: Document) => string | null - get_document: (document: Document) => any | null - get_document_locale: (document: Document) => string | null - get_document_attributes: (document: Document) => AttributeSet - get_document_attribute_value: (document: Document, attribute_name: string | null) => string | null - set_document_attribute: (document: Document, attribute_name: string | null, attribute_value: string | null) => boolean - get_current_page_number: (document: Document) => number - get_page_count: (document: Document) => number -} - -abstract class DocumentIface { - - // Own properties of Atk-1.0.Atk.DocumentIface - - static name: string -} - -interface EditableTextIface { - - // Own fields of Atk-1.0.Atk.EditableTextIface - - parent_interface: GObject.TypeInterface - set_run_attributes: (text: EditableText, attrib_set: AttributeSet, start_offset: number, end_offset: number) => boolean - set_text_contents: (text: EditableText, string: string | null) => void - insert_text: (text: EditableText, string: string | null, length: number, position: number) => void - copy_text: (text: EditableText, start_pos: number, end_pos: number) => void - cut_text: (text: EditableText, start_pos: number, end_pos: number) => void - delete_text: (text: EditableText, start_pos: number, end_pos: number) => void - paste_text: (text: EditableText, position: number) => void -} - -abstract class EditableTextIface { - - // Own properties of Atk-1.0.Atk.EditableTextIface - - static name: string -} - -interface GObjectAccessibleClass { - - // Own fields of Atk-1.0.Atk.GObjectAccessibleClass - - parent_class: ObjectClass - pad1: Function - pad2: Function -} - -abstract class GObjectAccessibleClass { - - // Own properties of Atk-1.0.Atk.GObjectAccessibleClass - - static name: string -} - -interface HyperlinkClass { - - // Own fields of Atk-1.0.Atk.HyperlinkClass - - parent: GObject.ObjectClass - get_uri: (link_: Hyperlink, i: number) => string | null - get_object: (link_: Hyperlink, i: number) => Object - get_end_index: (link_: Hyperlink) => number - get_start_index: (link_: Hyperlink) => number - is_valid: (link_: Hyperlink) => boolean - get_n_anchors: (link_: Hyperlink) => number - link_state: (link_: Hyperlink) => number - is_selected_link: (link_: Hyperlink) => boolean - link_activated: (link_: Hyperlink) => void - pad1: Function -} - -abstract class HyperlinkClass { - - // Own properties of Atk-1.0.Atk.HyperlinkClass - - static name: string -} - -interface HyperlinkImplIface { - - // Own fields of Atk-1.0.Atk.HyperlinkImplIface - - parent: GObject.TypeInterface - get_hyperlink: (impl: HyperlinkImpl) => Hyperlink -} - -abstract class HyperlinkImplIface { - - // Own properties of Atk-1.0.Atk.HyperlinkImplIface - - static name: string -} - -interface HypertextIface { - - // Own fields of Atk-1.0.Atk.HypertextIface - - parent: GObject.TypeInterface - get_link: (hypertext: Hypertext, link_index: number) => Hyperlink - get_n_links: (hypertext: Hypertext) => number - get_link_index: (hypertext: Hypertext, char_index: number) => number - link_selected: (hypertext: Hypertext, link_index: number) => void -} - -abstract class HypertextIface { - - // Own properties of Atk-1.0.Atk.HypertextIface - - static name: string -} - -interface ImageIface { - - // Own fields of Atk-1.0.Atk.ImageIface - - parent: GObject.TypeInterface - get_image_position: (image: Image, coord_type: CoordType) => [ /* x */ number, /* y */ number ] - get_image_description: (image: Image) => string | null - get_image_size: (image: Image) => [ /* width */ number, /* height */ number ] - set_image_description: (image: Image, description: string | null) => boolean - get_image_locale: (image: Image) => string | null -} - -abstract class ImageIface { - - // Own properties of Atk-1.0.Atk.ImageIface - - static name: string -} - -interface Implementor { - - // Owm methods of Atk-1.0.Atk.Implementor - - /** - * Gets a reference to an object's #AtkObject implementation, if - * the object implements #AtkObjectIface - * @returns a reference to an object's #AtkObject implementation - */ - ref_accessible(): Object -} - -class Implementor { - - // Own properties of Atk-1.0.Atk.Implementor - - static name: string -} - -interface KeyEventStruct { - - // Own fields of Atk-1.0.Atk.KeyEventStruct - - /** - * An AtkKeyEventType, generally one of ATK_KEY_EVENT_PRESS or ATK_KEY_EVENT_RELEASE - * @field - */ - type: number - /** - * A bitmask representing the state of the modifier keys immediately after the event takes place. - * The meaning of the bits is currently defined to match the bitmask used by GDK in - * GdkEventType.state, see - * http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey - * @field - */ - state: number - /** - * A guint representing a keysym value corresponding to those used by GDK and X11: see - * /usr/X11/include/keysymdef.h. - * @field - */ - keyval: number - /** - * The length of member #string. - * @field - */ - length: number - /** - * A string containing one of the following: either a string approximating the text that would - * result from this keypress, if the key is a control or graphic character, or a symbolic name for this keypress. - * Alphanumeric and printable keys will have the symbolic key name in this string member, for instance "A". "0", - * "semicolon", "aacute". Keypad keys have the prefix "KP". - * @field - */ - string: string | null - /** - * The raw hardware code that generated the key event. This field is raraly useful. - * @field - */ - keycode: number - /** - * A timestamp in milliseconds indicating when the event occurred. - * These timestamps are relative to a starting point which should be considered arbitrary, - * and only used to compare the dispatch times of events to one another. - * @field - */ - timestamp: number -} - -/** - * Encapsulates information about a key event. - * @record - */ -class KeyEventStruct { - - // Own properties of Atk-1.0.Atk.KeyEventStruct - - static name: string -} - -interface MiscClass { - - // Own fields of Atk-1.0.Atk.MiscClass - - parent: GObject.ObjectClass - threads_enter: (misc: Misc) => void - threads_leave: (misc: Misc) => void - vfuncs: any[] -} - -/** - * Usage of AtkMisc is deprecated since 2.12 and heavily discouraged. - * @record - */ -abstract class MiscClass { - - // Own properties of Atk-1.0.Atk.MiscClass - - static name: string -} - -interface NoOpObjectClass { - - // Own fields of Atk-1.0.Atk.NoOpObjectClass - - parent_class: ObjectClass -} - -abstract class NoOpObjectClass { - - // Own properties of Atk-1.0.Atk.NoOpObjectClass - - static name: string -} - -interface NoOpObjectFactoryClass { - - // Own fields of Atk-1.0.Atk.NoOpObjectFactoryClass - - parent_class: ObjectFactoryClass -} - -abstract class NoOpObjectFactoryClass { - - // Own properties of Atk-1.0.Atk.NoOpObjectFactoryClass - - static name: string -} - -interface ObjectClass { - - // Own fields of Atk-1.0.Atk.ObjectClass - - parent: GObject.ObjectClass - get_name: (accessible: Object) => string | null - get_description: (accessible: Object) => string | null - get_parent: (accessible: Object) => Object - get_n_children: (accessible: Object) => number - get_index_in_parent: (accessible: Object) => number - ref_relation_set: (accessible: Object) => RelationSet - get_role: (accessible: Object) => Role - get_layer: (accessible: Object) => Layer - get_mdi_zorder: (accessible: Object) => number - ref_state_set: (accessible: Object) => StateSet - set_name: (accessible: Object, name: string | null) => void - set_description: (accessible: Object, description: string | null) => void - set_parent: (accessible: Object, parent: Object) => void - set_role: (accessible: Object, role: Role) => void - remove_property_change_handler: (accessible: Object, handler_id: number) => void - initialize: (accessible: Object, data: any | null) => void - children_changed: (accessible: Object, change_index: number, changed_child: any | null) => void - focus_event: (accessible: Object, focus_in: boolean) => void - property_change: (accessible: Object, values: PropertyValues) => void - state_change: (accessible: Object, name: string | null, state_set: boolean) => void - visible_data_changed: (accessible: Object) => void - active_descendant_changed: (accessible: Object, child: any | null) => void - get_attributes: (accessible: Object) => AttributeSet - get_object_locale: (accessible: Object) => string | null - pad1: Function -} - -abstract class ObjectClass { - - // Own properties of Atk-1.0.Atk.ObjectClass - - static name: string -} - -interface ObjectFactoryClass { - - // Own fields of Atk-1.0.Atk.ObjectFactoryClass - - parent_class: GObject.ObjectClass - invalidate: (factory: ObjectFactory) => void - get_accessible_type: () => GObject.GType - pad1: Function - pad2: Function -} - -abstract class ObjectFactoryClass { - - // Own properties of Atk-1.0.Atk.ObjectFactoryClass - - static name: string -} - -interface PlugClass { - - // Own fields of Atk-1.0.Atk.PlugClass - - parent_class: ObjectClass - get_object_id: (obj: Plug) => string | null -} - -abstract class PlugClass { - - // Own properties of Atk-1.0.Atk.PlugClass - - static name: string -} - -interface PropertyValues { - - // Own fields of Atk-1.0.Atk.PropertyValues - - /** - * The name of the ATK property which has changed. - * @field - */ - property_name: string | null - /** - * NULL. This field is not used anymore. - * @field - */ - old_value: any - /** - * The new value of the named property. - * @field - */ - new_value: any -} - -/** - * Note: `old_value` field of #AtkPropertyValues will not contain a - * valid value. This is a field defined with the purpose of contain - * the previous value of the property, but is not used anymore. - * @record - */ -class PropertyValues { - - // Own properties of Atk-1.0.Atk.PropertyValues - - static name: string -} - -interface Range { - - // Owm methods of Atk-1.0.Atk.Range - - /** - * Returns a new #AtkRange that is a exact copy of `src` - * @returns a new #AtkRange copy of @src - */ - copy(): Range - /** - * Free `range` - */ - free(): void - /** - * Returns the human readable description of `range` - * @returns the human-readable description of @range - */ - get_description(): string | null - /** - * Returns the lower limit of `range` - * @returns the lower limit of @range - */ - get_lower_limit(): number - /** - * Returns the upper limit of `range` - * @returns the upper limit of @range - */ - get_upper_limit(): number -} - -/** - * A given range or subrange, to be used with #AtkValue - * - * #AtkRange are used on #AtkValue, in order to represent the full - * range of a given component (for example an slider or a range - * control), or to define each individual subrange this full range is - * splitted if available. See #AtkValue documentation for further - * details. - * @record - */ -class Range { - - // Own properties of Atk-1.0.Atk.Range - - static name: string - - // Constructors of Atk-1.0.Atk.Range - - /** - * Creates a new #AtkRange. - * @constructor - * @param lower_limit inferior limit for this range - * @param upper_limit superior limit for this range - * @param description human readable description of this range. - * @returns a new #AtkRange - */ - constructor(lower_limit: number, upper_limit: number, description: string | null) - /** - * Creates a new #AtkRange. - * @constructor - * @param lower_limit inferior limit for this range - * @param upper_limit superior limit for this range - * @param description human readable description of this range. - * @returns a new #AtkRange - */ - static new(lower_limit: number, upper_limit: number, description: string | null): Range -} - -interface Rectangle { - - // Own fields of Atk-1.0.Atk.Rectangle - - /** - * X coordinate of the left side of the rectangle. - * @field - */ - x: number - /** - * Y coordinate of the top side of the rectangle. - * @field - */ - y: number - /** - * width of the rectangle. - * @field - */ - width: number - /** - * height of the rectangle. - * @field - */ - height: number -} - -/** - * A data structure for holding a rectangle. Those coordinates are - * relative to the component top-level parent. - * @record - */ -class Rectangle { - - // Own properties of Atk-1.0.Atk.Rectangle - - static name: string -} - -interface RegistryClass { - - // Own fields of Atk-1.0.Atk.RegistryClass - - parent_class: GObject.ObjectClass -} - -abstract class RegistryClass { - - // Own properties of Atk-1.0.Atk.RegistryClass - - static name: string -} - -interface RelationClass { - - // Own fields of Atk-1.0.Atk.RelationClass - - parent: GObject.ObjectClass -} - -abstract class RelationClass { - - // Own properties of Atk-1.0.Atk.RelationClass - - static name: string -} - -interface RelationSetClass { - - // Own fields of Atk-1.0.Atk.RelationSetClass - - parent: GObject.ObjectClass - pad1: Function - pad2: Function -} - -abstract class RelationSetClass { - - // Own properties of Atk-1.0.Atk.RelationSetClass - - static name: string -} - -interface SelectionIface { - - // Own fields of Atk-1.0.Atk.SelectionIface - - parent: GObject.TypeInterface - add_selection: (selection: Selection, i: number) => boolean - clear_selection: (selection: Selection) => boolean - ref_selection: (selection: Selection, i: number) => Object | null - get_selection_count: (selection: Selection) => number - is_child_selected: (selection: Selection, i: number) => boolean - remove_selection: (selection: Selection, i: number) => boolean - select_all_selection: (selection: Selection) => boolean - selection_changed: (selection: Selection) => void -} - -abstract class SelectionIface { - - // Own properties of Atk-1.0.Atk.SelectionIface - - static name: string -} - -interface SocketClass { - - // Own fields of Atk-1.0.Atk.SocketClass - - parent_class: ObjectClass - embed: (obj: Socket, plug_id: string | null) => void -} - -abstract class SocketClass { - - // Own properties of Atk-1.0.Atk.SocketClass - - static name: string -} - -interface StateSetClass { - - // Own fields of Atk-1.0.Atk.StateSetClass - - parent: GObject.ObjectClass -} - -abstract class StateSetClass { - - // Own properties of Atk-1.0.Atk.StateSetClass - - static name: string -} - -interface StreamableContentIface { - - // Own fields of Atk-1.0.Atk.StreamableContentIface - - parent: GObject.TypeInterface - get_n_mime_types: (streamable: StreamableContent) => number - get_mime_type: (streamable: StreamableContent, i: number) => string | null - get_stream: (streamable: StreamableContent, mime_type: string | null) => GLib.IOChannel - get_uri: (streamable: StreamableContent, mime_type: string | null) => string | null - pad1: Function - pad2: Function - pad3: Function -} - -abstract class StreamableContentIface { - - // Own properties of Atk-1.0.Atk.StreamableContentIface - - static name: string -} - -interface TableCellIface { - - // Own fields of Atk-1.0.Atk.TableCellIface - - get_column_span: (cell: TableCell) => number - get_column_header_cells: (cell: TableCell) => Object[] - get_position: (cell: TableCell) => [ /* returnType */ boolean, /* row */ number, /* column */ number ] - get_row_span: (cell: TableCell) => number - get_row_header_cells: (cell: TableCell) => Object[] - get_row_column_span: (cell: TableCell) => [ /* returnType */ boolean, /* row */ number, /* column */ number, /* row_span */ number, /* column_span */ number ] - get_table: (cell: TableCell) => Object -} - -/** - * AtkTableCell is an interface for cells inside an #AtkTable. - * @record - */ -abstract class TableCellIface { - - // Own properties of Atk-1.0.Atk.TableCellIface - - static name: string -} - -interface TableIface { - - // Own fields of Atk-1.0.Atk.TableIface - - parent: GObject.TypeInterface - ref_at: (table: Table, row: number, column: number) => Object - get_index_at: (table: Table, row: number, column: number) => number - get_column_at_index: (table: Table, index_: number) => number - get_row_at_index: (table: Table, index_: number) => number - get_n_columns: (table: Table) => number - get_n_rows: (table: Table) => number - get_column_extent_at: (table: Table, row: number, column: number) => number - get_row_extent_at: (table: Table, row: number, column: number) => number - get_caption: (table: Table) => Object | null - get_column_description: (table: Table, column: number) => string | null - get_column_header: (table: Table, column: number) => Object | null - get_row_description: (table: Table, row: number) => string | null - get_row_header: (table: Table, row: number) => Object | null - get_summary: (table: Table) => Object - set_caption: (table: Table, caption: Object) => void - set_column_description: (table: Table, column: number, description: string | null) => void - set_column_header: (table: Table, column: number, header: Object) => void - set_row_description: (table: Table, row: number, description: string | null) => void - set_row_header: (table: Table, row: number, header: Object) => void - set_summary: (table: Table, accessible: Object) => void - get_selected_columns: (table: Table, selected: number) => number - get_selected_rows: (table: Table, selected: number) => number - is_column_selected: (table: Table, column: number) => boolean - is_row_selected: (table: Table, row: number) => boolean - is_selected: (table: Table, row: number, column: number) => boolean - add_row_selection: (table: Table, row: number) => boolean - remove_row_selection: (table: Table, row: number) => boolean - add_column_selection: (table: Table, column: number) => boolean - remove_column_selection: (table: Table, column: number) => boolean - row_inserted: (table: Table, row: number, num_inserted: number) => void - column_inserted: (table: Table, column: number, num_inserted: number) => void - row_deleted: (table: Table, row: number, num_deleted: number) => void - column_deleted: (table: Table, column: number, num_deleted: number) => void - row_reordered: (table: Table) => void - column_reordered: (table: Table) => void - model_changed: (table: Table) => void -} - -abstract class TableIface { - - // Own properties of Atk-1.0.Atk.TableIface - - static name: string -} - -interface TextIface { - - // Own fields of Atk-1.0.Atk.TextIface - - parent: GObject.TypeInterface - get_text: (text: Text, start_offset: number, end_offset: number) => string | null - get_text_after_offset: (text: Text, offset: number, boundary_type: TextBoundary) => [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - get_text_at_offset: (text: Text, offset: number, boundary_type: TextBoundary) => [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - get_character_at_offset: (text: Text, offset: number) => string - get_text_before_offset: (text: Text, offset: number, boundary_type: TextBoundary) => [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - get_caret_offset: (text: Text) => number - get_run_attributes: (text: Text, offset: number) => [ /* returnType */ AttributeSet, /* start_offset */ number, /* end_offset */ number ] - get_default_attributes: (text: Text) => AttributeSet - get_character_extents: (text: Text, offset: number, coords: CoordType) => [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ] - get_character_count: (text: Text) => number - get_offset_at_point: (text: Text, x: number, y: number, coords: CoordType) => number - get_n_selections: (text: Text) => number - get_selection: (text: Text, selection_num: number) => [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - add_selection: (text: Text, start_offset: number, end_offset: number) => boolean - remove_selection: (text: Text, selection_num: number) => boolean - set_selection: (text: Text, selection_num: number, start_offset: number, end_offset: number) => boolean - set_caret_offset: (text: Text, offset: number) => boolean - text_changed: (text: Text, position: number, length: number) => void - text_caret_moved: (text: Text, location: number) => void - text_selection_changed: (text: Text) => void - text_attributes_changed: (text: Text) => void - get_range_extents: (text: Text, start_offset: number, end_offset: number, coord_type: CoordType) => /* rect */ TextRectangle - get_bounded_ranges: (text: Text, rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType) => TextRange[] - get_string_at_offset: (text: Text, offset: number, granularity: TextGranularity) => [ /* returnType */ string | null, /* start_offset */ number, /* end_offset */ number ] - scroll_substring_to: (text: Text, start_offset: number, end_offset: number, type: ScrollType) => boolean - scroll_substring_to_point: (text: Text, start_offset: number, end_offset: number, coords: CoordType, x: number, y: number) => boolean -} - -abstract class TextIface { - - // Own properties of Atk-1.0.Atk.TextIface - - static name: string -} - -interface TextRange { - - // Own fields of Atk-1.0.Atk.TextRange - - /** - * A rectangle giving the bounds of the text range - * @field - */ - bounds: TextRectangle - /** - * The start offset of a AtkTextRange - * @field - */ - start_offset: number - /** - * The end offset of a AtkTextRange - * @field - */ - end_offset: number - /** - * The text in the text range - * @field - */ - content: string | null -} - -/** - * A structure used to describe a text range. - * @record - */ -class TextRange { - - // Own properties of Atk-1.0.Atk.TextRange - - static name: string -} - -interface TextRectangle { - - // Own fields of Atk-1.0.Atk.TextRectangle - - /** - * The horizontal coordinate of a rectangle - * @field - */ - x: number - /** - * The vertical coordinate of a rectangle - * @field - */ - y: number - /** - * The width of a rectangle - * @field - */ - width: number - /** - * The height of a rectangle - * @field - */ - height: number -} - -/** - * A structure used to store a rectangle used by AtkText. - * @record - */ -class TextRectangle { - - // Own properties of Atk-1.0.Atk.TextRectangle - - static name: string -} - -interface UtilClass { - - // Own fields of Atk-1.0.Atk.UtilClass - - parent: GObject.ObjectClass - remove_global_event_listener: (listener_id: number) => void - remove_key_event_listener: (listener_id: number) => void - get_toolkit_name: () => string | null - get_toolkit_version: () => string | null -} - -abstract class UtilClass { - - // Own properties of Atk-1.0.Atk.UtilClass - - static name: string -} - -interface ValueIface { - - // Own fields of Atk-1.0.Atk.ValueIface - - parent: GObject.TypeInterface - get_current_value: (obj: Value) => /* value */ any - get_maximum_value: (obj: Value) => /* value */ any - get_minimum_value: (obj: Value) => /* value */ any - set_current_value: (obj: Value, value: any) => boolean - get_minimum_increment: (obj: Value) => /* value */ any - get_value_and_text: (obj: Value) => [ /* value */ number, /* text */ string | null ] - get_range: (obj: Value) => Range | null - get_increment: (obj: Value) => number - get_sub_ranges: (obj: Value) => Range[] - set_value: (obj: Value, new_value: number) => void -} - -abstract class ValueIface { - - // Own properties of Atk-1.0.Atk.ValueIface - - static name: string -} - -interface WindowIface { - - // Own fields of Atk-1.0.Atk.WindowIface - - parent: GObject.TypeInterface -} - -abstract class WindowIface { - - // Own properties of Atk-1.0.Atk.WindowIface - - static name: string -} - - type AttributeSet = GLib.SList - type State = number -/** - * Name of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188 - */ -const __name__: string -/** - * Version of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189 - */ -const __version__: string -} - -export default Atk; -// END \ No newline at end of file diff --git a/@types/gir-generated/cairo-1.0-ambient.d.ts b/@types/gir-generated/cairo-1.0-ambient.d.ts deleted file mode 100644 index f92c440..0000000 --- a/@types/gir-generated/cairo-1.0-ambient.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -declare module 'gi://cairo?version=1.0' { - const Cairo10: typeof import('./cairo-1.0.js').default; - export default Cairo10; -} - -declare module 'gi://cairo' { - const Cairo10: typeof import('./cairo-1.0.js').default; - export default Cairo10; -} - - diff --git a/@types/gir-generated/cairo-1.0-import.d.ts b/@types/gir-generated/cairo-1.0-import.d.ts deleted file mode 100644 index 340b4c4..0000000 --- a/@types/gir-generated/cairo-1.0-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -type Cairo10 = typeof import('./cairo-1.0.js').default; - -declare global { - export interface GjsGiImports { - cairo: Cairo10; - } -} - -export default GjsGiImports; - - diff --git a/@types/gir-generated/cairo-1.0.d.ts b/@types/gir-generated/cairo-1.0.d.ts deleted file mode 100644 index ff146ea..0000000 --- a/@types/gir-generated/cairo-1.0.d.ts +++ /dev/null @@ -1,395 +0,0 @@ - -/* - * Type Definitions for Gjs (https://gjs.guide/) - * - * These type definitions are automatically generated, do not edit them by hand. - * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir - */ - -import './cairo-1.0-import.d.ts'; -/** - * cairo-1.0 - */ - -import type GObject from './gobject-2.0.js'; -import type GLib from './glib-2.0.js'; - -export namespace cairo { - -enum Status { - SUCCESS, - NO_MEMORY, - INVALID_RESTORE, - INVALID_POP_GROUP, - NO_CURRENT_POINT, - INVALID_MATRIX, - INVALID_STATUS, - NULL_POINTER, - INVALID_STRING, - INVALID_PATH_DATA, - READ_ERROR, - WRITE_ERROR, - SURFACE_FINISHED, - SURFACE_TYPE_MISMATCH, - PATTERN_TYPE_MISMATCH, - INVALID_CONTENT, - INVALID_FORMAT, - INVALID_VISUAL, - FILE_NOT_FOUND, - INVALID_DASH, - INVALID_DSC_COMMENT, - INVALID_INDEX, - CLIP_NOT_REPRESENTABLE, - TEMP_FILE_ERROR, - INVALID_STRIDE, - FONT_TYPE_MISMATCH, - USER_FONT_IMMUTABLE, - USER_FONT_ERROR, - NEGATIVE_COUNT, - INVALID_CLUSTERS, - INVALID_SLANT, - INVALID_WEIGHT, - INVALID_SIZE, - USER_FONT_NOT_IMPLEMENTED, - DEVICE_TYPE_MISMATCH, - DEVICE_ERROR, - INVALID_MESH_CONSTRUCTION, - DEVICE_FINISHED, - JBIG2_GLOBAL_MISSING, -} -enum Content { - COLOR, - ALPHA, - COLOR_ALPHA, -} -enum Operator { - CLEAR, - SOURCE, - OVER, - IN, - OUT, - ATOP, - DEST, - DEST_OVER, - DEST_IN, - DEST_OUT, - DEST_ATOP, - XOR, - ADD, - SATURATE, - MULTIPLY, - SCREEN, - OVERLAY, - DARKEN, - LIGHTEN, - COLOR_DODGE, - COLOR_BURN, - HARD_LIGHT, - SOFT_LIGHT, - DIFFERENCE, - EXCLUSION, - HSL_HUE, - HSL_SATURATION, - HSL_COLOR, - HSL_LUMINOSITY, -} -enum Antialias { - DEFAULT, - NONE, - GRAY, - SUBPIXEL, - FAST, - GOOD, - BEST, -} -enum FillRule { - WINDING, - EVEN_ODD, -} -enum LineCap { - BUTT, - ROUND, - SQUARE, -} -enum LineJoin { - MITER, - ROUND, - BEVEL, -} -enum TextClusterFlags { - BACKWARD, -} -enum FontSlant { - NORMAL, - ITALIC, - OBLIQUE, -} -enum FontWeight { - NORMAL, - BOLD, -} -enum SubpixelOrder { - DEFAULT, - RGB, - BGR, - VRGB, - VBGR, -} -enum HintStyle { - DEFAULT, - NONE, - SLIGHT, - MEDIUM, - FULL, -} -enum HintMetrics { - DEFAULT, - OFF, - ON, -} -enum FontType { - TOY, - FT, - WIN32, - QUARTZ, - USER, -} -enum PathDataType { - MOVE_TO, - LINE_TO, - CURVE_TO, - CLOSE_PATH, -} -enum DeviceType { - DRM, - GL, - SCRIPT, - XCB, - XLIB, - XML, - COGL, - WIN32, - INVALID, -} -enum SurfaceType { - IMAGE, - PDF, - PS, - XLIB, - XCB, - GLITZ, - QUARTZ, - WIN32, - BEOS, - DIRECTFB, - SVG, - OS2, - WIN32_PRINTING, - QUARTZ_IMAGE, - SCRIPT, - QT, - RECORDING, - VG, - GL, - DRM, - TEE, - XML, - SKIA, - SUBSURFACE, - COGL, -} -enum Format { - INVALID, - ARGB32, - RGB24, - A8, - A1, - RGB16_565, - RGB30, -} -enum PatternType { - SOLID, - SURFACE, - LINEAR, - RADIAL, - MESH, - RASTER_SOURCE, -} -enum Extend { - NONE, - REPEAT, - REFLECT, - PAD, -} -enum Filter { - FAST, - GOOD, - BEST, - NEAREST, - BILINEAR, - GAUSSIAN, -} -enum RegionOverlap { - IN, - OUT, - PART, -} -function image_surface_create(): void -// TODO -// See -// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairoModule.js -// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairo.js -// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/cairo.md - -// image_surface_create -> ImageSurface -// Context.constructor(surface: cairo.ImageSurface) -// ... - -interface Context { -} - -class Context { - - // Own properties of cairo-1.0.cairo.Context - - static name: string -} - -interface Device { -} - -class Device { - - // Own properties of cairo-1.0.cairo.Device - - static name: string -} - -interface Surface { -} - -class Surface { - - // Own properties of cairo-1.0.cairo.Surface - - static name: string -} - -interface Matrix { -} - -class Matrix { - - // Own properties of cairo-1.0.cairo.Matrix - - static name: string -} - -interface Pattern { -} - -class Pattern { - - // Own properties of cairo-1.0.cairo.Pattern - - static name: string -} - -interface Region { -} - -class Region { - - // Own properties of cairo-1.0.cairo.Region - - static name: string -} - -interface FontOptions { -} - -class FontOptions { - - // Own properties of cairo-1.0.cairo.FontOptions - - static name: string -} - -interface FontFace { -} - -class FontFace { - - // Own properties of cairo-1.0.cairo.FontFace - - static name: string -} - -interface ScaledFont { -} - -class ScaledFont { - - // Own properties of cairo-1.0.cairo.ScaledFont - - static name: string -} - -interface Path { -} - -class Path { - - // Own properties of cairo-1.0.cairo.Path - - static name: string -} - -interface Rectangle { - - // Own fields of cairo-1.0.cairo.Rectangle - - x: number - y: number - width: number - height: number -} - -class Rectangle { - - // Own properties of cairo-1.0.cairo.Rectangle - - static name: string -} - -interface RectangleInt { - - // Own fields of cairo-1.0.cairo.RectangleInt - - x: number - y: number - width: number - height: number -} - -class RectangleInt { - - // Own properties of cairo-1.0.cairo.RectangleInt - - static name: string -} - -/** - * Name of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188 - */ -const __name__: string -/** - * Version of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189 - */ -const __version__: string -} - -export default cairo; -// END \ No newline at end of file diff --git a/@types/gir-generated/cairo.d.ts b/@types/gir-generated/cairo.d.ts deleted file mode 100644 index 0066a55..0000000 --- a/@types/gir-generated/cairo.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// TODO: See ./cairo-1.0.d.ts -declare const Cairo: any; - -export default Cairo; - - - - diff --git a/@types/gir-generated/cally-13-ambient.d.ts b/@types/gir-generated/cally-13-ambient.d.ts deleted file mode 100644 index c225674..0000000 --- a/@types/gir-generated/cally-13-ambient.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -declare module 'gi://Cally?version=13' { - const Cally13: typeof import('./cally-13.js').default; - export default Cally13; -} - -declare module 'gi://Cally' { - const Cally13: typeof import('./cally-13.js').default; - export default Cally13; -} - - diff --git a/@types/gir-generated/cally-13-import.d.ts b/@types/gir-generated/cally-13-import.d.ts deleted file mode 100644 index a9d1144..0000000 --- a/@types/gir-generated/cally-13-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -type Cally13 = typeof import('./cally-13.js').default; - -declare global { - export interface GjsGiImports { - Cally: Cally13; - } -} - -export default GjsGiImports; - - diff --git a/@types/gir-generated/cally-13.d.ts b/@types/gir-generated/cally-13.d.ts deleted file mode 100644 index 4d4a7a6..0000000 --- a/@types/gir-generated/cally-13.d.ts +++ /dev/null @@ -1,1251 +0,0 @@ - -/* - * Type Definitions for Gjs (https://gjs.guide/) - * - * These type definitions are automatically generated, do not edit them by hand. - * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir - */ - -import './cally-13-import.d.ts'; -/** - * Cally-13 - */ - -import type Mtk from './mtk-13.js'; -import type cairo from './cairo-1.0.js'; -import type GObject from './gobject-2.0.js'; -import type GLib from './glib-2.0.js'; -import type Graphene from './graphene-1.0.js'; -import type CoglPango from './coglpango-13.js'; -import type PangoCairo from './pangocairo-1.0.js'; -import type Pango from './pango-1.0.js'; -import type HarfBuzz from './harfbuzz-0.0.js'; -import type freetype2 from './freetype2-2.0.js'; -import type Gio from './gio-2.0.js'; -import type Cogl from './cogl-13.js'; -import type GL from './gl-1.0.js'; -import type Clutter from './clutter-13.js'; -import type Json from './json-1.0.js'; -import type Atk from './atk-1.0.js'; - -export namespace Cally { - -/** - * Initializes the accessibility support. - * @returns %TRUE if accessibility support has been correctly initialized. - */ -function accessibility_init(): boolean -/** - * Returns if the accessibility support using cally is enabled. - * @returns %TRUE if accessibility support has been correctly initialized. - */ -function get_cally_initialized(): boolean -function snoop_key_event(stage: Clutter.Stage, key: Clutter.KeyEvent): boolean -/** - * Action function, to be used on #AtkAction implementations as - * an individual action. - * - * Unlike #CallyActionFunc, this function uses the `user_data` - * argument passed to [method`Actor`.add_action_full]. - * @callback - * @param cally_actor a #CallyActor - */ -interface ActionCallback { - (cally_actor: Actor): void -} -/** - * Action function, to be used on #AtkAction implementations as a individual - * action - * @callback - * @param cally_actor a #CallyActor - */ -interface ActionFunc { - (cally_actor: Actor): void -} -module Actor { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.Action.ConstructorProperties, Atk.Component.ConstructorProperties, Atk.GObjectAccessible.ConstructorProperties { - } - -} - -interface Actor extends Atk.Action, Atk.Component { - - // Conflicting properties - - parent: Atk.Object & GObject.Object & GObject.Object - - // Owm methods of Cally-13.Cally.Actor - - /** - * Adds a new action to be accessed with the #AtkAction interface. - * @param action_name the action name - * @param action_description the action description - * @param action_keybinding the action keybinding - * @param callback the callback of the action - * @returns added action id, or -1 if failure - */ - add_action(action_name: string | null, action_description: string | null, action_keybinding: string | null, callback: ActionCallback): number - /** - * Removes a action, using the `action_id` returned by [method`Actor`.add_action] - * @param action_id the action id - * @returns %TRUE if the operation was successful, %FALSE otherwise - */ - remove_action(action_id: number): boolean - /** - * Removes an action, using the `action_name` used when the action was added - * with [method`Actor`.add_action] - * @param action_name the name of the action to remove - * @returns %TRUE if the operation was successful, %FALSE otherwise - */ - remove_action_by_name(action_name: string | null): boolean - - // Conflicting methods - - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - - // Class property signals of Cally-13.Cally.Actor - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Implementation of the ATK interfaces for [class`Clutter`.Actor] - * - * #CallyActor implements the required ATK interfaces of [class`Clutter`.Actor] - * exposing the common elements on each actor (position, extents, etc). - * @class - */ -class Actor extends Atk.GObjectAccessible { - - // Own properties of Cally-13.Cally.Actor - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Actor - - constructor(config?: Actor.ConstructorProperties) - /** - * Creates a new #CallyActor for the given `actor` - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - constructor(actor: Clutter.Actor) - /** - * Creates a new #CallyActor for the given `actor` - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - static new(actor: Clutter.Actor): Actor - _init(config?: Actor.ConstructorProperties): void -} - -module Clone { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.Action.ConstructorProperties, Atk.Component.ConstructorProperties, Actor.ConstructorProperties { - } - -} - -interface Clone extends Atk.Action, Atk.Component { - - // Conflicting properties - - parent: Atk.Object & GObject.Object & GObject.Object - - // Conflicting methods - - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - - // Class property signals of Cally-13.Cally.Clone - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Implementation of the ATK interfaces for a #ClutterClone - * - * #CallyClone implements the required ATK interfaces of [class`Clutter`.Clone] - * - * In particular it sets a proper role for the clone, as just a image, - * as it is the sanest and simplest approach. - * @class - */ -class Clone extends Actor { - - // Own properties of Cally-13.Cally.Clone - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Clone - - constructor(config?: Clone.ConstructorProperties) - /** - * Creates a new #CallyClone for the given `actor`. `actor` must be a - * [class`Clutter`.Clone]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - constructor(actor: Clutter.Actor) - /** - * Creates a new #CallyClone for the given `actor`. `actor` must be a - * [class`Clutter`.Clone]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - static new(actor: Clutter.Actor): Clone - _init(config?: Clone.ConstructorProperties): void -} - -module Root { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.GObjectAccessible.ConstructorProperties { - } - -} - -interface Root { - - // Conflicting properties - - parent: Atk.Object & GObject.Object & GObject.Object - - // Class property signals of Cally-13.Cally.Root - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Root, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Root object for the Cally toolkit - * - * #CallyRoot is the root object of the accessibility tree-like - * hierarchy, exposing the application level. - * - * Somewhat equivalent to #GailTopLevel. We consider that this class - * expose the a11y information of the [class`Clutter`.StageManager], as the - * children of this object are the different [class`Clutter`.Stage] managed (so - * the [class`GObject`.Object] used in the atk_object_initialize() is the - * [class`Clutter`.StageManager]). - * @class - */ -class Root extends Atk.GObjectAccessible { - - // Own properties of Cally-13.Cally.Root - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Root - - constructor(config?: Root.ConstructorProperties) - /** - * Creates a new #CallyRoot object. - * @constructor - * @returns the newly created #AtkObject - */ - constructor() - /** - * Creates a new #CallyRoot object. - * @constructor - * @returns the newly created #AtkObject - */ - static new(): Root - _init(config?: Root.ConstructorProperties): void -} - -module Stage { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.Action.ConstructorProperties, Atk.Component.ConstructorProperties, Atk.Window.ConstructorProperties, Actor.ConstructorProperties { - } - -} - -interface Stage extends Atk.Action, Atk.Component, Atk.Window { - - // Conflicting properties - - parent: GObject.Object & Atk.Object - - // Conflicting methods - - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - - // Class property signals of Cally-13.Cally.Stage - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Stage, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Implementation of the ATK interfaces for a #ClutterStage - * - * #CallyStage implements the required ATK interfaces for [class`Clutter`.Stage] - * - * Some implementation details: at this moment #CallyStage is used as - * the most similar Window object in this toolkit (ie: emitting window - * related signals), although the real purpose of [class`Clutter`.Stage] is - * being a canvas. Anyway, this is required for applications using - * just clutter, or directly [class`Clutter`.Stage] - * @class - */ -class Stage extends Actor { - - // Own properties of Cally-13.Cally.Stage - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Stage - - constructor(config?: Stage.ConstructorProperties) - /** - * Creates a new #CallyStage for the given `actor`. `actor` should be a - * [class`Clutter`.Stage]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - constructor(actor: Clutter.Actor) - /** - * Creates a new #CallyStage for the given `actor`. `actor` should be a - * [class`Clutter`.Stage]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - static new(actor: Clutter.Actor): Stage - _init(config?: Stage.ConstructorProperties): void -} - -module Text { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.Action.ConstructorProperties, Atk.Component.ConstructorProperties, Atk.EditableText.ConstructorProperties, Atk.Text.ConstructorProperties, Actor.ConstructorProperties { - } - -} - -interface Text extends Atk.Action, Atk.Component, Atk.EditableText, Atk.Text { - - // Conflicting properties - - parent: Atk.Object & GObject.Object & GObject.Object - - // Conflicting methods - - /** - * Returns a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @returns a character string representing the accessible description of the accessible. - */ - get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @returns a character string representing the accessible name of the object. - */ - get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @param description a character string to be set as the accessible description - */ - set_description(description: string | null): void - /** - * Returns a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a description string, or %NULL if @action does not implement this interface. - */ - vfunc_get_description(i: number): string | null - /** - * Gets the accessible description of the accessible. - * @virtual - * @returns a character string representing the accessible description of the accessible. - */ - vfunc_get_description(): string | null - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * @virtual - * @param i the action index corresponding to the action to be performed - * @returns a name string, or %NULL if @action does not implement this interface. - */ - vfunc_get_name(i: number): string | null - /** - * Gets the accessible name of the accessible. - * @virtual - * @returns a character string representing the accessible name of the object. - */ - vfunc_get_name(): string | null - /** - * Sets a description of the specified action of the object. - * @virtual - * @param i the action index corresponding to the action to be performed - * @param desc the description to be assigned to this action - * @returns a gboolean representing if the description was successfully set; - */ - vfunc_set_description(i: number, desc: string | null): boolean - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * @virtual - * @param description a character string to be set as the accessible description - */ - vfunc_set_description(description: string | null): void - - // Class property signals of Cally-13.Cally.Text - - connect(sigName: "notify::accessible-component-layer", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-layer", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-layer", ...args: any[]): void - connect(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-component-mdi-zorder", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-component-mdi-zorder", ...args: any[]): void - connect(sigName: "notify::accessible-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-description", ...args: any[]): void - connect(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-hypertext-nlinks", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-hypertext-nlinks", ...args: any[]): void - connect(sigName: "notify::accessible-name", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-name", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-name", ...args: any[]): void - connect(sigName: "notify::accessible-role", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-role", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-role", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption", ...args: any[]): void - connect(sigName: "notify::accessible-table-caption-object", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-caption-object", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-caption-object", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-column-header", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-column-header", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-column-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-description", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-description", ...args: any[]): void - connect(sigName: "notify::accessible-table-row-header", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-row-header", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-row-header", ...args: any[]): void - connect(sigName: "notify::accessible-table-summary", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-table-summary", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-table-summary", ...args: any[]): void - connect(sigName: "notify::accessible-value", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::accessible-value", callback: (($obj: Text, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::accessible-value", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Implementation of the ATK interfaces for a [class`Clutter`.Text] - * - * #CallyText implements the required ATK interfaces of - * [class`Clutter`.Text], #AtkText and #AtkEditableText - * @class - */ -class Text extends Actor { - - // Own properties of Cally-13.Cally.Text - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Text - - constructor(config?: Text.ConstructorProperties) - /** - * Creates a new #CallyText for the given `actor`. `actor` must be a - * [class`Clutter`.Text]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - constructor(actor: Clutter.Actor) - /** - * Creates a new #CallyText for the given `actor`. `actor` must be a - * [class`Clutter`.Text]. - * @constructor - * @param actor a #ClutterActor - * @returns the newly created #AtkObject - */ - static new(actor: Clutter.Actor): Text - _init(config?: Text.ConstructorProperties): void -} - -module Util { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.Util.ConstructorProperties { - } - -} - -interface Util { - - // Class property signals of Cally-13.Cally.Util - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * #AtkUtil implementation - * - * #CallyUtil implements #AtkUtil abstract methods. Although it - * includes the name "Util" it is in fact one of the most important - * interfaces to be implemented in any ATK toolkit implementation. - * - * For instance, it defines atk_get_root(), the method that returns - * the root object in the hierarchy. Without it, you don't have - * available any accessible object. - * @class - */ -class Util extends Atk.Util { - - // Own properties of Cally-13.Cally.Util - - static name: string - static $gtype: GObject.GType - - // Constructors of Cally-13.Cally.Util - - constructor(config?: Util.ConstructorProperties) - _init(config?: Util.ConstructorProperties): void -} - -interface ActorClass { - - // Own fields of Cally-13.Cally.ActorClass - - notify_clutter: (object: GObject.Object, pspec: GObject.ParamSpec) => void - add_actor: (container: Clutter.Actor, actor: Clutter.Actor, data: any) => number - remove_actor: (container: Clutter.Actor, actor: Clutter.Actor, data: any) => number -} - -/** - * The CallyActorClass structure contains - * only private data - * @record - */ -abstract class ActorClass { - - // Own properties of Cally-13.Cally.ActorClass - - static name: string -} - -interface ActorPrivate { -} - -class ActorPrivate { - - // Own properties of Cally-13.Cally.ActorPrivate - - static name: string -} - -interface CloneClass { -} - -/** - * The CallyCloneClass structure contains only - * private data - * @record - */ -abstract class CloneClass { - - // Own properties of Cally-13.Cally.CloneClass - - static name: string -} - -interface ClonePrivate { -} - -class ClonePrivate { - - // Own properties of Cally-13.Cally.ClonePrivate - - static name: string -} - -interface RootClass { -} - -/** - * The CallyRootClass structure contains only - * private data - * @record - */ -abstract class RootClass { - - // Own properties of Cally-13.Cally.RootClass - - static name: string -} - -interface RootPrivate { -} - -class RootPrivate { - - // Own properties of Cally-13.Cally.RootPrivate - - static name: string -} - -interface StageClass { -} - -/** - * The CallyStageClass structure contains only - * private data - * @record - */ -abstract class StageClass { - - // Own properties of Cally-13.Cally.StageClass - - static name: string -} - -interface StagePrivate { -} - -class StagePrivate { - - // Own properties of Cally-13.Cally.StagePrivate - - static name: string -} - -interface TextClass { -} - -/** - * The CallyTextClass structure contains only - * private data - * @record - */ -abstract class TextClass { - - // Own properties of Cally-13.Cally.TextClass - - static name: string -} - -interface TextPrivate { -} - -class TextPrivate { - - // Own properties of Cally-13.Cally.TextPrivate - - static name: string -} - -interface UtilClass { -} - -/** - * The CallyUtilClass structure contains only - * private data - * @record - */ -abstract class UtilClass { - - // Own properties of Cally-13.Cally.UtilClass - - static name: string -} - -interface UtilPrivate { -} - -class UtilPrivate { - - // Own properties of Cally-13.Cally.UtilPrivate - - static name: string -} - -/** - * Name of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188 - */ -const __name__: string -/** - * Version of the imported GIR library - * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189 - */ -const __version__: string -} - -export default Cally; -// END \ No newline at end of file diff --git a/@types/gir-generated/clutter-13-ambient.d.ts b/@types/gir-generated/clutter-13-ambient.d.ts deleted file mode 100644 index 7cf1f1c..0000000 --- a/@types/gir-generated/clutter-13-ambient.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -declare module 'gi://Clutter?version=13' { - const Clutter13: typeof import('./clutter-13.js').default; - export default Clutter13; -} - -declare module 'gi://Clutter' { - const Clutter13: typeof import('./clutter-13.js').default; - export default Clutter13; -} - - diff --git a/@types/gir-generated/clutter-13-import.d.ts b/@types/gir-generated/clutter-13-import.d.ts deleted file mode 100644 index dcd4b5b..0000000 --- a/@types/gir-generated/clutter-13-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ - - -type Clutter13 = typeof import('./clutter-13.js').default; - -declare global { - export interface GjsGiImports { - Clutter: Clutter13; - } -} - -export default GjsGiImports; - - diff --git a/@types/gir-generated/clutter-13.d.ts b/@types/gir-generated/clutter-13.d.ts deleted file mode 100644 index 4c122a0..0000000 --- a/@types/gir-generated/clutter-13.d.ts +++ /dev/null @@ -1,25965 +0,0 @@ - -/* - * Type Definitions for Gjs (https://gjs.guide/) - * - * These type definitions are automatically generated, do not edit them by hand. - * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir - */ - -import './clutter-13-import.d.ts'; -/** - * Clutter-13 - */ - -import type cairo from './cairo-1.0.js'; -import type GObject from './gobject-2.0.js'; -import type GLib from './glib-2.0.js'; -import type Mtk from './mtk-13.js'; -import type Graphene from './graphene-1.0.js'; -import type Json from './json-1.0.js'; -import type Gio from './gio-2.0.js'; -import type GL from './gl-1.0.js'; -import type CoglPango from './coglpango-13.js'; -import type PangoCairo from './pangocairo-1.0.js'; -import type Pango from './pango-1.0.js'; -import type HarfBuzz from './harfbuzz-0.0.js'; -import type freetype2 from './freetype2-2.0.js'; -import type Cogl from './cogl-13.js'; -import type Atk from './atk-1.0.js'; - -export namespace Clutter { - -/** - * Controls how a #ClutterActor should align itself inside the extra space - * assigned to it during the allocation. - * - * Alignment only matters if the allocated space given to an actor is - * bigger than its natural size; for example, when the #ClutterActor:x-expand - * or the #ClutterActor:y-expand properties of #ClutterActor are set to %TRUE. - */ -enum ActorAlign { - /** - * Stretch to cover the whole allocated space - */ - FILL, - /** - * Snap to left or top side, leaving space - * to the right or bottom. For horizontal layouts, in right-to-left - * locales this should be reversed. - */ - START, - /** - * Center the actor inside the allocation - */ - CENTER, - /** - * Snap to right or bottom side, leaving space - * to the left or top. For horizontal layouts, in right-to-left locales - * this should be reversed. - */ - END, -} -/** - * Specifies the axis on which #ClutterAlignConstraint should maintain - * the alignment. - */ -enum AlignAxis { - /** - * Maintain the alignment on the X axis - */ - X_AXIS, - /** - * Maintain the alignment on the Y axis - */ - Y_AXIS, - /** - * Maintain the alignment on both the X and Y axis - */ - BOTH, -} -/** - * The animation modes used by [iface`Animatable]`. - * - * This enumeration can be expanded in later versions of Clutter. - * - *
                  - * Easing modes provided by Clutter - * - *
                  - * - * Every global alpha function registered using clutter_alpha_register_func() - * or clutter_alpha_register_closure() will have a logical id greater than - * %CLUTTER_ANIMATION_LAST. - */ -enum AnimationMode { - /** - * custom progress function - */ - CUSTOM_MODE, - /** - * linear tweening - */ - LINEAR, - /** - * quadratic tweening - */ - EASE_IN_QUAD, - /** - * quadratic tweening, inverse of - * %CLUTTER_EASE_IN_QUAD - */ - EASE_OUT_QUAD, - /** - * quadratic tweening, combininig - * %CLUTTER_EASE_IN_QUAD and %CLUTTER_EASE_OUT_QUAD - */ - EASE_IN_OUT_QUAD, - /** - * cubic tweening - */ - EASE_IN_CUBIC, - /** - * cubic tweening, inverse of - * %CLUTTER_EASE_IN_CUBIC - */ - EASE_OUT_CUBIC, - /** - * cubic tweening, combining - * %CLUTTER_EASE_IN_CUBIC and %CLUTTER_EASE_OUT_CUBIC - */ - EASE_IN_OUT_CUBIC, - /** - * quartic tweening - */ - EASE_IN_QUART, - /** - * quartic tweening, inverse of - * %CLUTTER_EASE_IN_QUART - */ - EASE_OUT_QUART, - /** - * quartic tweening, combining - * %CLUTTER_EASE_IN_QUART and %CLUTTER_EASE_OUT_QUART - */ - EASE_IN_OUT_QUART, - /** - * quintic tweening - */ - EASE_IN_QUINT, - /** - * quintic tweening, inverse of - * %CLUTTER_EASE_IN_QUINT - */ - EASE_OUT_QUINT, - /** - * fifth power tweening, combining - * %CLUTTER_EASE_IN_QUINT and %CLUTTER_EASE_OUT_QUINT - */ - EASE_IN_OUT_QUINT, - /** - * sinusoidal tweening - */ - EASE_IN_SINE, - /** - * sinusoidal tweening, inverse of - * %CLUTTER_EASE_IN_SINE - */ - EASE_OUT_SINE, - /** - * sine wave tweening, combining - * %CLUTTER_EASE_IN_SINE and %CLUTTER_EASE_OUT_SINE - */ - EASE_IN_OUT_SINE, - /** - * exponential tweening - */ - EASE_IN_EXPO, - /** - * exponential tweening, inverse of - * %CLUTTER_EASE_IN_EXPO - */ - EASE_OUT_EXPO, - /** - * exponential tweening, combining - * %CLUTTER_EASE_IN_EXPO and %CLUTTER_EASE_OUT_EXPO - */ - EASE_IN_OUT_EXPO, - /** - * circular tweening - */ - EASE_IN_CIRC, - /** - * circular tweening, inverse of - * %CLUTTER_EASE_IN_CIRC - */ - EASE_OUT_CIRC, - /** - * circular tweening, combining - * %CLUTTER_EASE_IN_CIRC and %CLUTTER_EASE_OUT_CIRC - */ - EASE_IN_OUT_CIRC, - /** - * elastic tweening, with offshoot on start - */ - EASE_IN_ELASTIC, - /** - * elastic tweening, with offshoot on end - */ - EASE_OUT_ELASTIC, - /** - * elastic tweening with offshoot on both ends - */ - EASE_IN_OUT_ELASTIC, - /** - * overshooting cubic tweening, with - * backtracking on start - */ - EASE_IN_BACK, - /** - * overshooting cubic tweening, with - * backtracking on end - */ - EASE_OUT_BACK, - /** - * overshooting cubic tweening, with - * backtracking on both ends - */ - EASE_IN_OUT_BACK, - /** - * exponentially decaying parabolic (bounce) - * tweening, with bounce on start - */ - EASE_IN_BOUNCE, - /** - * exponentially decaying parabolic (bounce) - * tweening, with bounce on end - */ - EASE_OUT_BOUNCE, - /** - * exponentially decaying parabolic (bounce) - * tweening, with bounce on both ends - */ - EASE_IN_OUT_BOUNCE, - /** - * parametrized step function; see clutter_timeline_set_step_progress() - * for further details. (Since 1.12) - */ - STEPS, - /** - * equivalent to %CLUTTER_STEPS with a number of steps - * equal to 1, and a step mode of %CLUTTER_STEP_MODE_START. (Since 1.12) - */ - STEP_START, - /** - * equivalent to %CLUTTER_STEPS with a number of steps - * equal to 1, and a step mode of %CLUTTER_STEP_MODE_END. (Since 1.12) - */ - STEP_END, - /** - * cubic bezier between (0, 0) and (1, 1) with two - * control points; see clutter_timeline_set_cubic_bezier_progress(). (Since 1.12) - */ - CUBIC_BEZIER, - /** - * equivalent to %CLUTTER_CUBIC_BEZIER with control points - * in (0.25, 0.1) and (0.25, 1.0). (Since 1.12) - */ - EASE, - /** - * equivalent to %CLUTTER_CUBIC_BEZIER with control points - * in (0.42, 0) and (1.0, 1.0). (Since 1.12) - */ - EASE_IN, - /** - * equivalent to %CLUTTER_CUBIC_BEZIER with control points - * in (0, 0) and (0.58, 1.0). (Since 1.12) - */ - EASE_OUT, - /** - * equivalent to %CLUTTER_CUBIC_BEZIER with control points - * in (0.42, 0) and (0.58, 1.0). (Since 1.12) - */ - EASE_IN_OUT, - /** - * last animation mode, used as a guard for - * registered global alpha functions - */ - ANIMATION_LAST, -} -/** - * The alignment policies available on each axis for #ClutterBinLayout - */ -enum BinAlignment { - /** - * Fixed position alignment; the - * #ClutterBinLayout will honour the fixed position provided - * by the actors themselves when allocating them - */ - FIXED, - /** - * Fill the allocation size - */ - FILL, - /** - * Position the actors at the top - * or left side of the container, depending on the axis - */ - START, - /** - * Position the actors at the bottom - * or right side of the container, depending on the axis - */ - END, - /** - * Position the actors at the - * center of the container, depending on the axis - */ - CENTER, -} -/** - * Specifies which property should be used in a binding - */ -enum BindCoordinate { - /** - * Bind the X coordinate - */ - X, - /** - * Bind the Y coordinate - */ - Y, - /** - * Bind the width - */ - WIDTH, - /** - * Bind the height - */ - HEIGHT, - /** - * Equivalent to to %CLUTTER_BIND_X and - * %CLUTTER_BIND_Y (added in Clutter 1.6) - */ - POSITION, - /** - * Equivalent to %CLUTTER_BIND_WIDTH and - * %CLUTTER_BIND_HEIGHT (added in Clutter 1.6) - */ - SIZE, - /** - * Equivalent to %CLUTTER_BIND_POSITION and - * %CLUTTER_BIND_SIZE (added in Clutter 1.10) - */ - ALL, -} -/** - * The alignment policies available on each axis of the #ClutterBoxLayout - */ -enum BoxAlignment { - /** - * Align the child to the top or to - * to the left, depending on the used axis - */ - START, - /** - * Align the child to the bottom or to - * the right, depending on the used axis - */ - END, - /** - * Align the child to the center - */ - CENTER, -} -enum ButtonState { - RELEASED, - PRESSED, -} -/** - * Colorspace information. - */ -enum Colorspace { - /** - * Unknown colorspace - */ - UNKNOWN, - /** - * Default sRGB colorspace - */ - SRGB, - /** - * BT2020 colorspace - */ - BT2020, -} -/** - * Controls the alignment of the #ClutterContent inside a #ClutterActor. - */ -enum ContentGravity { - /** - * Align the content to the top left corner - */ - TOP_LEFT, - /** - * Align the content to the top edge - */ - TOP, - /** - * Align the content to the top right corner - */ - TOP_RIGHT, - /** - * Align the content to the left edge - */ - LEFT, - /** - * Align the content to the center - */ - CENTER, - /** - * Align the content to the right edge - */ - RIGHT, - /** - * Align the content to the bottom left corner - */ - BOTTOM_LEFT, - /** - * Align the content to the bottom edge - */ - BOTTOM, - /** - * Align the content to the bottom right corner - */ - BOTTOM_RIGHT, - /** - * Resize the content to fill the allocation - */ - RESIZE_FILL, - /** - * Resize the content to remain within the - * allocation, while maintaining the aspect ratio - */ - RESIZE_ASPECT, -} -/** - * The axis of the constraint that should be applied on the - * dragging action - */ -enum DragAxis { - /** - * No constraint - */ - AXIS_NONE, - /** - * Set a constraint on the X axis - */ - X_AXIS, - /** - * Set a constraint on the Y axis - */ - Y_AXIS, -} -enum EventPhase { - CAPTURE, - BUBBLE, -} -/** - * Types of events. - */ -enum EventType { - /** - * Empty event - */ - NOTHING, - /** - * Key press event - */ - KEY_PRESS, - /** - * Key release event - */ - KEY_RELEASE, - /** - * Pointer motion event - */ - MOTION, - /** - * Actor enter event - */ - ENTER, - /** - * Actor leave event - */ - LEAVE, - /** - * Pointer button press event - */ - BUTTON_PRESS, - /** - * Pointer button release event - */ - BUTTON_RELEASE, - /** - * Pointer scroll event - */ - SCROLL, - /** - * A new touch event sequence has started; - * event added in 1.10 - */ - TOUCH_BEGIN, - /** - * A touch event sequence has been updated; - * event added in 1.10 - */ - TOUCH_UPDATE, - /** - * A touch event sequence has finished; - * event added in 1.10 - */ - TOUCH_END, - /** - * A touch event sequence has been canceled; - * event added in 1.10 - */ - TOUCH_CANCEL, - /** - * A pinch gesture event, the current state is - * determined by its phase field; event added in 1.24 - */ - TOUCHPAD_PINCH, - /** - * A swipe gesture event, the current state is - * determined by its phase field; event added in 1.24 - */ - TOUCHPAD_SWIPE, - /** - * A hold gesture event, the current state is - * determined by its phase field. A hold gesture starts when the user places a - * finger on the touchpad and ends when all fingers are lifted. It is - * cancelled when the finger(s) move past a certain threshold. - * Event added in 40.4 - */ - TOUCHPAD_HOLD, - /** - * A tool entered in proximity to a tablet; - * event added in 1.28 - */ - PROXIMITY_IN, - /** - * A tool left from the proximity area of a tablet; - * event added in 1.28 - */ - PROXIMITY_OUT, - PAD_BUTTON_PRESS, - PAD_BUTTON_RELEASE, - PAD_STRIP, - PAD_RING, - DEVICE_ADDED, - DEVICE_REMOVED, - IM_COMMIT, - IM_DELETE, - IM_PREEDIT, - /** - * Marks the end of the #ClutterEventType enumeration; - * added in 1.10 - */ - EVENT_LAST, -} -/** - * The direction of the arrangement of the children inside - * a #ClutterFlowLayout - */ -enum FlowOrientation { - /** - * Arrange the children of the flow layout - * horizontally first - */ - HORIZONTAL, - /** - * Arrange the children of the flow layout - * vertically first - */ - VERTICAL, -} -enum FrameResult { - PENDING_PRESENTED, - IDLE, -} -/** - * Enum passed to the [method`GestureAction`.set_threshold_trigger_edge] - * function. - */ -enum GestureTriggerEdge { - /** - * Tell #ClutterGestureAction that - * the gesture must begin immediately and there's no drag limit that - * will cause its cancellation; - */ - NONE, - /** - * Tell #ClutterGestureAction that - * it needs to wait until the drag threshold has been exceeded before - * considering that the gesture has begun; - */ - AFTER, - /** - * Tell #ClutterGestureAction that - * the gesture must begin immediately and that it must be cancelled - * once the drag exceed the configured threshold. - */ - BEFORE, -} -/** - * Grid position modes. - */ -enum GridPosition { - /** - * left position - */ - LEFT, - /** - * right position - */ - RIGHT, - /** - * top position - */ - TOP, - /** - * bottom position - */ - BOTTOM, -} -/** - * The type of axes Clutter recognizes on a #ClutterInputDevice - */ -enum InputAxis { - /** - * Unused axis - */ - IGNORE, - /** - * The position on the X axis - */ - X, - /** - * The position of the Y axis - */ - Y, - /** - * The pressure information - */ - PRESSURE, - /** - * The tilt on the X axis - */ - XTILT, - /** - * The tile on the Y axis - */ - YTILT, - /** - * A wheel - */ - WHEEL, - /** - * Distance (Since 1.12) - */ - DISTANCE, - /** - * Rotation along the z-axis (Since 1.28) - */ - ROTATION, - /** - * A slider (Since 1.28) - */ - SLIDER, - /** - * Last value of the enumeration; this value is - * useful when iterating over the enumeration values (Since 1.12) - */ - LAST, -} -enum InputContentPurpose { - NORMAL, - ALPHA, - DIGITS, - NUMBER, - PHONE, - URL, - EMAIL, - NAME, - PASSWORD, - DATE, - TIME, - DATETIME, - TERMINAL, -} -enum InputDevicePadFeature { - BUTTON, - RING, - STRIP, -} -enum InputDevicePadSource { - UNKNOWN, - FINGER, -} -/** - * Defines the type of tool that a #ClutterInputDeviceTool represents.8 - */ -enum InputDeviceToolType { - /** - * No tool - */ - NONE, - /** - * The tool is a pen - */ - PEN, - /** - * The tool is an eraser - */ - ERASER, - /** - * The tool is a brush - */ - BRUSH, - /** - * The tool is a pencil - */ - PENCIL, - /** - * The tool is an airbrush - */ - AIRBRUSH, - /** - * The tool is a mouse - */ - MOUSE, - /** - * The tool is a lens - */ - LENS, -} -/** - * The types of input devices available. - * - * The #ClutterInputDeviceType enumeration can be extended at later - * date; not every platform supports every input device type. - */ -enum InputDeviceType { - /** - * A pointer device - */ - POINTER_DEVICE, - /** - * A keyboard device - */ - KEYBOARD_DEVICE, - /** - * A generic extension device - */ - EXTENSION_DEVICE, - /** - * A joystick device - */ - JOYSTICK_DEVICE, - /** - * A tablet device - */ - TABLET_DEVICE, - /** - * A touchpad device - */ - TOUCHPAD_DEVICE, - /** - * A touch screen device - */ - TOUCHSCREEN_DEVICE, - /** - * A pen device - */ - PEN_DEVICE, - /** - * An eraser device - */ - ERASER_DEVICE, - /** - * A cursor device - */ - CURSOR_DEVICE, - /** - * A tablet pad - */ - PAD_DEVICE, - /** - * The number of device types - */ - N_DEVICE_TYPES, -} -/** - * The mode for input devices available. - */ -enum InputMode { - /** - * A logical, virtual device - */ - LOGICAL, - /** - * A physical device, attached to - * a logical device - */ - PHYSICAL, - /** - * A physical device, not attached - * to a logical device - */ - FLOATING, -} -enum InputPanelState { - OFF, - ON, - TOGGLE, -} -enum KeyState { - RELEASED, - PRESSED, -} -/** - * The states for the #ClutterClickAction::long-press signal. - */ -enum LongPressState { - /** - * Queries the action whether it supports - * long presses - */ - QUERY, - /** - * Activates the action on a long press - */ - ACTIVATE, - /** - * The long press was cancelled - */ - CANCEL, -} -/** - * Represents the orientation of actors or layout managers. - */ -enum Orientation { - /** - * An horizontal orientation - */ - HORIZONTAL, - /** - * A vertical orientation - */ - VERTICAL, -} -/** - * The axis of the constraint that should be applied on the - * panning action - */ -enum PanAxis { - /** - * No constraint - */ - AXIS_NONE, - /** - * Set a constraint on the X axis - */ - X_AXIS, - /** - * Set a constraint on the Y axis - */ - Y_AXIS, - /** - * Constrain panning automatically based on initial - * movement (available since 1.24) - */ - AXIS_AUTO, -} -/** - * Types of nodes in a #ClutterPath. - */ -enum PathNodeType { - /** - * jump to the given position - */ - MOVE_TO, - /** - * create a line from the last node to the - * given position - */ - LINE_TO, - /** - * bezier curve using the last position and - * three control points. - */ - CURVE_TO, - /** - * create a line from the last node to the last - * %CLUTTER_PATH_MOVE_TO node. - */ - CLOSE, - /** - * same as %CLUTTER_PATH_MOVE_TO but with - * coordinates relative to the last node. - */ - REL_MOVE_TO, - /** - * same as %CLUTTER_PATH_LINE_TO but with - * coordinates relative to the last node. - */ - REL_LINE_TO, - /** - * same as %CLUTTER_PATH_CURVE_TO but with - * coordinates relative to the last node. - */ - REL_CURVE_TO, -} -/** - * Controls the paint cycle of the scene graph when in pick mode - */ -enum PickMode { - /** - * Do not paint any actor - */ - NONE, - /** - * Paint only the reactive actors - */ - REACTIVE, - /** - * Paint all actors - */ - ALL, -} -/** - * Dwell click types. - */ -enum PointerA11yDwellClickType { - /** - * Internal use only - */ - NONE, - PRIMARY, - SECONDARY, - MIDDLE, - DOUBLE, - DRAG, -} -/** - * Dwell gesture directions. - */ -enum PointerA11yDwellDirection { - NONE, - LEFT, - RIGHT, - UP, - DOWN, -} -/** - * Dwell mode. - */ -enum PointerA11yDwellMode { - WINDOW, - GESTURE, -} -/** - * Pointer accessibility timeout type. - */ -enum PointerA11yTimeoutType { - SECONDARY_CLICK, - DWELL, - GESTURE, -} -enum PreeditResetMode { - CLEAR, - COMMIT, -} -/** - * Specifies the type of requests for a #ClutterActor. - */ -enum RequestMode { - /** - * Height for width requests - */ - HEIGHT_FOR_WIDTH, - /** - * Width for height requests - */ - WIDTH_FOR_HEIGHT, - /** - * Use the preferred size of the - * #ClutterContent, if it has any (available since 1.22) - */ - CONTENT_SIZE, -} -/** - * Axis of a rotation. - */ -enum RotateAxis { - /** - * Rotate around the X axis - */ - X_AXIS, - /** - * Rotate around the Y axis - */ - Y_AXIS, - /** - * Rotate around the Z axis - */ - Z_AXIS, -} -/** - * The scaling filters to be used with the [property`Actor:`minification-filter] - * and [property`Actor:`magnification-filter] properties. - */ -enum ScalingFilter { - /** - * Linear interpolation filter - */ - LINEAR, - /** - * Nearest neighbor interpolation filter - */ - NEAREST, - /** - * Trilinear minification filter, with - * mipmap generation; this filter linearly interpolates on every axis, - * as well as between mipmap levels. - */ - TRILINEAR, -} -/** - * #ClutterScript error enumeration. - */ -enum ScriptError { - /** - * Type function not found - * or invalid - */ - TYPE_FUNCTION, - /** - * Property not found or invalid - */ - PROPERTY, - /** - * Invalid value - */ - VALUE, -} -/** - * Direction of a pointer scroll event. - * - * The %CLUTTER_SCROLL_SMOOTH value implies that the #ClutterScrollEvent - * has precise scrolling delta information. - */ -enum ScrollDirection { - /** - * Scroll up - */ - UP, - /** - * Scroll down - */ - DOWN, - /** - * Scroll left - */ - LEFT, - /** - * Scroll right - */ - RIGHT, - /** - * Precise scrolling delta (available in 1.10) - */ - SMOOTH, -} -/** - * The scroll source determines the source of the scroll event. - * - * Keep in mind that the source device #ClutterInputDeviceType is not enough - * to infer the scroll source.6 - */ -enum ScrollSource { - /** - * Source of scroll events is unknown. - */ - UNKNOWN, - /** - * The scroll event is originated by a mouse wheel. - */ - WHEEL, - /** - * The scroll event is originated by one or more - * fingers on the device (eg. touchpads). - */ - FINGER, - /** - * The scroll event is originated by the - * motion of some device (eg. a scroll button is set). - */ - CONTINUOUS, -} -/** - * The type of GLSL shader program - */ -enum ShaderType { - /** - * a vertex shader - */ - VERTEX_SHADER, - /** - * a fragment shader - */ - FRAGMENT_SHADER, -} -/** - * The edge to snap - */ -enum SnapEdge { - /** - * the top edge - */ - TOP, - /** - * the right edge - */ - RIGHT, - /** - * the bottom edge - */ - BOTTOM, - /** - * the left edge - */ - LEFT, -} -/** - * Named colors, for accessing global colors defined by Clutter - */ -enum StaticColor { - /** - * White color (ffffffff) - */ - WHITE, - /** - * Black color (000000ff) - */ - BLACK, - /** - * Red color (ff0000ff) - */ - RED, - /** - * Dark red color (800000ff) - */ - DARK_RED, - /** - * Green color (00ff00ff) - */ - GREEN, - /** - * Dark green color (008000ff) - */ - DARK_GREEN, - /** - * Blue color (0000ffff) - */ - BLUE, - /** - * Dark blue color (000080ff) - */ - DARK_BLUE, - /** - * Cyan color (00ffffff) - */ - CYAN, - /** - * Dark cyan color (008080ff) - */ - DARK_CYAN, - /** - * Magenta color (ff00ffff) - */ - MAGENTA, - /** - * Dark magenta color (800080ff) - */ - DARK_MAGENTA, - /** - * Yellow color (ffff00ff) - */ - YELLOW, - /** - * Dark yellow color (808000ff) - */ - DARK_YELLOW, - /** - * Gray color (a0a0a4ff) - */ - GRAY, - /** - * Dark Gray color (808080ff) - */ - DARK_GRAY, - /** - * Light gray color (c0c0c0ff) - */ - LIGHT_GRAY, - /** - * Butter color (edd400ff) - */ - BUTTER, - /** - * Light butter color (fce94fff) - */ - BUTTER_LIGHT, - /** - * Dark butter color (c4a000ff) - */ - BUTTER_DARK, - /** - * Orange color (f57900ff) - */ - ORANGE, - /** - * Light orange color (fcaf3fff) - */ - ORANGE_LIGHT, - /** - * Dark orange color (ce5c00ff) - */ - ORANGE_DARK, - /** - * Chocolate color (c17d11ff) - */ - CHOCOLATE, - /** - * Light chocolate color (e9b96eff) - */ - CHOCOLATE_LIGHT, - /** - * Dark chocolate color (8f5902ff) - */ - CHOCOLATE_DARK, - /** - * Chameleon color (73d216ff) - */ - CHAMELEON, - /** - * Light chameleon color (8ae234ff) - */ - CHAMELEON_LIGHT, - /** - * Dark chameleon color (4e9a06ff) - */ - CHAMELEON_DARK, - /** - * Sky color (3465a4ff) - */ - SKY_BLUE, - /** - * Light sky color (729fcfff) - */ - SKY_BLUE_LIGHT, - /** - * Dark sky color (204a87ff) - */ - SKY_BLUE_DARK, - /** - * Plum color (75507bff) - */ - PLUM, - /** - * Light plum color (ad7fa8ff) - */ - PLUM_LIGHT, - /** - * Dark plum color (5c3566ff) - */ - PLUM_DARK, - /** - * Scarlet red color (cc0000ff) - */ - SCARLET_RED, - /** - * Light scarlet red color (ef2929ff) - */ - SCARLET_RED_LIGHT, - /** - * Dark scarlet red color (a40000ff) - */ - SCARLET_RED_DARK, - /** - * Aluminium, first variant (eeeeecff) - */ - ALUMINIUM_1, - /** - * Aluminium, second variant (d3d7cfff) - */ - ALUMINIUM_2, - /** - * Aluminium, third variant (babdb6ff) - */ - ALUMINIUM_3, - /** - * Aluminium, fourth variant (888a85ff) - */ - ALUMINIUM_4, - /** - * Aluminium, fifth variant (555753ff) - */ - ALUMINIUM_5, - /** - * Aluminium, sixth variant (2e3436ff) - */ - ALUMINIUM_6, - /** - * Transparent color (00000000) - */ - TRANSPARENT, -} -/** - * Change the value transition of a step function. - * - * See clutter_timeline_set_step_progress(). - */ -enum StepMode { - /** - * The change in the value of a - * %CLUTTER_STEP progress mode should occur at the start of - * the transition - */ - START, - /** - * The change in the value of a - * %CLUTTER_STEP progress mode should occur at the end of - * the transition - */ - END, -} -/** - * The text direction to be used by [class`Actor]`s - */ -enum TextDirection { - /** - * Use the default setting, as returned - * by clutter_get_default_text_direction() - */ - DEFAULT, - /** - * Use left-to-right text direction - */ - LTR, - /** - * Use right-to-left text direction - */ - RTL, -} -/** - * The direction of a #ClutterTimeline - */ -enum TimelineDirection { - /** - * forward direction for a timeline - */ - FORWARD, - /** - * backward direction for a timeline - */ - BACKWARD, -} -/** - * The phase of a touchpad gesture event. - * - * All gestures are guaranteed to begin with an event of type - * %CLUTTER_TOUCHPAD_GESTURE_PHASE_BEGIN, followed by a number - * of %CLUTTER_TOUCHPAD_GESTURE_PHASE_UPDATE (possibly 0). - * - * A finished gesture may have 2 possible outcomes, an event with phase - * %CLUTTER_TOUCHPAD_GESTURE_PHASE_END will be emitted when the gesture is - * considered successful, this should be used as the hint to perform any - * permanent changes. - * - * Cancelled gestures may be so for a variety of reasons, due to hardware, - * or due to the gesture recognition layers hinting the gesture did not - * finish resolutely (eg. a 3rd finger being added during a pinch gesture). - * In these cases, the last event with report the phase - * %CLUTTER_TOUCHPAD_GESTURE_PHASE_CANCEL, this should be used as a hint - * to undo any visible/permanent changes that were done throughout the - * progress of the gesture. - * - * See also #ClutterTouchpadPinchEvent and #ClutterTouchpadPinchEvent.4 - */ -enum TouchpadGesturePhase { - /** - * The gesture has begun. - */ - BEGIN, - /** - * The gesture has been updated. - */ - UPDATE, - /** - * The gesture was finished, changes - * should be permanently applied. - */ - END, - /** - * The gesture was cancelled, all - * changes should be undone. - */ - CANCEL, -} -/** - * The type of unit in which a value is expressed - * - * This enumeration might be expanded at later date - */ -enum UnitType { - /** - * Unit expressed in pixels (with subpixel precision) - */ - PIXEL, - /** - * Unit expressed in em - */ - EM, - /** - * Unit expressed in millimeters - */ - MM, - /** - * Unit expressed in points - */ - POINT, - /** - * Unit expressed in centimeters - */ - CM, -} -/** - * Flags used to signal the state of an actor. - * @bitfield - */ -enum ActorFlags { - /** - * the actor will be painted (is visible, and inside - * a toplevel, and all parents visible) - */ - MAPPED, - /** - * the resources associated to the actor have been - * allocated - */ - REALIZED, - /** - * the actor 'reacts' to mouse events emitting event - * signals - */ - REACTIVE, - /** - * the actor has been shown by the application program - */ - VISIBLE, - /** - * the actor provides an explicit layout management - * policy for its children; this flag will prevent Clutter from automatic - * queueing of relayout and will defer all layouting to the actor itself - */ - NO_LAYOUT, -} -/** - * Content repeat modes. - * @bitfield - */ -enum ContentRepeat { - /** - * No repeat - */ - NONE, - /** - * Repeat the content on the X axis - */ - X_AXIS, - /** - * Repeat the content on the Y axis - */ - Y_AXIS, - /** - * Repeat the content on both axis - */ - BOTH, -} -enum DebugFlag { - MISC, - ACTOR, - TEXTURE, - EVENT, - PAINT, - PANGO, - BACKEND, - SCHEDULER, - SCRIPT, - SHADER, - MULTISTAGE, - ANIMATION, - LAYOUT, - PICK, - EVENTLOOP, - CLIPPING, - OOB_TRANSFORMS, - FRAME_TIMINGS, - DETAILED_TRACE, - GRABS, - FRAME_CLOCK, -} -enum DrawDebugFlag { - DISABLE_SWAP_EVENTS, - DISABLE_CLIPPED_REDRAWS, - REDRAWS, - PAINT_VOLUMES, - DISABLE_CULLING, - DISABLE_OFFSCREEN_REDIRECT, - CONTINUOUS_REDRAW, - PAINT_DEFORM_TILES, - PAINT_DAMAGE_REGION, - DISABLE_DYNAMIC_MAX_RENDER_TIME, - PAINT_MAX_RENDER_TIME, -} -/** - * Flags passed to the ‘paint’ or ‘pick’ method of #ClutterEffect. - * @bitfield - */ -enum EffectPaintFlags { - /** - * The actor or one of its children - * has queued a redraw before this paint. This implies that the effect - * should call clutter_actor_continue_paint() to chain to the next - * effect and can not cache any results from a previous paint. - */ - ACTOR_DIRTY, - /** - * The effect should not be used - * on this frame, but it will be asked to paint the actor still. - */ - BYPASS_EFFECT, -} -/** - * Flags for the #ClutterEvent - * @bitfield - */ -enum EventFlags { - /** - * No flag set - */ - NONE, - /** - * Synthetic event - */ - FLAG_SYNTHETIC, - FLAG_INPUT_METHOD, - /** - * Auto-repeated event - */ - FLAG_REPEATED, - FLAG_RELATIVE_MOTION, - FLAG_GRAB_NOTIFY, - FLAG_POINTER_EMULATED, -} -enum FrameInfoFlag { - NONE, - HW_CLOCK, - ZERO_COPY, - VSYNC, -} -enum GrabState { - NONE, - POINTER, - KEYBOARD, - ALL, -} -enum InputAxisFlags { - NONE, - X, - Y, - PRESSURE, - XTILT, - YTILT, - WHEEL, - DISTANCE, - ROTATION, - SLIDER, -} -enum InputCapabilities { - NONE, - POINTER, - KEYBOARD, - TOUCHPAD, - TOUCH, - TABLET_TOOL, - TABLET_PAD, - TRACKBALL, - TRACKPOINT, -} -enum InputContentHintFlags { - COMPLETION, - SPELLCHECK, - AUTO_CAPITALIZATION, - LOWERCASE, - UPPERCASE, - TITLECASE, - HIDDEN_TEXT, - SENSITIVE_DATA, - LATIN, - MULTILINE, -} -/** - * Masks applied to a #ClutterEvent by modifiers. - * - * Note that Clutter may add internal values to events which include - * reserved values such as %CLUTTER_MODIFIER_RESERVED_13_MASK. Your code - * should preserve and ignore them. You can use %CLUTTER_MODIFIER_MASK to - * remove all reserved values. - * @bitfield - */ -enum ModifierType { - /** - * Mask applied by the Shift key - */ - SHIFT_MASK, - /** - * Mask applied by the Caps Lock key - */ - LOCK_MASK, - /** - * Mask applied by the Control key - */ - CONTROL_MASK, - /** - * Mask applied by the first Mod key - */ - MOD1_MASK, - /** - * Mask applied by the second Mod key - */ - MOD2_MASK, - /** - * Mask applied by the third Mod key - */ - MOD3_MASK, - /** - * Mask applied by the fourth Mod key - */ - MOD4_MASK, - /** - * Mask applied by the fifth Mod key - */ - MOD5_MASK, - /** - * Mask applied by the first pointer button - */ - BUTTON1_MASK, - /** - * Mask applied by the second pointer button - */ - BUTTON2_MASK, - /** - * Mask applied by the third pointer button - */ - BUTTON3_MASK, - /** - * Mask applied by the fourth pointer button - */ - BUTTON4_MASK, - /** - * Mask applied by the fifth pointer button - */ - BUTTON5_MASK, - MODIFIER_RESERVED_13_MASK, - MODIFIER_RESERVED_14_MASK, - MODIFIER_RESERVED_15_MASK, - MODIFIER_RESERVED_16_MASK, - MODIFIER_RESERVED_17_MASK, - MODIFIER_RESERVED_18_MASK, - MODIFIER_RESERVED_19_MASK, - MODIFIER_RESERVED_20_MASK, - MODIFIER_RESERVED_21_MASK, - MODIFIER_RESERVED_22_MASK, - MODIFIER_RESERVED_23_MASK, - MODIFIER_RESERVED_24_MASK, - MODIFIER_RESERVED_25_MASK, - /** - * Mask applied by the Super key - */ - SUPER_MASK, - /** - * Mask applied by the Hyper key - */ - HYPER_MASK, - /** - * Mask applied by the Meta key - */ - META_MASK, - MODIFIER_RESERVED_29_MASK, - /** - * Mask applied during release - */ - RELEASE_MASK, - /** - * A mask covering all modifier types - */ - MODIFIER_MASK, -} -/** - * Possible flags to pass to clutter_actor_set_offscreen_redirect(). - * @bitfield - */ -enum OffscreenRedirect { - /** - * Only redirect - * the actor if it is semi-transparent and its has_overlaps() - * virtual returns %TRUE. - */ - AUTOMATIC_FOR_OPACITY, - /** - * Always redirect the actor to an - * offscreen buffer even if it is fully opaque. - */ - ALWAYS, - /** - * Only redirect the actor if it is the - * most efficient thing to do based on its recent repaint behaviour. That - * means when its contents are changing less frequently than it's being used - * on stage. - */ - ON_IDLE, -} -enum PaintFlag { - NONE, - NO_CURSORS, - FORCE_CURSORS, - CLEAR, -} -enum PickDebugFlag { - PICKING, -} -/** - * Pointer accessibility features applied to a ClutterInputDevice pointer. - * @bitfield - */ -enum PointerA11yFlags { - SECONDARY_CLICK_ENABLED, - DWELL_ENABLED, -} -/** - * Flags to pass to clutter_threads_add_repaint_func_full(). - * @bitfield - */ -enum RepaintFlags { - /** - * Run the repaint function prior to - * painting the stages - */ - PRE_PAINT, - /** - * Run the repaint function after - * painting the stages - */ - POST_PAINT, -} -/** - * Flags used to notify the axes that were stopped in a #ClutterScrollEvent. - * - * These can be used to trigger post-scroll effects like kinetic scrolling.6 - * @bitfield - */ -enum ScrollFinishFlags { - /** - * no axis was stopped. - */ - NONE, - /** - * The horizontal axis stopped. - */ - HORIZONTAL, - /** - * The vertical axis stopped. - */ - VERTICAL, -} -/** - * Scroll modes. - * @bitfield - */ -enum ScrollMode { - /** - * Ignore scrolling - */ - NONE, - /** - * Scroll only horizontally - */ - HORIZONTALLY, - /** - * Scroll only vertically - */ - VERTICALLY, - /** - * Scroll in both directions - */ - BOTH, -} -/** - * The main direction of the swipe gesture - * @bitfield - */ -enum SwipeDirection { - /** - * Upwards swipe gesture - */ - UP, - /** - * Downwards swipe gesture - */ - DOWN, - /** - * Leftwards swipe gesture - */ - LEFT, - /** - * Rightwards swipe gesture - */ - RIGHT, -} -enum VirtualDeviceType { - NONE, - KEYBOARD, - POINTER, - TOUCHSCREEN, -} -/** - * The middle button of a pointer device. - */ -const BUTTON_MIDDLE: number -/** - * The primary button of a pointer device. - * - * This is typically the left mouse button in a right-handed - * mouse configuration. - */ -const BUTTON_PRIMARY: number -/** - * The secondary button of a pointer device. - * - * This is typically the right mouse button in a right-handed - * mouse configuration. - */ -const BUTTON_SECONDARY: number -const COORDINATE_EPSILON: number -/** - * Default value for "now". - */ -const CURRENT_TIME: number -/** - * Continues the propagation of an event; this macro should be - * used in event-related signals. - */ -const EVENT_PROPAGATE: boolean -/** - * Stops the propagation of an event; this macro should be used - * in event-related signals. - */ -const EVENT_STOP: boolean -const KEY_0: number -const KEY_1: number -const KEY_2: number -const KEY_3: number -const KEY_3270_AltCursor: number -const KEY_3270_Attn: number -const KEY_3270_BackTab: number -const KEY_3270_ChangeScreen: number -const KEY_3270_Copy: number -const KEY_3270_CursorBlink: number -const KEY_3270_CursorSelect: number -const KEY_3270_DeleteWord: number -const KEY_3270_Duplicate: number -const KEY_3270_Enter: number -const KEY_3270_EraseEOF: number -const KEY_3270_EraseInput: number -const KEY_3270_ExSelect: number -const KEY_3270_FieldMark: number -const KEY_3270_Ident: number -const KEY_3270_Jump: number -const KEY_3270_KeyClick: number -const KEY_3270_Left2: number -const KEY_3270_PA1: number -const KEY_3270_PA2: number -const KEY_3270_PA3: number -const KEY_3270_Play: number -const KEY_3270_PrintScreen: number -const KEY_3270_Quit: number -const KEY_3270_Record: number -const KEY_3270_Reset: number -const KEY_3270_Right2: number -const KEY_3270_Rule: number -const KEY_3270_Setup: number -const KEY_3270_Test: number -const KEY_4: number -const KEY_5: number -const KEY_6: number -const KEY_7: number -const KEY_8: number -const KEY_9: number -const KEY_A: number -const KEY_AE: number -const KEY_Aacute: number -const KEY_Abelowdot: number -const KEY_Abreve: number -const KEY_Abreveacute: number -const KEY_Abrevebelowdot: number -const KEY_Abrevegrave: number -const KEY_Abrevehook: number -const KEY_Abrevetilde: number -const KEY_AccessX_Enable: number -const KEY_AccessX_Feedback_Enable: number -const KEY_Acircumflex: number -const KEY_Acircumflexacute: number -const KEY_Acircumflexbelowdot: number -const KEY_Acircumflexgrave: number -const KEY_Acircumflexhook: number -const KEY_Acircumflextilde: number -const KEY_AddFavorite: number -const KEY_Adiaeresis: number -const KEY_Agrave: number -const KEY_Ahook: number -const KEY_Alt_L: number -const KEY_Alt_R: number -const KEY_Amacron: number -const KEY_Aogonek: number -const KEY_ApplicationLeft: number -const KEY_ApplicationRight: number -const KEY_Arabic_0: number -const KEY_Arabic_1: number -const KEY_Arabic_2: number -const KEY_Arabic_3: number -const KEY_Arabic_4: number -const KEY_Arabic_5: number -const KEY_Arabic_6: number -const KEY_Arabic_7: number -const KEY_Arabic_8: number -const KEY_Arabic_9: number -const KEY_Arabic_ain: number -const KEY_Arabic_alef: number -const KEY_Arabic_alefmaksura: number -const KEY_Arabic_beh: number -const KEY_Arabic_comma: number -const KEY_Arabic_dad: number -const KEY_Arabic_dal: number -const KEY_Arabic_damma: number -const KEY_Arabic_dammatan: number -const KEY_Arabic_ddal: number -const KEY_Arabic_farsi_yeh: number -const KEY_Arabic_fatha: number -const KEY_Arabic_fathatan: number -const KEY_Arabic_feh: number -const KEY_Arabic_fullstop: number -const KEY_Arabic_gaf: number -const KEY_Arabic_ghain: number -const KEY_Arabic_ha: number -const KEY_Arabic_hah: number -const KEY_Arabic_hamza: number -const KEY_Arabic_hamza_above: number -const KEY_Arabic_hamza_below: number -const KEY_Arabic_hamzaonalef: number -const KEY_Arabic_hamzaonwaw: number -const KEY_Arabic_hamzaonyeh: number -const KEY_Arabic_hamzaunderalef: number -const KEY_Arabic_heh: number -const KEY_Arabic_heh_doachashmee: number -const KEY_Arabic_heh_goal: number -const KEY_Arabic_jeem: number -const KEY_Arabic_jeh: number -const KEY_Arabic_kaf: number -const KEY_Arabic_kasra: number -const KEY_Arabic_kasratan: number -const KEY_Arabic_keheh: number -const KEY_Arabic_khah: number -const KEY_Arabic_lam: number -const KEY_Arabic_madda_above: number -const KEY_Arabic_maddaonalef: number -const KEY_Arabic_meem: number -const KEY_Arabic_noon: number -const KEY_Arabic_noon_ghunna: number -const KEY_Arabic_peh: number -const KEY_Arabic_percent: number -const KEY_Arabic_qaf: number -const KEY_Arabic_question_mark: number -const KEY_Arabic_ra: number -const KEY_Arabic_rreh: number -const KEY_Arabic_sad: number -const KEY_Arabic_seen: number -const KEY_Arabic_semicolon: number -const KEY_Arabic_shadda: number -const KEY_Arabic_sheen: number -const KEY_Arabic_sukun: number -const KEY_Arabic_superscript_alef: number -const KEY_Arabic_switch: number -const KEY_Arabic_tah: number -const KEY_Arabic_tatweel: number -const KEY_Arabic_tcheh: number -const KEY_Arabic_teh: number -const KEY_Arabic_tehmarbuta: number -const KEY_Arabic_thal: number -const KEY_Arabic_theh: number -const KEY_Arabic_tteh: number -const KEY_Arabic_veh: number -const KEY_Arabic_waw: number -const KEY_Arabic_yeh: number -const KEY_Arabic_yeh_baree: number -const KEY_Arabic_zah: number -const KEY_Arabic_zain: number -const KEY_Aring: number -const KEY_Armenian_AT: number -const KEY_Armenian_AYB: number -const KEY_Armenian_BEN: number -const KEY_Armenian_CHA: number -const KEY_Armenian_DA: number -const KEY_Armenian_DZA: number -const KEY_Armenian_E: number -const KEY_Armenian_FE: number -const KEY_Armenian_GHAT: number -const KEY_Armenian_GIM: number -const KEY_Armenian_HI: number -const KEY_Armenian_HO: number -const KEY_Armenian_INI: number -const KEY_Armenian_JE: number -const KEY_Armenian_KE: number -const KEY_Armenian_KEN: number -const KEY_Armenian_KHE: number -const KEY_Armenian_LYUN: number -const KEY_Armenian_MEN: number -const KEY_Armenian_NU: number -const KEY_Armenian_O: number -const KEY_Armenian_PE: number -const KEY_Armenian_PYUR: number -const KEY_Armenian_RA: number -const KEY_Armenian_RE: number -const KEY_Armenian_SE: number -const KEY_Armenian_SHA: number -const KEY_Armenian_TCHE: number -const KEY_Armenian_TO: number -const KEY_Armenian_TSA: number -const KEY_Armenian_TSO: number -const KEY_Armenian_TYUN: number -const KEY_Armenian_VEV: number -const KEY_Armenian_VO: number -const KEY_Armenian_VYUN: number -const KEY_Armenian_YECH: number -const KEY_Armenian_ZA: number -const KEY_Armenian_ZHE: number -const KEY_Armenian_accent: number -const KEY_Armenian_amanak: number -const KEY_Armenian_apostrophe: number -const KEY_Armenian_at: number -const KEY_Armenian_ayb: number -const KEY_Armenian_ben: number -const KEY_Armenian_but: number -const KEY_Armenian_cha: number -const KEY_Armenian_da: number -const KEY_Armenian_dza: number -const KEY_Armenian_e: number -const KEY_Armenian_exclam: number -const KEY_Armenian_fe: number -const KEY_Armenian_full_stop: number -const KEY_Armenian_ghat: number -const KEY_Armenian_gim: number -const KEY_Armenian_hi: number -const KEY_Armenian_ho: number -const KEY_Armenian_hyphen: number -const KEY_Armenian_ini: number -const KEY_Armenian_je: number -const KEY_Armenian_ke: number -const KEY_Armenian_ken: number -const KEY_Armenian_khe: number -const KEY_Armenian_ligature_ew: number -const KEY_Armenian_lyun: number -const KEY_Armenian_men: number -const KEY_Armenian_nu: number -const KEY_Armenian_o: number -const KEY_Armenian_paruyk: number -const KEY_Armenian_pe: number -const KEY_Armenian_pyur: number -const KEY_Armenian_question: number -const KEY_Armenian_ra: number -const KEY_Armenian_re: number -const KEY_Armenian_se: number -const KEY_Armenian_separation_mark: number -const KEY_Armenian_sha: number -const KEY_Armenian_shesht: number -const KEY_Armenian_tche: number -const KEY_Armenian_to: number -const KEY_Armenian_tsa: number -const KEY_Armenian_tso: number -const KEY_Armenian_tyun: number -const KEY_Armenian_verjaket: number -const KEY_Armenian_vev: number -const KEY_Armenian_vo: number -const KEY_Armenian_vyun: number -const KEY_Armenian_yech: number -const KEY_Armenian_yentamna: number -const KEY_Armenian_za: number -const KEY_Armenian_zhe: number -const KEY_Atilde: number -const KEY_AudibleBell_Enable: number -const KEY_AudioCycleTrack: number -const KEY_AudioForward: number -const KEY_AudioLowerVolume: number -const KEY_AudioMedia: number -const KEY_AudioMicMute: number -const KEY_AudioMute: number -const KEY_AudioNext: number -const KEY_AudioPause: number -const KEY_AudioPlay: number -const KEY_AudioPrev: number -const KEY_AudioRaiseVolume: number -const KEY_AudioRandomPlay: number -const KEY_AudioRecord: number -const KEY_AudioRepeat: number -const KEY_AudioRewind: number -const KEY_AudioStop: number -const KEY_Away: number -const KEY_B: number -const KEY_Babovedot: number -const KEY_Back: number -const KEY_BackForward: number -const KEY_BackSpace: number -const KEY_Battery: number -const KEY_Begin: number -const KEY_Blue: number -const KEY_Bluetooth: number -const KEY_Book: number -const KEY_BounceKeys_Enable: number -const KEY_Break: number -const KEY_BrightnessAdjust: number -const KEY_Byelorussian_SHORTU: number -const KEY_Byelorussian_shortu: number -const KEY_C: number -const KEY_CD: number -const KEY_CH: number -const KEY_C_H: number -const KEY_C_h: number -const KEY_Cabovedot: number -const KEY_Cacute: number -const KEY_Calculator: number -const KEY_Calendar: number -const KEY_Cancel: number -const KEY_Caps_Lock: number -const KEY_Ccaron: number -const KEY_Ccedilla: number -const KEY_Ccircumflex: number -const KEY_Ch: number -const KEY_Clear: number -const KEY_ClearGrab: number -const KEY_Close: number -const KEY_Codeinput: number -const KEY_ColonSign: number -const KEY_Community: number -const KEY_ContrastAdjust: number -const KEY_Control_L: number -const KEY_Control_R: number -const KEY_Copy: number -const KEY_CruzeiroSign: number -const KEY_Cut: number -const KEY_CycleAngle: number -const KEY_Cyrillic_A: number -const KEY_Cyrillic_BE: number -const KEY_Cyrillic_CHE: number -const KEY_Cyrillic_CHE_descender: number -const KEY_Cyrillic_CHE_vertstroke: number -const KEY_Cyrillic_DE: number -const KEY_Cyrillic_DZHE: number -const KEY_Cyrillic_E: number -const KEY_Cyrillic_EF: number -const KEY_Cyrillic_EL: number -const KEY_Cyrillic_EM: number -const KEY_Cyrillic_EN: number -const KEY_Cyrillic_EN_descender: number -const KEY_Cyrillic_ER: number -const KEY_Cyrillic_ES: number -const KEY_Cyrillic_GHE: number -const KEY_Cyrillic_GHE_bar: number -const KEY_Cyrillic_HA: number -const KEY_Cyrillic_HARDSIGN: number -const KEY_Cyrillic_HA_descender: number -const KEY_Cyrillic_I: number -const KEY_Cyrillic_IE: number -const KEY_Cyrillic_IO: number -const KEY_Cyrillic_I_macron: number -const KEY_Cyrillic_JE: number -const KEY_Cyrillic_KA: number -const KEY_Cyrillic_KA_descender: number -const KEY_Cyrillic_KA_vertstroke: number -const KEY_Cyrillic_LJE: number -const KEY_Cyrillic_NJE: number -const KEY_Cyrillic_O: number -const KEY_Cyrillic_O_bar: number -const KEY_Cyrillic_PE: number -const KEY_Cyrillic_SCHWA: number -const KEY_Cyrillic_SHA: number -const KEY_Cyrillic_SHCHA: number -const KEY_Cyrillic_SHHA: number -const KEY_Cyrillic_SHORTI: number -const KEY_Cyrillic_SOFTSIGN: number -const KEY_Cyrillic_TE: number -const KEY_Cyrillic_TSE: number -const KEY_Cyrillic_U: number -const KEY_Cyrillic_U_macron: number -const KEY_Cyrillic_U_straight: number -const KEY_Cyrillic_U_straight_bar: number -const KEY_Cyrillic_VE: number -const KEY_Cyrillic_YA: number -const KEY_Cyrillic_YERU: number -const KEY_Cyrillic_YU: number -const KEY_Cyrillic_ZE: number -const KEY_Cyrillic_ZHE: number -const KEY_Cyrillic_ZHE_descender: number -const KEY_Cyrillic_a: number -const KEY_Cyrillic_be: number -const KEY_Cyrillic_che: number -const KEY_Cyrillic_che_descender: number -const KEY_Cyrillic_che_vertstroke: number -const KEY_Cyrillic_de: number -const KEY_Cyrillic_dzhe: number -const KEY_Cyrillic_e: number -const KEY_Cyrillic_ef: number -const KEY_Cyrillic_el: number -const KEY_Cyrillic_em: number -const KEY_Cyrillic_en: number -const KEY_Cyrillic_en_descender: number -const KEY_Cyrillic_er: number -const KEY_Cyrillic_es: number -const KEY_Cyrillic_ghe: number -const KEY_Cyrillic_ghe_bar: number -const KEY_Cyrillic_ha: number -const KEY_Cyrillic_ha_descender: number -const KEY_Cyrillic_hardsign: number -const KEY_Cyrillic_i: number -const KEY_Cyrillic_i_macron: number -const KEY_Cyrillic_ie: number -const KEY_Cyrillic_io: number -const KEY_Cyrillic_je: number -const KEY_Cyrillic_ka: number -const KEY_Cyrillic_ka_descender: number -const KEY_Cyrillic_ka_vertstroke: number -const KEY_Cyrillic_lje: number -const KEY_Cyrillic_nje: number -const KEY_Cyrillic_o: number -const KEY_Cyrillic_o_bar: number -const KEY_Cyrillic_pe: number -const KEY_Cyrillic_schwa: number -const KEY_Cyrillic_sha: number -const KEY_Cyrillic_shcha: number -const KEY_Cyrillic_shha: number -const KEY_Cyrillic_shorti: number -const KEY_Cyrillic_softsign: number -const KEY_Cyrillic_te: number -const KEY_Cyrillic_tse: number -const KEY_Cyrillic_u: number -const KEY_Cyrillic_u_macron: number -const KEY_Cyrillic_u_straight: number -const KEY_Cyrillic_u_straight_bar: number -const KEY_Cyrillic_ve: number -const KEY_Cyrillic_ya: number -const KEY_Cyrillic_yeru: number -const KEY_Cyrillic_yu: number -const KEY_Cyrillic_ze: number -const KEY_Cyrillic_zhe: number -const KEY_Cyrillic_zhe_descender: number -const KEY_D: number -const KEY_DOS: number -const KEY_Dabovedot: number -const KEY_Dcaron: number -const KEY_Delete: number -const KEY_Display: number -const KEY_Documents: number -const KEY_DongSign: number -const KEY_Down: number -const KEY_Dstroke: number -const KEY_E: number -const KEY_ENG: number -const KEY_ETH: number -const KEY_EZH: number -const KEY_Eabovedot: number -const KEY_Eacute: number -const KEY_Ebelowdot: number -const KEY_Ecaron: number -const KEY_Ecircumflex: number -const KEY_Ecircumflexacute: number -const KEY_Ecircumflexbelowdot: number -const KEY_Ecircumflexgrave: number -const KEY_Ecircumflexhook: number -const KEY_Ecircumflextilde: number -const KEY_EcuSign: number -const KEY_Ediaeresis: number -const KEY_Egrave: number -const KEY_Ehook: number -const KEY_Eisu_Shift: number -const KEY_Eisu_toggle: number -const KEY_Eject: number -const KEY_Emacron: number -const KEY_End: number -const KEY_Eogonek: number -const KEY_Escape: number -const KEY_Eth: number -const KEY_Etilde: number -const KEY_EuroSign: number -const KEY_Excel: number -const KEY_Execute: number -const KEY_Explorer: number -const KEY_F: number -const KEY_F1: number -const KEY_F10: number -const KEY_F11: number -const KEY_F12: number -const KEY_F13: number -const KEY_F14: number -const KEY_F15: number -const KEY_F16: number -const KEY_F17: number -const KEY_F18: number -const KEY_F19: number -const KEY_F2: number -const KEY_F20: number -const KEY_F21: number -const KEY_F22: number -const KEY_F23: number -const KEY_F24: number -const KEY_F25: number -const KEY_F26: number -const KEY_F27: number -const KEY_F28: number -const KEY_F29: number -const KEY_F3: number -const KEY_F30: number -const KEY_F31: number -const KEY_F32: number -const KEY_F33: number -const KEY_F34: number -const KEY_F35: number -const KEY_F4: number -const KEY_F5: number -const KEY_F6: number -const KEY_F7: number -const KEY_F8: number -const KEY_F9: number -const KEY_FFrancSign: number -const KEY_Fabovedot: number -const KEY_Farsi_0: number -const KEY_Farsi_1: number -const KEY_Farsi_2: number -const KEY_Farsi_3: number -const KEY_Farsi_4: number -const KEY_Farsi_5: number -const KEY_Farsi_6: number -const KEY_Farsi_7: number -const KEY_Farsi_8: number -const KEY_Farsi_9: number -const KEY_Farsi_yeh: number -const KEY_Favorites: number -const KEY_Finance: number -const KEY_Find: number -const KEY_First_Virtual_Screen: number -const KEY_Forward: number -const KEY_FrameBack: number -const KEY_FrameForward: number -const KEY_G: number -const KEY_Gabovedot: number -const KEY_Game: number -const KEY_Gbreve: number -const KEY_Gcaron: number -const KEY_Gcedilla: number -const KEY_Gcircumflex: number -const KEY_Georgian_an: number -const KEY_Georgian_ban: number -const KEY_Georgian_can: number -const KEY_Georgian_char: number -const KEY_Georgian_chin: number -const KEY_Georgian_cil: number -const KEY_Georgian_don: number -const KEY_Georgian_en: number -const KEY_Georgian_fi: number -const KEY_Georgian_gan: number -const KEY_Georgian_ghan: number -const KEY_Georgian_hae: number -const KEY_Georgian_har: number -const KEY_Georgian_he: number -const KEY_Georgian_hie: number -const KEY_Georgian_hoe: number -const KEY_Georgian_in: number -const KEY_Georgian_jhan: number -const KEY_Georgian_jil: number -const KEY_Georgian_kan: number -const KEY_Georgian_khar: number -const KEY_Georgian_las: number -const KEY_Georgian_man: number -const KEY_Georgian_nar: number -const KEY_Georgian_on: number -const KEY_Georgian_par: number -const KEY_Georgian_phar: number -const KEY_Georgian_qar: number -const KEY_Georgian_rae: number -const KEY_Georgian_san: number -const KEY_Georgian_shin: number -const KEY_Georgian_tan: number -const KEY_Georgian_tar: number -const KEY_Georgian_un: number -const KEY_Georgian_vin: number -const KEY_Georgian_we: number -const KEY_Georgian_xan: number -const KEY_Georgian_zen: number -const KEY_Georgian_zhar: number -const KEY_Go: number -const KEY_Greek_ALPHA: number -const KEY_Greek_ALPHAaccent: number -const KEY_Greek_BETA: number -const KEY_Greek_CHI: number -const KEY_Greek_DELTA: number -const KEY_Greek_EPSILON: number -const KEY_Greek_EPSILONaccent: number -const KEY_Greek_ETA: number -const KEY_Greek_ETAaccent: number -const KEY_Greek_GAMMA: number -const KEY_Greek_IOTA: number -const KEY_Greek_IOTAaccent: number -const KEY_Greek_IOTAdiaeresis: number -const KEY_Greek_IOTAdieresis: number -const KEY_Greek_KAPPA: number -const KEY_Greek_LAMBDA: number -const KEY_Greek_LAMDA: number -const KEY_Greek_MU: number -const KEY_Greek_NU: number -const KEY_Greek_OMEGA: number -const KEY_Greek_OMEGAaccent: number -const KEY_Greek_OMICRON: number -const KEY_Greek_OMICRONaccent: number -const KEY_Greek_PHI: number -const KEY_Greek_PI: number -const KEY_Greek_PSI: number -const KEY_Greek_RHO: number -const KEY_Greek_SIGMA: number -const KEY_Greek_TAU: number -const KEY_Greek_THETA: number -const KEY_Greek_UPSILON: number -const KEY_Greek_UPSILONaccent: number -const KEY_Greek_UPSILONdieresis: number -const KEY_Greek_XI: number -const KEY_Greek_ZETA: number -const KEY_Greek_accentdieresis: number -const KEY_Greek_alpha: number -const KEY_Greek_alphaaccent: number -const KEY_Greek_beta: number -const KEY_Greek_chi: number -const KEY_Greek_delta: number -const KEY_Greek_epsilon: number -const KEY_Greek_epsilonaccent: number -const KEY_Greek_eta: number -const KEY_Greek_etaaccent: number -const KEY_Greek_finalsmallsigma: number -const KEY_Greek_gamma: number -const KEY_Greek_horizbar: number -const KEY_Greek_iota: number -const KEY_Greek_iotaaccent: number -const KEY_Greek_iotaaccentdieresis: number -const KEY_Greek_iotadieresis: number -const KEY_Greek_kappa: number -const KEY_Greek_lambda: number -const KEY_Greek_lamda: number -const KEY_Greek_mu: number -const KEY_Greek_nu: number -const KEY_Greek_omega: number -const KEY_Greek_omegaaccent: number -const KEY_Greek_omicron: number -const KEY_Greek_omicronaccent: number -const KEY_Greek_phi: number -const KEY_Greek_pi: number -const KEY_Greek_psi: number -const KEY_Greek_rho: number -const KEY_Greek_sigma: number -const KEY_Greek_switch: number -const KEY_Greek_tau: number -const KEY_Greek_theta: number -const KEY_Greek_upsilon: number -const KEY_Greek_upsilonaccent: number -const KEY_Greek_upsilonaccentdieresis: number -const KEY_Greek_upsilondieresis: number -const KEY_Greek_xi: number -const KEY_Greek_zeta: number -const KEY_Green: number -const KEY_H: number -const KEY_Hangul: number -const KEY_Hangul_A: number -const KEY_Hangul_AE: number -const KEY_Hangul_AraeA: number -const KEY_Hangul_AraeAE: number -const KEY_Hangul_Banja: number -const KEY_Hangul_Cieuc: number -const KEY_Hangul_Codeinput: number -const KEY_Hangul_Dikeud: number -const KEY_Hangul_E: number -const KEY_Hangul_EO: number -const KEY_Hangul_EU: number -const KEY_Hangul_End: number -const KEY_Hangul_Hanja: number -const KEY_Hangul_Hieuh: number -const KEY_Hangul_I: number -const KEY_Hangul_Ieung: number -const KEY_Hangul_J_Cieuc: number -const KEY_Hangul_J_Dikeud: number -const KEY_Hangul_J_Hieuh: number -const KEY_Hangul_J_Ieung: number -const KEY_Hangul_J_Jieuj: number -const KEY_Hangul_J_Khieuq: number -const KEY_Hangul_J_Kiyeog: number -const KEY_Hangul_J_KiyeogSios: number -const KEY_Hangul_J_KkogjiDalrinIeung: number -const KEY_Hangul_J_Mieum: number -const KEY_Hangul_J_Nieun: number -const KEY_Hangul_J_NieunHieuh: number -const KEY_Hangul_J_NieunJieuj: number -const KEY_Hangul_J_PanSios: number -const KEY_Hangul_J_Phieuf: number -const KEY_Hangul_J_Pieub: number -const KEY_Hangul_J_PieubSios: number -const KEY_Hangul_J_Rieul: number -const KEY_Hangul_J_RieulHieuh: number -const KEY_Hangul_J_RieulKiyeog: number -const KEY_Hangul_J_RieulMieum: number -const KEY_Hangul_J_RieulPhieuf: number -const KEY_Hangul_J_RieulPieub: number -const KEY_Hangul_J_RieulSios: number -const KEY_Hangul_J_RieulTieut: number -const KEY_Hangul_J_Sios: number -const KEY_Hangul_J_SsangKiyeog: number -const KEY_Hangul_J_SsangSios: number -const KEY_Hangul_J_Tieut: number -const KEY_Hangul_J_YeorinHieuh: number -const KEY_Hangul_Jamo: number -const KEY_Hangul_Jeonja: number -const KEY_Hangul_Jieuj: number -const KEY_Hangul_Khieuq: number -const KEY_Hangul_Kiyeog: number -const KEY_Hangul_KiyeogSios: number -const KEY_Hangul_KkogjiDalrinIeung: number -const KEY_Hangul_Mieum: number -const KEY_Hangul_MultipleCandidate: number -const KEY_Hangul_Nieun: number -const KEY_Hangul_NieunHieuh: number -const KEY_Hangul_NieunJieuj: number -const KEY_Hangul_O: number -const KEY_Hangul_OE: number -const KEY_Hangul_PanSios: number -const KEY_Hangul_Phieuf: number -const KEY_Hangul_Pieub: number -const KEY_Hangul_PieubSios: number -const KEY_Hangul_PostHanja: number -const KEY_Hangul_PreHanja: number -const KEY_Hangul_PreviousCandidate: number -const KEY_Hangul_Rieul: number -const KEY_Hangul_RieulHieuh: number -const KEY_Hangul_RieulKiyeog: number -const KEY_Hangul_RieulMieum: number -const KEY_Hangul_RieulPhieuf: number -const KEY_Hangul_RieulPieub: number -const KEY_Hangul_RieulSios: number -const KEY_Hangul_RieulTieut: number -const KEY_Hangul_RieulYeorinHieuh: number -const KEY_Hangul_Romaja: number -const KEY_Hangul_SingleCandidate: number -const KEY_Hangul_Sios: number -const KEY_Hangul_Special: number -const KEY_Hangul_SsangDikeud: number -const KEY_Hangul_SsangJieuj: number -const KEY_Hangul_SsangKiyeog: number -const KEY_Hangul_SsangPieub: number -const KEY_Hangul_SsangSios: number -const KEY_Hangul_Start: number -const KEY_Hangul_SunkyeongeumMieum: number -const KEY_Hangul_SunkyeongeumPhieuf: number -const KEY_Hangul_SunkyeongeumPieub: number -const KEY_Hangul_Tieut: number -const KEY_Hangul_U: number -const KEY_Hangul_WA: number -const KEY_Hangul_WAE: number -const KEY_Hangul_WE: number -const KEY_Hangul_WEO: number -const KEY_Hangul_WI: number -const KEY_Hangul_YA: number -const KEY_Hangul_YAE: number -const KEY_Hangul_YE: number -const KEY_Hangul_YEO: number -const KEY_Hangul_YI: number -const KEY_Hangul_YO: number -const KEY_Hangul_YU: number -const KEY_Hangul_YeorinHieuh: number -const KEY_Hangul_switch: number -const KEY_Hankaku: number -const KEY_Hcircumflex: number -const KEY_Hebrew_switch: number -const KEY_Help: number -const KEY_Henkan: number -const KEY_Henkan_Mode: number -const KEY_Hibernate: number -const KEY_Hiragana: number -const KEY_Hiragana_Katakana: number -const KEY_History: number -const KEY_Home: number -const KEY_HomePage: number -const KEY_HotLinks: number -const KEY_Hstroke: number -const KEY_Hyper_L: number -const KEY_Hyper_R: number -const KEY_I: number -const KEY_ISO_Center_Object: number -const KEY_ISO_Continuous_Underline: number -const KEY_ISO_Discontinuous_Underline: number -const KEY_ISO_Emphasize: number -const KEY_ISO_Enter: number -const KEY_ISO_Fast_Cursor_Down: number -const KEY_ISO_Fast_Cursor_Left: number -const KEY_ISO_Fast_Cursor_Right: number -const KEY_ISO_Fast_Cursor_Up: number -const KEY_ISO_First_Group: number -const KEY_ISO_First_Group_Lock: number -const KEY_ISO_Group_Latch: number -const KEY_ISO_Group_Lock: number -const KEY_ISO_Group_Shift: number -const KEY_ISO_Last_Group: number -const KEY_ISO_Last_Group_Lock: number -const KEY_ISO_Left_Tab: number -const KEY_ISO_Level2_Latch: number -const KEY_ISO_Level3_Latch: number -const KEY_ISO_Level3_Lock: number -const KEY_ISO_Level3_Shift: number -const KEY_ISO_Level5_Latch: number -const KEY_ISO_Level5_Lock: number -const KEY_ISO_Level5_Shift: number -const KEY_ISO_Lock: number -const KEY_ISO_Move_Line_Down: number -const KEY_ISO_Move_Line_Up: number -const KEY_ISO_Next_Group: number -const KEY_ISO_Next_Group_Lock: number -const KEY_ISO_Partial_Line_Down: number -const KEY_ISO_Partial_Line_Up: number -const KEY_ISO_Partial_Space_Left: number -const KEY_ISO_Partial_Space_Right: number -const KEY_ISO_Prev_Group: number -const KEY_ISO_Prev_Group_Lock: number -const KEY_ISO_Release_Both_Margins: number -const KEY_ISO_Release_Margin_Left: number -const KEY_ISO_Release_Margin_Right: number -const KEY_ISO_Set_Margin_Left: number -const KEY_ISO_Set_Margin_Right: number -const KEY_Iabovedot: number -const KEY_Iacute: number -const KEY_Ibelowdot: number -const KEY_Ibreve: number -const KEY_Icircumflex: number -const KEY_Idiaeresis: number -const KEY_Igrave: number -const KEY_Ihook: number -const KEY_Imacron: number -const KEY_Insert: number -const KEY_Iogonek: number -const KEY_Itilde: number -const KEY_J: number -const KEY_Jcircumflex: number -const KEY_K: number -const KEY_KP_0: number -const KEY_KP_1: number -const KEY_KP_2: number -const KEY_KP_3: number -const KEY_KP_4: number -const KEY_KP_5: number -const KEY_KP_6: number -const KEY_KP_7: number -const KEY_KP_8: number -const KEY_KP_9: number -const KEY_KP_Add: number -const KEY_KP_Begin: number -const KEY_KP_Decimal: number -const KEY_KP_Delete: number -const KEY_KP_Divide: number -const KEY_KP_Down: number -const KEY_KP_End: number -const KEY_KP_Enter: number -const KEY_KP_Equal: number -const KEY_KP_F1: number -const KEY_KP_F2: number -const KEY_KP_F3: number -const KEY_KP_F4: number -const KEY_KP_Home: number -const KEY_KP_Insert: number -const KEY_KP_Left: number -const KEY_KP_Multiply: number -const KEY_KP_Next: number -const KEY_KP_Page_Down: number -const KEY_KP_Page_Up: number -const KEY_KP_Prior: number -const KEY_KP_Right: number -const KEY_KP_Separator: number -const KEY_KP_Space: number -const KEY_KP_Subtract: number -const KEY_KP_Tab: number -const KEY_KP_Up: number -const KEY_Kana_Lock: number -const KEY_Kana_Shift: number -const KEY_Kanji: number -const KEY_Kanji_Bangou: number -const KEY_Katakana: number -const KEY_KbdBrightnessDown: number -const KEY_KbdBrightnessUp: number -const KEY_KbdLightOnOff: number -const KEY_Kcedilla: number -const KEY_Korean_Won: number -const KEY_L: number -const KEY_L1: number -const KEY_L10: number -const KEY_L2: number -const KEY_L3: number -const KEY_L4: number -const KEY_L5: number -const KEY_L6: number -const KEY_L7: number -const KEY_L8: number -const KEY_L9: number -const KEY_Lacute: number -const KEY_Last_Virtual_Screen: number -const KEY_Launch0: number -const KEY_Launch1: number -const KEY_Launch2: number -const KEY_Launch3: number -const KEY_Launch4: number -const KEY_Launch5: number -const KEY_Launch6: number -const KEY_Launch7: number -const KEY_Launch8: number -const KEY_Launch9: number -const KEY_LaunchA: number -const KEY_LaunchB: number -const KEY_LaunchC: number -const KEY_LaunchD: number -const KEY_LaunchE: number -const KEY_LaunchF: number -const KEY_Lbelowdot: number -const KEY_Lcaron: number -const KEY_Lcedilla: number -const KEY_Left: number -const KEY_LightBulb: number -const KEY_Linefeed: number -const KEY_LiraSign: number -const KEY_LogGrabInfo: number -const KEY_LogOff: number -const KEY_LogWindowTree: number -const KEY_Lstroke: number -const KEY_M: number -const KEY_Mabovedot: number -const KEY_Macedonia_DSE: number -const KEY_Macedonia_GJE: number -const KEY_Macedonia_KJE: number -const KEY_Macedonia_dse: number -const KEY_Macedonia_gje: number -const KEY_Macedonia_kje: number -const KEY_Mae_Koho: number -const KEY_Mail: number -const KEY_MailForward: number -const KEY_Market: number -const KEY_Massyo: number -const KEY_Meeting: number -const KEY_Memo: number -const KEY_Menu: number -const KEY_MenuKB: number -const KEY_MenuPB: number -const KEY_Messenger: number -const KEY_Meta_L: number -const KEY_Meta_R: number -const KEY_MillSign: number -const KEY_ModeLock: number -const KEY_Mode_switch: number -const KEY_MonBrightnessDown: number -const KEY_MonBrightnessUp: number -const KEY_MouseKeys_Accel_Enable: number -const KEY_MouseKeys_Enable: number -const KEY_Muhenkan: number -const KEY_Multi_key: number -const KEY_MultipleCandidate: number -const KEY_Music: number -const KEY_MyComputer: number -const KEY_MySites: number -const KEY_N: number -const KEY_Nacute: number -const KEY_NairaSign: number -const KEY_Ncaron: number -const KEY_Ncedilla: number -const KEY_New: number -const KEY_NewSheqelSign: number -const KEY_News: number -const KEY_Next: number -const KEY_Next_VMode: number -const KEY_Next_Virtual_Screen: number -const KEY_Ntilde: number -const KEY_Num_Lock: number -const KEY_O: number -const KEY_OE: number -const KEY_Oacute: number -const KEY_Obarred: number -const KEY_Obelowdot: number -const KEY_Ocaron: number -const KEY_Ocircumflex: number -const KEY_Ocircumflexacute: number -const KEY_Ocircumflexbelowdot: number -const KEY_Ocircumflexgrave: number -const KEY_Ocircumflexhook: number -const KEY_Ocircumflextilde: number -const KEY_Odiaeresis: number -const KEY_Odoubleacute: number -const KEY_OfficeHome: number -const KEY_Ograve: number -const KEY_Ohook: number -const KEY_Ohorn: number -const KEY_Ohornacute: number -const KEY_Ohornbelowdot: number -const KEY_Ohorngrave: number -const KEY_Ohornhook: number -const KEY_Ohorntilde: number -const KEY_Omacron: number -const KEY_Ooblique: number -const KEY_Open: number -const KEY_OpenURL: number -const KEY_Option: number -const KEY_Oslash: number -const KEY_Otilde: number -const KEY_Overlay1_Enable: number -const KEY_Overlay2_Enable: number -const KEY_P: number -const KEY_Pabovedot: number -const KEY_Page_Down: number -const KEY_Page_Up: number -const KEY_Paste: number -const KEY_Pause: number -const KEY_PesetaSign: number -const KEY_Phone: number -const KEY_Pictures: number -const KEY_Pointer_Accelerate: number -const KEY_Pointer_Button1: number -const KEY_Pointer_Button2: number -const KEY_Pointer_Button3: number -const KEY_Pointer_Button4: number -const KEY_Pointer_Button5: number -const KEY_Pointer_Button_Dflt: number -const KEY_Pointer_DblClick1: number -const KEY_Pointer_DblClick2: number -const KEY_Pointer_DblClick3: number -const KEY_Pointer_DblClick4: number -const KEY_Pointer_DblClick5: number -const KEY_Pointer_DblClick_Dflt: number -const KEY_Pointer_DfltBtnNext: number -const KEY_Pointer_DfltBtnPrev: number -const KEY_Pointer_Down: number -const KEY_Pointer_DownLeft: number -const KEY_Pointer_DownRight: number -const KEY_Pointer_Drag1: number -const KEY_Pointer_Drag2: number -const KEY_Pointer_Drag3: number -const KEY_Pointer_Drag4: number -const KEY_Pointer_Drag5: number -const KEY_Pointer_Drag_Dflt: number -const KEY_Pointer_EnableKeys: number -const KEY_Pointer_Left: number -const KEY_Pointer_Right: number -const KEY_Pointer_Up: number -const KEY_Pointer_UpLeft: number -const KEY_Pointer_UpRight: number -const KEY_PowerDown: number -const KEY_PowerOff: number -const KEY_Prev_VMode: number -const KEY_Prev_Virtual_Screen: number -const KEY_PreviousCandidate: number -const KEY_Print: number -const KEY_Prior: number -const KEY_Q: number -const KEY_R: number -const KEY_R1: number -const KEY_R10: number -const KEY_R11: number -const KEY_R12: number -const KEY_R13: number -const KEY_R14: number -const KEY_R15: number -const KEY_R2: number -const KEY_R3: number -const KEY_R4: number -const KEY_R5: number -const KEY_R6: number -const KEY_R7: number -const KEY_R8: number -const KEY_R9: number -const KEY_Racute: number -const KEY_Rcaron: number -const KEY_Rcedilla: number -const KEY_Red: number -const KEY_Redo: number -const KEY_Refresh: number -const KEY_Reload: number -const KEY_RepeatKeys_Enable: number -const KEY_Reply: number -const KEY_Return: number -const KEY_Right: number -const KEY_RockerDown: number -const KEY_RockerEnter: number -const KEY_RockerUp: number -const KEY_Romaji: number -const KEY_RotateWindows: number -const KEY_RotationKB: number -const KEY_RotationPB: number -const KEY_RupeeSign: number -const KEY_S: number -const KEY_SCHWA: number -const KEY_Sabovedot: number -const KEY_Sacute: number -const KEY_Save: number -const KEY_Scaron: number -const KEY_Scedilla: number -const KEY_Scircumflex: number -const KEY_ScreenSaver: number -const KEY_ScrollClick: number -const KEY_ScrollDown: number -const KEY_ScrollUp: number -const KEY_Scroll_Lock: number -const KEY_Search: number -const KEY_Select: number -const KEY_SelectButton: number -const KEY_Send: number -const KEY_Serbian_DJE: number -const KEY_Serbian_DZE: number -const KEY_Serbian_JE: number -const KEY_Serbian_LJE: number -const KEY_Serbian_NJE: number -const KEY_Serbian_TSHE: number -const KEY_Serbian_dje: number -const KEY_Serbian_dze: number -const KEY_Serbian_je: number -const KEY_Serbian_lje: number -const KEY_Serbian_nje: number -const KEY_Serbian_tshe: number -const KEY_Shift_L: number -const KEY_Shift_Lock: number -const KEY_Shift_R: number -const KEY_Shop: number -const KEY_SingleCandidate: number -const KEY_Sinh_a: number -const KEY_Sinh_aa: number -const KEY_Sinh_aa2: number -const KEY_Sinh_ae: number -const KEY_Sinh_ae2: number -const KEY_Sinh_aee: number -const KEY_Sinh_aee2: number -const KEY_Sinh_ai: number -const KEY_Sinh_ai2: number -const KEY_Sinh_al: number -const KEY_Sinh_au: number -const KEY_Sinh_au2: number -const KEY_Sinh_ba: number -const KEY_Sinh_bha: number -const KEY_Sinh_ca: number -const KEY_Sinh_cha: number -const KEY_Sinh_dda: number -const KEY_Sinh_ddha: number -const KEY_Sinh_dha: number -const KEY_Sinh_dhha: number -const KEY_Sinh_e: number -const KEY_Sinh_e2: number -const KEY_Sinh_ee: number -const KEY_Sinh_ee2: number -const KEY_Sinh_fa: number -const KEY_Sinh_ga: number -const KEY_Sinh_gha: number -const KEY_Sinh_h2: number -const KEY_Sinh_ha: number -const KEY_Sinh_i: number -const KEY_Sinh_i2: number -const KEY_Sinh_ii: number -const KEY_Sinh_ii2: number -const KEY_Sinh_ja: number -const KEY_Sinh_jha: number -const KEY_Sinh_jnya: number -const KEY_Sinh_ka: number -const KEY_Sinh_kha: number -const KEY_Sinh_kunddaliya: number -const KEY_Sinh_la: number -const KEY_Sinh_lla: number -const KEY_Sinh_lu: number -const KEY_Sinh_lu2: number -const KEY_Sinh_luu: number -const KEY_Sinh_luu2: number -const KEY_Sinh_ma: number -const KEY_Sinh_mba: number -const KEY_Sinh_na: number -const KEY_Sinh_ndda: number -const KEY_Sinh_ndha: number -const KEY_Sinh_ng: number -const KEY_Sinh_ng2: number -const KEY_Sinh_nga: number -const KEY_Sinh_nja: number -const KEY_Sinh_nna: number -const KEY_Sinh_nya: number -const KEY_Sinh_o: number -const KEY_Sinh_o2: number -const KEY_Sinh_oo: number -const KEY_Sinh_oo2: number -const KEY_Sinh_pa: number -const KEY_Sinh_pha: number -const KEY_Sinh_ra: number -const KEY_Sinh_ri: number -const KEY_Sinh_rii: number -const KEY_Sinh_ru2: number -const KEY_Sinh_ruu2: number -const KEY_Sinh_sa: number -const KEY_Sinh_sha: number -const KEY_Sinh_ssha: number -const KEY_Sinh_tha: number -const KEY_Sinh_thha: number -const KEY_Sinh_tta: number -const KEY_Sinh_ttha: number -const KEY_Sinh_u: number -const KEY_Sinh_u2: number -const KEY_Sinh_uu: number -const KEY_Sinh_uu2: number -const KEY_Sinh_va: number -const KEY_Sinh_ya: number -const KEY_Sleep: number -const KEY_SlowKeys_Enable: number -const KEY_Spell: number -const KEY_SplitScreen: number -const KEY_Standby: number -const KEY_Start: number -const KEY_StickyKeys_Enable: number -const KEY_Stop: number -const KEY_Subtitle: number -const KEY_Super_L: number -const KEY_Super_R: number -const KEY_Support: number -const KEY_Suspend: number -const KEY_Switch_VT_1: number -const KEY_Switch_VT_10: number -const KEY_Switch_VT_11: number -const KEY_Switch_VT_12: number -const KEY_Switch_VT_2: number -const KEY_Switch_VT_3: number -const KEY_Switch_VT_4: number -const KEY_Switch_VT_5: number -const KEY_Switch_VT_6: number -const KEY_Switch_VT_7: number -const KEY_Switch_VT_8: number -const KEY_Switch_VT_9: number -const KEY_Sys_Req: number -const KEY_T: number -const KEY_THORN: number -const KEY_Tab: number -const KEY_Tabovedot: number -const KEY_TaskPane: number -const KEY_Tcaron: number -const KEY_Tcedilla: number -const KEY_Terminal: number -const KEY_Terminate_Server: number -const KEY_Thai_baht: number -const KEY_Thai_bobaimai: number -const KEY_Thai_chochan: number -const KEY_Thai_chochang: number -const KEY_Thai_choching: number -const KEY_Thai_chochoe: number -const KEY_Thai_dochada: number -const KEY_Thai_dodek: number -const KEY_Thai_fofa: number -const KEY_Thai_fofan: number -const KEY_Thai_hohip: number -const KEY_Thai_honokhuk: number -const KEY_Thai_khokhai: number -const KEY_Thai_khokhon: number -const KEY_Thai_khokhuat: number -const KEY_Thai_khokhwai: number -const KEY_Thai_khorakhang: number -const KEY_Thai_kokai: number -const KEY_Thai_lakkhangyao: number -const KEY_Thai_lekchet: number -const KEY_Thai_lekha: number -const KEY_Thai_lekhok: number -const KEY_Thai_lekkao: number -const KEY_Thai_leknung: number -const KEY_Thai_lekpaet: number -const KEY_Thai_leksam: number -const KEY_Thai_leksi: number -const KEY_Thai_leksong: number -const KEY_Thai_leksun: number -const KEY_Thai_lochula: number -const KEY_Thai_loling: number -const KEY_Thai_lu: number -const KEY_Thai_maichattawa: number -const KEY_Thai_maiek: number -const KEY_Thai_maihanakat: number -const KEY_Thai_maihanakat_maitho: number -const KEY_Thai_maitaikhu: number -const KEY_Thai_maitho: number -const KEY_Thai_maitri: number -const KEY_Thai_maiyamok: number -const KEY_Thai_moma: number -const KEY_Thai_ngongu: number -const KEY_Thai_nikhahit: number -const KEY_Thai_nonen: number -const KEY_Thai_nonu: number -const KEY_Thai_oang: number -const KEY_Thai_paiyannoi: number -const KEY_Thai_phinthu: number -const KEY_Thai_phophan: number -const KEY_Thai_phophung: number -const KEY_Thai_phosamphao: number -const KEY_Thai_popla: number -const KEY_Thai_rorua: number -const KEY_Thai_ru: number -const KEY_Thai_saraa: number -const KEY_Thai_saraaa: number -const KEY_Thai_saraae: number -const KEY_Thai_saraaimaimalai: number -const KEY_Thai_saraaimaimuan: number -const KEY_Thai_saraam: number -const KEY_Thai_sarae: number -const KEY_Thai_sarai: number -const KEY_Thai_saraii: number -const KEY_Thai_sarao: number -const KEY_Thai_sarau: number -const KEY_Thai_saraue: number -const KEY_Thai_sarauee: number -const KEY_Thai_sarauu: number -const KEY_Thai_sorusi: number -const KEY_Thai_sosala: number -const KEY_Thai_soso: number -const KEY_Thai_sosua: number -const KEY_Thai_thanthakhat: number -const KEY_Thai_thonangmontho: number -const KEY_Thai_thophuthao: number -const KEY_Thai_thothahan: number -const KEY_Thai_thothan: number -const KEY_Thai_thothong: number -const KEY_Thai_thothung: number -const KEY_Thai_topatak: number -const KEY_Thai_totao: number -const KEY_Thai_wowaen: number -const KEY_Thai_yoyak: number -const KEY_Thai_yoying: number -const KEY_Thorn: number -const KEY_Time: number -const KEY_ToDoList: number -const KEY_Tools: number -const KEY_TopMenu: number -const KEY_TouchpadOff: number -const KEY_TouchpadOn: number -const KEY_TouchpadToggle: number -const KEY_Touroku: number -const KEY_Travel: number -const KEY_Tslash: number -const KEY_U: number -const KEY_UWB: number -const KEY_Uacute: number -const KEY_Ubelowdot: number -const KEY_Ubreve: number -const KEY_Ucircumflex: number -const KEY_Udiaeresis: number -const KEY_Udoubleacute: number -const KEY_Ugrave: number -const KEY_Uhook: number -const KEY_Uhorn: number -const KEY_Uhornacute: number -const KEY_Uhornbelowdot: number -const KEY_Uhorngrave: number -const KEY_Uhornhook: number -const KEY_Uhorntilde: number -const KEY_Ukrainian_GHE_WITH_UPTURN: number -const KEY_Ukrainian_I: number -const KEY_Ukrainian_IE: number -const KEY_Ukrainian_YI: number -const KEY_Ukrainian_ghe_with_upturn: number -const KEY_Ukrainian_i: number -const KEY_Ukrainian_ie: number -const KEY_Ukrainian_yi: number -const KEY_Ukranian_I: number -const KEY_Ukranian_JE: number -const KEY_Ukranian_YI: number -const KEY_Ukranian_i: number -const KEY_Ukranian_je: number -const KEY_Ukranian_yi: number -const KEY_Umacron: number -const KEY_Undo: number -const KEY_Ungrab: number -const KEY_Uogonek: number -const KEY_Up: number -const KEY_Uring: number -const KEY_User1KB: number -const KEY_User2KB: number -const KEY_UserPB: number -const KEY_Utilde: number -const KEY_V: number -const KEY_VendorHome: number -const KEY_Video: number -const KEY_View: number -const KEY_VoidSymbol: number -const KEY_W: number -const KEY_WLAN: number -const KEY_WWW: number -const KEY_Wacute: number -const KEY_WakeUp: number -const KEY_Wcircumflex: number -const KEY_Wdiaeresis: number -const KEY_WebCam: number -const KEY_Wgrave: number -const KEY_WheelButton: number -const KEY_WindowClear: number -const KEY_WonSign: number -const KEY_Word: number -const KEY_X: number -const KEY_Xabovedot: number -const KEY_Xfer: number -const KEY_Y: number -const KEY_Yacute: number -const KEY_Ybelowdot: number -const KEY_Ycircumflex: number -const KEY_Ydiaeresis: number -const KEY_Yellow: number -const KEY_Ygrave: number -const KEY_Yhook: number -const KEY_Ytilde: number -const KEY_Z: number -const KEY_Zabovedot: number -const KEY_Zacute: number -const KEY_Zcaron: number -const KEY_Zen_Koho: number -const KEY_Zenkaku: number -const KEY_Zenkaku_Hankaku: number -const KEY_ZoomIn: number -const KEY_ZoomOut: number -const KEY_Zstroke: number -const KEY_a: number -const KEY_aacute: number -const KEY_abelowdot: number -const KEY_abovedot: number -const KEY_abreve: number -const KEY_abreveacute: number -const KEY_abrevebelowdot: number -const KEY_abrevegrave: number -const KEY_abrevehook: number -const KEY_abrevetilde: number -const KEY_acircumflex: number -const KEY_acircumflexacute: number -const KEY_acircumflexbelowdot: number -const KEY_acircumflexgrave: number -const KEY_acircumflexhook: number -const KEY_acircumflextilde: number -const KEY_acute: number -const KEY_adiaeresis: number -const KEY_ae: number -const KEY_agrave: number -const KEY_ahook: number -const KEY_amacron: number -const KEY_ampersand: number -const KEY_aogonek: number -const KEY_apostrophe: number -const KEY_approxeq: number -const KEY_approximate: number -const KEY_aring: number -const KEY_asciicircum: number -const KEY_asciitilde: number -const KEY_asterisk: number -const KEY_at: number -const KEY_atilde: number -const KEY_b: number -const KEY_babovedot: number -const KEY_backslash: number -const KEY_ballotcross: number -const KEY_bar: number -const KEY_because: number -const KEY_blank: number -const KEY_botintegral: number -const KEY_botleftparens: number -const KEY_botleftsqbracket: number -const KEY_botleftsummation: number -const KEY_botrightparens: number -const KEY_botrightsqbracket: number -const KEY_botrightsummation: number -const KEY_bott: number -const KEY_botvertsummationconnector: number -const KEY_braceleft: number -const KEY_braceright: number -const KEY_bracketleft: number -const KEY_bracketright: number -const KEY_braille_blank: number -const KEY_braille_dot_1: number -const KEY_braille_dot_10: number -const KEY_braille_dot_2: number -const KEY_braille_dot_3: number -const KEY_braille_dot_4: number -const KEY_braille_dot_5: number -const KEY_braille_dot_6: number -const KEY_braille_dot_7: number -const KEY_braille_dot_8: number -const KEY_braille_dot_9: number -const KEY_braille_dots_1: number -const KEY_braille_dots_12: number -const KEY_braille_dots_123: number -const KEY_braille_dots_1234: number -const KEY_braille_dots_12345: number -const KEY_braille_dots_123456: number -const KEY_braille_dots_1234567: number -const KEY_braille_dots_12345678: number -const KEY_braille_dots_1234568: number -const KEY_braille_dots_123457: number -const KEY_braille_dots_1234578: number -const KEY_braille_dots_123458: number -const KEY_braille_dots_12346: number -const KEY_braille_dots_123467: number -const KEY_braille_dots_1234678: number -const KEY_braille_dots_123468: number -const KEY_braille_dots_12347: number -const KEY_braille_dots_123478: number -const KEY_braille_dots_12348: number -const KEY_braille_dots_1235: number -const KEY_braille_dots_12356: number -const KEY_braille_dots_123567: number -const KEY_braille_dots_1235678: number -const KEY_braille_dots_123568: number -const KEY_braille_dots_12357: number -const KEY_braille_dots_123578: number -const KEY_braille_dots_12358: number -const KEY_braille_dots_1236: number -const KEY_braille_dots_12367: number -const KEY_braille_dots_123678: number -const KEY_braille_dots_12368: number -const KEY_braille_dots_1237: number -const KEY_braille_dots_12378: number -const KEY_braille_dots_1238: number -const KEY_braille_dots_124: number -const KEY_braille_dots_1245: number -const KEY_braille_dots_12456: number -const KEY_braille_dots_124567: number -const KEY_braille_dots_1245678: number -const KEY_braille_dots_124568: number -const KEY_braille_dots_12457: number -const KEY_braille_dots_124578: number -const KEY_braille_dots_12458: number -const KEY_braille_dots_1246: number -const KEY_braille_dots_12467: number -const KEY_braille_dots_124678: number -const KEY_braille_dots_12468: number -const KEY_braille_dots_1247: number -const KEY_braille_dots_12478: number -const KEY_braille_dots_1248: number -const KEY_braille_dots_125: number -const KEY_braille_dots_1256: number -const KEY_braille_dots_12567: number -const KEY_braille_dots_125678: number -const KEY_braille_dots_12568: number -const KEY_braille_dots_1257: number -const KEY_braille_dots_12578: number -const KEY_braille_dots_1258: number -const KEY_braille_dots_126: number -const KEY_braille_dots_1267: number -const KEY_braille_dots_12678: number -const KEY_braille_dots_1268: number -const KEY_braille_dots_127: number -const KEY_braille_dots_1278: number -const KEY_braille_dots_128: number -const KEY_braille_dots_13: number -const KEY_braille_dots_134: number -const KEY_braille_dots_1345: number -const KEY_braille_dots_13456: number -const KEY_braille_dots_134567: number -const KEY_braille_dots_1345678: number -const KEY_braille_dots_134568: number -const KEY_braille_dots_13457: number -const KEY_braille_dots_134578: number -const KEY_braille_dots_13458: number -const KEY_braille_dots_1346: number -const KEY_braille_dots_13467: number -const KEY_braille_dots_134678: number -const KEY_braille_dots_13468: number -const KEY_braille_dots_1347: number -const KEY_braille_dots_13478: number -const KEY_braille_dots_1348: number -const KEY_braille_dots_135: number -const KEY_braille_dots_1356: number -const KEY_braille_dots_13567: number -const KEY_braille_dots_135678: number -const KEY_braille_dots_13568: number -const KEY_braille_dots_1357: number -const KEY_braille_dots_13578: number -const KEY_braille_dots_1358: number -const KEY_braille_dots_136: number -const KEY_braille_dots_1367: number -const KEY_braille_dots_13678: number -const KEY_braille_dots_1368: number -const KEY_braille_dots_137: number -const KEY_braille_dots_1378: number -const KEY_braille_dots_138: number -const KEY_braille_dots_14: number -const KEY_braille_dots_145: number -const KEY_braille_dots_1456: number -const KEY_braille_dots_14567: number -const KEY_braille_dots_145678: number -const KEY_braille_dots_14568: number -const KEY_braille_dots_1457: number -const KEY_braille_dots_14578: number -const KEY_braille_dots_1458: number -const KEY_braille_dots_146: number -const KEY_braille_dots_1467: number -const KEY_braille_dots_14678: number -const KEY_braille_dots_1468: number -const KEY_braille_dots_147: number -const KEY_braille_dots_1478: number -const KEY_braille_dots_148: number -const KEY_braille_dots_15: number -const KEY_braille_dots_156: number -const KEY_braille_dots_1567: number -const KEY_braille_dots_15678: number -const KEY_braille_dots_1568: number -const KEY_braille_dots_157: number -const KEY_braille_dots_1578: number -const KEY_braille_dots_158: number -const KEY_braille_dots_16: number -const KEY_braille_dots_167: number -const KEY_braille_dots_1678: number -const KEY_braille_dots_168: number -const KEY_braille_dots_17: number -const KEY_braille_dots_178: number -const KEY_braille_dots_18: number -const KEY_braille_dots_2: number -const KEY_braille_dots_23: number -const KEY_braille_dots_234: number -const KEY_braille_dots_2345: number -const KEY_braille_dots_23456: number -const KEY_braille_dots_234567: number -const KEY_braille_dots_2345678: number -const KEY_braille_dots_234568: number -const KEY_braille_dots_23457: number -const KEY_braille_dots_234578: number -const KEY_braille_dots_23458: number -const KEY_braille_dots_2346: number -const KEY_braille_dots_23467: number -const KEY_braille_dots_234678: number -const KEY_braille_dots_23468: number -const KEY_braille_dots_2347: number -const KEY_braille_dots_23478: number -const KEY_braille_dots_2348: number -const KEY_braille_dots_235: number -const KEY_braille_dots_2356: number -const KEY_braille_dots_23567: number -const KEY_braille_dots_235678: number -const KEY_braille_dots_23568: number -const KEY_braille_dots_2357: number -const KEY_braille_dots_23578: number -const KEY_braille_dots_2358: number -const KEY_braille_dots_236: number -const KEY_braille_dots_2367: number -const KEY_braille_dots_23678: number -const KEY_braille_dots_2368: number -const KEY_braille_dots_237: number -const KEY_braille_dots_2378: number -const KEY_braille_dots_238: number -const KEY_braille_dots_24: number -const KEY_braille_dots_245: number -const KEY_braille_dots_2456: number -const KEY_braille_dots_24567: number -const KEY_braille_dots_245678: number -const KEY_braille_dots_24568: number -const KEY_braille_dots_2457: number -const KEY_braille_dots_24578: number -const KEY_braille_dots_2458: number -const KEY_braille_dots_246: number -const KEY_braille_dots_2467: number -const KEY_braille_dots_24678: number -const KEY_braille_dots_2468: number -const KEY_braille_dots_247: number -const KEY_braille_dots_2478: number -const KEY_braille_dots_248: number -const KEY_braille_dots_25: number -const KEY_braille_dots_256: number -const KEY_braille_dots_2567: number -const KEY_braille_dots_25678: number -const KEY_braille_dots_2568: number -const KEY_braille_dots_257: number -const KEY_braille_dots_2578: number -const KEY_braille_dots_258: number -const KEY_braille_dots_26: number -const KEY_braille_dots_267: number -const KEY_braille_dots_2678: number -const KEY_braille_dots_268: number -const KEY_braille_dots_27: number -const KEY_braille_dots_278: number -const KEY_braille_dots_28: number -const KEY_braille_dots_3: number -const KEY_braille_dots_34: number -const KEY_braille_dots_345: number -const KEY_braille_dots_3456: number -const KEY_braille_dots_34567: number -const KEY_braille_dots_345678: number -const KEY_braille_dots_34568: number -const KEY_braille_dots_3457: number -const KEY_braille_dots_34578: number -const KEY_braille_dots_3458: number -const KEY_braille_dots_346: number -const KEY_braille_dots_3467: number -const KEY_braille_dots_34678: number -const KEY_braille_dots_3468: number -const KEY_braille_dots_347: number -const KEY_braille_dots_3478: number -const KEY_braille_dots_348: number -const KEY_braille_dots_35: number -const KEY_braille_dots_356: number -const KEY_braille_dots_3567: number -const KEY_braille_dots_35678: number -const KEY_braille_dots_3568: number -const KEY_braille_dots_357: number -const KEY_braille_dots_3578: number -const KEY_braille_dots_358: number -const KEY_braille_dots_36: number -const KEY_braille_dots_367: number -const KEY_braille_dots_3678: number -const KEY_braille_dots_368: number -const KEY_braille_dots_37: number -const KEY_braille_dots_378: number -const KEY_braille_dots_38: number -const KEY_braille_dots_4: number -const KEY_braille_dots_45: number -const KEY_braille_dots_456: number -const KEY_braille_dots_4567: number -const KEY_braille_dots_45678: number -const KEY_braille_dots_4568: number -const KEY_braille_dots_457: number -const KEY_braille_dots_4578: number -const KEY_braille_dots_458: number -const KEY_braille_dots_46: number -const KEY_braille_dots_467: number -const KEY_braille_dots_4678: number -const KEY_braille_dots_468: number -const KEY_braille_dots_47: number -const KEY_braille_dots_478: number -const KEY_braille_dots_48: number -const KEY_braille_dots_5: number -const KEY_braille_dots_56: number -const KEY_braille_dots_567: number -const KEY_braille_dots_5678: number -const KEY_braille_dots_568: number -const KEY_braille_dots_57: number -const KEY_braille_dots_578: number -const KEY_braille_dots_58: number -const KEY_braille_dots_6: number -const KEY_braille_dots_67: number -const KEY_braille_dots_678: number -const KEY_braille_dots_68: number -const KEY_braille_dots_7: number -const KEY_braille_dots_78: number -const KEY_braille_dots_8: number -const KEY_breve: number -const KEY_brokenbar: number -const KEY_c: number -const KEY_c_h: number -const KEY_cabovedot: number -const KEY_cacute: number -const KEY_careof: number -const KEY_caret: number -const KEY_caron: number -const KEY_ccaron: number -const KEY_ccedilla: number -const KEY_ccircumflex: number -const KEY_cedilla: number -const KEY_cent: number -const KEY_ch: number -const KEY_checkerboard: number -const KEY_checkmark: number -const KEY_circle: number -const KEY_club: number -const KEY_colon: number -const KEY_comma: number -const KEY_containsas: number -const KEY_copyright: number -const KEY_cr: number -const KEY_crossinglines: number -const KEY_cuberoot: number -const KEY_currency: number -const KEY_cursor: number -const KEY_d: number -const KEY_dabovedot: number -const KEY_dagger: number -const KEY_dcaron: number -const KEY_dead_A: number -const KEY_dead_E: number -const KEY_dead_I: number -const KEY_dead_O: number -const KEY_dead_U: number -const KEY_dead_a: number -const KEY_dead_abovecomma: number -const KEY_dead_abovedot: number -const KEY_dead_abovereversedcomma: number -const KEY_dead_abovering: number -const KEY_dead_aboveverticalline: number -const KEY_dead_acute: number -const KEY_dead_belowbreve: number -const KEY_dead_belowcircumflex: number -const KEY_dead_belowcomma: number -const KEY_dead_belowdiaeresis: number -const KEY_dead_belowdot: number -const KEY_dead_belowmacron: number -const KEY_dead_belowring: number -const KEY_dead_belowtilde: number -const KEY_dead_belowverticalline: number -const KEY_dead_breve: number -const KEY_dead_capital_schwa: number -const KEY_dead_caron: number -const KEY_dead_cedilla: number -const KEY_dead_circumflex: number -const KEY_dead_currency: number -const KEY_dead_dasia: number -const KEY_dead_diaeresis: number -const KEY_dead_doubleacute: number -const KEY_dead_doublegrave: number -const KEY_dead_e: number -const KEY_dead_grave: number -const KEY_dead_greek: number -const KEY_dead_hook: number -const KEY_dead_horn: number -const KEY_dead_i: number -const KEY_dead_invertedbreve: number -const KEY_dead_iota: number -const KEY_dead_longsolidusoverlay: number -const KEY_dead_lowline: number -const KEY_dead_macron: number -const KEY_dead_o: number -const KEY_dead_ogonek: number -const KEY_dead_perispomeni: number -const KEY_dead_psili: number -const KEY_dead_semivoiced_sound: number -const KEY_dead_small_schwa: number -const KEY_dead_stroke: number -const KEY_dead_tilde: number -const KEY_dead_u: number -const KEY_dead_voiced_sound: number -const KEY_decimalpoint: number -const KEY_degree: number -const KEY_diaeresis: number -const KEY_diamond: number -const KEY_digitspace: number -const KEY_dintegral: number -const KEY_division: number -const KEY_dollar: number -const KEY_doubbaselinedot: number -const KEY_doubleacute: number -const KEY_doubledagger: number -const KEY_doublelowquotemark: number -const KEY_downarrow: number -const KEY_downcaret: number -const KEY_downshoe: number -const KEY_downstile: number -const KEY_downtack: number -const KEY_dstroke: number -const KEY_e: number -const KEY_eabovedot: number -const KEY_eacute: number -const KEY_ebelowdot: number -const KEY_ecaron: number -const KEY_ecircumflex: number -const KEY_ecircumflexacute: number -const KEY_ecircumflexbelowdot: number -const KEY_ecircumflexgrave: number -const KEY_ecircumflexhook: number -const KEY_ecircumflextilde: number -const KEY_ediaeresis: number -const KEY_egrave: number -const KEY_ehook: number -const KEY_eightsubscript: number -const KEY_eightsuperior: number -const KEY_elementof: number -const KEY_ellipsis: number -const KEY_em3space: number -const KEY_em4space: number -const KEY_emacron: number -const KEY_emdash: number -const KEY_emfilledcircle: number -const KEY_emfilledrect: number -const KEY_emopencircle: number -const KEY_emopenrectangle: number -const KEY_emptyset: number -const KEY_emspace: number -const KEY_endash: number -const KEY_enfilledcircbullet: number -const KEY_enfilledsqbullet: number -const KEY_eng: number -const KEY_enopencircbullet: number -const KEY_enopensquarebullet: number -const KEY_enspace: number -const KEY_eogonek: number -const KEY_equal: number -const KEY_eth: number -const KEY_etilde: number -const KEY_exclam: number -const KEY_exclamdown: number -const KEY_ezh: number -const KEY_f: number -const KEY_fabovedot: number -const KEY_femalesymbol: number -const KEY_ff: number -const KEY_figdash: number -const KEY_filledlefttribullet: number -const KEY_filledrectbullet: number -const KEY_filledrighttribullet: number -const KEY_filledtribulletdown: number -const KEY_filledtribulletup: number -const KEY_fiveeighths: number -const KEY_fivesixths: number -const KEY_fivesubscript: number -const KEY_fivesuperior: number -const KEY_fourfifths: number -const KEY_foursubscript: number -const KEY_foursuperior: number -const KEY_fourthroot: number -const KEY_function: number -const KEY_g: number -const KEY_gabovedot: number -const KEY_gbreve: number -const KEY_gcaron: number -const KEY_gcedilla: number -const KEY_gcircumflex: number -const KEY_grave: number -const KEY_greater: number -const KEY_greaterthanequal: number -const KEY_guillemotleft: number -const KEY_guillemotright: number -const KEY_h: number -const KEY_hairspace: number -const KEY_hcircumflex: number -const KEY_heart: number -const KEY_hebrew_aleph: number -const KEY_hebrew_ayin: number -const KEY_hebrew_bet: number -const KEY_hebrew_beth: number -const KEY_hebrew_chet: number -const KEY_hebrew_dalet: number -const KEY_hebrew_daleth: number -const KEY_hebrew_doublelowline: number -const KEY_hebrew_finalkaph: number -const KEY_hebrew_finalmem: number -const KEY_hebrew_finalnun: number -const KEY_hebrew_finalpe: number -const KEY_hebrew_finalzade: number -const KEY_hebrew_finalzadi: number -const KEY_hebrew_gimel: number -const KEY_hebrew_gimmel: number -const KEY_hebrew_he: number -const KEY_hebrew_het: number -const KEY_hebrew_kaph: number -const KEY_hebrew_kuf: number -const KEY_hebrew_lamed: number -const KEY_hebrew_mem: number -const KEY_hebrew_nun: number -const KEY_hebrew_pe: number -const KEY_hebrew_qoph: number -const KEY_hebrew_resh: number -const KEY_hebrew_samech: number -const KEY_hebrew_samekh: number -const KEY_hebrew_shin: number -const KEY_hebrew_taf: number -const KEY_hebrew_taw: number -const KEY_hebrew_tet: number -const KEY_hebrew_teth: number -const KEY_hebrew_waw: number -const KEY_hebrew_yod: number -const KEY_hebrew_zade: number -const KEY_hebrew_zadi: number -const KEY_hebrew_zain: number -const KEY_hebrew_zayin: number -const KEY_hexagram: number -const KEY_horizconnector: number -const KEY_horizlinescan1: number -const KEY_horizlinescan3: number -const KEY_horizlinescan5: number -const KEY_horizlinescan7: number -const KEY_horizlinescan9: number -const KEY_hstroke: number -const KEY_ht: number -const KEY_hyphen: number -const KEY_i: number -const KEY_iTouch: number -const KEY_iacute: number -const KEY_ibelowdot: number -const KEY_ibreve: number -const KEY_icircumflex: number -const KEY_identical: number -const KEY_idiaeresis: number -const KEY_idotless: number -const KEY_ifonlyif: number -const KEY_igrave: number -const KEY_ihook: number -const KEY_imacron: number -const KEY_implies: number -const KEY_includedin: number -const KEY_includes: number -const KEY_infinity: number -const KEY_integral: number -const KEY_intersection: number -const KEY_iogonek: number -const KEY_itilde: number -const KEY_j: number -const KEY_jcircumflex: number -const KEY_jot: number -const KEY_k: number -const KEY_kana_A: number -const KEY_kana_CHI: number -const KEY_kana_E: number -const KEY_kana_FU: number -const KEY_kana_HA: number -const KEY_kana_HE: number -const KEY_kana_HI: number -const KEY_kana_HO: number -const KEY_kana_HU: number -const KEY_kana_I: number -const KEY_kana_KA: number -const KEY_kana_KE: number -const KEY_kana_KI: number -const KEY_kana_KO: number -const KEY_kana_KU: number -const KEY_kana_MA: number -const KEY_kana_ME: number -const KEY_kana_MI: number -const KEY_kana_MO: number -const KEY_kana_MU: number -const KEY_kana_N: number -const KEY_kana_NA: number -const KEY_kana_NE: number -const KEY_kana_NI: number -const KEY_kana_NO: number -const KEY_kana_NU: number -const KEY_kana_O: number -const KEY_kana_RA: number -const KEY_kana_RE: number -const KEY_kana_RI: number -const KEY_kana_RO: number -const KEY_kana_RU: number -const KEY_kana_SA: number -const KEY_kana_SE: number -const KEY_kana_SHI: number -const KEY_kana_SO: number -const KEY_kana_SU: number -const KEY_kana_TA: number -const KEY_kana_TE: number -const KEY_kana_TI: number -const KEY_kana_TO: number -const KEY_kana_TSU: number -const KEY_kana_TU: number -const KEY_kana_U: number -const KEY_kana_WA: number -const KEY_kana_WO: number -const KEY_kana_YA: number -const KEY_kana_YO: number -const KEY_kana_YU: number -const KEY_kana_a: number -const KEY_kana_closingbracket: number -const KEY_kana_comma: number -const KEY_kana_conjunctive: number -const KEY_kana_e: number -const KEY_kana_fullstop: number -const KEY_kana_i: number -const KEY_kana_middledot: number -const KEY_kana_o: number -const KEY_kana_openingbracket: number -const KEY_kana_switch: number -const KEY_kana_tsu: number -const KEY_kana_tu: number -const KEY_kana_u: number -const KEY_kana_ya: number -const KEY_kana_yo: number -const KEY_kana_yu: number -const KEY_kappa: number -const KEY_kcedilla: number -const KEY_kra: number -const KEY_l: number -const KEY_lacute: number -const KEY_latincross: number -const KEY_lbelowdot: number -const KEY_lcaron: number -const KEY_lcedilla: number -const KEY_leftanglebracket: number -const KEY_leftarrow: number -const KEY_leftcaret: number -const KEY_leftdoublequotemark: number -const KEY_leftmiddlecurlybrace: number -const KEY_leftopentriangle: number -const KEY_leftpointer: number -const KEY_leftradical: number -const KEY_leftshoe: number -const KEY_leftsinglequotemark: number -const KEY_leftt: number -const KEY_lefttack: number -const KEY_less: number -const KEY_lessthanequal: number -const KEY_lf: number -const KEY_logicaland: number -const KEY_logicalor: number -const KEY_lowleftcorner: number -const KEY_lowrightcorner: number -const KEY_lstroke: number -const KEY_m: number -const KEY_mabovedot: number -const KEY_macron: number -const KEY_malesymbol: number -const KEY_maltesecross: number -const KEY_marker: number -const KEY_masculine: number -const KEY_minus: number -const KEY_minutes: number -const KEY_mu: number -const KEY_multiply: number -const KEY_musicalflat: number -const KEY_musicalsharp: number -const KEY_n: number -const KEY_nabla: number -const KEY_nacute: number -const KEY_ncaron: number -const KEY_ncedilla: number -const KEY_ninesubscript: number -const KEY_ninesuperior: number -const KEY_nl: number -const KEY_nobreakspace: number -const KEY_notapproxeq: number -const KEY_notelementof: number -const KEY_notequal: number -const KEY_notidentical: number -const KEY_notsign: number -const KEY_ntilde: number -const KEY_numbersign: number -const KEY_numerosign: number -const KEY_o: number -const KEY_oacute: number -const KEY_obarred: number -const KEY_obelowdot: number -const KEY_ocaron: number -const KEY_ocircumflex: number -const KEY_ocircumflexacute: number -const KEY_ocircumflexbelowdot: number -const KEY_ocircumflexgrave: number -const KEY_ocircumflexhook: number -const KEY_ocircumflextilde: number -const KEY_odiaeresis: number -const KEY_odoubleacute: number -const KEY_oe: number -const KEY_ogonek: number -const KEY_ograve: number -const KEY_ohook: number -const KEY_ohorn: number -const KEY_ohornacute: number -const KEY_ohornbelowdot: number -const KEY_ohorngrave: number -const KEY_ohornhook: number -const KEY_ohorntilde: number -const KEY_omacron: number -const KEY_oneeighth: number -const KEY_onefifth: number -const KEY_onehalf: number -const KEY_onequarter: number -const KEY_onesixth: number -const KEY_onesubscript: number -const KEY_onesuperior: number -const KEY_onethird: number -const KEY_ooblique: number -const KEY_openrectbullet: number -const KEY_openstar: number -const KEY_opentribulletdown: number -const KEY_opentribulletup: number -const KEY_ordfeminine: number -const KEY_oslash: number -const KEY_otilde: number -const KEY_overbar: number -const KEY_overline: number -const KEY_p: number -const KEY_pabovedot: number -const KEY_paragraph: number -const KEY_parenleft: number -const KEY_parenright: number -const KEY_partdifferential: number -const KEY_partialderivative: number -const KEY_percent: number -const KEY_period: number -const KEY_periodcentered: number -const KEY_permille: number -const KEY_phonographcopyright: number -const KEY_plus: number -const KEY_plusminus: number -const KEY_prescription: number -const KEY_prolongedsound: number -const KEY_punctspace: number -const KEY_q: number -const KEY_quad: number -const KEY_question: number -const KEY_questiondown: number -const KEY_quotedbl: number -const KEY_quoteleft: number -const KEY_quoteright: number -const KEY_r: number -const KEY_racute: number -const KEY_radical: number -const KEY_rcaron: number -const KEY_rcedilla: number -const KEY_registered: number -const KEY_rightanglebracket: number -const KEY_rightarrow: number -const KEY_rightcaret: number -const KEY_rightdoublequotemark: number -const KEY_rightmiddlecurlybrace: number -const KEY_rightmiddlesummation: number -const KEY_rightopentriangle: number -const KEY_rightpointer: number -const KEY_rightshoe: number -const KEY_rightsinglequotemark: number -const KEY_rightt: number -const KEY_righttack: number -const KEY_s: number -const KEY_sabovedot: number -const KEY_sacute: number -const KEY_scaron: number -const KEY_scedilla: number -const KEY_schwa: number -const KEY_scircumflex: number -const KEY_script_switch: number -const KEY_seconds: number -const KEY_section: number -const KEY_semicolon: number -const KEY_semivoicedsound: number -const KEY_seveneighths: number -const KEY_sevensubscript: number -const KEY_sevensuperior: number -const KEY_signaturemark: number -const KEY_signifblank: number -const KEY_similarequal: number -const KEY_singlelowquotemark: number -const KEY_sixsubscript: number -const KEY_sixsuperior: number -const KEY_slash: number -const KEY_soliddiamond: number -const KEY_space: number -const KEY_squareroot: number -const KEY_ssharp: number -const KEY_sterling: number -const KEY_stricteq: number -const KEY_t: number -const KEY_tabovedot: number -const KEY_tcaron: number -const KEY_tcedilla: number -const KEY_telephone: number -const KEY_telephonerecorder: number -const KEY_therefore: number -const KEY_thinspace: number -const KEY_thorn: number -const KEY_threeeighths: number -const KEY_threefifths: number -const KEY_threequarters: number -const KEY_threesubscript: number -const KEY_threesuperior: number -const KEY_tintegral: number -const KEY_topintegral: number -const KEY_topleftparens: number -const KEY_topleftradical: number -const KEY_topleftsqbracket: number -const KEY_topleftsummation: number -const KEY_toprightparens: number -const KEY_toprightsqbracket: number -const KEY_toprightsummation: number -const KEY_topt: number -const KEY_topvertsummationconnector: number -const KEY_trademark: number -const KEY_trademarkincircle: number -const KEY_tslash: number -const KEY_twofifths: number -const KEY_twosubscript: number -const KEY_twosuperior: number -const KEY_twothirds: number -const KEY_u: number -const KEY_uacute: number -const KEY_ubelowdot: number -const KEY_ubreve: number -const KEY_ucircumflex: number -const KEY_udiaeresis: number -const KEY_udoubleacute: number -const KEY_ugrave: number -const KEY_uhook: number -const KEY_uhorn: number -const KEY_uhornacute: number -const KEY_uhornbelowdot: number -const KEY_uhorngrave: number -const KEY_uhornhook: number -const KEY_uhorntilde: number -const KEY_umacron: number -const KEY_underbar: number -const KEY_underscore: number -const KEY_union: number -const KEY_uogonek: number -const KEY_uparrow: number -const KEY_upcaret: number -const KEY_upleftcorner: number -const KEY_uprightcorner: number -const KEY_upshoe: number -const KEY_upstile: number -const KEY_uptack: number -const KEY_uring: number -const KEY_utilde: number -const KEY_v: number -const KEY_variation: number -const KEY_vertbar: number -const KEY_vertconnector: number -const KEY_voicedsound: number -const KEY_vt: number -const KEY_w: number -const KEY_wacute: number -const KEY_wcircumflex: number -const KEY_wdiaeresis: number -const KEY_wgrave: number -const KEY_x: number -const KEY_xabovedot: number -const KEY_y: number -const KEY_yacute: number -const KEY_ybelowdot: number -const KEY_ycircumflex: number -const KEY_ydiaeresis: number -const KEY_yen: number -const KEY_ygrave: number -const KEY_yhook: number -const KEY_ytilde: number -const KEY_z: number -const KEY_zabovedot: number -const KEY_zacute: number -const KEY_zcaron: number -const KEY_zerosubscript: number -const KEY_zerosuperior: number -const KEY_zstroke: number -const PATH_RELATIVE: number -/** - * Priority of the redraws. This is chosen to be lower than the GTK+ - * redraw and resize priorities, because in application with both - * GTK+ and Clutter it's more likely that the Clutter part will be - * continually animating (and thus able to starve GTK+) than - * vice-versa. - */ -const PRIORITY_REDRAW: number -const VIRTUAL_INPUT_DEVICE_MAX_TOUCH_SLOTS: number -/** - * Allocates a new [struct`ActorBox]`. - * @returns the newly allocated #ClutterActorBox. Use [method@ActorBox.free] to free its resources - */ -function actor_box_alloc(): ActorBox -/** - * Utility function to clear a Cairo context. - * @param cr a Cairo context - */ -function cairo_clear(cr: cairo.Context): void -/** - * Utility function for setting the source color of `cr` using - * a #ClutterColor. This function is the equivalent of: - * - * ```c - * cairo_set_source_rgba (cr, - * color->red / 255.0, - * color->green / 255.0, - * color->blue / 255.0, - * color->alpha / 255.0); - * ``` - * @param cr a Cairo context - * @param color a #ClutterColor - */ -function cairo_set_source_color(cr: cairo.Context, color: Color): void -/** - * Converts a color expressed in HLS (hue, luminance and saturation) - * values into a #ClutterColor. - * @param hue hue value, in the 0 .. 360 range - * @param luminance luminance value, in the 0 .. 1 range - * @param saturation saturation value, in the 0 .. 1 range - */ -function color_from_hls(hue: number, luminance: number, saturation: number): /* color */ Color -/** - * Converts `pixel` from the packed representation of a four 8 bit channel - * color to a #ClutterColor. - * @param pixel a 32 bit packed integer containing a color - */ -function color_from_pixel(pixel: number): /* color */ Color -/** - * Parses a string definition of a color, filling the #ClutterColor.red, - * #ClutterColor.green, #ClutterColor.blue and #ClutterColor.alpha fields - * of `color`. - * - * The `color` is not allocated. - * - * The format of `str` can be either one of: - * - * - a standard name (as taken from the X11 rgb.txt file) - * - an hexadecimal value in the form: `#rgb`, `#rrggbb`, `#rgba`, or `#rrggbbaa` - * - a RGB color in the form: `rgb(r, g, b)` - * - a RGB color in the form: `rgba(r, g, b, a)` - * - a HSL color in the form: `hsl(h, s, l)` - * -a HSL color in the form: `hsla(h, s, l, a)` - * - * where 'r', 'g', 'b' and 'a' are (respectively) the red, green, blue color - * intensities and the opacity. The 'h', 's' and 'l' are (respectively) the - * hue, saturation and luminance values. - * - * In the rgb() and rgba() formats, the 'r', 'g', and 'b' values are either - * integers between 0 and 255, or percentage values in the range between 0% - * and 100%; the percentages require the '%' character. The 'a' value, if - * specified, can only be a floating point value between 0.0 and 1.0. - * - * In the hls() and hlsa() formats, the 'h' value (hue) is an angle between - * 0 and 360.0 degrees; the 'l' and 's' values (luminance and saturation) are - * percentage values in the range between 0% and 100%. The 'a' value, if specified, - * can only be a floating point value between 0.0 and 1.0. - * - * Whitespace inside the definitions is ignored; no leading whitespace - * is allowed. - * - * If the alpha component is not specified then it is assumed to be set to - * be fully opaque. - * @param str a string specifying a color - * @returns %TRUE if parsing succeeded, and %FALSE otherwise - */ -function color_from_string(str: string | null): [ /* returnType */ boolean, /* color */ Color ] -/** - * Retrieves a static color for the given `color` name - * - * Static colors are created by Clutter and are guaranteed to always be - * available and valid - * @param color the named global color - * @returns a pointer to a static color; the returned pointer is owned by Clutter and it should never be modified or freed - */ -function color_get_static(color: StaticColor): Color -/** - * Looks up the #GParamSpec for a child property of `klass`. - * @param klass a #GObjectClass implementing the #ClutterContainer interface. - * @param property_name a property name. - * @returns The #GParamSpec for the property or %NULL if no such property exist. - */ -function container_class_find_child_property(klass: GObject.ObjectClass, property_name: string | null): GObject.ParamSpec -/** - * Returns an array of #GParamSpec for all child properties. - * @param klass a #GObjectClass implementing the #ClutterContainer interface. - * @returns an array of `GParamSpec`s which should be freed after use. - */ -function container_class_list_child_properties(klass: GObject.ObjectClass): GObject.ParamSpec[] -function debug_set_max_render_time_constant(max_render_time_constant_us: number): void -/** - * Disable loading the accessibility support. It has the same effect - * as setting the environment variable - * CLUTTER_DISABLE_ACCESSIBILITY. For the same reason, this method - * should be called before clutter_init(). - */ -function disable_accessibility(): void -/** - * Adds a function which will be called for all events that Clutter - * processes. The function will be called before any signals are - * emitted for the event and it will take precedence over any grabs. - * @param stage The #ClutterStage to capture events for - * @param func The callback function which will be passed all events. - * @returns an identifier for the event filter, to be used with clutter_event_remove_filter(). - */ -function event_add_filter(stage: Stage | null, func: EventFilterFunc): number -/** - * Pops an event off the event queue. Applications should not need to call - * this. - * @returns A #ClutterEvent or NULL if queue empty - */ -function event_get(): Event -/** - * Removes an event filter that was previously added with - * clutter_event_add_filter(). - * @param id The ID of the event filter, as returned from clutter_event_add_filter() - */ -function event_remove_filter(id: number): void -/** - * Checks if events are pending in the event queue. - * @returns TRUE if there are pending events, FALSE otherwise. - */ -function events_pending(): boolean -/** - * Returns whether Clutter has accessibility support enabled. As - * least, a value of TRUE means that there are a proper AtkUtil - * implementation available - * @returns %TRUE if Clutter has accessibility support enabled - */ -function get_accessibility_enabled(): boolean -/** - * If an event is currently being processed, return that event. - * This function is intended to be used to access event state - * that might not be exposed by higher-level widgets. For - * example, to get the key modifier state from a Button 'clicked' - * event. - * @returns The current ClutterEvent, or %NULL if none - */ -function get_current_event(): Event -/** - * Retrieves the timestamp of the last event, if there is an - * event or if the event has a timestamp. - * @returns the event timestamp, or %CLUTTER_CURRENT_TIME - */ -function get_current_event_time(): number -function get_debug_flags(debug_flags: DebugFlag, draw_flags: DrawDebugFlag, pick_flags: PickDebugFlag): void -/** - * Retrieves the default #ClutterBackend used by Clutter. The - * #ClutterBackend holds backend-specific configuration options. - * @returns the default backend. You should not ref or unref the returned object. Applications should rarely need to use this. - */ -function get_default_backend(): Backend -/** - * Retrieves the default direction for the text. The text direction is - * determined by the locale and/or by the `CLUTTER_TEXT_DIRECTION` - * environment variable. - * - * The default text direction can be overridden on a per-actor basis by using - * [method`Actor`.set_text_direction]. - * @returns the default text direction - */ -function get_default_text_direction(): TextDirection -/** - * Retrieves the #PangoFontMap instance used by Clutter. - * You can use the global font map object with the COGL - * Pango API. - * @returns the #PangoFontMap instance. The returned value is owned by Clutter and it should never be unreferenced. - */ -function get_font_map(): Pango.FontMap -/** - * Retrieves the Clutter script id, if any. - * @param gobject a #GObject - * @returns the script id, or %NULL if @object was not defined inside a UI definition file. The returned string is owned by the object and should never be modified or freed. - */ -function get_script_id(gobject: GObject.Object): string | null -function get_text_direction(): TextDirection -/** - * Converts `keyval` from a Clutter key symbol to the corresponding - * ISO10646 (Unicode) character. - * @param keyval a key symbol - * @returns a Unicode character, or 0 if there is no corresponding character. - */ -function keysym_to_unicode(keyval: number): number -function keyval_convert_case(symbol: number): [ /* lower */ number, /* upper */ number ] -function keyval_name(keyval: number): string | null -function script_error_quark(): GLib.Quark -/** - * Adds a function to be called whenever there are no higher priority - * events pending. If the function returns %FALSE it is automatically - * removed from the list of event sources and will not be called again. - * - * This function can be considered a thread-safe variant of g_idle_add_full(): - * it will call `function` while holding the Clutter lock. It is logically - * equivalent to the following implementation: - * - * ```c - * static gboolean - * idle_safe_callback (gpointer data) - * { - * SafeClosure *closure = data; - * gboolean res = FALSE; - * - * // the callback does not need to acquire the Clutter - * / lock itself, as it is held by the this proxy handler - * // - * res = closure->callback (closure->data); - * - * return res; - * } - * static gulong - * add_safe_idle (GSourceFunc callback, - * gpointer data) - * { - * SafeClosure *closure = g_new0 (SafeClosure, 1); - * - * closure->callback = callback; - * closure->data = data; - * - * return g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, - * idle_safe_callback, - * closure, - * g_free) - * } - * ``` - * - * This function should be used by threaded applications to make sure - * that `func` is emitted under the Clutter threads lock and invoked - * from the same thread that started the Clutter main loop. For instance, - * it can be used to update the UI using the results from a worker - * thread: - * - * ```c - * static gboolean - * update_ui (gpointer data) - * { - * SomeClosure *closure = data; - * - * // it is safe to call Clutter API from this function because - * / it is invoked from the same thread that started the main - * / loop and under the Clutter thread lock - * // - * clutter_label_set_text (CLUTTER_LABEL (closure->label), - * closure->text); - * - * g_object_unref (closure->label); - * g_free (closure); - * - * return FALSE; - * } - * - * // within another thread // - * closure = g_new0 (SomeClosure, 1); - * // always take a reference on GObject instances // - * closure->label = g_object_ref (my_application->label); - * closure->text = g_strdup (processed_text_to_update_the_label); - * - * clutter_threads_add_idle_full (G_PRIORITY_HIGH_IDLE, - * update_ui, - * closure, - * NULL); - * ``` - * @param priority the priority of the timeout source. Typically this will be in the range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE - * @param func function to call - * @returns the ID (greater than 0) of the event source. - */ -function threads_add_idle(priority: number, func: GLib.SourceFunc): number -/** - * Adds a function to be called whenever Clutter is processing a new - * frame. - * - * If the function returns %FALSE it is automatically removed from the - * list of repaint functions and will not be called again. - * - * This function is guaranteed to be called from within the same thread - * that called clutter_main(), and while the Clutter lock is being held; - * the function will be called within the main loop, so it is imperative - * that it does not block, otherwise the frame time budget may be lost. - * - * A repaint function is useful to ensure that an update of the scenegraph - * is performed before the scenegraph is repainted. By default, a repaint - * function added using this function will be invoked prior to the frame - * being processed. - * - * Adding a repaint function does not automatically ensure that a new - * frame will be queued. - * - * When the repaint function is removed (either because it returned %FALSE - * or because clutter_threads_remove_repaint_func() has been called) the - * `notify` function will be called, if any is set. - * - * See also: clutter_threads_add_repaint_func_full() - * @param func the function to be called within the paint cycle - * @returns the ID (greater than 0) of the repaint function. You can use the returned integer to remove the repaint function by calling clutter_threads_remove_repaint_func(). - */ -function threads_add_repaint_func(func: GLib.SourceFunc): number -/** - * Adds a function to be called whenever Clutter is processing a new - * frame. - * - * If the function returns %FALSE it is automatically removed from the - * list of repaint functions and will not be called again. - * - * This function is guaranteed to be called from within the same thread - * that called clutter_main(), and while the Clutter lock is being held; - * the function will be called within the main loop, so it is imperative - * that it does not block, otherwise the frame time budget may be lost. - * - * A repaint function is useful to ensure that an update of the scenegraph - * is performed before the scenegraph is repainted. The `flags` passed to this - * function will determine the section of the frame processing that will - * result in `func` being called. - * - * Adding a repaint function does not automatically ensure that a new - * frame will be queued. - * - * When the repaint function is removed (either because it returned %FALSE - * or because clutter_threads_remove_repaint_func() has been called) the - * `notify` function will be called, if any is set. - * @param flags flags for the repaint function - * @param func the function to be called within the paint cycle - * @returns the ID (greater than 0) of the repaint function. You can use the returned integer to remove the repaint function by calling clutter_threads_remove_repaint_func(). - */ -function threads_add_repaint_func_full(flags: RepaintFlags, func: GLib.SourceFunc): number -/** - * Sets a function to be called at regular intervals holding the Clutter - * threads lock, with the given priority. The function is called repeatedly - * until it returns %FALSE, at which point the timeout is automatically - * removed and the function will not be called again. The `notify` function - * is called when the timeout is removed. - * - * The first call to the function will be at the end of the first `interval`. - * - * It is important to note that, due to how the Clutter main loop is - * implemented, the timing will not be accurate and it will not try to - * "keep up" with the interval. - * - * See also clutter_threads_add_idle_full(). - * @param priority the priority of the timeout source. Typically this will be in the range between #G_PRIORITY_DEFAULT and #G_PRIORITY_HIGH. - * @param interval the time between calls to the function, in milliseconds - * @param func function to call - * @returns the ID (greater than 0) of the event source. - */ -function threads_add_timeout(priority: number, interval: number, func: GLib.SourceFunc): number -/** - * Removes the repaint function with `handle_id` as its id - * @param handle_id an unsigned integer greater than zero - */ -function threads_remove_repaint_func(handle_id: number): void -/** - * Convert from a ISO10646 character to a key symbol. - * @param wc a ISO10646 encoded character - * @returns the corresponding Clutter key symbol, if one exists. or, if there is no corresponding symbol, wc | 0x01000000 - */ -function unicode_to_keysym(wc: number): number -/** - * Stores a value in centimeters inside `units` - * @param cm centimeters - */ -function units_from_cm(cm: number): /* units */ Units -/** - * Stores a value in em inside `units,` using the default font - * name - * @param em em - */ -function units_from_em(em: number): /* units */ Units -/** - * Stores a value in em inside `units` using `font_name` - * @param font_name the font name and size - * @param em em - */ -function units_from_em_for_font(font_name: string | null, em: number): /* units */ Units -/** - * Stores a value in millimeters inside `units` - * @param mm millimeters - */ -function units_from_mm(mm: number): /* units */ Units -/** - * Stores a value in pixels inside `units` - * @param px pixels - */ -function units_from_pixels(px: number): /* units */ Units -/** - * Stores a value in typographic points inside `units` - * @param pt typographic points - */ -function units_from_pt(pt: number): /* units */ Units -/** - * Parses a value and updates `units` with it - * - * A #ClutterUnits expressed in string should match: - * - * ``` - * units: wsp* unit-value wsp* unit-name? wsp* - * unit-value: number - * unit-name: 'px' | 'pt' | 'mm' | 'em' | 'cm' - * number: digit+ - * | digit* sep digit+ - * sep: '.' | ',' - * digit: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' - * wsp: (#0x20 | #0x9 | #0xA | #0xB | #0xC | #0xD)+ - * ``` - * - * For instance, these are valid strings: - * - * ``` - * 10 px - * 5.1 em - * 24 pt - * 12.6 mm - * .3 cm - * ``` - * - * While these are not: - * - * ``` - * 42 cats - * omg!1!ponies - * ``` - * - * If no unit is specified, pixels are assumed. - * @param str the string to convert - * @returns %TRUE if the string was successfully parsed, and %FALSE otherwise - */ -function units_from_string(str: string | null): [ /* returnType */ boolean, /* units */ Units ] -/** - * Retrieves a pointer to the #ClutterPaintNode contained inside - * the passed #GValue, and if not %NULL it will increase the - * reference count. - * @param value a #GValue initialized with %CLUTTER_TYPE_PAINT_NODE - * @returns a pointer to the #ClutterPaintNode, with its reference count increased, or %NULL - */ -function value_dup_paint_node(value: any): PaintNode -/** - * Gets the #ClutterColor contained in `value`. - * @param value a #GValue initialized to #CLUTTER_TYPE_COLOR - * @returns the color inside the passed #GValue - */ -function value_get_color(value: any): Color -/** - * Retrieves a pointer to the #ClutterPaintNode contained inside - * the passed #GValue. - * @param value a #GValue initialized with %CLUTTER_TYPE_PAINT_NODE - * @returns a pointer to a #ClutterPaintNode, or %NULL - */ -function value_get_paint_node(value: any): PaintNode -/** - * Retrieves the list of floating point values stored inside - * the passed [struct`GObject`.Value]. `value` must have been initialized with - * %CLUTTER_TYPE_SHADER_FLOAT. - * @param value a #GValue - * @returns the pointer to a list of floating point values. The returned value is owned by the #GValue and should never be modified or freed. - */ -function value_get_shader_float(value: any): number[] -/** - * Retrieves the list of integer values stored inside the passed - * [struct`GObject`.Value]. `value` must have been initialized with - * %CLUTTER_TYPE_SHADER_INT. - * @param value a #GValue - * @returns the pointer to a list of integer values. The returned value is owned by the #GValue and should never be modified or freed. - */ -function value_get_shader_int(value: any): number[] -/** - * Retrieves a matrix of floating point values stored inside - * the passed [struct`GObject`.Value]. `value` must have been initialized with - * %CLUTTER_TYPE_SHADER_MATRIX. - * @param value a #GValue - * @returns the pointer to a matrix of floating point values. The returned value is owned by the #GValue and should never be modified or freed. - */ -function value_get_shader_matrix(value: any): number[] -/** - * Gets the #ClutterUnits contained in `value`. - * @param value a #GValue initialized to %CLUTTER_TYPE_UNITS - * @returns the units inside the passed [struct@GObject.Value] - */ -function value_get_units(value: any): Units -/** - * Sets `value` to `color`. - * @param value a #GValue initialized to #CLUTTER_TYPE_COLOR - * @param color the color to set - */ -function value_set_color(value: any, color: Color): void -/** - * Sets the contents of a #GValue initialized with %CLUTTER_TYPE_PAINT_NODE. - * - * This function increased the reference count of `node;` if you do not wish - * to increase the reference count, use clutter_value_take_paint_node() - * instead. The reference count will be released by g_value_unset(). - * @param value a #GValue initialized with %CLUTTER_TYPE_PAINT_NODE - * @param node a #ClutterPaintNode, or %NULL - */ -function value_set_paint_node(value: any, node: PaintNode | null): void -/** - * Sets `floats` as the contents of `value`. The passed [struct`GObject`.Value] - * must have been initialized using %CLUTTER_TYPE_SHADER_FLOAT. - * @param value a #GValue - * @param floats an array of floating point values - */ -function value_set_shader_float(value: any, floats: number[]): void -/** - * Sets `ints` as the contents of `value`. The passed [struct`GObject`.Value] - * must have been initialized using %CLUTTER_TYPE_SHADER_INT. - * @param value a #GValue - * @param ints an array of integer values - */ -function value_set_shader_int(value: any, ints: number[]): void -/** - * Sets `matrix` as the contents of `value`. The passed [struct`GObject`.Value] - * must have been initialized using %CLUTTER_TYPE_SHADER_MATRIX. - * @param value a #GValue - * @param matrix a matrix of floating point values - */ -function value_set_shader_matrix(value: any, matrix: number[]): void -/** - * Sets `value` to `units` - * @param value a #GValue initialized to %CLUTTER_TYPE_UNITS - * @param units the units to set - */ -function value_set_units(value: any, units: Units): void -/** - * Sets the contents of a #GValue initialized with %CLUTTER_TYPE_PAINT_NODE. - * - * Unlike clutter_value_set_paint_node(), this function will not take a - * reference on the passed `node:` instead, it will take ownership of the - * current reference count. - * @param value a #GValue, initialized with %CLUTTER_TYPE_PAINT_NODE - * @param node a #ClutterPaintNode, or %NULL - */ -function value_take_paint_node(value: any, node: PaintNode | null): void -/** - * Creates a #ClutterActor using the `item` in the model. - * - * The usual way to implement this function is to create a #ClutterActor - * instance and then bind the #GObject properties to the actor properties - * of interest, using g_object_bind_property(). This way, when the `item` - * in the #GListModel changes, the #ClutterActor changes as well. - * @callback - * @param item the item in the model - * @returns The newly created child #ClutterActor4 - */ -interface ActorCreateChildFunc { - (item: GObject.Object): Actor -} -/** - * The prototype for the callback function registered with - * clutter_binding_pool_install_action() and invoked by - * clutter_binding_pool_activate(). - * @callback - * @param gobject a #GObject - * @param action_name the name of the action - * @param key_val the key symbol - * @param modifiers bitmask of the modifier flags - * @returns the function should return %TRUE if the key binding has been handled, and return %FALSE otherwise - */ -interface BindingActionFunc { - (gobject: GObject.Object, action_name: string | null, key_val: number, modifiers: ModifierType): boolean -} -/** - * Generic callback - * @callback - * @param actor a #ClutterActor - */ -interface Callback { - (actor: Actor): void -} -/** - * A function pointer type used by event filters that are added with - * clutter_event_add_filter(). - * @callback - * @param event the event that is going to be emitted - * @param event_actor the current device actor of the events device - * @returns %CLUTTER_EVENT_STOP to indicate that the event has been handled or %CLUTTER_EVENT_PROPAGATE otherwise. Returning %CLUTTER_EVENT_STOP skips any further filter functions and prevents the signal emission for the event. - */ -interface EventFilterFunc { - (event: Event, event_actor: Actor): boolean -} -/** - * This function is passed to [method`Path`.foreach] and will be - * called for each node contained in the path. - * @callback - * @param node the node - */ -interface PathCallback { - (node: PathNode): void -} -/** - * Prototype of the progress function used to compute the value - * between the two ends `a` and `b` of an interval depending on - * the value of `progress`. - * - * The #GValue in `retval` is already initialized with the same - * type as `a` and `b`. - * - * This function will be called by #ClutterInterval if the - * type of the values of the interval was registered using - * clutter_interval_register_progress_func(). - * @callback - * @param a the initial value of an interval - * @param b the final value of an interval - * @param progress the progress factor, between 0 and 1 - * @param retval the value used to store the progress - * @returns %TRUE if the function successfully computed the value and stored it inside @retval - */ -interface ProgressFunc { - (a: any, b: any, progress: number, retval: any): boolean -} -/** - * This is the signature of a function used to connect signals. It is used - * by the clutter_script_connect_signals_full() function. It is mainly - * intended for interpreted language bindings, but could be useful where the - * programmer wants more control over the signal connection process. - * @callback - * @param script a #ClutterScript - * @param object the object to connect - * @param signal_name the name of the signal - * @param handler_name the name of the signal handler - * @param connect_object the object to connect the signal to, or %NULL - * @param flags signal connection flags - */ -interface ScriptConnectFunc { - (script: Script, object: GObject.Object, signal_name: string | null, handler_name: string | null, connect_object: GObject.Object, flags: GObject.ConnectFlags): void -} -/** - * Iterator function for active input. Active input counts as any pointing - * device currently known to have some form of activity on the stage: Pointers - * leaning on a widget, tablet styli in proximity, active touchpoints... - * @callback - * @param stage the stage - * @param device Active input device - * @param sequence Active sequence in `device,` or %NULL - * @returns %TRUE to keep iterating. %FALSE to stop. - */ -interface StageInputForeachFunc { - (stage: Stage, device: InputDevice, sequence: EventSequence): boolean -} -/** - * A function for defining a custom progress. - * @callback - * @param timeline a #ClutterTimeline - * @param elapsed the elapsed time, in milliseconds - * @param total the total duration of the timeline, in milliseconds, - * @returns the progress, as a floating point value between -1.0 and 2.0. - */ -interface TimelineProgressFunc { - (timeline: Timeline, elapsed: number, total: number): number -} -module Animatable { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Animatable { - - // Owm methods of Clutter-13.Clutter.Animatable - - /** - * Finds the [class`GObject`.ParamSpec] for `property_name` - * @param property_name the name of the animatable property to find - * @returns The #GParamSpec for the given property or %NULL - */ - find_property(property_name: string | null): GObject.ParamSpec - /** - * Get animated actor. - * @returns a #ClutterActor - */ - get_actor(): Actor - /** - * Retrieves the current state of `property_name` and sets `value` with it - * @param property_name the name of the animatable property to retrieve - * @param value a #GValue initialized to the type of the property to retrieve - */ - get_initial_state(property_name: string | null, value: any): void - /** - * Asks a #ClutterAnimatable implementation to interpolate a - * a named property between the initial and final values of - * a #ClutterInterval, using `progress` as the interpolation - * value, and store the result inside `value`. - * - * This function should be used for every property animation - * involving `ClutterAnimatable`s. - * - * This function replaces clutter_animatable_animate_property(). - * @param property_name the name of the property to interpolate - * @param interval a #ClutterInterval with the animation range - * @param progress the progress to use to interpolate between the initial and final values of the `interval` - * @returns %TRUE if the interpolation was successful, and %FALSE otherwise - */ - interpolate_value(property_name: string | null, interval: Interval, progress: number): [ /* returnType */ boolean, /* value */ any ] - /** - * Sets the current state of `property_name` to `value` - * @param property_name the name of the animatable property to set - * @param value the value of the animatable property to set - */ - set_final_state(property_name: string | null, value: any): void - - // Own virtual methods of Clutter-13.Clutter.Animatable - - /** - * Finds the [class`GObject`.ParamSpec] for `property_name` - * @virtual - * @param property_name the name of the animatable property to find - * @returns The #GParamSpec for the given property or %NULL - */ - vfunc_find_property(property_name: string | null): GObject.ParamSpec - /** - * Get animated actor. - * @virtual - * @returns a #ClutterActor - */ - vfunc_get_actor(): Actor - /** - * Retrieves the current state of `property_name` and sets `value` with it - * @virtual - * @param property_name the name of the animatable property to retrieve - * @param value a #GValue initialized to the type of the property to retrieve - */ - vfunc_get_initial_state(property_name: string | null, value: any): void - /** - * Asks a #ClutterAnimatable implementation to interpolate a - * a named property between the initial and final values of - * a #ClutterInterval, using `progress` as the interpolation - * value, and store the result inside `value`. - * - * This function should be used for every property animation - * involving `ClutterAnimatable`s. - * - * This function replaces clutter_animatable_animate_property(). - * @virtual - * @param property_name the name of the property to interpolate - * @param interval a #ClutterInterval with the animation range - * @param progress the progress to use to interpolate between the initial and final values of the `interval` - * @returns %TRUE if the interpolation was successful, and %FALSE otherwise - */ - vfunc_interpolate_value(property_name: string | null, interval: Interval, progress: number): [ /* returnType */ boolean, /* value */ any ] - /** - * Sets the current state of `property_name` to `value` - * @virtual - * @param property_name the name of the animatable property to set - * @param value the value of the animatable property to set - */ - vfunc_set_final_state(property_name: string | null, value: any): void - - // Class property signals of Clutter-13.Clutter.Animatable - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Interface for animatable classes - * - * #ClutterAnimatable is an interface that allows a [class`GObject`.Object] class - * to control how an actor will animate a property. - * - * Each #ClutterAnimatable should implement the - * [vfunc`Animatable`.interpolate_value] virtual function of the - * interface to compute the animation state between two values of an interval - * depending on a progress factor, expressed as a floating point value. - * @interface - */ -class Animatable extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Animatable - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Animatable - - constructor(config?: Animatable.ConstructorProperties) - _init(config?: Animatable.ConstructorProperties): void -} - -module Container { - - // Signal callback interfaces - - /** - * Signal callback interface for `actor-added` - */ - interface ActorAddedSignalCallback { - ($obj: Container, actor: Actor): void - } - - /** - * Signal callback interface for `actor-removed` - */ - interface ActorRemovedSignalCallback { - ($obj: Container, actor: Actor): void - } - - /** - * Signal callback interface for `child-notify` - */ - interface ChildNotifySignalCallback { - ($obj: Container, actor: Actor, pspec: GObject.ParamSpec): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Container { - - // Owm methods of Clutter-13.Clutter.Container - - /** - * Adds a #ClutterActor to `container`. This function will emit the - * "actor-added" signal. The actor should be parented to - * `container`. You cannot add a #ClutterActor to more than one - * #ClutterContainer. - * - * This function will call #ClutterContainerIface.add(), which is a - * deprecated virtual function. The default implementation will - * call clutter_actor_add_child(). - * @param actor the first #ClutterActor to add - */ - add_actor(actor: Actor): void - /** - * Gets a container specific property of a child of `container,` In general, - * a copy is made of the property contents and the caller is responsible for - * freeing the memory by calling g_value_unset(). - * - * Note that clutter_container_child_set_property() is really intended for - * language bindings, clutter_container_child_set() is much more convenient - * for C programming. - * @param child a #ClutterActor that is a child of `container`. - * @param property the name of the property to set. - * @param value the value. - */ - child_get_property(child: Actor, property: string | null, value: any): void - /** - * Calls the #ClutterContainerIface.child_notify() virtual function - * of #ClutterContainer. The default implementation will emit the - * #ClutterContainer::child-notify signal. - * @param child a #ClutterActor - * @param pspec a #GParamSpec - */ - child_notify(child: Actor, pspec: GObject.ParamSpec): void - /** - * Sets a container-specific property on a child of `container`. - * @param child a #ClutterActor that is a child of `container`. - * @param property the name of the property to set. - * @param value the value. - */ - child_set_property(child: Actor, property: string | null, value: any): void - /** - * Creates the #ClutterChildMeta wrapping `actor` inside the - * `container,` if the #ClutterContainerIface::child_meta_type - * class member is not set to %G_TYPE_INVALID. - * - * This function is only useful when adding a #ClutterActor to - * a #ClutterContainer implementation outside of the - * #ClutterContainer::add() virtual function implementation. - * - * Applications should not call this function. - * @param actor a #ClutterActor - */ - create_child_meta(actor: Actor): void - /** - * Destroys the #ClutterChildMeta wrapping `actor` inside the - * `container,` if any. - * - * This function is only useful when removing a #ClutterActor to - * a #ClutterContainer implementation outside of the - * #ClutterContainer::add() virtual function implementation. - * - * Applications should not call this function. - * @param actor a #ClutterActor - */ - destroy_child_meta(actor: Actor): void - /** - * Finds a child actor of a container by its name. Search recurses - * into any child container. - * @param child_name the name of the requested child. - * @returns The child actor with the requested name, or %NULL if no actor with that name was found. - */ - find_child_by_name(child_name: string | null): Actor - /** - * Retrieves the #ClutterChildMeta which contains the data about the - * `container` specific state for `actor`. - * @param actor a #ClutterActor that is a child of `container`. - * @returns the #ClutterChildMeta for the @actor child of @container or %NULL if the specific actor does not exist or the container is not configured to provide `ClutterChildMeta`s - */ - get_child_meta(actor: Actor): ChildMeta - /** - * Removes `actor` from `container`. The actor should be unparented, so - * if you want to keep it around you must hold a reference to it - * yourself, using g_object_ref(). When the actor has been removed, - * the "actor-removed" signal is emitted by `container`. - * - * This function will call #ClutterContainerIface.remove(), which is a - * deprecated virtual function. The default implementation will call - * clutter_actor_remove_child(). - * @param actor a #ClutterActor - */ - remove_actor(actor: Actor): void - - // Own virtual methods of Clutter-13.Clutter.Container - - vfunc_actor_added(actor: Actor): void - vfunc_actor_removed(actor: Actor): void - /** - * Adds a #ClutterActor to `container`. This function will emit the - * "actor-added" signal. The actor should be parented to - * `container`. You cannot add a #ClutterActor to more than one - * #ClutterContainer. - * - * This function will call #ClutterContainerIface.add(), which is a - * deprecated virtual function. The default implementation will - * call clutter_actor_add_child(). - * @virtual - * @param actor the first #ClutterActor to add - */ - vfunc_add(actor: Actor): void - /** - * Calls the #ClutterContainerIface.child_notify() virtual function - * of #ClutterContainer. The default implementation will emit the - * #ClutterContainer::child-notify signal. - * @virtual - * @param child a #ClutterActor - * @param pspec a #GParamSpec - */ - vfunc_child_notify(child: Actor, pspec: GObject.ParamSpec): void - /** - * Creates the #ClutterChildMeta wrapping `actor` inside the - * `container,` if the #ClutterContainerIface::child_meta_type - * class member is not set to %G_TYPE_INVALID. - * - * This function is only useful when adding a #ClutterActor to - * a #ClutterContainer implementation outside of the - * #ClutterContainer::add() virtual function implementation. - * - * Applications should not call this function. - * @virtual - * @param actor a #ClutterActor - */ - vfunc_create_child_meta(actor: Actor): void - /** - * Destroys the #ClutterChildMeta wrapping `actor` inside the - * `container,` if any. - * - * This function is only useful when removing a #ClutterActor to - * a #ClutterContainer implementation outside of the - * #ClutterContainer::add() virtual function implementation. - * - * Applications should not call this function. - * @virtual - * @param actor a #ClutterActor - */ - vfunc_destroy_child_meta(actor: Actor): void - /** - * Retrieves the #ClutterChildMeta which contains the data about the - * `container` specific state for `actor`. - * @virtual - * @param actor a #ClutterActor that is a child of `container`. - * @returns the #ClutterChildMeta for the @actor child of @container or %NULL if the specific actor does not exist or the container is not configured to provide `ClutterChildMeta`s - */ - vfunc_get_child_meta(actor: Actor): ChildMeta - /** - * Removes `actor` from `container`. The actor should be unparented, so - * if you want to keep it around you must hold a reference to it - * yourself, using g_object_ref(). When the actor has been removed, - * the "actor-removed" signal is emitted by `container`. - * - * This function will call #ClutterContainerIface.remove(), which is a - * deprecated virtual function. The default implementation will call - * clutter_actor_remove_child(). - * @virtual - * @param actor a #ClutterActor - */ - vfunc_remove(actor: Actor): void - - // Own signals of Clutter-13.Clutter.Container - - connect(sigName: "actor-added", callback: Container.ActorAddedSignalCallback): number - connect_after(sigName: "actor-added", callback: Container.ActorAddedSignalCallback): number - emit(sigName: "actor-added", actor: Actor, ...args: any[]): void - connect(sigName: "actor-removed", callback: Container.ActorRemovedSignalCallback): number - connect_after(sigName: "actor-removed", callback: Container.ActorRemovedSignalCallback): number - emit(sigName: "actor-removed", actor: Actor, ...args: any[]): void - connect(sigName: "child-notify", callback: Container.ChildNotifySignalCallback): number - connect_after(sigName: "child-notify", callback: Container.ChildNotifySignalCallback): number - emit(sigName: "child-notify", actor: Actor, pspec: GObject.ParamSpec, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Container - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An interface for container actors - * - * #ClutterContainer is an interface implemented by [class`Actor]`, and - * it provides some common API for notifying when a child actor is added - * or removed, as well as the infrastructure for accessing child properties - * through [class`ChildMeta]`. - * @interface - */ -class Container extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Container - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Container - - constructor(config?: Container.ConstructorProperties) - _init(config?: Container.ConstructorProperties): void - /** - * Looks up the #GParamSpec for a child property of `klass`. - * @param klass a #GObjectClass implementing the #ClutterContainer interface. - * @param property_name a property name. - * @returns The #GParamSpec for the property or %NULL if no such property exist. - */ - static class_find_child_property(klass: GObject.ObjectClass, property_name: string | null): GObject.ParamSpec - /** - * Returns an array of #GParamSpec for all child properties. - * @param klass a #GObjectClass implementing the #ClutterContainer interface. - * @returns an array of `GParamSpec`s which should be freed after use. - */ - static class_list_child_properties(klass: GObject.ObjectClass): GObject.ParamSpec[] -} - -module Content { - - // Signal callback interfaces - - /** - * Signal callback interface for `attached` - */ - interface AttachedSignalCallback { - ($obj: Content, actor: Actor): void - } - - /** - * Signal callback interface for `detached` - */ - interface DetachedSignalCallback { - ($obj: Content, actor: Actor): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Content { - - // Owm methods of Clutter-13.Clutter.Content - - /** - * Retrieves the natural size of the `content,` if any. - * - * The natural size of a #ClutterContent is defined as the size the content - * would have regardless of the allocation of the actor that is painting it, - * for instance the size of an image data. - * @returns %TRUE if the content has a preferred size, and %FALSE otherwise - */ - get_preferred_size(): [ /* returnType */ boolean, /* width */ number, /* height */ number ] - /** - * Invalidates a #ClutterContent. - * - * This function should be called by #ClutterContent implementations when - * they change the way a the content should be painted regardless of the - * actor state. - */ - invalidate(): void - /** - * Signals that `content'`s size changed. Attached actors with request mode - * set to %CLUTTER_REQUEST_CONTENT_SIZE will have a relayout queued. - * - * Attached actors with other request modes are not redrawn. To redraw them - * too, use clutter_content_invalidate(). - */ - invalidate_size(): void - - // Own virtual methods of Clutter-13.Clutter.Content - - vfunc_attached(actor: Actor): void - vfunc_detached(actor: Actor): void - /** - * Retrieves the natural size of the `content,` if any. - * - * The natural size of a #ClutterContent is defined as the size the content - * would have regardless of the allocation of the actor that is painting it, - * for instance the size of an image data. - * @virtual - * @returns %TRUE if the content has a preferred size, and %FALSE otherwise - */ - vfunc_get_preferred_size(): [ /* returnType */ boolean, /* width */ number, /* height */ number ] - /** - * Invalidates a #ClutterContent. - * - * This function should be called by #ClutterContent implementations when - * they change the way a the content should be painted regardless of the - * actor state. - * @virtual - */ - vfunc_invalidate(): void - /** - * Signals that `content'`s size changed. Attached actors with request mode - * set to %CLUTTER_REQUEST_CONTENT_SIZE will have a relayout queued. - * - * Attached actors with other request modes are not redrawn. To redraw them - * too, use clutter_content_invalidate(). - * @virtual - */ - vfunc_invalidate_size(): void - vfunc_paint_content(actor: Actor, node: PaintNode, paint_context: PaintContext): void - - // Own signals of Clutter-13.Clutter.Content - - connect(sigName: "attached", callback: Content.AttachedSignalCallback): number - connect_after(sigName: "attached", callback: Content.AttachedSignalCallback): number - emit(sigName: "attached", actor: Actor, ...args: any[]): void - connect(sigName: "detached", callback: Content.DetachedSignalCallback): number - connect_after(sigName: "detached", callback: Content.DetachedSignalCallback): number - emit(sigName: "detached", actor: Actor, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Content - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Delegate for painting the content of an actor - * - * #ClutterContent is an interface to implement types responsible for - * painting the content of a [class`Actor]`. - * - * Multiple actors can use the same #ClutterContent instance, in order - * to share the resources associated with painting the same content.. - * @interface - */ -class Content extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Content - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Content - - constructor(config?: Content.ConstructorProperties) - _init(config?: Content.ConstructorProperties): void -} - -module Scriptable { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Scriptable { - - // Owm methods of Clutter-13.Clutter.Scriptable - - /** - * Retrieves the id of `scriptable` set using [method`Clutter`.Scriptable.set_id]. - * @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed - */ - get_id(): string | null - /** - * Parses the passed JSON node. The implementation must set the type - * of the passed [struct`GObject`.Value] pointer using g_value_init(). - * @param script the #ClutterScript creating the scriptable instance - * @param value the generic value to be set - * @param name the name of the node - * @param node the JSON node to be parsed - * @returns %TRUE if the node was successfully parsed, %FALSE otherwise. - */ - parse_custom_node(script: Script, value: any, name: string | null, node: Json.Node): boolean - /** - * Overrides the common properties setting. The underlying virtual - * function should be used when implementing custom properties. - * @param script the #ClutterScript creating the scriptable instance - * @param name the name of the property - * @param value the value of the property - */ - set_custom_property(script: Script, name: string | null, value: any): void - /** - * Sets `id_` as the unique Clutter script it for this instance of - * #ClutterScriptableIface. - * - * This name can be used by user interface designer applications to - * define a unique name for an object constructable using the UI - * definition language parsed by [class`Script]`. - * @param id_ the #ClutterScript id of the object - */ - set_id(id_: string | null): void - - // Own virtual methods of Clutter-13.Clutter.Scriptable - - /** - * Retrieves the id of `scriptable` set using [method`Clutter`.Scriptable.set_id]. - * @virtual - * @returns the id of the object. The returned string is owned by the scriptable object and should never be modified of freed - */ - vfunc_get_id(): string | null - /** - * Parses the passed JSON node. The implementation must set the type - * of the passed [struct`GObject`.Value] pointer using g_value_init(). - * @virtual - * @param script the #ClutterScript creating the scriptable instance - * @param value the generic value to be set - * @param name the name of the node - * @param node the JSON node to be parsed - * @returns %TRUE if the node was successfully parsed, %FALSE otherwise. - */ - vfunc_parse_custom_node(script: Script, value: any, name: string | null, node: Json.Node): boolean - /** - * Overrides the common properties setting. The underlying virtual - * function should be used when implementing custom properties. - * @virtual - * @param script the #ClutterScript creating the scriptable instance - * @param name the name of the property - * @param value the value of the property - */ - vfunc_set_custom_property(script: Script, name: string | null, value: any): void - /** - * Sets `id_` as the unique Clutter script it for this instance of - * #ClutterScriptableIface. - * - * This name can be used by user interface designer applications to - * define a unique name for an object constructable using the UI - * definition language parsed by [class`Script]`. - * @virtual - * @param id_ the #ClutterScript id of the object - */ - vfunc_set_id(id_: string | null): void - - // Class property signals of Clutter-13.Clutter.Scriptable - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Override the UI definition parsing - * - * The #ClutterScriptable interface exposes the UI definition parsing - * process to external classes. By implementing this interface, a class can - * override the UI definition parsing and transform complex data types into - * [class`GObject`.Object] properties, or allow custom properties. - * @interface - */ -class Scriptable extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Scriptable - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Scriptable - - constructor(config?: Scriptable.ConstructorProperties) - _init(config?: Scriptable.ConstructorProperties): void -} - -module Action { - - // Constructor properties interface - - interface ConstructorProperties extends ActorMeta.ConstructorProperties { - } - -} - -interface Action { - - // Own fields of Clutter-13.Clutter.Action - - parent_instance: ActorMeta & GObject.InitiallyUnowned - - // Owm methods of Clutter-13.Clutter.Action - - get_phase(): EventPhase - - // Own virtual methods of Clutter-13.Clutter.Action - - vfunc_handle_event(event: Event): boolean - vfunc_sequence_cancelled(device: InputDevice, sequence: EventSequence): void - - // Class property signals of Clutter-13.Clutter.Action - - connect(sigName: "notify::actor", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Action, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Abstract class for event-related logic - * - * #ClutterAction is an abstract base class for event-related actions that - * modify the user interaction of a [class`Actor]`, just like - * [class`Constraint]` is an abstract class for modifiers of an actor's - * position or size. - * - * Implementations of #ClutterAction are associated to an actor and can - * provide behavioral changes when dealing with user input - for instance - * drag and drop capabilities, or scrolling, or panning - by using the - * various event-related signals provided by [class`Actor]` itself. - * @class - */ -class Action extends ActorMeta { - - // Own properties of Clutter-13.Clutter.Action - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Action - - constructor(config?: Action.ConstructorProperties) - _init(config?: Action.ConstructorProperties): void -} - -module Actor { - - // Signal callback interfaces - - /** - * Signal callback interface for `button-press-event` - */ - interface ButtonPressEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `button-release-event` - */ - interface ButtonReleaseEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `captured-event` - */ - interface CapturedEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `cloned` - */ - interface ClonedSignalCallback { - ($obj: Actor, object: Clone): void - } - - /** - * Signal callback interface for `decloned` - */ - interface DeclonedSignalCallback { - ($obj: Actor, object: Clone): void - } - - /** - * Signal callback interface for `destroy` - */ - interface DestroySignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `enter-event` - */ - interface EnterEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `event` - */ - interface EventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `hide` - */ - interface HideSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `key-focus-in` - */ - interface KeyFocusInSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `key-focus-out` - */ - interface KeyFocusOutSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `key-press-event` - */ - interface KeyPressEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `key-release-event` - */ - interface KeyReleaseEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `leave-event` - */ - interface LeaveEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `motion-event` - */ - interface MotionEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `parent-set` - */ - interface ParentSetSignalCallback { - ($obj: Actor, old_parent: Actor | null): void - } - - /** - * Signal callback interface for `pick` - */ - interface PickSignalCallback { - ($obj: Actor, pick_context: PickContext): void - } - - /** - * Signal callback interface for `queue-relayout` - */ - interface QueueRelayoutSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `realize` - */ - interface RealizeSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `resource-scale-changed` - */ - interface ResourceScaleChangedSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `scroll-event` - */ - interface ScrollEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `show` - */ - interface ShowSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `stage-views-changed` - */ - interface StageViewsChangedSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `touch-event` - */ - interface TouchEventSignalCallback { - ($obj: Actor, event: Event): boolean - } - - /** - * Signal callback interface for `transition-stopped` - */ - interface TransitionStoppedSignalCallback { - ($obj: Actor, name: string | null, is_finished: boolean): void - } - - /** - * Signal callback interface for `transitions-completed` - */ - interface TransitionsCompletedSignalCallback { - ($obj: Actor): void - } - - /** - * Signal callback interface for `unrealize` - */ - interface UnrealizeSignalCallback { - ($obj: Actor): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Animatable.ConstructorProperties, Container.ConstructorProperties, Scriptable.ConstructorProperties, GObject.InitiallyUnowned.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Actor - - /** - * Adds a #ClutterAction to the actor - */ - actions?: Action | null - /** - * Paints a solid fill of the actor's allocation using the specified - * color. - * - * The #ClutterActor:background-color property is animatable. - */ - background_color?: Color | null - /** - * Applies a transformation matrix on each child of an actor. - * - * Setting this property with a #graphene_matrix_t will set the - * #ClutterActor:child-transform-set property to %TRUE as a side effect; - * setting this property with %NULL will set the - * #ClutterActor:child-transform-set property to %FALSE. - * - * The #ClutterActor:child-transform property is animatable. - */ - child_transform?: Graphene.Matrix | null - /** - * The visible region of the actor, in actor-relative coordinates, - * expressed as a #graphene_rect_t. - * - * Setting this property to %NULL will unset the existing clip. - * - * Setting this property will change the #ClutterActor:has-clip - * property as a side effect. - */ - clip_rect?: Graphene.Rect | null - /** - * Whether the clip region should track the allocated area - * of the actor. - * - * This property is ignored if a clip area has been explicitly - * set using clutter_actor_set_clip(). - */ - clip_to_allocation?: boolean | null - /** - * The #ClutterColorState contains the properties like colorspace for each - * actors. - */ - color_state?: ColorState | null - /** - * Adds a #ClutterConstraint to the actor - */ - constraints?: Constraint | null - /** - * The #ClutterContent implementation that controls the content - * of the actor. - */ - content?: Content | null - /** - * The alignment that should be honoured by the #ClutterContent - * set with the #ClutterActor:content property. - * - * Changing the value of this property will change the bounding box of - * the content; you can use the #ClutterActor:content-box property to - * get the position and size of the content within the actor's - * allocation. - * - * This property is meaningful only for #ClutterContent implementations - * that have a preferred size, and if the preferred size is smaller than - * the actor's allocation. - * - * The #ClutterActor:content-gravity property is animatable. - */ - content_gravity?: ContentGravity | null - /** - * The repeat policy for the actor's #ClutterActor:content. - */ - content_repeat?: ContentRepeat | null - /** - * Adds #ClutterEffect to the list of effects be applied on a #ClutterActor - */ - effect?: Effect | null - /** - * This flag controls whether the #ClutterActor:fixed-x and - * #ClutterActor:fixed-y properties are used - */ - fixed_position_set?: boolean | null - /** - * The fixed X position of the actor in pixels. - * - * Writing this property sets #ClutterActor:fixed-position-set - * property as well, as a side effect - */ - fixed_x?: number | null - /** - * The fixed Y position of the actor in pixels. - * - * Writing this property sets the #ClutterActor:fixed-position-set - * property as well, as a side effect - */ - fixed_y?: number | null - /** - * Height of the actor (in pixels). If written, forces the minimum and - * natural size request of the actor to the given height. If read, returns - * the allocated height if available, otherwise the height request. - * - * The #ClutterActor:height property is animatable. - */ - height?: number | null - /** - * A delegate object for controlling the layout of the children of - * an actor. - */ - layout_manager?: LayoutManager | null - magnification_filter?: ScalingFilter | null - /** - * The margin (in pixels) from the bottom of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-bottom property is animatable. - */ - margin_bottom?: number | null - /** - * The margin (in pixels) from the left of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-left property is animatable. - */ - margin_left?: number | null - /** - * The margin (in pixels) from the right of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-right property is animatable. - */ - margin_right?: number | null - /** - * The margin (in pixels) from the top of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-top property is animatable. - */ - margin_top?: number | null - /** - * A forced minimum height request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:min-height-set property - * as well, as a side effect. This property overrides the usual height - * request of the actor. - */ - min_height?: number | null - /** - * This flag controls whether the #ClutterActor:min-height property - * is used - */ - min_height_set?: boolean | null - /** - * A forced minimum width request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:min-width-set property - * as well, as a side effect. - * - * This property overrides the usual width request of the actor. - */ - min_width?: number | null - /** - * This flag controls whether the #ClutterActor:min-width property - * is used - */ - min_width_set?: boolean | null - minification_filter?: ScalingFilter | null - /** - * The name of the actor - */ - name?: string | null - /** - * A forced natural height request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:natural-height-set - * property as well, as a side effect. This property overrides the - * usual height request of the actor - */ - natural_height?: number | null - /** - * This flag controls whether the #ClutterActor:natural-height property - * is used - */ - natural_height_set?: boolean | null - /** - * A forced natural width request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:natural-width-set - * property as well, as a side effect. This property overrides the - * usual width request of the actor - */ - natural_width?: number | null - /** - * This flag controls whether the #ClutterActor:natural-width property - * is used - */ - natural_width_set?: boolean | null - /** - * Determines the conditions in which the actor will be redirected - * to an offscreen framebuffer while being painted. For example this - * can be used to cache an actor in a framebuffer or for improved - * handling of transparent actors. See - * clutter_actor_set_offscreen_redirect() for details. - */ - offscreen_redirect?: OffscreenRedirect | null - /** - * Opacity of an actor, between 0 (fully transparent) and - * 255 (fully opaque) - * - * The #ClutterActor:opacity property is animatable. - */ - opacity?: number | null - /** - * The point around which the scaling and rotation transformations occur. - * - * The pivot point is expressed in normalized coordinates space, with (0, 0) - * being the top left corner of the actor and (1, 1) the bottom right corner - * of the actor. - * - * The default pivot point is located at (0, 0). - * - * The #ClutterActor:pivot-point property is animatable. - */ - pivot_point?: Graphene.Point | null - /** - * The Z component of the #ClutterActor:pivot-point, expressed as a value - * along the Z axis. - * - * The #ClutterActor:pivot-point-z property is animatable. - */ - pivot_point_z?: number | null - /** - * The position of the origin of the actor. - * - * This property is a shorthand for setting and getting the - * #ClutterActor:x and #ClutterActor:y properties at the same - * time. - * - * The #ClutterActor:position property is animatable. - */ - position?: Graphene.Point | null - /** - * Whether the actor is reactive to events or not - * - * Only reactive actors will emit event-related signals - */ - reactive?: boolean | null - /** - * Request mode for the #ClutterActor. The request mode determines the - * type of geometry management used by the actor, either height for width - * (the default) or width for height. - * - * For actors implementing height for width, the parent container should get - * the preferred width first, and then the preferred height for that width. - * - * For actors implementing width for height, the parent container should get - * the preferred height first, and then the preferred width for that height. - * - * For instance: - * - * ```c - * ClutterRequestMode mode; - * gfloat natural_width, min_width; - * gfloat natural_height, min_height; - * - * mode = clutter_actor_get_request_mode (child); - * if (mode == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH) - * { - * clutter_actor_get_preferred_width (child, -1, - * &min_width, - * &natural_width); - * clutter_actor_get_preferred_height (child, natural_width, - * &min_height, - * &natural_height); - * } - * else if (mode == CLUTTER_REQUEST_WIDTH_FOR_HEIGHT) - * { - * clutter_actor_get_preferred_height (child, -1, - * &min_height, - * &natural_height); - * clutter_actor_get_preferred_width (child, natural_height, - * &min_width, - * &natural_width); - * } - * else if (mode == CLUTTER_REQUEST_CONTENT_SIZE) - * { - * ClutterContent *content = clutter_actor_get_content (child); - * - * min_width, min_height = 0; - * natural_width = natural_height = 0; - * - * if (content != NULL) - * clutter_content_get_preferred_size (content, &natural_width, &natural_height); - * } - * ``` - * - * will retrieve the minimum and natural width and height depending on the - * preferred request mode of the #ClutterActor "child". - * - * The clutter_actor_get_preferred_size() function will implement this - * check for you. - */ - request_mode?: RequestMode | null - /** - * The rotation angle on the X axis. - * - * The #ClutterActor:rotation-angle-x property is animatable. - */ - rotation_angle_x?: number | null - /** - * The rotation angle on the Y axis - * - * The #ClutterActor:rotation-angle-y property is animatable. - */ - rotation_angle_y?: number | null - /** - * The rotation angle on the Z axis - * - * The #ClutterActor:rotation-angle-z property is animatable. - */ - rotation_angle_z?: number | null - /** - * The horizontal scale of the actor. - * - * The #ClutterActor:scale-x property is animatable. - */ - scale_x?: number | null - /** - * The vertical scale of the actor. - * - * The #ClutterActor:scale-y property is animatable. - */ - scale_y?: number | null - /** - * The scale factor of the actor along the Z axis. - * - * The #ClutterActor:scale-y property is animatable. - */ - scale_z?: number | null - /** - * If %TRUE, the actor is automatically shown when parented. - * - * Calling clutter_actor_hide() on an actor which has not been - * parented will set this property to %FALSE as a side effect. - */ - show_on_set_parent?: boolean | null - /** - * The size of the actor. - * - * This property is a shorthand for setting and getting the - * #ClutterActor:width and #ClutterActor:height at the same time. - * - * The #ClutterActor:size property is animatable. - */ - size?: Graphene.Size | null - /** - * The direction of the text inside a #ClutterActor. - */ - text_direction?: TextDirection | null - /** - * Overrides the transformations of a #ClutterActor with a custom - * matrix. - * - * The matrix specified by the #ClutterActor:transform property is - * applied to the actor and its children relative to the actor's - * #ClutterActor:allocation and #ClutterActor:pivot-point. - * - * Application code should rarely need to use this function directly. - * - * Setting this property with a #graphene_matrix_t will set the - * #ClutterActor:transform-set property to %TRUE as a side effect; - * setting this property with %NULL will set the - * #ClutterActor:transform-set property to %FALSE. - * - * The #ClutterActor:transform property is animatable. - */ - transform?: Graphene.Matrix | null - /** - * An additional translation applied along the X axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-x property is animatable. - */ - translation_x?: number | null - /** - * An additional translation applied along the Y axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-y property is animatable. - */ - translation_y?: number | null - /** - * An additional translation applied along the Z axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-z property is animatable. - */ - translation_z?: number | null - /** - * Whether the actor is set to be visible or not - * - * See also #ClutterActor:mapped - */ - visible?: boolean | null - /** - * Width of the actor (in pixels). If written, forces the minimum and - * natural size request of the actor to the given width. If read, returns - * the allocated width if available, otherwise the width request. - * - * The #ClutterActor:width property is animatable. - */ - width?: number | null - /** - * X coordinate of the actor in pixels. If written, forces a fixed - * position for the actor. If read, returns the fixed position if any, - * otherwise the allocation if available, otherwise 0. - * - * The #ClutterActor:x property is animatable. - */ - x?: number | null - /** - * The alignment of an actor on the X axis, if the actor has been given - * extra space for its allocation. See also the #ClutterActor:x-expand - * property. - */ - x_align?: ActorAlign | null - /** - * Whether a layout manager should assign more space to the actor on - * the X axis. - */ - x_expand?: boolean | null - /** - * Y coordinate of the actor in pixels. If written, forces a fixed - * position for the actor. If read, returns the fixed position if - * any, otherwise the allocation if available, otherwise 0. - * - * The #ClutterActor:y property is animatable. - */ - y?: number | null - /** - * The alignment of an actor on the Y axis, if the actor has been given - * extra space for its allocation. - */ - y_align?: ActorAlign | null - /** - * Whether a layout manager should assign more space to the actor on - * the Y axis. - */ - y_expand?: boolean | null - /** - * The actor's position on the Z axis, relative to the parent's - * transformations. - * - * Positive values will bring the actor's position nearer to the user, - * whereas negative values will bring the actor's position farther from - * the user. - * - * The #ClutterActor:z-position does not affect the paint or allocation - * order. - * - * The #ClutterActor:z-position property is animatable. - */ - z_position?: number | null - } - -} - -interface Actor extends Atk.ImplementorIface, Animatable, Container, Scriptable { - - // Own properties of Clutter-13.Clutter.Actor - - /** - * Adds a #ClutterAction to the actor - */ - actions: Action - /** - * The allocation for the actor, in pixels - * - * This is property is read-only, but you might monitor it to know when an - * actor moves or resizes - */ - readonly allocation: ActorBox - /** - * Paints a solid fill of the actor's allocation using the specified - * color. - * - * The #ClutterActor:background-color property is animatable. - */ - background_color: Color - /** - * Whether the #ClutterActor:background-color property has been set. - */ - readonly background_color_set: boolean - /** - * Applies a transformation matrix on each child of an actor. - * - * Setting this property with a #graphene_matrix_t will set the - * #ClutterActor:child-transform-set property to %TRUE as a side effect; - * setting this property with %NULL will set the - * #ClutterActor:child-transform-set property to %FALSE. - * - * The #ClutterActor:child-transform property is animatable. - */ - child_transform: Graphene.Matrix - /** - * Whether the #ClutterActor:child-transform property is set. - */ - readonly child_transform_set: boolean - /** - * The visible region of the actor, in actor-relative coordinates, - * expressed as a #graphene_rect_t. - * - * Setting this property to %NULL will unset the existing clip. - * - * Setting this property will change the #ClutterActor:has-clip - * property as a side effect. - */ - clip_rect: Graphene.Rect - /** - * Whether the clip region should track the allocated area - * of the actor. - * - * This property is ignored if a clip area has been explicitly - * set using clutter_actor_set_clip(). - */ - clip_to_allocation: boolean - /** - * The #ClutterColorState contains the properties like colorspace for each - * actors. - */ - color_state: ColorState - /** - * Adds a #ClutterConstraint to the actor - */ - constraints: Constraint - /** - * The #ClutterContent implementation that controls the content - * of the actor. - */ - content: Content - /** - * The bounding box for the #ClutterContent used by the actor. - * - * The value of this property is controlled by the #ClutterActor:allocation - * and #ClutterActor:content-gravity properties of #ClutterActor. - * - * The bounding box for the content is guaranteed to never exceed the - * allocation's of the actor. - */ - readonly content_box: ActorBox - /** - * The alignment that should be honoured by the #ClutterContent - * set with the #ClutterActor:content property. - * - * Changing the value of this property will change the bounding box of - * the content; you can use the #ClutterActor:content-box property to - * get the position and size of the content within the actor's - * allocation. - * - * This property is meaningful only for #ClutterContent implementations - * that have a preferred size, and if the preferred size is smaller than - * the actor's allocation. - * - * The #ClutterActor:content-gravity property is animatable. - */ - content_gravity: ContentGravity - /** - * The repeat policy for the actor's #ClutterActor:content. - */ - content_repeat: ContentRepeat - /** - * Adds #ClutterEffect to the list of effects be applied on a #ClutterActor - */ - effect: Effect - /** - * The actor's first child. - */ - readonly first_child: Actor - /** - * This flag controls whether the #ClutterActor:fixed-x and - * #ClutterActor:fixed-y properties are used - */ - fixed_position_set: boolean - /** - * The fixed X position of the actor in pixels. - * - * Writing this property sets #ClutterActor:fixed-position-set - * property as well, as a side effect - */ - fixed_x: number - /** - * The fixed Y position of the actor in pixels. - * - * Writing this property sets the #ClutterActor:fixed-position-set - * property as well, as a side effect - */ - fixed_y: number - /** - * Whether the actor has the #ClutterActor:clip property set or not - */ - readonly has_clip: boolean - /** - * Whether the actor contains the pointer of a #ClutterInputDevice - * or not. - */ - readonly has_pointer: boolean - /** - * Height of the actor (in pixels). If written, forces the minimum and - * natural size request of the actor to the given height. If read, returns - * the allocated height if available, otherwise the height request. - * - * The #ClutterActor:height property is animatable. - */ - height: number - /** - * The actor's last child. - */ - readonly last_child: Actor - /** - * A delegate object for controlling the layout of the children of - * an actor. - */ - layout_manager: LayoutManager - magnification_filter: ScalingFilter - /** - * Whether the actor is mapped (will be painted when the stage - * to which it belongs is mapped) - */ - readonly mapped: boolean - /** - * The margin (in pixels) from the bottom of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-bottom property is animatable. - */ - margin_bottom: number - /** - * The margin (in pixels) from the left of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-left property is animatable. - */ - margin_left: number - /** - * The margin (in pixels) from the right of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-right property is animatable. - */ - margin_right: number - /** - * The margin (in pixels) from the top of the actor. - * - * This property adds a margin to the actor's preferred size; the margin - * will be automatically taken into account when allocating the actor. - * - * The #ClutterActor:margin-top property is animatable. - */ - margin_top: number - /** - * A forced minimum height request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:min-height-set property - * as well, as a side effect. This property overrides the usual height - * request of the actor. - */ - min_height: number - /** - * This flag controls whether the #ClutterActor:min-height property - * is used - */ - min_height_set: boolean - /** - * A forced minimum width request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:min-width-set property - * as well, as a side effect. - * - * This property overrides the usual width request of the actor. - */ - min_width: number - /** - * This flag controls whether the #ClutterActor:min-width property - * is used - */ - min_width_set: boolean - minification_filter: ScalingFilter - /** - * The name of the actor - */ - name: string | null - /** - * A forced natural height request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:natural-height-set - * property as well, as a side effect. This property overrides the - * usual height request of the actor - */ - natural_height: number - /** - * This flag controls whether the #ClutterActor:natural-height property - * is used - */ - natural_height_set: boolean - /** - * A forced natural width request for the actor, in pixels - * - * Writing this property sets the #ClutterActor:natural-width-set - * property as well, as a side effect. This property overrides the - * usual width request of the actor - */ - natural_width: number - /** - * This flag controls whether the #ClutterActor:natural-width property - * is used - */ - natural_width_set: boolean - /** - * Determines the conditions in which the actor will be redirected - * to an offscreen framebuffer while being painted. For example this - * can be used to cache an actor in a framebuffer or for improved - * handling of transparent actors. See - * clutter_actor_set_offscreen_redirect() for details. - */ - offscreen_redirect: OffscreenRedirect - /** - * Opacity of an actor, between 0 (fully transparent) and - * 255 (fully opaque) - * - * The #ClutterActor:opacity property is animatable. - */ - opacity: number - /** - * The point around which the scaling and rotation transformations occur. - * - * The pivot point is expressed in normalized coordinates space, with (0, 0) - * being the top left corner of the actor and (1, 1) the bottom right corner - * of the actor. - * - * The default pivot point is located at (0, 0). - * - * The #ClutterActor:pivot-point property is animatable. - */ - pivot_point: Graphene.Point - /** - * The Z component of the #ClutterActor:pivot-point, expressed as a value - * along the Z axis. - * - * The #ClutterActor:pivot-point-z property is animatable. - */ - pivot_point_z: number - /** - * The position of the origin of the actor. - * - * This property is a shorthand for setting and getting the - * #ClutterActor:x and #ClutterActor:y properties at the same - * time. - * - * The #ClutterActor:position property is animatable. - */ - position: Graphene.Point - /** - * Whether the actor is reactive to events or not - * - * Only reactive actors will emit event-related signals - */ - reactive: boolean - /** - * Whether the actor has been realized - */ - readonly realized: boolean - /** - * Request mode for the #ClutterActor. The request mode determines the - * type of geometry management used by the actor, either height for width - * (the default) or width for height. - * - * For actors implementing height for width, the parent container should get - * the preferred width first, and then the preferred height for that width. - * - * For actors implementing width for height, the parent container should get - * the preferred height first, and then the preferred width for that height. - * - * For instance: - * - * ```c - * ClutterRequestMode mode; - * gfloat natural_width, min_width; - * gfloat natural_height, min_height; - * - * mode = clutter_actor_get_request_mode (child); - * if (mode == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH) - * { - * clutter_actor_get_preferred_width (child, -1, - * &min_width, - * &natural_width); - * clutter_actor_get_preferred_height (child, natural_width, - * &min_height, - * &natural_height); - * } - * else if (mode == CLUTTER_REQUEST_WIDTH_FOR_HEIGHT) - * { - * clutter_actor_get_preferred_height (child, -1, - * &min_height, - * &natural_height); - * clutter_actor_get_preferred_width (child, natural_height, - * &min_width, - * &natural_width); - * } - * else if (mode == CLUTTER_REQUEST_CONTENT_SIZE) - * { - * ClutterContent *content = clutter_actor_get_content (child); - * - * min_width, min_height = 0; - * natural_width = natural_height = 0; - * - * if (content != NULL) - * clutter_content_get_preferred_size (content, &natural_width, &natural_height); - * } - * ``` - * - * will retrieve the minimum and natural width and height depending on the - * preferred request mode of the #ClutterActor "child". - * - * The clutter_actor_get_preferred_size() function will implement this - * check for you. - */ - request_mode: RequestMode - /** - * The rotation angle on the X axis. - * - * The #ClutterActor:rotation-angle-x property is animatable. - */ - rotation_angle_x: number - /** - * The rotation angle on the Y axis - * - * The #ClutterActor:rotation-angle-y property is animatable. - */ - rotation_angle_y: number - /** - * The rotation angle on the Z axis - * - * The #ClutterActor:rotation-angle-z property is animatable. - */ - rotation_angle_z: number - /** - * The horizontal scale of the actor. - * - * The #ClutterActor:scale-x property is animatable. - */ - scale_x: number - /** - * The vertical scale of the actor. - * - * The #ClutterActor:scale-y property is animatable. - */ - scale_y: number - /** - * The scale factor of the actor along the Z axis. - * - * The #ClutterActor:scale-y property is animatable. - */ - scale_z: number - /** - * If %TRUE, the actor is automatically shown when parented. - * - * Calling clutter_actor_hide() on an actor which has not been - * parented will set this property to %FALSE as a side effect. - */ - show_on_set_parent: boolean - /** - * The size of the actor. - * - * This property is a shorthand for setting and getting the - * #ClutterActor:width and #ClutterActor:height at the same time. - * - * The #ClutterActor:size property is animatable. - */ - size: Graphene.Size - /** - * The direction of the text inside a #ClutterActor. - */ - text_direction: TextDirection - /** - * Overrides the transformations of a #ClutterActor with a custom - * matrix. - * - * The matrix specified by the #ClutterActor:transform property is - * applied to the actor and its children relative to the actor's - * #ClutterActor:allocation and #ClutterActor:pivot-point. - * - * Application code should rarely need to use this function directly. - * - * Setting this property with a #graphene_matrix_t will set the - * #ClutterActor:transform-set property to %TRUE as a side effect; - * setting this property with %NULL will set the - * #ClutterActor:transform-set property to %FALSE. - * - * The #ClutterActor:transform property is animatable. - */ - transform: Graphene.Matrix - /** - * Whether the #ClutterActor:transform property is set. - */ - readonly transform_set: boolean - /** - * An additional translation applied along the X axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-x property is animatable. - */ - translation_x: number - /** - * An additional translation applied along the Y axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-y property is animatable. - */ - translation_y: number - /** - * An additional translation applied along the Z axis, relative - * to the actor's #ClutterActor:pivot-point. - * - * The #ClutterActor:translation-z property is animatable. - */ - translation_z: number - /** - * Whether the actor is set to be visible or not - * - * See also #ClutterActor:mapped - */ - visible: boolean - /** - * Width of the actor (in pixels). If written, forces the minimum and - * natural size request of the actor to the given width. If read, returns - * the allocated width if available, otherwise the width request. - * - * The #ClutterActor:width property is animatable. - */ - width: number - /** - * X coordinate of the actor in pixels. If written, forces a fixed - * position for the actor. If read, returns the fixed position if any, - * otherwise the allocation if available, otherwise 0. - * - * The #ClutterActor:x property is animatable. - */ - x: number - /** - * The alignment of an actor on the X axis, if the actor has been given - * extra space for its allocation. See also the #ClutterActor:x-expand - * property. - */ - x_align: ActorAlign - /** - * Whether a layout manager should assign more space to the actor on - * the X axis. - */ - x_expand: boolean - /** - * Y coordinate of the actor in pixels. If written, forces a fixed - * position for the actor. If read, returns the fixed position if - * any, otherwise the allocation if available, otherwise 0. - * - * The #ClutterActor:y property is animatable. - */ - y: number - /** - * The alignment of an actor on the Y axis, if the actor has been given - * extra space for its allocation. - */ - y_align: ActorAlign - /** - * Whether a layout manager should assign more space to the actor on - * the Y axis. - */ - y_expand: boolean - /** - * The actor's position on the Z axis, relative to the parent's - * transformations. - * - * Positive values will bring the actor's position nearer to the user, - * whereas negative values will bring the actor's position farther from - * the user. - * - * The #ClutterActor:z-position does not affect the paint or allocation - * order. - * - * The #ClutterActor:z-position property is animatable. - */ - z_position: number - - // Own fields of Clutter-13.Clutter.Actor - - flags: number - - // Owm methods of Clutter-13.Clutter.Actor - - /** - * Adds `action` to the list of actions applied to `self` - * - * A #ClutterAction can only belong to one actor at a time - * - * The #ClutterActor will hold a reference on `action` until either - * clutter_actor_remove_action() or clutter_actor_clear_actions() - * is called - * @param action a #ClutterAction - */ - add_action(action: Action): void - add_action_full(name: string | null, phase: EventPhase, action: Action): void - /** - * A convenience function for setting the name of a #ClutterAction - * while adding it to the list of actions applied to `self` - * - * This function is the logical equivalent of: - * - * ```c - * clutter_actor_meta_set_name (CLUTTER_ACTOR_META (action), name); - * clutter_actor_add_action (self, action); - * ``` - * @param name the name to set on the action - * @param action a #ClutterAction - */ - add_action_with_name(name: string | null, action: Action): void - /** - * Adds `child` to the children of `self`. - * - * This function will acquire a reference on `child` that will only - * be released when calling clutter_actor_remove_child(). - * - * This function will take into consideration the #ClutterActor:depth - * of `child,` and will keep the list of children sorted. - * - * This function will emit the #ClutterContainer::actor-added signal - * on `self`. - * @param child a #ClutterActor - */ - add_child(child: Actor): void - /** - * Adds `constraint` to the list`of `ClutterConstraint`s applied - * to `self` - * - * The #ClutterActor will hold a reference on the `constraint` until - * either clutter_actor_remove_constraint() or - * clutter_actor_clear_constraints() is called. - * @param constraint a #ClutterConstraint - */ - add_constraint(constraint: Constraint): void - /** - * A convenience function for setting the name of a #ClutterConstraint - * while adding it to the list of constraints applied to `self` - * - * This function is the logical equivalent of: - * - * ```c - * clutter_actor_meta_set_name (CLUTTER_ACTOR_META (constraint), name); - * clutter_actor_add_constraint (self, constraint); - * ``` - * @param name the name to set on the constraint - * @param constraint a #ClutterConstraint - */ - add_constraint_with_name(name: string | null, constraint: Constraint): void - /** - * Adds `effect` to the list of `ClutterEffect`s applied to `self` - * - * The #ClutterActor will hold a reference on the `effect` until either - * clutter_actor_remove_effect() or clutter_actor_clear_effects() is - * called. - * @param effect a #ClutterEffect - */ - add_effect(effect: Effect): void - /** - * A convenience function for setting the name of a #ClutterEffect - * while adding it to the list of effectss applied to `self` - * - * This function is the logical equivalent of: - * - * ```c - * clutter_actor_meta_set_name (CLUTTER_ACTOR_META (effect), name); - * clutter_actor_add_effect (self, effect); - * ``` - * @param name the name to set on the effect - * @param effect a #ClutterEffect - */ - add_effect_with_name(name: string | null, effect: Effect): void - /** - * Adds a `transition` to the #ClutterActor's list of animations. - * - * The `name` string is a per-actor unique identifier of the `transition:` only - * one #ClutterTransition can be associated to the specified `name`. - * - * The `transition` will be started once added. - * - * This function will take a reference on the `transition`. - * - * This function is usually called implicitly when modifying an animatable - * property. - * @param name the name of the transition to add - * @param transition the #ClutterTransition to add - */ - add_transition(name: string | null, transition: Transition): void - /** - * Assigns the size of a #ClutterActor from the given `box`. - * - * This function should only be called on the children of an actor when - * overriding the #ClutterActorClass.allocate() virtual function. - * - * This function will adjust the stored allocation to take into account - * the alignment flags set in the #ClutterActor:x-align and - * #ClutterActor:y-align properties, as well as the margin values set in - * the #ClutterActor:margin-top, #ClutterActor:margin-right, - * #ClutterActor:margin-bottom, and #ClutterActor:margin-left properties. - * - * This function will respect the easing state of the #ClutterActor and - * interpolate between the current allocation and the new one if the - * easing state duration is a positive value. - * - * Actors can know from their allocation box whether they have moved - * with respect to their parent actor. The `flags` parameter describes - * additional information about the allocation, for instance whether - * the parent has moved with respect to the stage, for example because - * a grandparent's origin has moved. - * @param box new allocation of the actor, in parent-relative coordinates - */ - allocate(box: ActorBox): void - /** - * Allocates `self` by taking into consideration the available allocation - * area; an alignment factor on either axis; and whether the actor should - * fill the allocation on either axis. - * - * The `box` should contain the available allocation width and height; - * if the x1 and y1 members of #ClutterActorBox are not set to 0, the - * allocation will be offset by their value. - * - * This function takes into consideration the geometry request specified by - * the #ClutterActor:request-mode property, and the text direction. - * - * This function is useful for fluid layout managers using legacy alignment - * flags. Newly written layout managers should use the #ClutterActor:x-align - * and #ClutterActor:y-align properties, instead, and just call - * clutter_actor_allocate() inside their #ClutterActorClass.allocate() - * implementation. - * @param box a #ClutterActorBox, containing the available width and height - * @param x_align the horizontal alignment, between 0 and 1 - * @param y_align the vertical alignment, between 0 and 1 - * @param x_fill whether the actor should fill horizontally - * @param y_fill whether the actor should fill vertically - */ - allocate_align_fill(box: ActorBox, x_align: number, y_align: number, x_fill: boolean, y_fill: boolean): void - /** - * Allocates `self` taking into account the #ClutterActor's - * preferred size, but limiting it to the maximum available width - * and height provided. - * - * This function will do the right thing when dealing with the - * actor's request mode. - * - * The implementation of this function is equivalent to: - * - * ```c - * if (request_mode == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH) - * { - * clutter_actor_get_preferred_width (self, available_height, - * &min_width, - * &natural_width); - * width = CLAMP (natural_width, min_width, available_width); - * - * clutter_actor_get_preferred_height (self, width, - * &min_height, - * &natural_height); - * height = CLAMP (natural_height, min_height, available_height); - * } - * else if (request_mode == CLUTTER_REQUEST_WIDTH_FOR_HEIGHT) - * { - * clutter_actor_get_preferred_height (self, available_width, - * &min_height, - * &natural_height); - * height = CLAMP (natural_height, min_height, available_height); - * - * clutter_actor_get_preferred_width (self, height, - * &min_width, - * &natural_width); - * width = CLAMP (natural_width, min_width, available_width); - * } - * else if (request_mode == CLUTTER_REQUEST_CONTENT_SIZE) - * { - * clutter_content_get_preferred_size (content, &natural_width, &natural_height); - * - * width = CLAMP (natural_width, 0, available_width); - * height = CLAMP (natural_height, 0, available_height); - * } - * - * box.x1 = x; box.y1 = y; - * box.x2 = box.x1 + available_width; - * box.y2 = box.y1 + available_height; - * clutter_actor_allocate (self, &box); - * ``` - * - * This function can be used by fluid layout managers to allocate - * an actor's preferred size without making it bigger than the area - * available for the container. - * @param x the actor's X coordinate - * @param y the actor's Y coordinate - * @param available_width the maximum available width, or -1 to use the actor's natural width - * @param available_height the maximum available height, or -1 to use the actor's natural height - */ - allocate_available_size(x: number, y: number, available_width: number, available_height: number): void - /** - * Allocates the natural size of `self`. - * - * This function is a utility call for #ClutterActor implementations - * that allocates the actor's preferred natural size. It can be used - * by fixed layout managers (like #ClutterGroup or so called - * 'composite actors') inside the ClutterActor::allocate - * implementation to give each child exactly how much space it - * requires, regardless of the size of the parent. - * - * This function is not meant to be used by applications. It is also - * not meant to be used outside the implementation of the - * #ClutterActorClass.allocate virtual function. - * @param x the actor's X coordinate - * @param y the actor's Y coordinate - */ - allocate_preferred_size(x: number, y: number): void - /** - * Transforms `point` in coordinates relative to the actor into - * ancestor-relative coordinates using the relevant transform - * stack (i.e. scale, rotation, etc). - * - * If `ancestor` is %NULL the ancestor will be the #ClutterStage. In - * this case, the coordinates returned will be the coordinates on - * the stage before the projection is applied. This is different from - * the behaviour of clutter_actor_apply_transform_to_point(). - * @param ancestor A #ClutterActor ancestor, or %NULL to use the default #ClutterStage - * @param point A point as #graphene_point3d_t - */ - apply_relative_transform_to_point(ancestor: Actor | null, point: Graphene.Point3D): /* vertex */ Graphene.Point3D - /** - * Transforms `point` in coordinates relative to the actor - * into screen-relative coordinates with the current actor - * transformation (i.e. scale, rotation, etc) - * @param point A point as #graphene_point3d_t - */ - apply_transform_to_point(point: Graphene.Point3D): /* vertex */ Graphene.Point3D - /** - * Binds a #GListModel to a #ClutterActor. - * - * If the #ClutterActor was already bound to a #GListModel, the previous - * binding is destroyed. - * - * The existing children of #ClutterActor are destroyed when setting a - * model, and new children are created and added, representing the contents - * of the `model`. The #ClutterActor is updated whenever the `model` changes. - * If `model` is %NULL, the #ClutterActor is left empty. - * - * When a #ClutterActor is bound to a model, adding and removing children - * directly is undefined behaviour.4 - * @param model a #GListModel - * @param create_child_func a function that creates #ClutterActor instances from the contents of the `model` - */ - bind_model(model: Gio.ListModel | null, create_child_func: ActorCreateChildFunc): void - /** - * Clears the list of actions applied to `self` - */ - clear_actions(): void - /** - * Clears the list of constraints applied to `self` - */ - clear_constraints(): void - /** - * Clears the list of effects applied to `self` - */ - clear_effects(): void - /** - * Determines if `descendant` is contained inside `self` (either as an - * immediate child, or as a deeper descendant). If `self` and - * `descendant` point to the same actor then it will also return %TRUE. - * @param descendant A #ClutterActor, possibly contained in `self` - * @returns whether @descendent is contained within @self - */ - contains(descendant: Actor): boolean - /** - * Run the next stage of the paint sequence. This function should only - * be called within the implementation of the ‘run’ virtual of a - * #ClutterEffect. It will cause the run method of the next effect to - * be applied, or it will paint the actual actor if the current effect - * is the last effect in the chain. - * @param paint_context - */ - continue_paint(paint_context: PaintContext): void - /** - * Run the next stage of the pick sequence. This function should only - * be called within the implementation of the ‘pick’ virtual of a - * #ClutterEffect. It will cause the run method of the next effect to - * be applied, or it will pick the actual actor if the current effect - * is the last effect in the chain. - * @param pick_context - */ - continue_pick(pick_context: PickContext): void - /** - * Creates a #PangoContext for the given actor. The #PangoContext - * is already configured using the appropriate font map, resolution - * and font options. - * - * See also clutter_actor_get_pango_context(). - * @returns the newly created #PangoContext. Use g_object_unref() on the returned value to deallocate its resources - */ - create_pango_context(): Pango.Context - /** - * Creates a new #PangoLayout from the same #PangoContext used - * by the #ClutterActor. The #PangoLayout is already configured - * with the font map, resolution and font options, and the - * given `text`. - * - * If you want to keep around a #PangoLayout created by this - * function you will have to connect to the #ClutterBackend::font-changed - * and #ClutterBackend::resolution-changed signals, and call - * pango_layout_context_changed() in response to them. - * @param text the text to set on the #PangoLayout, or %NULL - * @returns the newly created #PangoLayout. Use g_object_unref() when done - */ - create_pango_layout(text: string | null): Pango.Layout - /** - * Destroys an actor. When an actor is destroyed, it will break any - * references it holds to other objects. If the actor is inside a - * container, the actor will be removed. - * - * When you destroy a container, its children will be destroyed as well. - */ - destroy(): void - /** - * Destroys all children of `self`. - * - * This function releases the reference added by inserting a child - * actor in the list of children of `self,` and ensures that the - * #ClutterActor::destroy signal is emitted on each child of the - * actor. - * - * By default, #ClutterActor will emit the #ClutterActor::destroy signal - * when its reference count drops to 0; the default handler of the - * #ClutterActor::destroy signal will destroy all the children of an - * actor. This function ensures that all children are destroyed, instead - * of just removed from `self,` unlike clutter_actor_remove_all_children() - * which will merely release the reference and remove each child. - * - * Unless you acquired an additional reference on each child of `self` - * prior to calling clutter_actor_remove_all_children() and want to reuse - * the actors, you should use clutter_actor_destroy_all_children() in - * order to make sure that children are destroyed and signal handlers - * are disconnected even in cases where circular references prevent this - * from automatically happening through reference counting alone. - */ - destroy_all_children(): void - /** - * This function is used to emit an event on the main stage. - * You should rarely need to use this function, except for - * synthetising events. - * @param event a #ClutterEvent - * @param capture %TRUE if event in in capture phase, %FALSE otherwise. - * @returns the return value from the signal emission: %TRUE if the actor handled the event, or %FALSE if the event was not handled - */ - event(event: Event, capture: boolean): boolean - /** - * Calculates the transformed screen coordinates of the four corners of - * the actor; the returned vertices relate to the #ClutterActorBox - * coordinates as follows: - * - * - v[0] contains (x1, y1) - * - v[1] contains (x2, y1) - * - v[2] contains (x1, y2) - * - v[3] contains (x2, y2) - */ - get_abs_allocation_vertices(): /* verts */ Graphene.Point3D[] - /** - * Returns the accessible object that describes the actor to an - * assistive technology. - * - * If no class-specific #AtkObject implementation is available for the - * actor instance in question, it will inherit an #AtkObject - * implementation from the first ancestor class for which such an - * implementation is defined. - * - * The documentation of the ATK - * library contains more information about accessible objects and - * their uses. - * @returns the #AtkObject associated with @actor - */ - get_accessible(): Atk.Object - /** - * Retrieves the #ClutterAction with the given name in the list - * of actions applied to `self` - * @param name the name of the action to retrieve - * @returns a #ClutterAction for the given name, or %NULL. The returned #ClutterAction is owned by the actor and it should not be unreferenced directly - */ - get_action(name: string | null): Action | null - /** - * Retrieves the list of actions applied to `self` - * @returns a copy of the list of `ClutterAction`s. The contents of the list are owned by the #ClutterActor. Use g_list_free() to free the resources allocated by the returned #GList - */ - get_actions(): Action[] - /** - * Gets the layout box an actor has been assigned. The allocation can - * only be assumed valid inside a paint() method; anywhere else, it - * may be out-of-date. - * - * An allocation does not incorporate the actor's scale or translation; - * those transformations do not affect layout, only rendering. - * - * Do not call any of the clutter_actor_get_allocation_*() family - * of functions inside the implementation of the get_preferred_width() - * or get_preferred_height() virtual functions. - */ - get_allocation_box(): /* box */ ActorBox - /** - * Retrieves the color set using clutter_actor_set_background_color(). - */ - get_background_color(): /* color */ Color - /** - * Retrieves the actor at the given `index_` inside the list of - * children of `self`. - * @param index_ the position in the list of children - * @returns a pointer to a #ClutterActor, or %NULL - */ - get_child_at_index(index_: number): Actor | null - /** - * Retrieves the child transformation matrix set using - * clutter_actor_set_child_transform(); if none is currently set, - * the `transform` matrix will be initialized to the identity matrix. - */ - get_child_transform(): /* transform */ Graphene.Matrix - /** - * Retrieves the list of children of `self`. - * @returns A newly allocated #GList of `ClutterActor`s. Use g_list_free() when done. - */ - get_children(): Actor[] - /** - * Gets the clip area for `self,` if any is set. - */ - get_clip(): [ /* xoff */ number, /* yoff */ number, /* width */ number, /* height */ number ] - /** - * Retrieves the value set using clutter_actor_set_clip_to_allocation() - * @returns %TRUE if the #ClutterActor is clipped to its allocation - */ - get_clip_to_allocation(): boolean - /** - * Retrieves the color_state of a [class`Actor]` set by - * [method`Actor`.set_color_state]. - * @returns a pointer to the #ClutterColorState instance, or %NULL - */ - get_color_state(): ColorState - /** - * Retrieves the #ClutterConstraint with the given name in the list - * of constraints applied to `self` - * @param name the name of the constraint to retrieve - * @returns a #ClutterConstraint for the given name, or %NULL. The returned #ClutterConstraint is owned by the actor and it should not be unreferenced directly - */ - get_constraint(name: string | null): Constraint | null - /** - * Retrieves the list of constraints applied to `self` - * @returns a copy of the list of `ClutterConstraint`s. The contents of the list are owned by the #ClutterActor. Use g_list_free() to free the resources allocated by the returned #GList - */ - get_constraints(): Constraint[] - /** - * Retrieves the contents of `self`. - * @returns a pointer to the #ClutterContent instance, or %NULL if none was set - */ - get_content(): Content | null - /** - * Retrieves the bounding box for the #ClutterContent of `self`. - * - * The bounding box is relative to the actor's allocation. - * - * If no #ClutterContent is set for `self,` or if `self` has not been - * allocated yet, then the result is undefined. - * - * The content box is guaranteed to be, at most, as big as the allocation - * of the #ClutterActor. - * - * If the #ClutterContent used by the actor has a preferred size, then - * it is possible to modify the content box by using the - * #ClutterActor:content-gravity property. - */ - get_content_box(): /* box */ ActorBox - /** - * Retrieves the content gravity as set using - * clutter_actor_set_content_gravity(). - * @returns the content gravity - */ - get_content_gravity(): ContentGravity - /** - * Retrieves the repeat policy for a #ClutterActor set by - * clutter_actor_set_content_repeat(). - * @returns the content repeat policy - */ - get_content_repeat(): ContentRepeat - /** - * Retrieves the values set using clutter_actor_set_content_scaling_filters(). - */ - get_content_scaling_filters(): [ /* min_filter */ ScalingFilter, /* mag_filter */ ScalingFilter ] - /** - * Retrieves the delay that should be applied when tweening animatable - * properties. - * @returns a delay, in milliseconds - */ - get_easing_delay(): number - /** - * Retrieves the duration of the tweening for animatable - * properties of `self` for the current easing state. - * @returns the duration of the tweening, in milliseconds - */ - get_easing_duration(): number - /** - * Retrieves the easing mode for the tweening of animatable properties - * of `self` for the current easing state. - * @returns an easing mode - */ - get_easing_mode(): AnimationMode - /** - * Retrieves the #ClutterEffect with the given name in the list - * of effects applied to `self` - * @param name the name of the effect to retrieve - * @returns a #ClutterEffect for the given name, or %NULL. The returned #ClutterEffect is owned by the actor and it should not be unreferenced directly - */ - get_effect(name: string | null): Effect | null - /** - * Retrieves the `ClutterEffect`s applied on `self,` if any - * @returns a list of `ClutterEffect`s, or %NULL. The elements of the returned list are owned by Clutter and they should not be freed. You should free the returned list using g_list_free() when done - */ - get_effects(): Effect[] - /** - * Retrieves the first child of `self`. - * - * The returned pointer is only valid until the scene graph changes; it - * is not safe to modify the list of children of `self` while iterating - * it. - * @returns a pointer to a #ClutterActor, or %NULL - */ - get_first_child(): Actor | null - /** - * This function gets the fixed position of the actor, if set. If there - * is no fixed position set, this function returns %FALSE and doesn't set - * the x and y coordinates. - * @returns %TRUE if the fixed position is set, %FALSE if it isn't - */ - get_fixed_position(): [ /* returnType */ boolean, /* x */ number, /* y */ number ] - /** - * Checks whether an actor has a fixed position set (and will thus be - * unaffected by any layout manager). - * @returns %TRUE if the fixed position is set on the actor - */ - get_fixed_position_set(): boolean - /** - * Retrieves the flags set on `self` - * @returns a bitwise or of #ClutterActorFlags or 0 - */ - get_flags(): ActorFlags - /** - * Retrieves the height of a #ClutterActor. - * - * If the actor has a valid allocation, this function will return the - * height of the allocated area given to the actor. - * - * If the actor does not have a valid allocation, this function will - * return the actor's natural height, that is the preferred height of - * the actor. - * - * If you care whether you get the preferred height or the height that - * has been assigned to the actor, you should probably call a different - * function like clutter_actor_get_allocation_box() to retrieve the - * allocated size or clutter_actor_get_preferred_height() to retrieve the - * preferred height. - * - * If an actor has a fixed height, for instance a height that has been - * assigned using clutter_actor_set_height(), the height returned will - * be the same value. - * @returns the height of the actor, in pixels - */ - get_height(): number - /** - * Retrieves the last child of `self`. - * - * The returned pointer is only valid until the scene graph changes; it - * is not safe to modify the list of children of `self` while iterating - * it. - * @returns a pointer to a #ClutterActor, or %NULL - */ - get_last_child(): Actor | null - /** - * Retrieves the #ClutterLayoutManager used by `self`. - * @returns a pointer to the #ClutterLayoutManager, or %NULL - */ - get_layout_manager(): LayoutManager | null - /** - * Retrieves all the components of the margin of a #ClutterActor. - */ - get_margin(): /* margin */ Margin - /** - * Retrieves the bottom margin of a #ClutterActor. - * @returns the bottom margin - */ - get_margin_bottom(): number - /** - * Retrieves the left margin of a #ClutterActor. - * @returns the left margin - */ - get_margin_left(): number - /** - * Retrieves the right margin of a #ClutterActor. - * @returns the right margin - */ - get_margin_right(): number - /** - * Retrieves the top margin of a #ClutterActor. - * @returns the top margin - */ - get_margin_top(): number - /** - * Retrieves the number of children of `self`. - * @returns the number of children of an actor - */ - get_n_children(): number - /** - * Retrieves the name of `self`. - * @returns the name of the actor, or %NULL. The returned string is owned by the actor and should not be modified or freed. - */ - get_name(): string | null - /** - * Retrieves the sibling of `self` that comes after it in the list - * of children of `self'`s parent. - * - * The returned pointer is only valid until the scene graph changes; it - * is not safe to modify the list of children of `self` while iterating - * it. - * @returns a pointer to a #ClutterActor, or %NULL - */ - get_next_sibling(): Actor | null - /** - * Retrieves whether to redirect the actor to an offscreen buffer, as - * set by clutter_actor_set_offscreen_redirect(). - * @returns the value of the offscreen-redirect property of the actor - */ - get_offscreen_redirect(): OffscreenRedirect - /** - * Retrieves the opacity value of an actor, as set by - * clutter_actor_set_opacity(). - * - * For retrieving the absolute opacity of the actor inside a paint - * virtual function, see clutter_actor_get_paint_opacity(). - * @returns the opacity of the actor - */ - get_opacity(): number - /** - * See clutter_actor_set_opacity_override() - * @returns the override value for the actor's opacity, or -1 if no override is set.2 - */ - get_opacity_override(): number - /** - * Retrieves the paint volume of the passed #ClutterActor, and - * transforms it into a 2D bounding box in stage coordinates. - * - * This function is useful to determine the on screen area occupied by - * the actor. The box is only an approximation and may often be - * considerably larger due to the optimizations used to calculate the - * box. The box is never smaller though, so it can reliably be used - * for culling. - * - * There are times when a 2D paint box can't be determined, e.g. - * because the actor isn't yet parented under a stage or because - * the actor is unable to determine a paint volume. - * @returns %TRUE if a 2D paint box could be determined, else %FALSE. - */ - get_paint_box(): [ /* returnType */ boolean, /* box */ ActorBox ] - /** - * Retrieves the absolute opacity of the actor, as it appears on the stage. - * - * This function traverses the hierarchy chain and composites the opacity of - * the actor with that of its parents. - * - * This function is intended for subclasses to use in the paint virtual - * function, to paint themselves with the correct opacity. - * @returns The actor opacity value. - */ - get_paint_opacity(): number - /** - * Retrieves the 'paint' visibility of an actor recursively checking for non - * visible parents. - * - * This is by definition the same as clutter_actor_is_mapped. - * @returns %TRUE if the actor is visible and will be painted. - */ - get_paint_visibility(): boolean - /** - * Retrieves the paint volume of the passed #ClutterActor, or %NULL - * when a paint volume can't be determined. - * - * The paint volume is defined as the 3D space occupied by an actor - * when being painted. - * - * This function will call the #ClutterActorClass.get_paint_volume() - * virtual function of the #ClutterActor class. Sub-classes of #ClutterActor - * should not usually care about overriding the default implementation, - * unless they are, for instance: painting outside their allocation, or - * actors with a depth factor (not in terms of #ClutterActor:depth but real - * 3D depth). - * - * Note: 2D actors overriding #ClutterActorClass.get_paint_volume() - * should ensure that their volume has a depth of 0. (This will be true - * as long as you don't call clutter_paint_volume_set_depth().) - * @returns a pointer to a #ClutterPaintVolume, or %NULL if no volume could be determined. The returned pointer is not guaranteed to be valid across multiple frames; if you want to keep it, you will need to copy it using clutter_paint_volume_copy(). - */ - get_paint_volume(): PaintVolume | null - /** - * Retrieves the #PangoContext for `self`. The actor's #PangoContext - * is already configured using the appropriate font map, resolution - * and font options. - * - * Unlike clutter_actor_create_pango_context(), this context is owend - * by the #ClutterActor and it will be updated each time the options - * stored by the #ClutterBackend change. - * - * You can use the returned #PangoContext to create a #PangoLayout - * and render text using cogl_pango_show_layout() to reuse the - * glyphs cache also used by Clutter. - * @returns the #PangoContext for a #ClutterActor. The returned #PangoContext is owned by the actor and should not be unreferenced by the application code - */ - get_pango_context(): Pango.Context - /** - * Retrieves the parent of `self`. - * @returns The #ClutterActor parent, or %NULL if no parent is set - */ - get_parent(): Actor | null - /** - * Retrieves the coordinates of the #ClutterActor:pivot-point. - */ - get_pivot_point(): [ /* pivot_x */ number, /* pivot_y */ number ] - /** - * Retrieves the Z component of the #ClutterActor:pivot-point. - */ - get_pivot_point_z(): number - /** - * This function tries to "do what you mean" and tell you where the - * actor is, prior to any transformations. Retrieves the fixed - * position of an actor in pixels, if one has been set; otherwise, if - * the allocation is valid, returns the actor's allocated position; - * otherwise, returns 0,0. - * - * The returned position is in pixels. - */ - get_position(): [ /* x */ number, /* y */ number ] - /** - * Computes the requested minimum and natural heights for an actor, - * or if they are already computed, returns the cached values. - * - * An actor may not get its request - depending on the layout - * manager that's in effect. - * - * A request should not incorporate the actor's scale or translation; - * those transformations do not affect layout, only rendering. - * @param for_width available width to assume in computing desired height, or a negative value to indicate that no width is defined - */ - get_preferred_height(for_width: number): [ /* min_height_p */ number, /* natural_height_p */ number ] - /** - * Computes the preferred minimum and natural size of an actor, taking into - * account the actor's geometry management (either height-for-width - * or width-for-height). - * - * The width and height used to compute the preferred height and preferred - * width are the actor's natural ones. - * - * If you need to control the height for the preferred width, or the width for - * the preferred height, you should use clutter_actor_get_preferred_width() - * and clutter_actor_get_preferred_height(), and check the actor's preferred - * geometry management using the #ClutterActor:request-mode property. - */ - get_preferred_size(): [ /* min_width_p */ number, /* min_height_p */ number, /* natural_width_p */ number, /* natural_height_p */ number ] - /** - * Computes the requested minimum and natural widths for an actor, - * optionally depending on the specified height, or if they are - * already computed, returns the cached values. - * - * An actor may not get its request - depending on the layout - * manager that's in effect. - * - * A request should not incorporate the actor's scaleor translation; - * those transformations do not affect layout, only rendering. - * @param for_height available height when computing the preferred width, or a negative value to indicate that no height is defined - */ - get_preferred_width(for_height: number): [ /* min_width_p */ number, /* natural_width_p */ number ] - /** - * Retrieves the sibling of `self` that comes before it in the list - * of children of `self'`s parent. - * - * The returned pointer is only valid until the scene graph changes; it - * is not safe to modify the list of children of `self` while iterating - * it. - * @returns a pointer to a #ClutterActor, or %NULL - */ - get_previous_sibling(): Actor | null - /** - * Checks whether `actor` is marked as reactive. - * @returns %TRUE if the actor is reactive - */ - get_reactive(): boolean - /** - * This gets a transformation `matrix` that will transform coordinates from the - * coordinate space of `self` into the coordinate space of `ancestor`. - * - * For example if you need a matrix that can transform the local actor - * coordinates of `self` into stage coordinates you would pass the actor's stage - * pointer as the `ancestor`. - * - * If you pass %NULL then the transformation will take you all the way through - * to eye coordinates. This can be useful if you want to extract the entire - * modelview transform that Clutter applies before applying the projection - * transformation. If you want to explicitly set a modelview on a CoglFramebuffer - * using cogl_set_modelview_matrix() for example then you would want a matrix - * that transforms into eye coordinates. - * - * Note: This function explicitly initializes the given `matrix`. If you just - * want clutter to multiply a relative transformation with an existing matrix - * you can use clutter_actor_apply_relative_transformation_matrix() - * instead. - * @param ancestor The ancestor actor whose coordinate space you want to transform to or %NULL if you want to transform all the way to eye coordinates. - */ - get_relative_transformation_matrix(ancestor: Actor | null): /* matrix */ Graphene.Matrix - /** - * Retrieves the geometry request mode of `self` - * @returns the request mode for the actor - */ - get_request_mode(): RequestMode - /** - * Retrieves the resource scale for this actor. - * - * The resource scale refers to the scale the actor should use for its resources. - * For example if an actor draws a a picture of size 100 x 100 in the stage - * coordinate space, it should use a texture of twice the size (i.e. 200 x 200) - * if the resource scale is 2. - * - * The resource scale is determined by calculating the highest #ClutterStageView - * scale the actor will get painted on. - * - * Note that the scale returned by this function is only guaranteed to be - * correct when queried during the paint cycle, in all other cases this - * function will only return a best guess. If your implementation really - * needs to get a resource scale outside of the paint cycle, make sure to - * subscribe to the "resource-scale-changed" signal to get notified about - * the new, correct resource scale before painting. - * - * Also avoid getting the resource scale for actors that are not attached - * to a stage. There's no sane way for Clutter to guess which #ClutterStageView - * the actor is going to be painted on, so you'll probably end up receiving - * the "resource-scale-changed" signal and having to rebuild your resources. - * - * The best guess this function may return is usually just the last resource - * scale the actor got painted with. If this resource scale couldn't be found - * because the actor was never painted so far or Clutter was unable to - * determine its position and size, this function will return the resource - * scale of a parent. - * @returns The resource scale the actor should use for its textures - */ - get_resource_scale(): number - /** - * Retrieves the angle of rotation set by clutter_actor_set_rotation_angle(). - * @param axis the axis of the rotation - * @returns the angle of rotation, in degrees - */ - get_rotation_angle(axis: RotateAxis): number - /** - * Retrieves an actors scale factors. - */ - get_scale(): [ /* scale_x */ number, /* scale_y */ number ] - /** - * Retrieves the scaling factor along the Z axis, as set using - * clutter_actor_set_scale_z(). - * @returns the scaling factor along the Z axis - */ - get_scale_z(): number - /** - * This function tries to "do what you mean" and return - * the size an actor will have. If the actor has a valid - * allocation, the allocation will be returned; otherwise, - * the actors natural size request will be returned. - * - * If you care whether you get the request vs. the allocation, you - * should probably call a different function like - * clutter_actor_get_allocation_box() or - * clutter_actor_get_preferred_width(). - */ - get_size(): [ /* width */ number, /* height */ number ] - /** - * Retrieves the #ClutterStage where `actor` is contained. - * @returns the stage containing the actor, or %NULL - */ - get_stage(): Stage - /** - * Retrieves the value set using clutter_actor_set_text_direction() - * - * If no text direction has been previously set, the default text - * direction, as returned by clutter_get_default_text_direction(), will - * be returned instead - * @returns the #ClutterTextDirection for the actor - */ - get_text_direction(): TextDirection - /** - * Retrieves the current transformation matrix of a #ClutterActor. - */ - get_transform(): /* transform */ Graphene.Matrix - /** - * Gets the transformed bounding rect of an actor, in pixels relative to the stage. - */ - get_transformed_extents(): /* rect */ Graphene.Rect - /** - * Retrieves the 3D paint volume of an actor like - * clutter_actor_get_paint_volume() does (Please refer to the - * documentation of clutter_actor_get_paint_volume() for more - * details.) and it additionally transforms the paint volume into the - * coordinate space of `relative_to_ancestor`. (Or the stage if %NULL - * is passed for `relative_to_ancestor)` - * - * This can be used by containers that base their paint volume on - * the volume of their children. Such containers can query the - * transformed paint volume of all of its children and union them - * together using clutter_paint_volume_union(). - * @param relative_to_ancestor A #ClutterActor that is an ancestor of `self` (or %NULL for the stage) - * @returns a pointer to a #ClutterPaintVolume, or %NULL if no volume could be determined. The returned pointer is not guaranteed to be valid across multiple frames; if you wish to keep it, you will have to copy it using clutter_paint_volume_copy(). - */ - get_transformed_paint_volume(relative_to_ancestor: Actor): PaintVolume | null - /** - * Gets the absolute position of an actor, in pixels relative to the stage. - */ - get_transformed_position(): [ /* x */ number, /* y */ number ] - /** - * Gets the absolute size of an actor in pixels, taking into account the - * scaling factors. - * - * If the actor has a valid allocation, the allocated size will be used. - * If the actor has not a valid allocation then the preferred size will - * be transformed and returned. - * - * If you want the transformed allocation, see - * clutter_actor_get_abs_allocation_vertices() instead. - * - * When the actor (or one of its ancestors) is rotated around the - * X or Y axis, it no longer appears as on the stage as a rectangle, but - * as a generic quadrangle; in that case this function returns the size - * of the smallest rectangle that encapsulates the entire quad. Please - * note that in this case no assumptions can be made about the relative - * position of this envelope to the absolute position of the actor, as - * returned by clutter_actor_get_transformed_position(); if you need this - * information, you need to use clutter_actor_get_abs_allocation_vertices() - * to get the coords of the actual quadrangle. - */ - get_transformed_size(): [ /* width */ number, /* height */ number ] - /** - * Retrieves the #ClutterTransition of a #ClutterActor by using the - * transition `name`. - * - * Transitions created for animatable properties use the name of the - * property itself, for instance the code below: - * - * ```c - * clutter_actor_set_easing_duration (actor, 1000); - * clutter_actor_set_rotation_angle (actor, CLUTTER_Y_AXIS, 360.0); - * - * transition = clutter_actor_get_transition (actor, "rotation-angle-y"); - * g_signal_connect (transition, "stopped", - * G_CALLBACK (on_transition_stopped), - * actor); - * ``` - * - * will call the `on_transition_stopped` callback when the transition - * is finished. - * - * If you just want to get notifications of the completion of a transition, - * you should use the #ClutterActor::transition-stopped signal, using the - * transition name as the signal detail. - * @param name the name of the transition - * @returns a #ClutterTransition, or %NULL if none was found to match the passed name; the returned instance is owned by Clutter and it should not be freed - */ - get_transition(name: string | null): Transition | null - /** - * Retrieves the translation set using clutter_actor_set_translation(). - */ - get_translation(): [ /* translate_x */ number, /* translate_y */ number, /* translate_z */ number ] - /** - * Retrieves the width of a #ClutterActor. - * - * If the actor has a valid allocation, this function will return the - * width of the allocated area given to the actor. - * - * If the actor does not have a valid allocation, this function will - * return the actor's natural width, that is the preferred width of - * the actor. - * - * If you care whether you get the preferred width or the width that - * has been assigned to the actor, you should probably call a different - * function like clutter_actor_get_allocation_box() to retrieve the - * allocated size or clutter_actor_get_preferred_width() to retrieve the - * preferred width. - * - * If an actor has a fixed width, for instance a width that has been - * assigned using clutter_actor_set_width(), the width returned will - * be the same value. - * @returns the width of the actor, in pixels - */ - get_width(): number - /** - * Retrieves the X coordinate of a #ClutterActor. - * - * This function tries to "do what you mean", by returning the - * correct value depending on the actor's state. - * - * If the actor has a valid allocation, this function will return - * the X coordinate of the origin of the allocation box. - * - * If the actor has any fixed coordinate set using clutter_actor_set_x(), - * clutter_actor_set_position(), this function will return that coordinate. - * - * If both the allocation and a fixed position are missing, this function - * will return 0. - * @returns the X coordinate, in pixels, ignoring any transformation (i.e. scaling, rotation) - */ - get_x(): number - /** - * Retrieves the horizontal alignment policy set using - * clutter_actor_set_x_align(). - * @returns the horizontal alignment policy. - */ - get_x_align(): ActorAlign - /** - * Retrieves the value set with clutter_actor_set_x_expand(). - * - * See also: clutter_actor_needs_expand() - * @returns %TRUE if the actor has been set to expand - */ - get_x_expand(): boolean - /** - * Retrieves the Y coordinate of a #ClutterActor. - * - * This function tries to "do what you mean", by returning the - * correct value depending on the actor's state. - * - * If the actor has a valid allocation, this function will return - * the Y coordinate of the origin of the allocation box. - * - * If the actor has any fixed coordinate set using clutter_actor_set_y(), - * clutter_actor_set_position(), this function will return that coordinate. - * - * If both the allocation and a fixed position are missing, this function - * will return 0. - * @returns the Y coordinate, in pixels, ignoring any transformation (i.e. scaling, rotation) - */ - get_y(): number - /** - * Retrieves the vertical alignment policy set using - * clutter_actor_set_y_align(). - * @returns the vertical alignment policy. - */ - get_y_align(): ActorAlign - /** - * Retrieves the value set with clutter_actor_set_y_expand(). - * - * See also: clutter_actor_needs_expand() - * @returns %TRUE if the actor has been set to expand - */ - get_y_expand(): boolean - /** - * Retrieves the actor's position on the Z axis. - * @returns the position on the Z axis. - */ - get_z_position(): number - /** - * Sets the key focus of the #ClutterStage including `self` - * to this #ClutterActor. - */ - grab_key_focus(): void - has_accessible(): boolean - /** - * Returns whether the actor has any actions applied. - * @returns %TRUE if the actor has any actions, %FALSE otherwise - */ - has_actions(): boolean - /** - * Checks if the actor has an up-to-date allocation assigned to - * it. This means that the actor should have an allocation: it's - * visible and has a parent. It also means that there is no - * outstanding relayout request in progress for the actor or its - * children (There might be other outstanding layout requests in - * progress that will cause the actor to get a new allocation - * when the stage is laid out, however). - * - * If this function returns %FALSE, then the actor will normally - * be allocated before it is next drawn on the screen. - * @returns %TRUE if the actor has an up-to-date allocation - */ - has_allocation(): boolean - /** - * Returns whether the actor has any constraints applied. - * @returns %TRUE if the actor has any constraints, %FALSE otherwise - */ - has_constraints(): boolean - has_damage(): boolean - /** - * Returns whether the actor has any effects applied. - * @returns %TRUE if the actor has any effects, %FALSE otherwise - */ - has_effects(): boolean - /** - * Checks whether `self` is the #ClutterActor that has key focus - * @returns %TRUE if the actor has key focus, and %FALSE otherwise - */ - has_key_focus(): boolean - /** - * Returns whether a #ClutterActor or any parent actors have mapped clones - * that are clone-painting `self`. - * @returns %TRUE if the actor has mapped clones, %FALSE otherwise - */ - has_mapped_clones(): boolean - /** - * Asks the actor's implementation whether it may contain overlapping - * primitives. - * - * For example; Clutter may use this to determine whether the painting - * should be redirected to an offscreen buffer to correctly implement - * the opacity property. - * - * Custom actors can override the default response by implementing the - * #ClutterActorClass.has_overlaps() virtual function. See - * clutter_actor_set_offscreen_redirect() for more information. - * @returns %TRUE if the actor may have overlapping primitives, and %FALSE otherwise - */ - has_overlaps(): boolean - /** - * Flags an actor to be hidden. A hidden actor will not be - * rendered on the stage. - * - * Actors are visible by default. - * - * If this function is called on an actor without a parent, the - * #ClutterActor:show-on-set-parent property will be set to %FALSE - * as a side-effect. - */ - hide(): void - /** - * Increases the culling inhibitor counter. Inhibiting culling - * forces the actor to be painted even when outside the visible - * bounds of the stage view. - * - * This is usually necessary when an actor is being painted on - * another paint context. - * - * Pair with clutter_actor_uninhibit_culling() when the actor doesn't - * need to be painted anymore. - */ - inhibit_culling(): void - /** - * Inserts `child` into the list of children of `self,` above another - * child of `self` or, if `sibling` is %NULL, above all the children - * of `self`. - * - * This function will acquire a reference on `child` that will only - * be released when calling clutter_actor_remove_child(). - * - * This function will not take into consideration the #ClutterActor:depth - * of `child`. - * - * This function will emit the #ClutterContainer::actor-added signal - * on `self`. - * @param child a #ClutterActor - * @param sibling a child of `self,` or %NULL - */ - insert_child_above(child: Actor, sibling: Actor | null): void - /** - * Inserts `child` into the list of children of `self,` using the - * given `index_`. If `index_` is greater than the number of children - * in `self,` or is less than 0, then the new child is added at the end. - * - * This function will acquire a reference on `child` that will only - * be released when calling clutter_actor_remove_child(). - * - * This function will not take into consideration the #ClutterActor:depth - * of `child`. - * - * This function will emit the #ClutterContainer::actor-added signal - * on `self`. - * @param child a #ClutterActor - * @param index_ the index - */ - insert_child_at_index(child: Actor, index_: number): void - /** - * Inserts `child` into the list of children of `self,` below another - * child of `self` or, if `sibling` is %NULL, below all the children - * of `self`. - * - * This function will acquire a reference on `child` that will only - * be released when calling clutter_actor_remove_child(). - * - * This function will not take into consideration the #ClutterActor:depth - * of `child`. - * - * This function will emit the #ClutterContainer::actor-added signal - * on `self`. - * @param child a #ClutterActor - * @param sibling a child of `self,` or %NULL - */ - insert_child_below(child: Actor, sibling: Actor | null): void - /** - * Invalidates the cached paint volume of `self`. This is needed for - * implementations overriding the #ClutterActorClass.get_paint_volume() - * virtual function and has to be called every time the paint volume - * returned by that function would change. - */ - invalidate_paint_volume(): void - /** - * Invalidate the cached transformation matrix of `self`. - * This is needed for implementations overriding the apply_transform() - * vfunc and has to be called if the matrix returned by apply_transform() - * would change. - */ - invalidate_transform(): void - is_effectively_on_stage_view(view: StageView): boolean - /** - * Checks whether `self` is being currently painted by a #ClutterClone - * - * This function is useful only inside implementations of the - * #ClutterActorClass.paint() virtual function. - * - * This function should not be used by applications - * @returns %TRUE if the #ClutterActor is currently being painted by a #ClutterClone, and %FALSE otherwise - */ - is_in_clone_paint(): boolean - /** - * Checks whether a #ClutterActor has been set as mapped. - * - * See also #ClutterActor:mapped - * @returns %TRUE if the actor is mapped4 - */ - is_mapped(): boolean - /** - * Checks whether a #ClutterActor is realized. - * @returns %TRUE if the actor is realized4 - */ - is_realized(): boolean - /** - * Checks whether any rotation is applied to the actor. - * @returns %TRUE if the actor is rotated. - */ - is_rotated(): boolean - /** - * Checks whether the actor is scaled in either dimension. - * @returns %TRUE if the actor is scaled. - */ - is_scaled(): boolean - /** - * Checks whether an actor is marked as visible. - * @returns %TRUE if the actor visible4 - */ - is_visible(): boolean - /** - * Sets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly maps - * and realizes its children if they are visible. Does nothing if the - * actor is not visible. - * - * Calling this function is strongly discouraged: the default - * implementation of #ClutterActorClass.map() will map all the children - * of an actor when mapping its parent. - * - * When overriding map, it is mandatory to chain up to the parent - * implementation. - */ - map(): void - /** - * Moves an actor by the specified distance relative to its current - * position in pixels. - * - * This function modifies the fixed position of an actor and thus removes - * it from any layout management. Another way to move an actor is with an - * additional translation, using clutter_actor_set_translation(). - * @param dx Distance to move Actor on X axis. - * @param dy Distance to move Actor on Y axis. - */ - move_by(dx: number, dy: number): void - /** - * Checks whether an actor, or any of its children, is set to expand - * horizontally or vertically. - * - * This function should only be called by layout managers that can - * assign extra space to their children. - * - * If you want to know whether the actor was explicitly set to expand, - * use clutter_actor_get_x_expand() or clutter_actor_get_y_expand(). - * @param orientation the direction of expansion - * @returns %TRUE if the actor should expand - */ - needs_expand(orientation: Orientation): boolean - /** - * Invalidate the cached transformation matrix of `self` and queue a redraw - * if the transformation matrix has changed. - * This is needed for implementations overriding the apply_transform() - * vfunc and has to be called if the matrix returned by apply_transform() - * would change due to state outside of the object itself. - */ - notify_transform_invalid(): void - /** - * Renders the actor to display. - * - * This function should not be called directly by applications. - * Call clutter_actor_queue_redraw() to queue paints, instead. - * - * This function is context-aware, and will either cause a - * regular paint or a pick paint. - * - * This function will call the #ClutterActorClass.paint() virtual - * function. - * - * This function does not paint the actor if the actor is set to 0, - * unless it is performing a pick paint. - * @param paint_context - */ - paint(paint_context: PaintContext): void - /** - * Retrieves the list of `ClutterStageView`s the actor is being - * painted on. - * - * If this function is called during the paint cycle, the list is guaranteed - * to be up-to-date, if called outside the paint cycle, the list will - * contain the views the actor was painted on last. - * - * The list returned by this function is not updated when the actors - * visibility changes: If an actor gets hidden and is not being painted - * anymore, this function will return the list of views the actor was - * painted on last. - * - * If an actor is not attached to a stage (realized), this function will - * always return an empty list. - * @returns The list of `ClutterStageView`s the actor is being painted on. The list and its contents are owned by the #ClutterActor and the list may not be freed or modified. - */ - peek_stage_views(): StageView[] - /** - * Asks `actor` to perform a pick. - * @param pick_context - */ - pick(pick_context: PickContext): void - /** - * Logs (does a virtual paint of) a rectangle for picking. Note that `box` is - * in the actor's own local coordinates, so is usually {0,0,width,height} - * to include the whole actor. That is unless the actor has a shaped input - * region in which case you may wish to log the (multiple) smaller rectangles - * that make up the input region. - * @param pick_context The #ClutterPickContext - * @param box A rectangle in the actor's own local coordinates. - */ - pick_box(pick_context: PickContext, box: ActorBox): void - /** - * Queues up a redraw of an actor and any children. The redraw occurs - * once the main loop becomes idle (after the current batch of events - * has been processed, roughly). - * - * Applications rarely need to call this, as redraws are handled - * automatically by modification functions. - * - * This function will not do anything if `self` is not visible, or - * if the actor is inside an invisible part of the scenegraph. - * - * Also be aware that painting is a NOP for actors with an opacity of - * 0 - * - * When you are implementing a custom actor you must queue a redraw - * whenever some private state changes that will affect painting or - * picking of your actor. - */ - queue_redraw(): void - /** - * Queues a redraw on `self` limited to a specific, actor-relative - * rectangular area. - * - * If `clip` is %NULL this function is equivalent to - * clutter_actor_queue_redraw(). - * @param clip a rectangular clip region, or %NULL - */ - queue_redraw_with_clip(clip: Mtk.Rectangle | null): void - /** - * Indicates that the actor's size request or other layout-affecting - * properties may have changed. This function is used inside #ClutterActor - * subclass implementations, not by applications directly. - * - * Queueing a new layout automatically queues a redraw as well. - */ - queue_relayout(): void - /** - * Realization informs the actor that it is attached to a stage. It - * can use this to allocate resources if it wanted to delay allocation - * until it would be rendered. However it is perfectly acceptable for - * an actor to create resources before being realized because Clutter - * only ever has a single rendering context so that actor is free to - * be moved from one stage to another. - * - * This function does nothing if the actor is already realized. - * - * Because a realized actor must have realized parent actors, calling - * clutter_actor_realize() will also realize all parents of the actor. - * - * This function does not realize child actors, except in the special - * case that realizing the stage, when the stage is visible, will - * suddenly map (and thus realize) the children of the stage. - */ - realize(): void - /** - * Removes `action` from the list of actions applied to `self` - * - * The reference held by `self` on the #ClutterAction will be released - * @param action a #ClutterAction - */ - remove_action(action: Action): void - /** - * Removes the #ClutterAction with the given name from the list - * of actions applied to `self` - * @param name the name of the action to remove - */ - remove_action_by_name(name: string | null): void - /** - * Removes all children of `self`. - * - * This function releases the reference added by inserting a child actor - * in the list of children of `self`. - * - * If the reference count of a child drops to zero, the child will be - * destroyed. If you want to ensure the destruction of all the children - * of `self,` use clutter_actor_destroy_all_children(). - */ - remove_all_children(): void - /** - * Removes all transitions associated to `self`. - */ - remove_all_transitions(): void - /** - * Removes `child` from the children of `self`. - * - * This function will release the reference added by - * clutter_actor_add_child(), so if you want to keep using `child` - * you will have to acquire a referenced on it before calling this - * function. - * - * This function will emit the #ClutterContainer::actor-removed - * signal on `self`. - * @param child a #ClutterActor - */ - remove_child(child: Actor): void - /** - * Removes clip area from `self`. - */ - remove_clip(): void - /** - * Removes `constraint` from the list of constraints applied to `self` - * - * The reference held by `self` on the #ClutterConstraint will be released - * @param constraint a #ClutterConstraint - */ - remove_constraint(constraint: Constraint): void - /** - * Removes the #ClutterConstraint with the given name from the list - * of constraints applied to `self` - * @param name the name of the constraint to remove - */ - remove_constraint_by_name(name: string | null): void - /** - * Removes `effect` from the list of effects applied to `self` - * - * The reference held by `self` on the #ClutterEffect will be released - * @param effect a #ClutterEffect - */ - remove_effect(effect: Effect): void - /** - * Removes the #ClutterEffect with the given name from the list - * of effects applied to `self` - * @param name the name of the effect to remove - */ - remove_effect_by_name(name: string | null): void - /** - * Removes the transition stored inside a #ClutterActor using `name` - * identifier. - * - * If the transition is currently in progress, it will be stopped. - * - * This function releases the reference acquired when the transition - * was added to the #ClutterActor. - * @param name the name of the transition to remove - */ - remove_transition(name: string | null): void - /** - * Replaces `old_child` with `new_child` in the list of children of `self`. - * @param old_child the child of `self` to replace - * @param new_child the #ClutterActor to replace `old_child` - */ - replace_child(old_child: Actor, new_child: Actor): void - /** - * Restores the easing state as it was prior to a call to - * clutter_actor_save_easing_state(). - */ - restore_easing_state(): void - /** - * Saves the current easing state for animatable properties, and creates - * a new state with the default values for easing mode and duration. - * - * New transitions created after calling this function will inherit the - * duration, easing mode, and delay of the new easing state; this also - * applies to transitions modified in flight. - */ - save_easing_state(): void - /** - * Stores the allocation of `self` as defined by `box`. - * - * This function can only be called from within the implementation of - * the #ClutterActorClass.allocate() virtual function. - * - * The allocation `box` should have been adjusted to take into account - * constraints, alignment, and margin properties. - * - * This function should only be used by subclasses of #ClutterActor - * that wish to store their allocation but cannot chain up to the - * parent's implementation; the default implementation of the - * #ClutterActorClass.allocate() virtual function will call this - * function. - * @param box a #ClutterActorBox - */ - set_allocation(box: ActorBox): void - /** - * Sets the background color of a #ClutterActor. - * - * The background color will be used to cover the whole allocation of the - * actor. The default background color of an actor is transparent. - * - * To check whether an actor has a background color, you can use the - * #ClutterActor:background-color-set actor property. - * - * The #ClutterActor:background-color property is animatable. - * @param color a #ClutterColor, or %NULL to unset a previously set color - */ - set_background_color(color: Color | null): void - /** - * Sets `child` to be above `sibling` in the list of children of `self`. - * - * If `sibling` is %NULL, `child` will be the new last child of `self`. - * - * This function is logically equivalent to removing `child` and using - * clutter_actor_insert_child_above(), but it will not emit signals - * or change state on `child`. - * @param child a #ClutterActor child of `self` - * @param sibling a #ClutterActor child of `self,` or %NULL - */ - set_child_above_sibling(child: Actor, sibling: Actor | null): void - /** - * Changes the index of `child` in the list of children of `self`. - * - * This function is logically equivalent to removing `child` and - * calling clutter_actor_insert_child_at_index(), but it will not - * emit signals or change state on `child`. - * @param child a #ClutterActor child of `self` - * @param index_ the new index for `child` - */ - set_child_at_index(child: Actor, index_: number): void - /** - * Sets `child` to be below `sibling` in the list of children of `self`. - * - * If `sibling` is %NULL, `child` will be the new first child of `self`. - * - * This function is logically equivalent to removing `self` and using - * clutter_actor_insert_child_below(), but it will not emit signals - * or change state on `child`. - * @param child a #ClutterActor child of `self` - * @param sibling a #ClutterActor child of `self,` or %NULL - */ - set_child_below_sibling(child: Actor, sibling: Actor | null): void - /** - * Sets the transformation matrix to be applied to all the children - * of `self` prior to their own transformations. The default child - * transformation is the identity matrix. - * - * If `transform` is %NULL, the child transform will be unset. - * - * The #ClutterActor:child-transform property is animatable. - * @param transform a #graphene_matrix_t, or %NULL - */ - set_child_transform(transform: Graphene.Matrix | null): void - /** - * Sets clip area for `self`. The clip area is always computed from the - * upper left corner of the actor. - * @param xoff X offset of the clip rectangle - * @param yoff Y offset of the clip rectangle - * @param width Width of the clip rectangle - * @param height Height of the clip rectangle - */ - set_clip(xoff: number, yoff: number, width: number, height: number): void - /** - * Sets whether `self` should be clipped to the same size as its - * allocation - * @param clip_set %TRUE to apply a clip tracking the allocation - */ - set_clip_to_allocation(clip_set: boolean): void - /** - * Attaches color state properties to [class`Actor]` - * default color state representing sRGB. - * @param color_state a #ClutterColorState, or defaults to sRGB if %NULL - */ - set_color_state(color_state: ColorState): void - /** - * Sets the contents of a #ClutterActor. - * @param content a #ClutterContent, or %NULL - */ - set_content(content: Content | null): void - /** - * Sets the gravity of the #ClutterContent used by `self`. - * - * See the description of the #ClutterActor:content-gravity property for - * more information. - * - * The #ClutterActor:content-gravity property is animatable. - * @param gravity the #ClutterContentGravity - */ - set_content_gravity(gravity: ContentGravity): void - /** - * Sets the policy for repeating the #ClutterActor:content of a - * #ClutterActor. The behaviour is deferred to the #ClutterContent - * implementation. - * @param repeat the repeat policy - */ - set_content_repeat(repeat: ContentRepeat): void - /** - * Sets the minification and magnification filter to be applied when - * scaling the #ClutterActor:content of a #ClutterActor. - * - * The #ClutterActor:minification-filter will be used when reducing - * the size of the content; the #ClutterActor:magnification-filter - * will be used when increasing the size of the content. - * @param min_filter the minification filter for the content - * @param mag_filter the magnification filter for the content - */ - set_content_scaling_filters(min_filter: ScalingFilter, mag_filter: ScalingFilter): void - /** - * Sets the delay that should be applied before tweening animatable - * properties. - * @param msecs the delay before the start of the tweening, in milliseconds - */ - set_easing_delay(msecs: number): void - /** - * Sets the duration of the tweening for animatable properties - * of `self` for the current easing state. - * @param msecs the duration of the easing, or %NULL - */ - set_easing_duration(msecs: number): void - /** - * Sets the easing mode for the tweening of animatable properties - * of `self`. - * @param mode an easing mode, excluding %CLUTTER_CUSTOM_MODE - */ - set_easing_mode(mode: AnimationMode): void - /** - * Sets whether an actor has a fixed position set (and will thus be - * unaffected by any layout manager). - * @param is_set whether to use fixed position - */ - set_fixed_position_set(is_set: boolean): void - /** - * Sets `flags` on `self` - * - * This function will emit notifications for the changed properties - * @param flags the flags to set - */ - set_flags(flags: ActorFlags): void - /** - * Forces a height on an actor, causing the actor's preferred width - * and height (if any) to be ignored. - * - * If `height` is -1 the actor will use its preferred height instead of - * overriding it, i.e. you can "unset" the height with -1. - * - * This function sets both the minimum and natural size of the actor. - * @param height Requested new height for the actor, in pixels, or -1 - */ - set_height(height: number): void - /** - * Sets the #ClutterLayoutManager delegate object that will be used to - * lay out the children of `self`. - * - * The #ClutterActor will take a reference on the passed `manager` which - * will be released either when the layout manager is removed, or when - * the actor is destroyed. - * @param manager a #ClutterLayoutManager, or %NULL to unset it - */ - set_layout_manager(manager: LayoutManager | null): void - /** - * Sets all the components of the margin of a #ClutterActor. - * @param margin a #ClutterMargin - */ - set_margin(margin: Margin): void - /** - * Sets the margin from the bottom of a #ClutterActor. - * - * The #ClutterActor:margin-bottom property is animatable. - * @param margin the bottom margin - */ - set_margin_bottom(margin: number): void - /** - * Sets the margin from the left of a #ClutterActor. - * - * The #ClutterActor:margin-left property is animatable. - * @param margin the left margin - */ - set_margin_left(margin: number): void - /** - * Sets the margin from the right of a #ClutterActor. - * - * The #ClutterActor:margin-right property is animatable. - * @param margin the right margin - */ - set_margin_right(margin: number): void - /** - * Sets the margin from the top of a #ClutterActor. - * - * The #ClutterActor:margin-top property is animatable. - * @param margin the top margin - */ - set_margin_top(margin: number): void - /** - * Sets the given name to `self`. The name can be used to identify - * a #ClutterActor. - * @param name Textual tag to apply to actor - */ - set_name(name: string | null): void - /** - * Defines the circumstances where the actor should be redirected into - * an offscreen image. The offscreen image is used to flatten the - * actor into a single image while painting for two main reasons. - * Firstly, when the actor is painted a second time without any of its - * contents changing it can simply repaint the cached image without - * descending further down the actor hierarchy. Secondly, it will make - * the opacity look correct even if there are overlapping primitives - * in the actor. - * - * Caching the actor could in some cases be a performance win and in - * some cases be a performance lose so it is important to determine - * which value is right for an actor before modifying this value. For - * example, there is never any reason to flatten an actor that is just - * a single texture (such as a #ClutterTexture) because it is - * effectively already cached in an image so the offscreen would be - * redundant. Also if the actor contains primitives that are far apart - * with a large transparent area in the middle (such as a large - * CluterGroup with a small actor in the top left and a small actor in - * the bottom right) then the cached image will contain the entire - * image of the large area and the paint will waste time blending all - * of the transparent pixels in the middle. - * - * The default method of implementing opacity on a container simply - * forwards on the opacity to all of the children. If the children are - * overlapping then it will appear as if they are two separate glassy - * objects and there will be a break in the color where they - * overlap. By redirecting to an offscreen buffer it will be as if the - * two opaque objects are combined into one and then made transparent - * which is usually what is expected. - * - * The image below demonstrates the difference between redirecting and - * not. The image shows two Clutter groups, each containing a red and - * a green rectangle which overlap. The opacity on the group is set to - * 128 (which is 50%). When the offscreen redirect is not used, the - * red rectangle can be seen through the blue rectangle as if the two - * rectangles were separately transparent. When the redirect is used - * the group as a whole is transparent instead so the red rectangle is - * not visible where they overlap. - * - *
                  - * Sample of using an offscreen redirect for transparency - * - *
                  - * - * The default value for this property is 0, so we effectively will - * never redirect an actor offscreen by default. This means that there - * are times that transparent actors may look glassy as described - * above. The reason this is the default is because there is a - * performance trade off between quality and performance here. In many - * cases the default form of glassy opacity looks good enough, but if - * it's not you will need to set the - * %CLUTTER_OFFSCREEN_REDIRECT_AUTOMATIC_FOR_OPACITY flag to enable - * redirection for opacity. - * - * Custom actors that don't contain any overlapping primitives are - * recommended to override the has_overlaps() virtual to return %FALSE - * for maximum efficiency. - * @param redirect New offscreen redirect flags for the actor. - */ - set_offscreen_redirect(redirect: OffscreenRedirect): void - /** - * Sets the actor's opacity, with zero being completely transparent and - * 255 (0xff) being fully opaque. - * - * The #ClutterActor:opacity property is animatable. - * @param opacity New opacity value for the actor. - */ - set_opacity(opacity: number): void - /** - * Allows overriding the calculated paint opacity (as returned by - * clutter_actor_get_paint_opacity()). This is used internally by - * ClutterClone and ClutterOffscreenEffect, and should be used by - * actors that need to mimic those. - * - * In almost all cases this should not used by applications. - * @param opacity the override opacity value, or -1 to reset - */ - set_opacity_override(opacity: number): void - /** - * Sets the position of the #ClutterActor:pivot-point around which the - * scaling and rotation transformations occur. - * - * The pivot point's coordinates are in normalized space, with the (0, 0) - * point being the top left corner of the actor, and the (1, 1) point being - * the bottom right corner. - * @param pivot_x the normalized X coordinate of the pivot point - * @param pivot_y the normalized Y coordinate of the pivot point - */ - set_pivot_point(pivot_x: number, pivot_y: number): void - /** - * Sets the component on the Z axis of the #ClutterActor:pivot-point around - * which the scaling and rotation transformations occur. - * - * The `pivot_z` value is expressed as a distance along the Z axis. - * @param pivot_z the Z coordinate of the actor's pivot point - */ - set_pivot_point_z(pivot_z: number): void - /** - * Sets the actor's fixed position in pixels relative to any parent - * actor. - * - * If a layout manager is in use, this position will override the - * layout manager and force a fixed position. - * @param x New left position of actor in pixels. - * @param y New top position of actor in pixels. - */ - set_position(x: number, y: number): void - /** - * Sets `actor` as reactive. Reactive actors will receive events. - * @param reactive whether the actor should be reactive to events - */ - set_reactive(reactive: boolean): void - /** - * Sets the geometry request mode of `self`. - * - * The `mode` determines the order for invoking - * clutter_actor_get_preferred_width() and - * clutter_actor_get_preferred_height() - * @param mode the request mode - */ - set_request_mode(mode: RequestMode): void - /** - * Sets the `angle` of rotation of a #ClutterActor on the given `axis`. - * - * This function is a convenience for setting the rotation properties - * #ClutterActor:rotation-angle-x, #ClutterActor:rotation-angle-y, - * and #ClutterActor:rotation-angle-z. - * - * The center of rotation is established by the #ClutterActor:pivot-point - * property. - * @param axis the axis to set the angle one - * @param angle the angle of rotation, in degrees - */ - set_rotation_angle(axis: RotateAxis, angle: number): void - /** - * Scales an actor with the given factors. - * - * The scale transformation is relative the the #ClutterActor:pivot-point. - * - * The #ClutterActor:scale-x and #ClutterActor:scale-y properties are - * animatable. - * @param scale_x double factor to scale actor by horizontally. - * @param scale_y double factor to scale actor by vertically. - */ - set_scale(scale_x: number, scale_y: number): void - /** - * Scales an actor on the Z axis by the given `scale_z` factor. - * - * The scale transformation is relative the the #ClutterActor:pivot-point. - * - * The #ClutterActor:scale-z property is animatable. - * @param scale_z the scaling factor along the Z axis - */ - set_scale_z(scale_z: number): void - /** - * Sets the actor's size request in pixels. This overrides any - * "normal" size request the actor would have. For example - * a text actor might normally request the size of the text; - * this function would force a specific size instead. - * - * If `width` and/or `height` are -1 the actor will use its - * "normal" size request instead of overriding it, i.e. - * you can "unset" the size with -1. - * - * This function sets or unsets both the minimum and natural size. - * @param width New width of actor in pixels, or -1 - * @param height New height of actor in pixels, or -1 - */ - set_size(width: number, height: number): void - /** - * Sets the #ClutterTextDirection for an actor - * - * The passed text direction must not be %CLUTTER_TEXT_DIRECTION_DEFAULT - * - * If `self` implements #ClutterContainer then this function will recurse - * inside all the children of `self` (including the internal ones). - * - * Composite actors not implementing #ClutterContainer, or actors requiring - * special handling when the text direction changes, should connect to - * the #GObject::notify signal for the #ClutterActor:text-direction property - * @param text_dir the text direction for `self` - */ - set_text_direction(text_dir: TextDirection): void - /** - * Overrides the transformations of a #ClutterActor with a custom - * matrix, which will be applied relative to the origin of the - * actor's allocation and to the actor's pivot point. - * - * The #ClutterActor:transform property is animatable. - * @param transform a #graphene_matrix_t, or %NULL to unset a custom transformation - */ - set_transform(transform: Graphene.Matrix | null): void - /** - * Sets an additional translation transformation on a #ClutterActor, - * relative to the #ClutterActor:pivot-point. - * @param translate_x the translation along the X axis - * @param translate_y the translation along the Y axis - * @param translate_z the translation along the Z axis - */ - set_translation(translate_x: number, translate_y: number, translate_z: number): void - /** - * Forces a width on an actor, causing the actor's preferred width - * and height (if any) to be ignored. - * - * If `width` is -1 the actor will use its preferred width request - * instead of overriding it, i.e. you can "unset" the width with -1. - * - * This function sets both the minimum and natural size of the actor. - * @param width Requested new width for the actor, in pixels, or -1 - */ - set_width(width: number): void - /** - * Sets the actor's X coordinate, relative to its parent, in pixels. - * - * Overrides any layout manager and forces a fixed position for - * the actor. - * - * The #ClutterActor:x property is animatable. - * @param x the actor's position on the X axis - */ - set_x(x: number): void - /** - * Sets the horizontal alignment policy of a #ClutterActor, in case the - * actor received extra horizontal space. - * - * See also the #ClutterActor:x-align property. - * @param x_align the horizontal alignment policy - */ - set_x_align(x_align: ActorAlign): void - /** - * Sets whether a #ClutterActor should expand horizontally; this means - * that layout manager should allocate extra space for the actor, if - * possible. - * - * Setting an actor to expand will also make all its parent expand, so - * that it's possible to build an actor tree and only set this flag on - * its leaves and not on every single actor. - * @param expand whether the actor should expand horizontally - */ - set_x_expand(expand: boolean): void - /** - * Sets the actor's Y coordinate, relative to its parent, in pixels.# - * - * Overrides any layout manager and forces a fixed position for - * the actor. - * - * The #ClutterActor:y property is animatable. - * @param y the actor's position on the Y axis - */ - set_y(y: number): void - /** - * Sets the vertical alignment policy of a #ClutterActor, in case the - * actor received extra vertical space. - * - * See also the #ClutterActor:y-align property. - * @param y_align the vertical alignment policy - */ - set_y_align(y_align: ActorAlign): void - /** - * Sets whether a #ClutterActor should expand horizontally; this means - * that layout manager should allocate extra space for the actor, if - * possible. - * - * Setting an actor to expand will also make all its parent expand, so - * that it's possible to build an actor tree and only set this flag on - * its leaves and not on every single actor. - * @param expand whether the actor should expand vertically - */ - set_y_expand(expand: boolean): void - /** - * Sets the actor's position on the Z axis. - * - * See #ClutterActor:z-position. - * @param z_position the position on the Z axis - */ - set_z_position(z_position: number): void - /** - * Should be called inside the implementation of the - * #ClutterActor::pick virtual function in order to check whether - * the actor should be picked or not. - * - * This function should never be called directly by applications. - * @param pick_context a #ClutterPickContext - * @returns %TRUE if the actor should be picked, %FALSE otherwise - */ - should_pick(pick_context: PickContext): boolean - /** - * Flags an actor to be displayed. An actor that isn't shown will not - * be rendered on the stage. - * - * Actors are visible by default. - * - * If this function is called on an actor without a parent, the - * #ClutterActor:show-on-set-parent will be set to %TRUE as a side - * effect. - */ - show(): void - /** - * This function translates screen coordinates (`x,` `y)` to - * coordinates relative to the actor. For example, it can be used to translate - * screen events from global screen coordinates into actor-local coordinates. - * - * The conversion can fail, notably if the transform stack results in the - * actor being projected on the screen as a mere line. - * - * The conversion should not be expected to be pixel-perfect due to the - * nature of the operation. In general the error grows when the skewing - * of the actor rectangle on screen increases. - * - * This function can be computationally intensive. - * - * This function only works when the allocation is up-to-date, i.e. inside of - * the #ClutterActorClass.paint() implementation - * @param x x screen coordinate of the point to unproject - * @param y y screen coordinate of the point to unproject - * @returns %TRUE if conversion was successful. - */ - transform_stage_point(x: number, y: number): [ /* returnType */ boolean, /* x_out */ number | null, /* y_out */ number | null ] - /** - * Decreases the culling inhibitor counter. See clutter_actor_inhibit_culling() - * for when inhibit culling is necessary. - * - * Calling this function without a matching call to - * clutter_actor_inhibit_culling() is a programming error. - */ - uninhibit_culling(): void - /** - * Unsets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly - * unmaps its children if they were mapped. - * - * Calling this function is not encouraged: the default #ClutterActor - * implementation of #ClutterActorClass.unmap() will also unmap any - * eventual children by default when their parent is unmapped. - * - * When overriding #ClutterActorClass.unmap(), it is mandatory to - * chain up to the parent implementation. - * - * It is important to note that the implementation of the - * #ClutterActorClass.unmap() virtual function may be called after - * the #ClutterActorClass.destroy() or the #GObjectClass.dispose() - * implementation, but it is guaranteed to be called before the - * #GObjectClass.finalize() implementation. - */ - unmap(): void - /** - * Unrealization informs the actor that it may be being destroyed or - * moved to another stage. The actor may want to destroy any - * underlying graphics resources at this point. However it is - * perfectly acceptable for it to retain the resources until the actor - * is destroyed because Clutter only ever uses a single rendering - * context and all of the graphics resources are valid on any stage. - * - * Because mapped actors must be realized, actors may not be - * unrealized if they are mapped. This function hides the actor to be - * sure it isn't mapped, an application-visible side effect that you - * may not be expecting. - * - * This function should not be called by application code. - * - * This function should not really be in the public API, because - * there isn't a good reason to call it. ClutterActor will already - * unrealize things for you when it's important to do so. - * - * If you were using clutter_actor_unrealize() in a dispose - * implementation, then don't, just chain up to ClutterActor's - * dispose. - * - * If you were using clutter_actor_unrealize() to implement - * unrealizing children of your container, then don't, ClutterActor - * will already take care of that. - */ - unrealize(): void - /** - * Unsets `flags` on `self` - * - * This function will emit notifications for the changed properties - * @param flags the flags to unset - */ - unset_flags(flags: ActorFlags): void - - // Own virtual methods of Clutter-13.Clutter.Actor - - /** - * Assigns the size of a #ClutterActor from the given `box`. - * - * This function should only be called on the children of an actor when - * overriding the #ClutterActorClass.allocate() virtual function. - * - * This function will adjust the stored allocation to take into account - * the alignment flags set in the #ClutterActor:x-align and - * #ClutterActor:y-align properties, as well as the margin values set in - * the #ClutterActor:margin-top, #ClutterActor:margin-right, - * #ClutterActor:margin-bottom, and #ClutterActor:margin-left properties. - * - * This function will respect the easing state of the #ClutterActor and - * interpolate between the current allocation and the new one if the - * easing state duration is a positive value. - * - * Actors can know from their allocation box whether they have moved - * with respect to their parent actor. The `flags` parameter describes - * additional information about the allocation, for instance whether - * the parent has moved with respect to the stage, for example because - * a grandparent's origin has moved. - * @virtual - * @param box new allocation of the actor, in parent-relative coordinates - */ - vfunc_allocate(box: ActorBox): void - vfunc_apply_transform(matrix: Graphene.Matrix): void - vfunc_button_press_event(event: Event): boolean - vfunc_button_release_event(event: Event): boolean - vfunc_calculate_resource_scale(phase: number): number - vfunc_captured_event(event: Event): boolean - /** - * Destroys an actor. When an actor is destroyed, it will break any - * references it holds to other objects. If the actor is inside a - * container, the actor will be removed. - * - * When you destroy a container, its children will be destroyed as well. - * @virtual - */ - vfunc_destroy(): void - vfunc_enter_event(event: Event): boolean - vfunc_event(event: Event): boolean - /** - * Returns the accessible object that describes the actor to an - * assistive technology. - * - * If no class-specific #AtkObject implementation is available for the - * actor instance in question, it will inherit an #AtkObject - * implementation from the first ancestor class for which such an - * implementation is defined. - * - * The documentation of the ATK - * library contains more information about accessible objects and - * their uses. - * @virtual - * @returns the #AtkObject associated with @actor - */ - vfunc_get_accessible(): Atk.Object - vfunc_get_paint_volume(volume: PaintVolume): boolean - /** - * Computes the requested minimum and natural heights for an actor, - * or if they are already computed, returns the cached values. - * - * An actor may not get its request - depending on the layout - * manager that's in effect. - * - * A request should not incorporate the actor's scale or translation; - * those transformations do not affect layout, only rendering. - * @virtual - * @param for_width available width to assume in computing desired height, or a negative value to indicate that no width is defined - */ - vfunc_get_preferred_height(for_width: number): [ /* min_height_p */ number, /* natural_height_p */ number ] - /** - * Computes the requested minimum and natural widths for an actor, - * optionally depending on the specified height, or if they are - * already computed, returns the cached values. - * - * An actor may not get its request - depending on the layout - * manager that's in effect. - * - * A request should not incorporate the actor's scaleor translation; - * those transformations do not affect layout, only rendering. - * @virtual - * @param for_height available height when computing the preferred width, or a negative value to indicate that no height is defined - */ - vfunc_get_preferred_width(for_height: number): [ /* min_width_p */ number, /* natural_width_p */ number ] - vfunc_has_accessible(): boolean - /** - * Asks the actor's implementation whether it may contain overlapping - * primitives. - * - * For example; Clutter may use this to determine whether the painting - * should be redirected to an offscreen buffer to correctly implement - * the opacity property. - * - * Custom actors can override the default response by implementing the - * #ClutterActorClass.has_overlaps() virtual function. See - * clutter_actor_set_offscreen_redirect() for more information. - * @virtual - * @returns %TRUE if the actor may have overlapping primitives, and %FALSE otherwise - */ - vfunc_has_overlaps(): boolean - /** - * Flags an actor to be hidden. A hidden actor will not be - * rendered on the stage. - * - * Actors are visible by default. - * - * If this function is called on an actor without a parent, the - * #ClutterActor:show-on-set-parent property will be set to %FALSE - * as a side-effect. - * @virtual - */ - vfunc_hide(): void - vfunc_hide_all(): void - vfunc_key_focus_in(): void - vfunc_key_focus_out(): void - vfunc_key_press_event(event: Event): boolean - vfunc_key_release_event(event: Event): boolean - vfunc_leave_event(event: Event): boolean - /** - * Sets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly maps - * and realizes its children if they are visible. Does nothing if the - * actor is not visible. - * - * Calling this function is strongly discouraged: the default - * implementation of #ClutterActorClass.map() will map all the children - * of an actor when mapping its parent. - * - * When overriding map, it is mandatory to chain up to the parent - * implementation. - * @virtual - */ - vfunc_map(): void - vfunc_motion_event(event: Event): boolean - /** - * Renders the actor to display. - * - * This function should not be called directly by applications. - * Call clutter_actor_queue_redraw() to queue paints, instead. - * - * This function is context-aware, and will either cause a - * regular paint or a pick paint. - * - * This function will call the #ClutterActorClass.paint() virtual - * function. - * - * This function does not paint the actor if the actor is set to 0, - * unless it is performing a pick paint. - * @virtual - * @param paint_context - */ - vfunc_paint(paint_context: PaintContext): void - vfunc_paint_node(root: PaintNode): void - vfunc_parent_set(old_parent: Actor): void - /** - * Asks `actor` to perform a pick. - * @virtual - * @param pick_context - */ - vfunc_pick(pick_context: PickContext): void - /** - * Indicates that the actor's size request or other layout-affecting - * properties may have changed. This function is used inside #ClutterActor - * subclass implementations, not by applications directly. - * - * Queueing a new layout automatically queues a redraw as well. - * @virtual - */ - vfunc_queue_relayout(): void - /** - * Realization informs the actor that it is attached to a stage. It - * can use this to allocate resources if it wanted to delay allocation - * until it would be rendered. However it is perfectly acceptable for - * an actor to create resources before being realized because Clutter - * only ever has a single rendering context so that actor is free to - * be moved from one stage to another. - * - * This function does nothing if the actor is already realized. - * - * Because a realized actor must have realized parent actors, calling - * clutter_actor_realize() will also realize all parents of the actor. - * - * This function does not realize child actors, except in the special - * case that realizing the stage, when the stage is visible, will - * suddenly map (and thus realize) the children of the stage. - * @virtual - */ - vfunc_realize(): void - vfunc_resource_scale_changed(): void - vfunc_scroll_event(event: Event): boolean - /** - * Flags an actor to be displayed. An actor that isn't shown will not - * be rendered on the stage. - * - * Actors are visible by default. - * - * If this function is called on an actor without a parent, the - * #ClutterActor:show-on-set-parent will be set to %TRUE as a side - * effect. - * @virtual - */ - vfunc_show(): void - vfunc_touch_event(event: Event): boolean - /** - * Unsets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly - * unmaps its children if they were mapped. - * - * Calling this function is not encouraged: the default #ClutterActor - * implementation of #ClutterActorClass.unmap() will also unmap any - * eventual children by default when their parent is unmapped. - * - * When overriding #ClutterActorClass.unmap(), it is mandatory to - * chain up to the parent implementation. - * - * It is important to note that the implementation of the - * #ClutterActorClass.unmap() virtual function may be called after - * the #ClutterActorClass.destroy() or the #GObjectClass.dispose() - * implementation, but it is guaranteed to be called before the - * #GObjectClass.finalize() implementation. - * @virtual - */ - vfunc_unmap(): void - /** - * Unrealization informs the actor that it may be being destroyed or - * moved to another stage. The actor may want to destroy any - * underlying graphics resources at this point. However it is - * perfectly acceptable for it to retain the resources until the actor - * is destroyed because Clutter only ever uses a single rendering - * context and all of the graphics resources are valid on any stage. - * - * Because mapped actors must be realized, actors may not be - * unrealized if they are mapped. This function hides the actor to be - * sure it isn't mapped, an application-visible side effect that you - * may not be expecting. - * - * This function should not be called by application code. - * - * This function should not really be in the public API, because - * there isn't a good reason to call it. ClutterActor will already - * unrealize things for you when it's important to do so. - * - * If you were using clutter_actor_unrealize() in a dispose - * implementation, then don't, just chain up to ClutterActor's - * dispose. - * - * If you were using clutter_actor_unrealize() to implement - * unrealizing children of your container, then don't, ClutterActor - * will already take care of that. - * @virtual - */ - vfunc_unrealize(): void - - // Own signals of Clutter-13.Clutter.Actor - - connect(sigName: "button-press-event", callback: Actor.ButtonPressEventSignalCallback): number - connect_after(sigName: "button-press-event", callback: Actor.ButtonPressEventSignalCallback): number - emit(sigName: "button-press-event", event: Event, ...args: any[]): void - connect(sigName: "button-release-event", callback: Actor.ButtonReleaseEventSignalCallback): number - connect_after(sigName: "button-release-event", callback: Actor.ButtonReleaseEventSignalCallback): number - emit(sigName: "button-release-event", event: Event, ...args: any[]): void - connect(sigName: "captured-event", callback: Actor.CapturedEventSignalCallback): number - connect_after(sigName: "captured-event", callback: Actor.CapturedEventSignalCallback): number - emit(sigName: "captured-event", event: Event, ...args: any[]): void - connect(sigName: "cloned", callback: Actor.ClonedSignalCallback): number - connect_after(sigName: "cloned", callback: Actor.ClonedSignalCallback): number - emit(sigName: "cloned", object: Clone, ...args: any[]): void - connect(sigName: "decloned", callback: Actor.DeclonedSignalCallback): number - connect_after(sigName: "decloned", callback: Actor.DeclonedSignalCallback): number - emit(sigName: "decloned", object: Clone, ...args: any[]): void - connect(sigName: "destroy", callback: Actor.DestroySignalCallback): number - connect_after(sigName: "destroy", callback: Actor.DestroySignalCallback): number - emit(sigName: "destroy", ...args: any[]): void - connect(sigName: "enter-event", callback: Actor.EnterEventSignalCallback): number - connect_after(sigName: "enter-event", callback: Actor.EnterEventSignalCallback): number - emit(sigName: "enter-event", event: Event, ...args: any[]): void - connect(sigName: "event", callback: Actor.EventSignalCallback): number - connect_after(sigName: "event", callback: Actor.EventSignalCallback): number - emit(sigName: "event", event: Event, ...args: any[]): void - connect(sigName: "hide", callback: Actor.HideSignalCallback): number - connect_after(sigName: "hide", callback: Actor.HideSignalCallback): number - emit(sigName: "hide", ...args: any[]): void - connect(sigName: "key-focus-in", callback: Actor.KeyFocusInSignalCallback): number - connect_after(sigName: "key-focus-in", callback: Actor.KeyFocusInSignalCallback): number - emit(sigName: "key-focus-in", ...args: any[]): void - connect(sigName: "key-focus-out", callback: Actor.KeyFocusOutSignalCallback): number - connect_after(sigName: "key-focus-out", callback: Actor.KeyFocusOutSignalCallback): number - emit(sigName: "key-focus-out", ...args: any[]): void - connect(sigName: "key-press-event", callback: Actor.KeyPressEventSignalCallback): number - connect_after(sigName: "key-press-event", callback: Actor.KeyPressEventSignalCallback): number - emit(sigName: "key-press-event", event: Event, ...args: any[]): void - connect(sigName: "key-release-event", callback: Actor.KeyReleaseEventSignalCallback): number - connect_after(sigName: "key-release-event", callback: Actor.KeyReleaseEventSignalCallback): number - emit(sigName: "key-release-event", event: Event, ...args: any[]): void - connect(sigName: "leave-event", callback: Actor.LeaveEventSignalCallback): number - connect_after(sigName: "leave-event", callback: Actor.LeaveEventSignalCallback): number - emit(sigName: "leave-event", event: Event, ...args: any[]): void - connect(sigName: "motion-event", callback: Actor.MotionEventSignalCallback): number - connect_after(sigName: "motion-event", callback: Actor.MotionEventSignalCallback): number - emit(sigName: "motion-event", event: Event, ...args: any[]): void - connect(sigName: "parent-set", callback: Actor.ParentSetSignalCallback): number - connect_after(sigName: "parent-set", callback: Actor.ParentSetSignalCallback): number - emit(sigName: "parent-set", old_parent: Actor | null, ...args: any[]): void - connect(sigName: "pick", callback: Actor.PickSignalCallback): number - connect_after(sigName: "pick", callback: Actor.PickSignalCallback): number - emit(sigName: "pick", pick_context: PickContext, ...args: any[]): void - connect(sigName: "queue-relayout", callback: Actor.QueueRelayoutSignalCallback): number - connect_after(sigName: "queue-relayout", callback: Actor.QueueRelayoutSignalCallback): number - emit(sigName: "queue-relayout", ...args: any[]): void - connect(sigName: "realize", callback: Actor.RealizeSignalCallback): number - connect_after(sigName: "realize", callback: Actor.RealizeSignalCallback): number - emit(sigName: "realize", ...args: any[]): void - connect(sigName: "resource-scale-changed", callback: Actor.ResourceScaleChangedSignalCallback): number - connect_after(sigName: "resource-scale-changed", callback: Actor.ResourceScaleChangedSignalCallback): number - emit(sigName: "resource-scale-changed", ...args: any[]): void - connect(sigName: "scroll-event", callback: Actor.ScrollEventSignalCallback): number - connect_after(sigName: "scroll-event", callback: Actor.ScrollEventSignalCallback): number - emit(sigName: "scroll-event", event: Event, ...args: any[]): void - connect(sigName: "show", callback: Actor.ShowSignalCallback): number - connect_after(sigName: "show", callback: Actor.ShowSignalCallback): number - emit(sigName: "show", ...args: any[]): void - connect(sigName: "stage-views-changed", callback: Actor.StageViewsChangedSignalCallback): number - connect_after(sigName: "stage-views-changed", callback: Actor.StageViewsChangedSignalCallback): number - emit(sigName: "stage-views-changed", ...args: any[]): void - connect(sigName: "touch-event", callback: Actor.TouchEventSignalCallback): number - connect_after(sigName: "touch-event", callback: Actor.TouchEventSignalCallback): number - emit(sigName: "touch-event", event: Event, ...args: any[]): void - connect(sigName: "transition-stopped", callback: Actor.TransitionStoppedSignalCallback): number - connect_after(sigName: "transition-stopped", callback: Actor.TransitionStoppedSignalCallback): number - emit(sigName: "transition-stopped", name: string | null, is_finished: boolean, ...args: any[]): void - connect(sigName: "transitions-completed", callback: Actor.TransitionsCompletedSignalCallback): number - connect_after(sigName: "transitions-completed", callback: Actor.TransitionsCompletedSignalCallback): number - emit(sigName: "transitions-completed", ...args: any[]): void - connect(sigName: "unrealize", callback: Actor.UnrealizeSignalCallback): number - connect_after(sigName: "unrealize", callback: Actor.UnrealizeSignalCallback): number - emit(sigName: "unrealize", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Actor - - connect(sigName: "notify::actions", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actions", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actions", ...args: any[]): void - connect(sigName: "notify::allocation", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allocation", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allocation", ...args: any[]): void - connect(sigName: "notify::background-color", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::background-color", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::background-color", ...args: any[]): void - connect(sigName: "notify::background-color-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::background-color-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::background-color-set", ...args: any[]): void - connect(sigName: "notify::child-transform", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transform", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transform", ...args: any[]): void - connect(sigName: "notify::child-transform-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transform-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transform-set", ...args: any[]): void - connect(sigName: "notify::clip-rect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::clip-rect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::clip-rect", ...args: any[]): void - connect(sigName: "notify::clip-to-allocation", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::clip-to-allocation", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::clip-to-allocation", ...args: any[]): void - connect(sigName: "notify::color-state", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::color-state", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::color-state", ...args: any[]): void - connect(sigName: "notify::constraints", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::constraints", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::constraints", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::content-box", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-box", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-box", ...args: any[]): void - connect(sigName: "notify::content-gravity", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-gravity", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-gravity", ...args: any[]): void - connect(sigName: "notify::content-repeat", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-repeat", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-repeat", ...args: any[]): void - connect(sigName: "notify::effect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::effect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::effect", ...args: any[]): void - connect(sigName: "notify::first-child", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::first-child", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::first-child", ...args: any[]): void - connect(sigName: "notify::fixed-position-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-position-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-position-set", ...args: any[]): void - connect(sigName: "notify::fixed-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-x", ...args: any[]): void - connect(sigName: "notify::fixed-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-y", ...args: any[]): void - connect(sigName: "notify::has-clip", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-clip", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-clip", ...args: any[]): void - connect(sigName: "notify::has-pointer", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-pointer", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-pointer", ...args: any[]): void - connect(sigName: "notify::height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height", ...args: any[]): void - connect(sigName: "notify::last-child", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::last-child", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::last-child", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::magnification-filter", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::magnification-filter", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::magnification-filter", ...args: any[]): void - connect(sigName: "notify::mapped", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mapped", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mapped", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-left", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-left", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-left", ...args: any[]): void - connect(sigName: "notify::margin-right", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-right", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-right", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::min-height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-height", ...args: any[]): void - connect(sigName: "notify::min-height-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-height-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-height-set", ...args: any[]): void - connect(sigName: "notify::min-width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-width", ...args: any[]): void - connect(sigName: "notify::min-width-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-width-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-width-set", ...args: any[]): void - connect(sigName: "notify::minification-filter", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::minification-filter", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::minification-filter", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::natural-height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-height", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-height", ...args: any[]): void - connect(sigName: "notify::natural-height-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-height-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-height-set", ...args: any[]): void - connect(sigName: "notify::natural-width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-width", ...args: any[]): void - connect(sigName: "notify::natural-width-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-width-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-width-set", ...args: any[]): void - connect(sigName: "notify::offscreen-redirect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::offscreen-redirect", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::offscreen-redirect", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::pivot-point", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pivot-point", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pivot-point", ...args: any[]): void - connect(sigName: "notify::pivot-point-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pivot-point-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pivot-point-z", ...args: any[]): void - connect(sigName: "notify::position", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::position", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::position", ...args: any[]): void - connect(sigName: "notify::reactive", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reactive", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reactive", ...args: any[]): void - connect(sigName: "notify::realized", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::realized", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::realized", ...args: any[]): void - connect(sigName: "notify::request-mode", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::request-mode", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::request-mode", ...args: any[]): void - connect(sigName: "notify::rotation-angle-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-x", ...args: any[]): void - connect(sigName: "notify::rotation-angle-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-y", ...args: any[]): void - connect(sigName: "notify::rotation-angle-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-z", ...args: any[]): void - connect(sigName: "notify::scale-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-x", ...args: any[]): void - connect(sigName: "notify::scale-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-y", ...args: any[]): void - connect(sigName: "notify::scale-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-z", ...args: any[]): void - connect(sigName: "notify::show-on-set-parent", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-on-set-parent", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-on-set-parent", ...args: any[]): void - connect(sigName: "notify::size", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::size", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::size", ...args: any[]): void - connect(sigName: "notify::text-direction", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text-direction", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text-direction", ...args: any[]): void - connect(sigName: "notify::transform", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transform", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transform", ...args: any[]): void - connect(sigName: "notify::transform-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transform-set", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transform-set", ...args: any[]): void - connect(sigName: "notify::translation-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-x", ...args: any[]): void - connect(sigName: "notify::translation-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-y", ...args: any[]): void - connect(sigName: "notify::translation-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-z", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-z", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width", ...args: any[]): void - connect(sigName: "notify::x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x", ...args: any[]): void - connect(sigName: "notify::x-align", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-align", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-align", ...args: any[]): void - connect(sigName: "notify::x-expand", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-expand", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-expand", ...args: any[]): void - connect(sigName: "notify::y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y", ...args: any[]): void - connect(sigName: "notify::y-align", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-align", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-align", ...args: any[]): void - connect(sigName: "notify::y-expand", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-expand", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-expand", ...args: any[]): void - connect(sigName: "notify::z-position", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::z-position", callback: (($obj: Actor, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::z-position", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * The basic element of the scene graph - * - * The ClutterActor class is the basic element of the scene graph in Clutter, - * and it encapsulates the position, size, and transformations of a node in - * the graph. - * - * ## Actor transformations - * - * Each actor can be transformed using methods like [method`Actor`.set_scale] - * or [method`Actor`.set_rotation_angle]. The order in which the transformations are - * applied is decided by Clutter and it is the following: - * - * 1. translation by the origin of the [property`Actor:`allocation] property - * 2. translation by the actor's [property`Actor:`z-position] property - * 3. translation by the actor's [property`Actor:`pivot-point] property - * 4. scaling by the [property`Actor:`scale-x] and [property`Actor:`scale-y] factors - * 5. rotation around the [property`Actor:`rotation-angle-x] - * 6. rotation around the [property`Actor:`rotation-angle-y] - * 7. rotation around the [property`Actor:`rotation-angle-z] - * 8. negative translation by the actor's [property`Actor:`pivot-point] - * - * ## Modifying an actor's geometry - * - * Each actor has a bounding box, called [property`Actor:`allocation] - * which is either set by its parent or explicitly through the - * [method`Actor`.set_position] and [method`Actor`.set_size] methods. - * Each actor also has an implicit preferred size. - * - * An actor’s preferred size can be defined by any subclass by - * overriding the [vfunc`Actor`.get_preferred_width] and the - * [vfunc`Actor`.get_preferred_height] virtual functions, or it can - * be explicitly set by using [method`Actor`.set_width] and - * [method`Actor`.set_height]. - * - * An actor’s position can be set explicitly by using - * [method`Actor`.set_x] and [method`Actor`.set_y]; the coordinates are - * relative to the origin of the actor’s parent. - * - * ## Managing actor children - * - * Each actor can have multiple children, by calling - * clutter_actor_add_child() to add a new child actor, and - * clutter_actor_remove_child() to remove an existing child. #ClutterActor - * will hold a reference on each child actor, which will be released when - * the child is removed from its parent, or destroyed using - * clutter_actor_destroy(). - * - * ```c - * ClutterActor *actor = clutter_actor_new (); - * - * // set the bounding box of the actor - * clutter_actor_set_position (actor, 0, 0); - * clutter_actor_set_size (actor, 480, 640); - * - * // set the background color of the actor - * clutter_actor_set_background_color (actor, CLUTTER_COLOR_Orange); - * - * // set the bounding box of the child, relative to the parent - * ClutterActor *child = clutter_actor_new (); - * clutter_actor_set_position (child, 20, 20); - * clutter_actor_set_size (child, 80, 240); - * - * // set the background color of the child - * clutter_actor_set_background_color (child, CLUTTER_COLOR_Blue); - * - * // add the child to the actor - * clutter_actor_add_child (actor, child); - * ``` - * - * Children can be inserted at a given index, or above and below - * another child actor. The order of insertion determines the order of the - * children when iterating over them. Iterating over children is performed - * by using clutter_actor_get_first_child(), clutter_actor_get_previous_sibling(), - * clutter_actor_get_next_sibling(), and clutter_actor_get_last_child(). It is - * also possible to retrieve a list of children by using - * clutter_actor_get_children(), as well as retrieving a specific child at a - * given index by using clutter_actor_get_child_at_index(). - * - * If you need to track additions of children to a #ClutterActor, use - * the #ClutterContainer::actor-added signal; similarly, to track removals - * of children from a ClutterActor, use the #ClutterContainer::actor-removed - * signal. - * - * See [basic-actor.c](https://git.gnome.org/browse/clutter/tree/examples/basic-actor.c?h=clutter-1.18). - * - * ## Painting an actor - * - * There are three ways to paint an actor: - * - * - set a delegate #ClutterContent as the value for the #ClutterActor:content property of the actor - * - subclass #ClutterActor and override the #ClutterActorClass.paint_node() virtual function - * - subclass #ClutterActor and override the #ClutterActorClass.paint() virtual function. - * - * A #ClutterContent is a delegate object that takes over the painting - * operations of one, or more actors. The #ClutterContent painting will - * be performed on top of the #ClutterActor:background-color of the actor, - * and before calling the actor's own implementation of the - * #ClutterActorClass.paint_node() virtual function. - * - * ```c - * ClutterActor *actor = clutter_actor_new (); - * - * // set the bounding box - * clutter_actor_set_position (actor, 50, 50); - * clutter_actor_set_size (actor, 100, 100); - * - * // set the content; the image_content variable is set elsewhere - * clutter_actor_set_content (actor, image_content); - * ``` - * - * The #ClutterActorClass.paint_node() virtual function is invoked whenever - * an actor needs to be painted. The implementation of the virtual function - * must only paint the contents of the actor itself, and not the contents of - * its children, if the actor has any. - * - * The #ClutterPaintNode passed to the virtual function is the local root of - * the render tree; any node added to it will be rendered at the correct - * position, as defined by the actor's #ClutterActor:allocation. - * - * ```c - * static void - * my_actor_paint_node (ClutterActor *actor, - * ClutterPaintNode *root) - * { - * ClutterPaintNode *node; - * ClutterActorBox box; - * - * // where the content of the actor should be painted - * clutter_actor_get_allocation_box (actor, &box); - * - * // the cogl_texture variable is set elsewhere - * node = clutter_texture_node_new (cogl_texture, CLUTTER_COLOR_White, - * CLUTTER_SCALING_FILTER_TRILINEAR, - * CLUTTER_SCALING_FILTER_LINEAR); - * - * // paint the content of the node using the allocation - * clutter_paint_node_add_rectangle (node, &box); - * - * // add the node, and transfer ownership - * clutter_paint_node_add_child (root, node); - * clutter_paint_node_unref (node); - * } - * ``` - * - * The #ClutterActorClass.paint() virtual function function gives total - * control to the paint sequence of the actor itself, including the - * children of the actor, if any. It is strongly discouraged to override - * the #ClutterActorClass.paint() virtual function and it will be removed - * when the Clutter API changes. - * - * ## Handling events on an actor - * - * A #ClutterActor can receive and handle input device events, for - * instance pointer events and key events, as long as its - * #ClutterActor:reactive property is set to %TRUE. - * - * Once an actor has been determined to be the source of an event, - * Clutter will traverse the scene graph from the top-level actor towards the - * event source, emitting the #ClutterActor::captured-event signal on each - * ancestor until it reaches the source; this phase is also called - * the "capture" phase. If the event propagation was not stopped, the graph - * is walked backwards, from the source actor to the top-level, and the - * #ClutterActor::event signal is emitted, alongside eventual event-specific - * signals like #ClutterActor::button-press-event or #ClutterActor::motion-event; - * this phase is also called the "bubble" phase. - * - * At any point of the signal emission, signal handlers can stop the propagation - * through the scene graph by returning %CLUTTER_EVENT_STOP; otherwise, they can - * continue the propagation by returning %CLUTTER_EVENT_PROPAGATE. - * - * ## Animation - * - * Animation is a core concept of modern user interfaces; Clutter provides a - * complete and powerful animation framework that automatically tweens the - * actor's state without requiring direct, frame by frame manipulation from - * your application code. You have two models at your disposal: - * - * - an implicit animation model - * - an explicit animation model - * - * The implicit animation model of Clutter assumes that all the - * changes in an actor state should be gradual and asynchronous; Clutter - * will automatically transition an actor's property change between the - * current state and the desired one without manual intervention, if the - * property is defined to be animatable in its documentation. - * - * By default, in the 1.0 API series, the transition happens with a duration - * of zero milliseconds, and the implicit animation is an opt in feature to - * retain backwards compatibility. - * - * Implicit animations depend on the current easing state; in order to use - * the default easing state for an actor you should call the - * clutter_actor_save_easing_state() function: - * - * ```c - * // assume that the actor is currently positioned at (100, 100) - * - * // store the current easing state and reset the new easing state to - * // its default values - * clutter_actor_save_easing_state (actor); - * - * // change the actor's position - * clutter_actor_set_position (actor, 500, 500); - * - * // restore the previously saved easing state - * clutter_actor_restore_easing_state (actor); - * ``` - * - * The example above will trigger an implicit animation of the - * actor between its current position to a new position. - * - * Implicit animations use a default duration of 250 milliseconds, - * and a default easing mode of %CLUTTER_EASE_OUT_CUBIC, unless you call - * clutter_actor_set_easing_mode() and clutter_actor_set_easing_duration() - * after changing the easing state of the actor. - * - * It is possible to animate multiple properties of an actor - * at the same time, and you can animate multiple actors at the same - * time as well, for instance: - * - * ```c - * clutter_actor_save_easing_state (actor); - * - * // animate the actor's opacity and depth - * clutter_actor_set_opacity (actor, 0); - * clutter_actor_set_z_position (actor, -100); - * - * clutter_actor_restore_easing_state (actor); - * - * clutter_actor_save_easing_state (another_actor); - * - * // animate another actor's opacity - * clutter_actor_set_opacity (another_actor, 255); - * clutter_actor_set_z_position (another_actor, 100); - * - * clutter_actor_restore_easing_state (another_actor); - * ``` - * - * Changing the easing state will affect all the following property - * transitions, but will not affect existing transitions. - * - * It is important to note that if you modify the state on an - * animatable property while a transition is in flight, the transition's - * final value will be updated, as well as its duration and progress - * mode by using the current easing state; for instance, in the following - * example: - * - * ```c - * clutter_actor_save_easing_state (actor); - * clutter_actor_set_easing_duration (actor, 1000); - * clutter_actor_set_x (actor, 200); - * clutter_actor_restore_easing_state (actor); - * - * clutter_actor_save_easing_state (actor); - * clutter_actor_set_easing_duration (actor, 500); - * clutter_actor_set_x (actor, 100); - * clutter_actor_restore_easing_state (actor); - * ``` - * - * the first call to clutter_actor_set_x() will begin a transition - * of the #ClutterActor:x property from the current value to the value of - * 200 over a duration of one second; the second call to clutter_actor_set_x() - * will change the transition's final value to 100 and the duration to 500 - * milliseconds. - * - * It is possible to receive a notification of the completion of an - * implicit transition by using the #ClutterActor::transition-stopped - * signal, decorated with the name of the property. In case you want to - * know when all the currently in flight transitions are complete, use - * the #ClutterActor::transitions-completed signal instead. - * - * It is possible to retrieve the #ClutterTransition used by the - * animatable properties by using clutter_actor_get_transition() and using - * the property name as the transition name. - * - * The explicit animation model supported by Clutter requires that - * you create a #ClutterTransition object, and optionally set the initial - * and final values. The transition will not start unless you add it to the - * #ClutterActor. - * - * ```c - * ClutterTransition *transition; - * - * transition = clutter_property_transition_new_for_actor (actor, "opacity"); - * clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 3000); - * clutter_timeline_set_repeat_count (CLUTTER_TIMELINE (transition), 2); - * clutter_timeline_set_auto_reverse (CLUTTER_TIMELINE (transition), TRUE); - * clutter_transition_set_from (transition, G_TYPE_UINT, 255); - * clutter_transition_set_to (transition, G_TYPE_UINT, 0); - * - * clutter_actor_add_transition (actor, "animate-opacity", transition); - * ``` - * - * The example above will animate the #ClutterActor:opacity property - * of an actor between fully opaque and fully transparent, and back, over - * a span of 3 seconds. The animation does not begin until it is added to - * the actor. - * - * The explicit animation API applies to all #GObject properties, - * as well as the custom properties defined through the #ClutterAnimatable - * interface, regardless of whether they are defined as implicitly - * animatable or not. - * - * The explicit animation API should also be used when using custom - * animatable properties for #ClutterAction, #ClutterConstraint, and - * #ClutterEffect instances associated to an actor; see the section on - * custom animatable properties below for an example. - * - * Finally, explicit animations are useful for creating animations - * that run continuously, for instance: - * - * ```c - * // this animation will pulse the actor's opacity continuously - * ClutterTransition *transition; - * ClutterInterval *interval; - * - * transition = clutter_property_transition_new_for_actor (actor, "opacity"); - * - * // we want to animate the opacity between 0 and 255 - * clutter_transition_set_from (transition, G_TYPE_UINT, 0); - * clutter_transition_set_to (transition, G_TYPE_UINT, 255); - * - * // over a one second duration, running an infinite amount of times - * clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 1000); - * clutter_timeline_set_repeat_count (CLUTTER_TIMELINE (transition), -1); - * - * // we want to fade in and out, so we need to auto-reverse the transition - * clutter_timeline_set_auto_reverse (CLUTTER_TIMELINE (transition), TRUE); - * - * // and we want to use an easing function that eases both in and out - * clutter_timeline_set_progress_mode (CLUTTER_TIMELINE (transition), - * CLUTTER_EASE_IN_OUT_CUBIC); - * - * // add the transition to the desired actor to start it - * clutter_actor_add_transition (actor, "opacityAnimation", transition); - * ``` - * - * ## Implementing an actor - * - * Careful consideration should be given when deciding to implement - * a #ClutterActor sub-class. It is generally recommended to implement a - * sub-class of #ClutterActor only for actors that should be used as leaf - * nodes of a scene graph. - * - * By overriding the #ClutterActorClass.get_preferred_width() and - * #ClutterActorClass.get_preferred_height() virtual functions it is - * possible to change or provide the preferred size of an actor; similarly, - * by overriding the #ClutterActorClass.allocate() virtual function it is - * possible to control the layout of the children of an actor. Make sure to - * always chain up to the parent implementation of the - * #ClutterActorClass.allocate() virtual function. - * - * In general, it is strongly encouraged to use delegation and composition - * instead of direct subclassing. - * - * ## ClutterActor custom properties for ClutterScript - * - * #ClutterActor defines a custom "rotation" property which allows a short-hand - * description of the rotations to be applied to an actor. - * - * The syntax of the "rotation" property is the following: - * - * ``` - * "rotation" : [ { "" : [ , [ ] ] } ] - * ``` - * - * where: - * - * - axis is the name of an enumeration value of type #ClutterRotateAxis - * - angle is a floating point value representing the rotation angle on the given axis in degrees - * - center-point is an optional array, and if present it must contain the center of rotation as described by two coordinates: - * - Y and Z for "x-axis" - * - X and Z for "y-axis" - * - X and Y for "z-axis". - * - * #ClutterActor also defines a scriptable "margin" property which follows the CSS "margin" shorthand. - * - * ``` - * // 4 values - * "margin" : [ top, right, bottom, left ] - * // 3 values - * "margin" : [ top, left/right, bottom ] - * // 2 values - * "margin" : [ top/bottom, left/right ] - * // 1 value - * "margin" : [ top/right/bottom/left ] - * ``` - * - * #ClutterActor will also parse every positional and dimensional - * property defined as a string through clutter_units_from_string(); you - * should read the documentation for the #ClutterUnits parser format for - * the valid units and syntax. - * - * ## Custom animatable properties - * - * #ClutterActor allows accessing properties of #ClutterAction, - * #ClutterEffect, and #ClutterConstraint instances associated to an actor - * instance for animation purposes, as well as its #ClutterLayoutManager. - * - * In order to access a specific #ClutterAction or a #ClutterConstraint - * property it is necessary to set the #ClutterActorMeta:name property on the - * given action or constraint. - * - * The property can be accessed using the following syntax: - * - * ``` - * `<`section>.. - * ``` - * - * - the initial ```` is mandatory - * - the `section` fragment can be one between "actions", "constraints", "content", - * and "effects" - * - the `meta-name` fragment is the name of the action, effect, or constraint, as - * specified by the #ClutterActorMeta:name property of #ClutterActorMeta - * - the `property-name` fragment is the name of the action, effect, or constraint - * property to be animated. - * - * The example below animates a #ClutterBindConstraint applied to an actor - * using an explicit transition. The `rect` actor has a binding constraint - * on the `origin` actor, and in its initial state is overlapping the actor - * to which is bound to. - * - * As the actor has only one #ClutterLayoutManager, the syntax for accessing its - * properties is simpler: - * - * ``` - * `layout`. - * ``` - * - * ```c - * constraint = clutter_bind_constraint_new (origin, CLUTTER_BIND_X, 0.0); - * clutter_actor_meta_set_name (CLUTTER_ACTOR_META (constraint), "bind-x"); - * clutter_actor_add_constraint (rect, constraint); - * - * constraint = clutter_bind_constraint_new (origin, CLUTTER_BIND_Y, 0.0); - * clutter_actor_meta_set_name (CLUTTER_ACTOR_META (constraint), "bind-y"); - * clutter_actor_add_constraint (rect, constraint); - * - * clutter_actor_set_reactive (origin, TRUE); - * - * g_signal_connect (origin, "button-press-event", - * G_CALLBACK (on_button_press), - * rect); - * ``` - * - * On button press, the rectangle "slides" from behind the actor to - * which is bound to, using the #ClutterBindConstraint:offset property to - * achieve the effect: - * - * ```c - * gboolean - * on_button_press (ClutterActor *origin, - * ClutterEvent *event, - * ClutterActor *rect) - * { - * ClutterTransition *transition; - * - * // the offset that we want to apply; this will make the actor - * // slide in from behind the origin and rest at the right of - * // the origin, plus a padding value - * float new_offset = clutter_actor_get_width (origin) + h_padding; - * - * // the property we wish to animate; the "`constraints"` section - * // tells Clutter to check inside the constraints associated - * // with the actor; the "bind-x" section is the name of the - * // constraint; and the "offset" is the name of the property - * // on the constraint - * const char *prop = "`constraints`.bind-x.offset"; - * - * // create a new transition for the given property - * transition = clutter_property_transition_new_for_actor (rect, prop); - * - * // set the easing mode and duration - * clutter_timeline_set_progress_mode (CLUTTER_TIMELINE (transition), - * CLUTTER_EASE_OUT_CUBIC); - * clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 500); - * - * // create the interval with the initial and final values - * clutter_transition_set_from (transition, G_TYPE_FLOAT, 0.f); - * clutter_transition_set_to (transition, G_TYPE_FLOAT, new_offset); - * - * // add the transition to the actor; this causes the animation - * // to start. the name "offsetAnimation" can be used to retrieve - * // the transition later - * clutter_actor_add_transition (rect, "offsetAnimation", transition); - * - * // we handled the event - * return CLUTTER_EVENT_STOP; - * } - * ``` - * @class - */ -class Actor extends GObject.InitiallyUnowned { - - // Own properties of Clutter-13.Clutter.Actor - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Actor - - constructor(config?: Actor.ConstructorProperties) - /** - * Creates a new #ClutterActor. - * - * A newly created actor has a floating reference, which will be sunk - * when it is added to another actor. - * @constructor - * @returns the newly created #ClutterActor - */ - constructor() - /** - * Creates a new #ClutterActor. - * - * A newly created actor has a floating reference, which will be sunk - * when it is added to another actor. - * @constructor - * @returns the newly created #ClutterActor - */ - static new(): Actor - _init(config?: Actor.ConstructorProperties): void -} - -module ActorMeta { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.ActorMeta - - /** - * Whether or not the #ClutterActorMeta is enabled - */ - enabled?: boolean | null - /** - * The unique name to access the #ClutterActorMeta - */ - name?: string | null - } - -} - -interface ActorMeta { - - // Own properties of Clutter-13.Clutter.ActorMeta - - /** - * The #ClutterActor attached to the #ClutterActorMeta instance - */ - readonly actor: Actor - /** - * Whether or not the #ClutterActorMeta is enabled - */ - enabled: boolean - /** - * The unique name to access the #ClutterActorMeta - */ - name: string | null - - // Own fields of Clutter-13.Clutter.ActorMeta - - parent_instance: GObject.InitiallyUnowned - - // Owm methods of Clutter-13.Clutter.ActorMeta - - /** - * Retrieves a pointer to the [class`Actor]` that owns `meta` - * @returns a pointer to a #ClutterActor or %NULL - */ - get_actor(): Actor - /** - * Retrieves whether `meta` is enabled - * @returns %TRUE if the #ClutterActorMeta instance is enabled - */ - get_enabled(): boolean - /** - * Retrieves the name set using [method`ActorMeta`.set_name] - * @returns the name of the #ClutterActorMeta instance, or %NULL if none was set. The returned string is owned by the #ClutterActorMeta instance and it should not be modified or freed - */ - get_name(): string | null - /** - * Sets whether `meta` should be enabled or not - * @param is_enabled whether `meta` is enabled - */ - set_enabled(is_enabled: boolean): void - /** - * Sets the name of `meta` - * - * The name can be used to identify the #ClutterActorMeta instance - * @param name the name of `meta` - */ - set_name(name: string | null): void - - // Own virtual methods of Clutter-13.Clutter.ActorMeta - - /** - * Virtual function, called when `meta` is attached or detached - * from a #ClutterActor. - * @virtual - * @param actor the actor attached to `meta,` or %NULL - */ - vfunc_set_actor(actor: Actor | null): void - /** - * Sets whether `meta` should be enabled or not - * @virtual - * @param is_enabled whether `meta` is enabled - */ - vfunc_set_enabled(is_enabled: boolean): void - - // Class property signals of Clutter-13.Clutter.ActorMeta - - connect(sigName: "notify::actor", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ActorMeta, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Base class of actor modifiers - * - * #ClutterActorMeta is an abstract class providing a common API for - * modifiers of [class`Actor]` behaviour, appearance or layout. - * - * A #ClutterActorMeta can only be owned by a single [class`Actor]` at - * any time. - * - * Every sub-class of #ClutterActorMeta should check if the - * [property`ActorMeta:`enabled] property is set to %TRUE before applying - * any kind of modification. - * @class - */ -class ActorMeta extends GObject.InitiallyUnowned { - - // Own properties of Clutter-13.Clutter.ActorMeta - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.ActorMeta - - constructor(config?: ActorMeta.ConstructorProperties) - _init(config?: ActorMeta.ConstructorProperties): void -} - -interface ActorNode { -} - -class ActorNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.ActorNode - - static name: string - - // Constructors of Clutter-13.Clutter.ActorNode - - constructor(actor: Actor, opacity: number) - static new(actor: Actor, opacity: number): ActorNode -} - -module AlignConstraint { - - // Constructor properties interface - - interface ConstructorProperties extends Constraint.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.AlignConstraint - - /** - * The axis to be used to compute the alignment - */ - align_axis?: AlignAxis | null - /** - * The alignment factor, as a normalized value between 0.0 and 1.0 - * - * The factor depends on the #ClutterAlignConstraint:align-axis property: - * with an align-axis value of %CLUTTER_ALIGN_X_AXIS, 0.0 means left and - * 1.0 means right; with a value of %CLUTTER_ALIGN_Y_AXIS, 0.0 means top - * and 1.0 means bottom. - */ - factor?: number | null - /** - * The pivot point used by the constraint. The pivot point is the - * point in the constraint actor around which the aligning is applied, - * with (0, 0) being the top left corner of the actor and (1, 1) the - * bottom right corner of the actor. - * - * For example, setting the pivot point to (0.5, 0.5) and using a factor - * of 1 for both axes will align the actors horizontal and vertical - * center point with the bottom right corner of the source actor. - * - * By default, the pivot point is set to (-1, -1), which means it's not - * used and the constrained actor will be aligned to always stay inside - * the source actor. - */ - pivot_point?: Graphene.Point | null - /** - * The #ClutterActor used as the source for the alignment. - * - * The #ClutterActor must not be a child or a grandchild of the actor - * using the constraint. - */ - source?: Actor | null - } - -} - -interface AlignConstraint { - - // Own properties of Clutter-13.Clutter.AlignConstraint - - /** - * The axis to be used to compute the alignment - */ - align_axis: AlignAxis - /** - * The alignment factor, as a normalized value between 0.0 and 1.0 - * - * The factor depends on the #ClutterAlignConstraint:align-axis property: - * with an align-axis value of %CLUTTER_ALIGN_X_AXIS, 0.0 means left and - * 1.0 means right; with a value of %CLUTTER_ALIGN_Y_AXIS, 0.0 means top - * and 1.0 means bottom. - */ - factor: number - /** - * The pivot point used by the constraint. The pivot point is the - * point in the constraint actor around which the aligning is applied, - * with (0, 0) being the top left corner of the actor and (1, 1) the - * bottom right corner of the actor. - * - * For example, setting the pivot point to (0.5, 0.5) and using a factor - * of 1 for both axes will align the actors horizontal and vertical - * center point with the bottom right corner of the source actor. - * - * By default, the pivot point is set to (-1, -1), which means it's not - * used and the constrained actor will be aligned to always stay inside - * the source actor. - */ - pivot_point: Graphene.Point - /** - * The #ClutterActor used as the source for the alignment. - * - * The #ClutterActor must not be a child or a grandchild of the actor - * using the constraint. - */ - source: Actor - - // Owm methods of Clutter-13.Clutter.AlignConstraint - - /** - * Retrieves the value set using clutter_align_constraint_set_align_axis() - * @returns the alignment axis - */ - get_align_axis(): AlignAxis - /** - * Retrieves the factor set using clutter_align_constraint_set_factor() - * @returns the alignment factor - */ - get_factor(): number - /** - * Gets the pivot point used by the constraint set with - * clutter_align_constraint_set_pivot_point(). If no custom pivot - * point is set, -1 is set. - */ - get_pivot_point(): /* pivot_point */ Graphene.Point - /** - * Retrieves the source of the alignment - * @returns the #ClutterActor used as the source of the alignment - */ - get_source(): Actor - /** - * Sets the axis to which the alignment refers to - * @param axis the axis to which the alignment refers to - */ - set_align_axis(axis: AlignAxis): void - /** - * Sets the alignment factor of the constraint - * - * The factor depends on the #ClutterAlignConstraint:align-axis property - * and it is a value between 0.0 (meaning left, when - * #ClutterAlignConstraint:align-axis is set to %CLUTTER_ALIGN_X_AXIS; or - * meaning top, when #ClutterAlignConstraint:align-axis is set to - * %CLUTTER_ALIGN_Y_AXIS) and 1.0 (meaning right, when - * #ClutterAlignConstraint:align-axis is set to %CLUTTER_ALIGN_X_AXIS; or - * meaning bottom, when #ClutterAlignConstraint:align-axis is set to - * %CLUTTER_ALIGN_Y_AXIS). A value of 0.5 aligns in the middle in either - * cases - * @param factor the alignment factor, between 0.0 and 1.0 - */ - set_factor(factor: number): void - /** - * Sets the pivot point used by the constraint, the pivot point is the - * point in the constraint actor around which the aligning is applied, - * with (0, 0) being the top left corner of the actor and (1, 1) the - * bottom right corner of the actor. - * - * If -1 is used, the pivot point is unset and the constrained actor - * will be aligned to always stay inside the source actor. - * @param pivot_point A #GraphenePoint - */ - set_pivot_point(pivot_point: Graphene.Point): void - /** - * Sets the source of the alignment constraint - * @param source a #ClutterActor, or %NULL to unset the source - */ - set_source(source: Actor | null): void - - // Class property signals of Clutter-13.Clutter.AlignConstraint - - connect(sigName: "notify::align-axis", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::align-axis", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::align-axis", ...args: any[]): void - connect(sigName: "notify::factor", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::factor", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::factor", ...args: any[]): void - connect(sigName: "notify::pivot-point", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pivot-point", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pivot-point", ...args: any[]): void - connect(sigName: "notify::source", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::source", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::source", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: AlignConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A constraint aligning the position of an actor - * - * #ClutterAlignConstraint is a [class`Constraint]` that aligns the position - * of the [class`Actor]` to which it is applied to the size of another - * [class`Actor]` using an alignment factor - * @class - */ -class AlignConstraint extends Constraint { - - // Own properties of Clutter-13.Clutter.AlignConstraint - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.AlignConstraint - - constructor(config?: AlignConstraint.ConstructorProperties) - /** - * Creates a new constraint, aligning a #ClutterActor's position with - * regards of the size of the actor to `source,` with the given - * alignment `factor` - * @constructor - * @param source the #ClutterActor to use as the source of the alignment, or %NULL - * @param axis the axis to be used to compute the alignment - * @param factor the alignment factor, between 0.0 and 1.0 - * @returns the newly created #ClutterAlignConstraint - */ - constructor(source: Actor | null, axis: AlignAxis, factor: number) - /** - * Creates a new constraint, aligning a #ClutterActor's position with - * regards of the size of the actor to `source,` with the given - * alignment `factor` - * @constructor - * @param source the #ClutterActor to use as the source of the alignment, or %NULL - * @param axis the axis to be used to compute the alignment - * @param factor the alignment factor, between 0.0 and 1.0 - * @returns the newly created #ClutterAlignConstraint - */ - static new(source: Actor | null, axis: AlignAxis, factor: number): AlignConstraint - _init(config?: AlignConstraint.ConstructorProperties): void -} - -module Backend { - - // Signal callback interfaces - - /** - * Signal callback interface for `font-changed` - */ - interface FontChangedSignalCallback { - ($obj: Backend): void - } - - /** - * Signal callback interface for `resolution-changed` - */ - interface ResolutionChangedSignalCallback { - ($obj: Backend): void - } - - /** - * Signal callback interface for `settings-changed` - */ - interface SettingsChangedSignalCallback { - ($obj: Backend): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Backend { - - // Owm methods of Clutter-13.Clutter.Backend - - /** - * Retrieves the #CoglContext associated with the given clutter - * `backend`. A #CoglContext is required when using some of the - * experimental 2.0 Cogl API. - * - * Since CoglContext is itself experimental API this API should - * be considered experimental too. - * - * This API is not yet supported on OSX because OSX still - * uses the stub Cogl winsys and the Clutter backend doesn't - * explicitly create a CoglContext. - * @returns The #CoglContext associated with @backend. - */ - get_cogl_context(): Cogl.Context - /** - * Returns the default seat - * @returns the default seat - */ - get_default_seat(): Seat - /** - * Retrieves the font options for `backend`. - * @returns the font options of the #ClutterBackend. The returned #cairo_font_options_t is owned by the backend and should not be modified or freed - */ - get_font_options(): cairo.FontOptions - /** - * Returns the input method used by Clutter - * @returns the input method - */ - get_input_method(): InputMethod - /** - * Gets the resolution for font handling on the screen. - * - * The resolution is a scale factor between points specified in a - * #PangoFontDescription and cairo units. The default value is 96.0, - * meaning that a 10 point font will be 13 units - * high (10 * 96. / 72. = 13.3). - * - * Clutter will set the resolution using the current backend when - * initializing; the resolution is also stored in the - * #ClutterSettings:font-dpi property. - * @returns the current resolution, or -1 if no resolution has been set. - */ - get_resolution(): number - /** - * Sets the new font options for `backend`. The #ClutterBackend will - * copy the #cairo_font_options_t. - * - * If `options` is %NULL, the first following call to - * clutter_backend_get_font_options() will return the default font - * options for `backend`. - * - * This function is intended for actors creating a Pango layout - * using the PangoCairo API. - * @param options Cairo font options for the backend, or %NULL - */ - set_font_options(options: cairo.FontOptions): void - /** - * Sets the input method to be used by Clutter - * @param method the input method - */ - set_input_method(method: InputMethod | null): void - - // Own signals of Clutter-13.Clutter.Backend - - connect(sigName: "font-changed", callback: Backend.FontChangedSignalCallback): number - connect_after(sigName: "font-changed", callback: Backend.FontChangedSignalCallback): number - emit(sigName: "font-changed", ...args: any[]): void - connect(sigName: "resolution-changed", callback: Backend.ResolutionChangedSignalCallback): number - connect_after(sigName: "resolution-changed", callback: Backend.ResolutionChangedSignalCallback): number - emit(sigName: "resolution-changed", ...args: any[]): void - connect(sigName: "settings-changed", callback: Backend.SettingsChangedSignalCallback): number - connect_after(sigName: "settings-changed", callback: Backend.SettingsChangedSignalCallback): number - emit(sigName: "settings-changed", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Backend - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Backend abstraction - * - * Clutter can be compiled against different backends. Each backend - * has to implement a set of functions, in order to be used by Clutter. - * - * #ClutterBackend is the base class abstracting the various implementation; - * it provides a basic API to query the backend for generic information - * and settings. - * @class - */ -class Backend extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Backend - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Backend - - constructor(config?: Backend.ConstructorProperties) - _init(config?: Backend.ConstructorProperties): void -} - -module BinLayout { - - // Constructor properties interface - - interface ConstructorProperties extends LayoutManager.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.BinLayout - - /** - * The default horizontal alignment policy for actors managed - * by the #ClutterBinLayout - */ - x_align?: BinAlignment | null - /** - * The default vertical alignment policy for actors managed - * by the #ClutterBinLayout - */ - y_align?: BinAlignment | null - } - -} - -interface BinLayout { - - // Own properties of Clutter-13.Clutter.BinLayout - - /** - * The default horizontal alignment policy for actors managed - * by the #ClutterBinLayout - */ - x_align: BinAlignment - /** - * The default vertical alignment policy for actors managed - * by the #ClutterBinLayout - */ - y_align: BinAlignment - - // Class property signals of Clutter-13.Clutter.BinLayout - - connect(sigName: "notify::x-align", callback: (($obj: BinLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-align", callback: (($obj: BinLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-align", ...args: any[]): void - connect(sigName: "notify::y-align", callback: (($obj: BinLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-align", callback: (($obj: BinLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-align", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A simple layout manager - * - * #ClutterBinLayout is a layout manager which implements the following - * policy: - * - * - the preferred size is the maximum preferred size - * between all the children of the container using the - * layout; - * - each child is allocated in "layers", on on top - * of the other; - * - for each layer there are horizontal and vertical - * alignment policies. - * - * The [bin-layout example](https://git.gnome.org/browse/clutter/tree/examples/bin-layout.c?h=clutter-1.18) - * shows how to pack actors inside a #ClutterBinLayout. - * @class - */ -class BinLayout extends LayoutManager { - - // Own properties of Clutter-13.Clutter.BinLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BinLayout - - constructor(config?: BinLayout.ConstructorProperties) - /** - * Creates a new #ClutterBinLayout layout manager - * @constructor - * @param x_align the default alignment policy to be used on the horizontal axis - * @param y_align the default alignment policy to be used on the vertical axis - * @returns the newly created layout manager - */ - constructor(x_align: BinAlignment, y_align: BinAlignment) - /** - * Creates a new #ClutterBinLayout layout manager - * @constructor - * @param x_align the default alignment policy to be used on the horizontal axis - * @param y_align the default alignment policy to be used on the vertical axis - * @returns the newly created layout manager - */ - static new(x_align: BinAlignment, y_align: BinAlignment): BinLayout - _init(config?: BinLayout.ConstructorProperties): void -} - -module BindConstraint { - - // Constructor properties interface - - interface ConstructorProperties extends Constraint.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.BindConstraint - - /** - * The coordinate to be bound - */ - coordinate?: BindCoordinate | null - /** - * The offset, in pixels, to be applied to the binding - */ - offset?: number | null - /** - * The #ClutterActor used as the source for the binding. - * - * The #ClutterActor must not be contained inside the actor associated - * to the constraint. - */ - source?: Actor | null - } - -} - -interface BindConstraint { - - // Own properties of Clutter-13.Clutter.BindConstraint - - /** - * The coordinate to be bound - */ - coordinate: BindCoordinate - /** - * The offset, in pixels, to be applied to the binding - */ - offset: number - /** - * The #ClutterActor used as the source for the binding. - * - * The #ClutterActor must not be contained inside the actor associated - * to the constraint. - */ - source: Actor - - // Owm methods of Clutter-13.Clutter.BindConstraint - - /** - * Retrieves the bound coordinate of the constraint - * @returns the bound coordinate - */ - get_coordinate(): BindCoordinate - /** - * Retrieves the offset set using clutter_bind_constraint_set_offset() - * @returns the offset, in pixels - */ - get_offset(): number - /** - * Retrieves the #ClutterActor set using clutter_bind_constraint_set_source() - * @returns a pointer to the source actor - */ - get_source(): Actor - /** - * Sets the coordinate to bind in the constraint - * @param coordinate the coordinate to bind - */ - set_coordinate(coordinate: BindCoordinate): void - /** - * Sets the offset to be applied to the constraint - * @param offset the offset to apply, in pixels - */ - set_offset(offset: number): void - /** - * Sets the source #ClutterActor for the constraint - * @param source a #ClutterActor, or %NULL to unset the source - */ - set_source(source: Actor | null): void - - // Class property signals of Clutter-13.Clutter.BindConstraint - - connect(sigName: "notify::coordinate", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::coordinate", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::coordinate", ...args: any[]): void - connect(sigName: "notify::offset", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::offset", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::offset", ...args: any[]): void - connect(sigName: "notify::source", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::source", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::source", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: BindConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A constraint binding the position or size of an actor - * - * #ClutterBindConstraint is a [class`Constraint]` that binds the - * position or the size of the [class`Actor]` to which it is applied - * to the the position or the size of another [class`Actor]`, or - * "source". - * - * An offset can be applied to the constraint, to avoid overlapping. The offset - * can also be animated. For instance, the following code will set up three - * actors to be bound to the same origin: - * - * ```c - * // source - * rect[0] = clutter_actor_new (); - * clutter_actor_set_background_color (rect[0], &red_color); - * clutter_actor_set_position (rect[0], x_pos, y_pos); - * clutter_actor_set_size (rect[0], 100, 100); - * - * // second rectangle - * rect[1] = clutter_actor_new (); - * clutter_actor_set_background_color (rect[1], &green_color); - * clutter_actor_set_size (rect[1], 100, 100); - * clutter_actor_set_opacity (rect[1], 0); - * - * constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_X, 0.0); - * clutter_actor_add_constraint_with_name (rect[1], "green-x", constraint); - * constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_Y, 0.0); - * clutter_actor_add_constraint_with_name (rect[1], "green-y", constraint); - * - * // third rectangle - * rect[2] = clutter_actor_new (); - * clutter_actor_set_background_color (rect[2], &blue_color); - * clutter_actor_set_size (rect[2], 100, 100); - * clutter_actor_set_opacity (rect[2], 0); - * - * constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_X, 0.0); - * clutter_actor_add_constraint_with_name (rect[2], "blue-x", constraint); - * constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_Y, 0.0); - * clutter_actor_add_constraint_with_name (rect[2], "blue-y", constraint); - * ``` - * - * The following code animates the second and third rectangles to "expand" - * them horizontally from underneath the first rectangle: - * - * ```c - * clutter_actor_animate (rect[1], CLUTTER_EASE_OUT_CUBIC, 250, - * "`constraints`.green-x.offset", 100.0, - * "opacity", 255, - * NULL); - * clutter_actor_animate (rect[2], CLUTTER_EASE_OUT_CUBIC, 250, - * "`constraints`.blue-x.offset", 200.0, - * "opacity", 255, - * NULL); - * ``` - * @class - */ -class BindConstraint extends Constraint { - - // Own properties of Clutter-13.Clutter.BindConstraint - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BindConstraint - - constructor(config?: BindConstraint.ConstructorProperties) - /** - * Creates a new constraint, binding a #ClutterActor's position to - * the given `coordinate` of the position of `source` - * @constructor - * @param source the #ClutterActor to use as the source of the binding, or %NULL - * @param coordinate the coordinate to bind - * @param offset the offset to apply to the binding, in pixels - * @returns the newly created #ClutterBindConstraint - */ - constructor(source: Actor | null, coordinate: BindCoordinate, offset: number) - /** - * Creates a new constraint, binding a #ClutterActor's position to - * the given `coordinate` of the position of `source` - * @constructor - * @param source the #ClutterActor to use as the source of the binding, or %NULL - * @param coordinate the coordinate to bind - * @param offset the offset to apply to the binding, in pixels - * @returns the newly created #ClutterBindConstraint - */ - static new(source: Actor | null, coordinate: BindCoordinate, offset: number): BindConstraint - _init(config?: BindConstraint.ConstructorProperties): void -} - -module BindingPool { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.BindingPool - - /** - * The unique name of the #ClutterBindingPool. - */ - name?: string | null - } - -} - -interface BindingPool { - - // Own properties of Clutter-13.Clutter.BindingPool - - /** - * The unique name of the #ClutterBindingPool. - */ - readonly name: string | null - - // Owm methods of Clutter-13.Clutter.BindingPool - - /** - * Activates the callback associated to the action that is - * bound to the `key_val` and `modifiers` pair. - * - * The callback has the following signature: - * - * ``` - * void (* callback) (GObject *gobject, - * const gchar *action_name, - * guint key_val, - * ClutterModifierType modifiers, - * gpointer user_data); - * ``` - * - * Where the #GObject instance is `gobject` and the user data - * is the one passed when installing the action with - * clutter_binding_pool_install_action(). - * - * If the action bound to the `key_val,` `modifiers` pair has been - * blocked using clutter_binding_pool_block_action(), the callback - * will not be invoked, and this function will return %FALSE. - * @param key_val the key symbol - * @param modifiers bitmask for the modifiers - * @param gobject a #GObject - * @returns %TRUE if an action was found and was activated - */ - activate(key_val: number, modifiers: ModifierType, gobject: GObject.Object): boolean - /** - * Blocks all the actions with name `action_name` inside `pool`. - * @param action_name an action name - */ - block_action(action_name: string | null): void - /** - * Retrieves the name of the action matching the given key symbol - * and modifiers bitmask. - * @param key_val a key symbol - * @param modifiers a bitmask for the modifiers - * @returns the name of the action, if found, or %NULL. The returned string is owned by the binding pool and should never be modified or freed - */ - find_action(key_val: number, modifiers: ModifierType): string | null - /** - * Installs a new action inside a #ClutterBindingPool. The action - * is bound to `key_val` and `modifiers`. - * - * The same action name can be used for multiple `key_val,` `modifiers` - * pairs. - * - * When an action has been activated using clutter_binding_pool_activate() - * the passed `callback` will be invoked (with `data)`. - * - * Actions can be blocked with clutter_binding_pool_block_action() - * and then unblocked using clutter_binding_pool_unblock_action(). - * @param action_name the name of the action - * @param key_val key symbol - * @param modifiers bitmask of modifiers - * @param callback function to be called when the action is activated - */ - install_action(action_name: string | null, key_val: number, modifiers: ModifierType, callback: BindingActionFunc): void - /** - * A #GClosure variant of clutter_binding_pool_install_action(). - * - * Installs a new action inside a #ClutterBindingPool. The action - * is bound to `key_val` and `modifiers`. - * - * The same action name can be used for multiple `key_val,` `modifiers` - * pairs. - * - * When an action has been activated using clutter_binding_pool_activate() - * the passed `closure` will be invoked. - * - * Actions can be blocked with clutter_binding_pool_block_action() - * and then unblocked using clutter_binding_pool_unblock_action(). - * @param action_name the name of the action - * @param key_val key symbol - * @param modifiers bitmask of modifiers - * @param closure a #GClosure - */ - install_closure(action_name: string | null, key_val: number, modifiers: ModifierType, closure: GObject.TClosure): void - /** - * Allows overriding the action for `key_val` and `modifiers` inside a - * #ClutterBindingPool. See clutter_binding_pool_install_action(). - * - * When an action has been activated using clutter_binding_pool_activate() - * the passed `callback` will be invoked (with `data)`. - * - * Actions can be blocked with clutter_binding_pool_block_action() - * and then unblocked using clutter_binding_pool_unblock_action(). - * @param key_val key symbol - * @param modifiers bitmask of modifiers - * @param callback function to be called when the action is activated - */ - override_action(key_val: number, modifiers: ModifierType, callback: GObject.Callback): void - /** - * A #GClosure variant of clutter_binding_pool_override_action(). - * - * Allows overriding the action for `key_val` and `modifiers` inside a - * #ClutterBindingPool. See clutter_binding_pool_install_closure(). - * - * When an action has been activated using clutter_binding_pool_activate() - * the passed `callback` will be invoked (with `data)`. - * - * Actions can be blocked with clutter_binding_pool_block_action() - * and then unblocked using clutter_binding_pool_unblock_action(). - * @param key_val key symbol - * @param modifiers bitmask of modifiers - * @param closure a #GClosure - */ - override_closure(key_val: number, modifiers: ModifierType, closure: GObject.TClosure): void - /** - * Removes the action matching the given `key_val,` `modifiers` pair, - * if any exists. - * @param key_val a key symbol - * @param modifiers a bitmask for the modifiers - */ - remove_action(key_val: number, modifiers: ModifierType): void - /** - * Unblockes all the actions with name `action_name` inside `pool`. - * - * Unblocking an action does not cause the callback bound to it to - * be invoked in case clutter_binding_pool_activate() was called on - * an action previously blocked with clutter_binding_pool_block_action(). - * @param action_name an action name - */ - unblock_action(action_name: string | null): void - - // Class property signals of Clutter-13.Clutter.BindingPool - - connect(sigName: "notify::name", callback: (($obj: BindingPool, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: BindingPool, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Pool for key bindings - * - * #ClutterBindingPool is a data structure holding a set of key bindings. - * Each key binding associates a key symbol (eventually with modifiers) - * to an action. A callback function is associated to each action. - * - * For a given key symbol and modifier mask combination there can be only one - * action; for each action there can be only one callback. There can be - * multiple actions with the same name, and the same callback can be used - * to handle multiple key bindings. - * - * Actors requiring key bindings should create a new #ClutterBindingPool - * inside their class initialization function and then install actions - * like this: - * - * ```c - * static void - * foo_class_init (FooClass *klass) - * { - * ClutterBindingPool *binding_pool; - * - * binding_pool = clutter_binding_pool_get_for_class (klass); - * - * clutter_binding_pool_install_action (binding_pool, "move-up", - * CLUTTER_Up, 0, - * G_CALLBACK (foo_action_move_up), - * NULL, NULL); - * clutter_binding_pool_install_action (binding_pool, "move-up", - * CLUTTER_KP_Up, 0, - * G_CALLBACK (foo_action_move_up), - * NULL, NULL); - * } - * ``` - * - * The callback has a signature of: - * - * ```c - * gboolean (* callback) (GObject *instance, - * const gchar *action_name, - * guint key_val, - * ClutterModifierType modifiers, - * gpointer user_data); - * ``` - * - * The actor should then override the [signal`Actor:`:key-press-event] and - * use [method`BindingPool`.activate] to match a [struct`Event]` key event - * structure to one of the actions: - * - * ```c - * ClutterBindingPool *pool; - * - * // retrieve the binding pool for the type of the actor - * pool = clutter_binding_pool_find (G_OBJECT_TYPE_NAME (actor)); - * - * // activate any callback matching the key symbol and modifiers - * // mask of the key event. the returned value can be directly - * // used to signal that the actor has handled the event. - * return clutter_binding_pool_activate (pool, - * key_event->keyval, - * key_event->modifier_state, - * G_OBJECT (actor)); - * ``` - * - * The [method`BindingPool`.activate] function will return %FALSE if - * no action for the given key binding was found, if the action was - * blocked (using [method`BindingPool`.block_action]) or if the - * key binding handler returned %FALSE. - * @class - */ -class BindingPool extends GObject.Object { - - // Own properties of Clutter-13.Clutter.BindingPool - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BindingPool - - constructor(config?: BindingPool.ConstructorProperties) - /** - * Creates a new #ClutterBindingPool that can be used to store - * key bindings for an actor. The `name` must be a unique identifier - * for the binding pool, so that clutter_binding_pool_find() will - * be able to return the correct binding pool. - * @constructor - * @param name the name of the binding pool - * @returns the newly created binding pool with the given name. Use g_object_unref() when done. - */ - constructor(name: string | null) - /** - * Creates a new #ClutterBindingPool that can be used to store - * key bindings for an actor. The `name` must be a unique identifier - * for the binding pool, so that clutter_binding_pool_find() will - * be able to return the correct binding pool. - * @constructor - * @param name the name of the binding pool - * @returns the newly created binding pool with the given name. Use g_object_unref() when done. - */ - static new(name: string | null): BindingPool - _init(config?: BindingPool.ConstructorProperties): void - /** - * Finds the #ClutterBindingPool with `name`. - * @param name the name of the binding pool to find - * @returns a pointer to the #ClutterBindingPool, or %NULL - */ - static find(name: string | null): BindingPool - /** - * Retrieves the #ClutterBindingPool for the given #GObject class - * and, eventually, creates it. This function is a wrapper around - * clutter_binding_pool_new() and uses the class type name as the - * unique name for the binding pool. - * - * Calling this function multiple times will return the same - * #ClutterBindingPool. - * - * A binding pool for a class can also be retrieved using - * clutter_binding_pool_find() with the class type name: - * - * ``` - * pool = clutter_binding_pool_find (G_OBJECT_TYPE_NAME (instance)); - * ``` - * @param klass a #GObjectClass pointer - * @returns the binding pool for the given class. The returned #ClutterBindingPool is owned by Clutter and should not be freed directly - */ - static get_for_class(klass: any | null): BindingPool -} - -interface BlitNode { - - // Owm methods of Clutter-13.Clutter.BlitNode - - /** - * Adds a new blit rectangle to the stack of rectangles. All the - * constraints of [func`Cogl`.blit_framebuffer] apply here. - * @param src_x Source x position - * @param src_y Source y position - * @param dst_x Destination x position - * @param dst_y Destination y position - * @param width Width of region to copy - * @param height Height of region to copy - */ - add_blit_rectangle(src_x: number, src_y: number, dst_x: number, dst_y: number, width: number, height: number): void -} - -class BlitNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.BlitNode - - static name: string - - // Constructors of Clutter-13.Clutter.BlitNode - - /** - * Creates a new #ClutterBlitNode that blits `src` into the current - * draw framebuffer. - * - * You must only add rectangles using [method`BlitNode`.add_blit_rectangle]. - * @constructor - * @param src the source #CoglFramebuffer - * @returns the newly created #ClutterBlitNode. Use clutter_paint_node_unref() when done. - */ - constructor(src: Cogl.Framebuffer) - /** - * Creates a new #ClutterBlitNode that blits `src` into the current - * draw framebuffer. - * - * You must only add rectangles using [method`BlitNode`.add_blit_rectangle]. - * @constructor - * @param src the source #CoglFramebuffer - * @returns the newly created #ClutterBlitNode. Use clutter_paint_node_unref() when done. - */ - static new(src: Cogl.Framebuffer): BlitNode -} - -module BlurEffect { - - // Constructor properties interface - - interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { - } - -} - -interface BlurEffect { - - // Class property signals of Clutter-13.Clutter.BlurEffect - - connect(sigName: "notify::actor", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: BlurEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A blur effect - * - * #ClutterBlurEffect is a sub-class of #ClutterEffect that allows blurring a - * actor and its contents. - * @class - */ -class BlurEffect extends OffscreenEffect { - - // Own properties of Clutter-13.Clutter.BlurEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BlurEffect - - constructor(config?: BlurEffect.ConstructorProperties) - /** - * Creates a new #ClutterBlurEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @returns the newly created #ClutterBlurEffect or %NULL - */ - constructor() - /** - * Creates a new #ClutterBlurEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @returns the newly created #ClutterBlurEffect or %NULL - */ - static new(): BlurEffect - _init(config?: BlurEffect.ConstructorProperties): void -} - -interface BlurNode { -} - -class BlurNode extends LayerNode { - - // Own properties of Clutter-13.Clutter.BlurNode - - static name: string - - // Constructors of Clutter-13.Clutter.BlurNode - - /** - * `width` width of the blur layer - * Creates a new #ClutterBlurNode. - * - * Children of this node will be painted inside a separate framebuffer, - * which will be blurred and painted on the current draw framebuffer. - * @constructor - * @param width - * @param height height of the blur layer - * @param sigma sigma value of the blur - * @returns the newly created #ClutterBlurNode. Use clutter_paint_node_unref() when done. - */ - constructor(width: number, height: number, sigma: number) - /** - * `width` width of the blur layer - * Creates a new #ClutterBlurNode. - * - * Children of this node will be painted inside a separate framebuffer, - * which will be blurred and painted on the current draw framebuffer. - * @constructor - * @param width - * @param height height of the blur layer - * @param sigma sigma value of the blur - * @returns the newly created #ClutterBlurNode. Use clutter_paint_node_unref() when done. - */ - static new(width: number, height: number, sigma: number): BlurNode - - // Overloads of new - - static new(projection: Graphene.Matrix, viewport: cairo.Rectangle, width: number, height: number, opacity: number): LayerNode -} - -module BoxLayout { - - // Constructor properties interface - - interface ConstructorProperties extends LayoutManager.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.BoxLayout - - /** - * Whether the #ClutterBoxLayout should arrange its children - * homogeneously, i.e. all children get the same size - */ - homogeneous?: boolean | null - /** - * The orientation of the #ClutterBoxLayout, either horizontal - * or vertical - */ - orientation?: Orientation | null - /** - * The spacing between children of the #ClutterBoxLayout, in pixels - */ - spacing?: number | null - } - -} - -interface BoxLayout { - - // Own properties of Clutter-13.Clutter.BoxLayout - - /** - * Whether the #ClutterBoxLayout should arrange its children - * homogeneously, i.e. all children get the same size - */ - homogeneous: boolean - /** - * The orientation of the #ClutterBoxLayout, either horizontal - * or vertical - */ - orientation: Orientation - /** - * The spacing between children of the #ClutterBoxLayout, in pixels - */ - spacing: number - - // Owm methods of Clutter-13.Clutter.BoxLayout - - /** - * Retrieves if the children sizes are allocated homogeneously. - * @returns %TRUE if the #ClutterBoxLayout is arranging its children homogeneously, and %FALSE otherwise - */ - get_homogeneous(): boolean - /** - * Retrieves the orientation of the `layout`. - * @returns the orientation of the layout - */ - get_orientation(): Orientation - /** - * Retrieves the spacing set using clutter_box_layout_set_spacing() - * @returns the spacing between children of the #ClutterBoxLayout - */ - get_spacing(): number - /** - * Sets whether the size of `layout` children should be - * homogeneous - * @param homogeneous %TRUE if the layout should be homogeneous - */ - set_homogeneous(homogeneous: boolean): void - /** - * Sets the orientation of the #ClutterBoxLayout layout manager. - * @param orientation the orientation of the #ClutterBoxLayout - */ - set_orientation(orientation: Orientation): void - /** - * Sets the spacing between children of `layout` - * @param spacing the spacing between children of the layout, in pixels - */ - set_spacing(spacing: number): void - - // Class property signals of Clutter-13.Clutter.BoxLayout - - connect(sigName: "notify::homogeneous", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::homogeneous", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::homogeneous", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: "notify::spacing", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::spacing", callback: (($obj: BoxLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::spacing", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A layout manager arranging children on a single line - * - * The #ClutterBoxLayout is a #ClutterLayoutManager implementing the - * following layout policy: - * - * - all children are arranged on a single line - * - the axis used is controlled by the #ClutterBoxLayout:orientation property - * - each child will be allocated to its natural size or, if #ClutterActor:x-expand or - * #ClutterActor:y-expand are set, the available size - * - honours the #ClutterActor's #ClutterActor:x-align and #ClutterActor:y-align properties - * to fill the available size - * - if the #ClutterBoxLayout:homogeneous boolean property is set, then all widgets will - * get the same size, ignoring expand settings and the preferred sizes - * - * It is possible to control the spacing between children of a - * #ClutterBoxLayout by using clutter_box_layout_set_spacing(). - * @class - */ -class BoxLayout extends LayoutManager { - - // Own properties of Clutter-13.Clutter.BoxLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BoxLayout - - constructor(config?: BoxLayout.ConstructorProperties) - /** - * Creates a new #ClutterBoxLayout layout manager - * @constructor - * @returns the newly created #ClutterBoxLayout - */ - constructor() - /** - * Creates a new #ClutterBoxLayout layout manager - * @constructor - * @returns the newly created #ClutterBoxLayout - */ - static new(): BoxLayout - _init(config?: BoxLayout.ConstructorProperties): void -} - -module BrightnessContrastEffect { - - // Constructor properties interface - - interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.BrightnessContrastEffect - - /** - * The brightness change to apply to the effect. - * - * This property uses a #ClutterColor to represent the changes to each - * color channel. The range is [ 0, 255 ], with 127 as the value used - * to indicate no change; values smaller than 127 indicate a decrease - * in brightness, and values larger than 127 indicate an increase in - * brightness. - */ - brightness?: Color | null - /** - * The contrast change to apply to the effect. - * - * This property uses a #ClutterColor to represent the changes to each - * color channel. The range is [ 0, 255 ], with 127 as the value used - * to indicate no change; values smaller than 127 indicate a decrease - * in contrast, and values larger than 127 indicate an increase in - * contrast. - */ - contrast?: Color | null - } - -} - -interface BrightnessContrastEffect { - - // Own properties of Clutter-13.Clutter.BrightnessContrastEffect - - /** - * The brightness change to apply to the effect. - * - * This property uses a #ClutterColor to represent the changes to each - * color channel. The range is [ 0, 255 ], with 127 as the value used - * to indicate no change; values smaller than 127 indicate a decrease - * in brightness, and values larger than 127 indicate an increase in - * brightness. - */ - brightness: Color - /** - * The contrast change to apply to the effect. - * - * This property uses a #ClutterColor to represent the changes to each - * color channel. The range is [ 0, 255 ], with 127 as the value used - * to indicate no change; values smaller than 127 indicate a decrease - * in contrast, and values larger than 127 indicate an increase in - * contrast. - */ - contrast: Color - - // Owm methods of Clutter-13.Clutter.BrightnessContrastEffect - - /** - * Retrieves the change in brightness used by `effect`. - */ - get_brightness(): [ /* red */ number, /* green */ number, /* blue */ number ] - /** - * Retrieves the contrast value used by `effect`. - */ - get_contrast(): [ /* red */ number, /* green */ number, /* blue */ number ] - /** - * The range of `brightness` is [-1.0, 1.0], where 0.0 designates no change; - * a value below 0.0 indicates a decrease in brightness; and a value - * above 0.0 indicates an increase of brightness. - * @param brightness the brightness change for all three components (r, g, b) - */ - set_brightness(brightness: number): void - /** - * The range for each component is [-1.0, 1.0] where 0.0 designates no change, - * values below 0.0 mean a decrease in brightness, and values above indicate - * an increase. - * @param red red component of the change in brightness - * @param green green component of the change in brightness - * @param blue blue component of the change in brightness - */ - set_brightness_full(red: number, green: number, blue: number): void - /** - * The range for `contrast` is [-1.0, 1.0], where 0.0 designates no change; - * a value below 0.0 indicates a decrease in contrast; and a value above - * 0.0 indicates an increase. - * @param contrast contrast change for all three channels - */ - set_contrast(contrast: number): void - /** - * The range for each component is [-1.0, 1.0] where 0.0 designates no change, - * values below 0.0 mean a decrease in contrast, and values above indicate - * an increase. - * @param red red component of the change in contrast - * @param green green component of the change in contrast - * @param blue blue component of the change in contrast - */ - set_contrast_full(red: number, green: number, blue: number): void - - // Class property signals of Clutter-13.Clutter.BrightnessContrastEffect - - connect(sigName: "notify::brightness", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::brightness", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::brightness", ...args: any[]): void - connect(sigName: "notify::contrast", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::contrast", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::contrast", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: BrightnessContrastEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Increase/decrease brightness and/or contrast of actor. - * - * #ClutterBrightnessContrastEffect is a sub-class of #ClutterEffect that - * changes the overall brightness of a #ClutterActor. - * @class - */ -class BrightnessContrastEffect extends OffscreenEffect { - - // Own properties of Clutter-13.Clutter.BrightnessContrastEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.BrightnessContrastEffect - - constructor(config?: BrightnessContrastEffect.ConstructorProperties) - /** - * Creates a new #ClutterBrightnessContrastEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @returns the newly created #ClutterBrightnessContrastEffect or %NULL. Use g_object_unref() when done. - */ - constructor() - /** - * Creates a new #ClutterBrightnessContrastEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @returns the newly created #ClutterBrightnessContrastEffect or %NULL. Use g_object_unref() when done. - */ - static new(): BrightnessContrastEffect - _init(config?: BrightnessContrastEffect.ConstructorProperties): void -} - -module Canvas { - - // Signal callback interfaces - - /** - * Signal callback interface for `draw` - */ - interface DrawSignalCallback { - ($obj: Canvas, cr: cairo.Context, width: number, height: number): boolean - } - - - // Constructor properties interface - - interface ConstructorProperties extends Content.ConstructorProperties, GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Canvas - - /** - * The height of the canvas. - */ - height?: number | null - /** - * The height of the canvas. - */ - scale_factor?: number | null - /** - * The width of the canvas. - */ - width?: number | null - } - -} - -interface Canvas extends Content { - - // Own properties of Clutter-13.Clutter.Canvas - - /** - * The height of the canvas. - */ - height: number - /** - * The height of the canvas. - */ - scale_factor: number - /** - * The width of the canvas. - */ - width: number - - // Owm methods of Clutter-13.Clutter.Canvas - - /** - * Gets the scale factor of the `canvas`. - * @returns the current @canvas scale factor or -1 if invalid - */ - get_scale_factor(): number - /** - * Sets the scaling factor of the `canvas,` and invalidates the content. - * - * This function will cause the `canvas` to be invalidated only - * if the scale factor of the canvas surface has changed. - * @param scale the integer scaling factor of the canvas - */ - set_scale_factor(scale: number): void - /** - * Sets the size of the `canvas,` and invalidates the content. - * - * This function will cause the `canvas` to be invalidated only - * if the size of the canvas surface has changed. - * - * If you want to invalidate the contents of the `canvas` when setting - * the size, you can use the return value of the function to conditionally - * call clutter_content_invalidate(): - * - * ```c - * if (!clutter_canvas_set_size (canvas, width, height)) - * clutter_content_invalidate (CLUTTER_CONTENT (canvas)); - * ``` - * @param width the width of the canvas, in pixels - * @param height the height of the canvas, in pixels - * @returns this function returns %TRUE if the size change caused a content invalidation, and %FALSE otherwise - */ - set_size(width: number, height: number): boolean - - // Own virtual methods of Clutter-13.Clutter.Canvas - - vfunc_draw(cr: cairo.Context, width: number, height: number): boolean - - // Own signals of Clutter-13.Clutter.Canvas - - connect(sigName: "draw", callback: Canvas.DrawSignalCallback): number - connect_after(sigName: "draw", callback: Canvas.DrawSignalCallback): number - emit(sigName: "draw", cr: cairo.Context, width: number, height: number, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Canvas - - connect(sigName: "notify::height", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height", ...args: any[]): void - connect(sigName: "notify::scale-factor", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-factor", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-factor", ...args: any[]): void - connect(sigName: "notify::width", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width", callback: (($obj: Canvas, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Content for 2D painting - * - * The #ClutterCanvas class is a #ClutterContent implementation that allows - * drawing using the Cairo API on a 2D surface. - * - * In order to draw on a #ClutterCanvas, you should connect a handler to the - * #ClutterCanvas::draw signal; the signal will receive a #cairo_t context - * that can be used to draw. #ClutterCanvas will emit the #ClutterCanvas::draw - * signal when invalidated using clutter_content_invalidate(). - * - * See [canvas.c](https://git.gnome.org/browse/clutter/tree/examples/canvas.c?h=clutter-1.18) - * for an example of how to use #ClutterCanvas.. - * @class - */ -class Canvas extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Canvas - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Canvas - - constructor(config?: Canvas.ConstructorProperties) - _init(config?: Canvas.ConstructorProperties): void - /** - * Creates a new instance of #ClutterCanvas. - * - * You should call clutter_canvas_set_size() to set the size of the canvas. - * - * You should call clutter_content_invalidate() every time you wish to - * draw the contents of the canvas. - * @returns The newly allocated instance of #ClutterCanvas. Use g_object_unref() when done. - */ - static new(): Content -} - -module ChildMeta { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.ChildMeta - - /** - * The #ClutterActor being wrapped by this #ClutterChildMeta - */ - actor?: Actor | null - /** - * The #ClutterContainer that created this #ClutterChildMeta. - */ - container?: Container | null - } - -} - -interface ChildMeta { - - // Own fields of Clutter-13.Clutter.ChildMeta - - container: Container - actor: Actor - - // Owm methods of Clutter-13.Clutter.ChildMeta - - /** - * Retrieves the actor wrapped by `data` - * @returns a #ClutterActor - */ - get_actor(): Actor - /** - * Retrieves the container using `data` - * @returns a #ClutterContainer - */ - get_container(): Container - - // Class property signals of Clutter-13.Clutter.ChildMeta - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Base interface for container specific state for child actors. - * - * A child data is meant to be used when you need to keep track - * of information about each individual child added to a container. - * - * In order to use it you should create your own subclass of - * #ClutterChildMeta and set the #ClutterContainerIface child_meta_type - * interface member to your subclass type, like: - * - * ```c - * static void - * my_container_iface_init (ClutterContainerIface *iface) - * { - * // set the rest of the #ClutterContainer vtable - * - * container_iface->child_meta_type = MY_TYPE_CHILD_META; - * } - * ``` - * - * This will automatically create a #ClutterChildMeta of type - * `MY_TYPE_CHILD_META` for every actor that is added to the container. - * - * The child data for an actor can be retrieved using the - * clutter_container_get_child_meta() function. - * - * The properties of the data and your subclass can be manipulated with - * clutter_container_child_set() and clutter_container_child_get() which - * act like g_object_set() and g_object_get(). - * - * You can provide hooks for your own storage as well as control the - * instantiation by overriding the #ClutterContainerIface virtual functions - * #ClutterContainerIface.create_child_meta(), #ClutterContainerIface.destroy_child_meta(), - * and #ClutterContainerIface.get_child_meta(). - * @class - */ -class ChildMeta extends GObject.Object { - - // Own properties of Clutter-13.Clutter.ChildMeta - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.ChildMeta - - constructor(config?: ChildMeta.ConstructorProperties) - _init(config?: ChildMeta.ConstructorProperties): void -} - -module ClickAction { - - // Signal callback interfaces - - /** - * Signal callback interface for `clicked` - */ - interface ClickedSignalCallback { - ($obj: ClickAction, actor: Actor): void - } - - /** - * Signal callback interface for `long-press` - */ - interface LongPressSignalCallback { - ($obj: ClickAction, actor: Actor, state: LongPressState): boolean - } - - - // Constructor properties interface - - interface ConstructorProperties extends Action.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.ClickAction - - /** - * The minimum duration of a press for it to be recognized as a long - * press gesture, in milliseconds. - * - * A value of -1 will make the #ClutterClickAction use the value of - * the [property`Settings:`long-press-duration] property. - */ - long_press_duration?: number | null - /** - * The maximum allowed distance that can be covered (on both axes) before - * a long press gesture is cancelled, in pixels. - * - * A value of -1 will make the #ClutterClickAction use the value of - * the [property`Settings:`dnd-drag-threshold] property. - */ - long_press_threshold?: number | null - } - -} - -interface ClickAction { - - // Own properties of Clutter-13.Clutter.ClickAction - - /** - * Whether the clickable actor has the pointer grabbed - */ - readonly held: boolean - /** - * The minimum duration of a press for it to be recognized as a long - * press gesture, in milliseconds. - * - * A value of -1 will make the #ClutterClickAction use the value of - * the [property`Settings:`long-press-duration] property. - */ - long_press_duration: number - /** - * The maximum allowed distance that can be covered (on both axes) before - * a long press gesture is cancelled, in pixels. - * - * A value of -1 will make the #ClutterClickAction use the value of - * the [property`Settings:`dnd-drag-threshold] property. - */ - long_press_threshold: number - /** - * Whether the clickable actor should be in "pressed" state - */ - readonly pressed: boolean - - // Own fields of Clutter-13.Clutter.ClickAction - - parent_instance: Action & ActorMeta & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Clutter-13.Clutter.ClickAction - - /** - * Retrieves the button that was pressed. - * @returns the button value - */ - get_button(): number - /** - * Retrieves the screen coordinates of the button press. - */ - get_coords(): [ /* press_x */ number, /* press_y */ number ] - /** - * Retrieves the modifier state of the click action. - * @returns the modifier state parameter, or 0 - */ - get_state(): ModifierType - /** - * Emulates a release of the pointer button, which ungrabs the pointer - * and unsets the [property`ClickAction:`pressed] state. - * - * This function will also cancel the long press gesture if one was - * initiated. - * - * This function is useful to break a grab, for instance after a certain - * amount of time has passed. - */ - release(): void - - // Own virtual methods of Clutter-13.Clutter.ClickAction - - vfunc_clicked(actor: Actor): void - vfunc_long_press(actor: Actor, state: LongPressState): boolean - - // Own signals of Clutter-13.Clutter.ClickAction - - connect(sigName: "clicked", callback: ClickAction.ClickedSignalCallback): number - connect_after(sigName: "clicked", callback: ClickAction.ClickedSignalCallback): number - emit(sigName: "clicked", actor: Actor, ...args: any[]): void - connect(sigName: "long-press", callback: ClickAction.LongPressSignalCallback): number - connect_after(sigName: "long-press", callback: ClickAction.LongPressSignalCallback): number - emit(sigName: "long-press", actor: Actor, state: LongPressState, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.ClickAction - - connect(sigName: "notify::held", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::held", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::held", ...args: any[]): void - connect(sigName: "notify::long-press-duration", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::long-press-duration", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::long-press-duration", ...args: any[]): void - connect(sigName: "notify::long-press-threshold", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::long-press-threshold", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::long-press-threshold", ...args: any[]): void - connect(sigName: "notify::pressed", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pressed", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pressed", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ClickAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Action for clickable actors - * - * #ClutterClickAction is a sub-class of [class`Action]` that implements - * the logic for clickable actors, by using the low level events of - * [class`Actor]`, such as [signal`Actor:`:button-press-event] and - * [signal`Actor:`:button-release-event], to synthesize the high level - * [signal`ClickAction:`:clicked] signal. - * - * To use #ClutterClickAction you just need to apply it to a [class`Actor]` - * using [method`Actor`.add_action] and connect to the - * [signal`ClickAction:`:clicked] signal: - * - * ```c - * ClutterAction *action = clutter_click_action_new (); - * - * clutter_actor_add_action (actor, action); - * - * g_signal_connect (action, "clicked", G_CALLBACK (on_clicked), NULL); - * ``` - * - * #ClutterClickAction also supports long press gestures: a long press is - * activated if the pointer remains pressed within a certain threshold (as - * defined by the [property`ClickAction:`long-press-threshold] property) for a - * minimum amount of time (as the defined by the - * [property`ClickAction:`long-press-duration] property). - * The [signal`ClickAction:`:long-press] signal is emitted multiple times, - * using different [enum`LongPressState]` values; to handle long presses - * you should connect to the [signal`ClickAction:`:long-press] signal and - * handle the different states: - * - * ```c - * static gboolean - * on_long_press (ClutterClickAction *action, - * ClutterActor *actor, - * ClutterLongPressState state) - * { - * switch (state) - * { - * case CLUTTER_LONG_PRESS_QUERY: - * // return TRUE if the actor should support long press - * // gestures, and FALSE otherwise; this state will be - * // emitted on button presses - * return TRUE; - * - * case CLUTTER_LONG_PRESS_ACTIVATE: - * // this state is emitted if the minimum duration has - * // been reached without the gesture being cancelled. - * // the return value is not used - * return TRUE; - * - * case CLUTTER_LONG_PRESS_CANCEL: - * // this state is emitted if the long press was cancelled; - * // for instance, the pointer went outside the actor or the - * // allowed threshold, or the button was released before - * // the minimum duration was reached. the return value is - * // not used - * return FALSE; - * } - * } - * ``` - * @class - */ -class ClickAction extends Action { - - // Own properties of Clutter-13.Clutter.ClickAction - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.ClickAction - - constructor(config?: ClickAction.ConstructorProperties) - /** - * Creates a new #ClutterClickAction instance - * @constructor - * @returns the newly created #ClutterClickAction - */ - constructor() - /** - * Creates a new #ClutterClickAction instance - * @constructor - * @returns the newly created #ClutterClickAction - */ - static new(): ClickAction - _init(config?: ClickAction.ConstructorProperties): void -} - -interface ClipNode { -} - -class ClipNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.ClipNode - - static name: string - - // Constructors of Clutter-13.Clutter.ClipNode - - /** - * Creates a new #ClutterPaintNode that will clip its child - * nodes to the 2D regions added to it. - * @constructor - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done. - */ - constructor() - /** - * Creates a new #ClutterPaintNode that will clip its child - * nodes to the 2D regions added to it. - * @constructor - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done. - */ - static new(): ClipNode -} - -module Clone { - - // Constructor properties interface - - interface ConstructorProperties extends Atk.ImplementorIface.ConstructorProperties, Animatable.ConstructorProperties, Container.ConstructorProperties, Scriptable.ConstructorProperties, Actor.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Clone - - /** - * This property specifies the source actor being cloned. - */ - source?: Actor | null - } - -} - -interface Clone extends Atk.ImplementorIface, Animatable, Container, Scriptable { - - // Own properties of Clutter-13.Clutter.Clone - - /** - * This property specifies the source actor being cloned. - */ - source: Actor - - // Owm methods of Clutter-13.Clutter.Clone - - /** - * Retrieves the source #ClutterActor being cloned by `self`. - * @returns the actor source for the clone - */ - get_source(): Actor - /** - * Sets `source` as the source actor to be cloned by `self`. - * @param source a #ClutterActor, or %NULL - */ - set_source(source: Actor | null): void - - // Class property signals of Clutter-13.Clutter.Clone - - connect(sigName: "notify::source", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::source", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::source", ...args: any[]): void - connect(sigName: "notify::actions", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actions", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actions", ...args: any[]): void - connect(sigName: "notify::allocation", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::allocation", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::allocation", ...args: any[]): void - connect(sigName: "notify::background-color", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::background-color", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::background-color", ...args: any[]): void - connect(sigName: "notify::background-color-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::background-color-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::background-color-set", ...args: any[]): void - connect(sigName: "notify::child-transform", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transform", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transform", ...args: any[]): void - connect(sigName: "notify::child-transform-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::child-transform-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::child-transform-set", ...args: any[]): void - connect(sigName: "notify::clip-rect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::clip-rect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::clip-rect", ...args: any[]): void - connect(sigName: "notify::clip-to-allocation", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::clip-to-allocation", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::clip-to-allocation", ...args: any[]): void - connect(sigName: "notify::color-state", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::color-state", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::color-state", ...args: any[]): void - connect(sigName: "notify::constraints", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::constraints", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::constraints", ...args: any[]): void - connect(sigName: "notify::content", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content", ...args: any[]): void - connect(sigName: "notify::content-box", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-box", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-box", ...args: any[]): void - connect(sigName: "notify::content-gravity", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-gravity", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-gravity", ...args: any[]): void - connect(sigName: "notify::content-repeat", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-repeat", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-repeat", ...args: any[]): void - connect(sigName: "notify::effect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::effect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::effect", ...args: any[]): void - connect(sigName: "notify::first-child", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::first-child", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::first-child", ...args: any[]): void - connect(sigName: "notify::fixed-position-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-position-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-position-set", ...args: any[]): void - connect(sigName: "notify::fixed-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-x", ...args: any[]): void - connect(sigName: "notify::fixed-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::fixed-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::fixed-y", ...args: any[]): void - connect(sigName: "notify::has-clip", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-clip", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-clip", ...args: any[]): void - connect(sigName: "notify::has-pointer", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-pointer", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-pointer", ...args: any[]): void - connect(sigName: "notify::height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::height", ...args: any[]): void - connect(sigName: "notify::last-child", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::last-child", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::last-child", ...args: any[]): void - connect(sigName: "notify::layout-manager", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::layout-manager", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::layout-manager", ...args: any[]): void - connect(sigName: "notify::magnification-filter", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::magnification-filter", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::magnification-filter", ...args: any[]): void - connect(sigName: "notify::mapped", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::mapped", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::mapped", ...args: any[]): void - connect(sigName: "notify::margin-bottom", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-bottom", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-bottom", ...args: any[]): void - connect(sigName: "notify::margin-left", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-left", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-left", ...args: any[]): void - connect(sigName: "notify::margin-right", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-right", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-right", ...args: any[]): void - connect(sigName: "notify::margin-top", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::margin-top", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::margin-top", ...args: any[]): void - connect(sigName: "notify::min-height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-height", ...args: any[]): void - connect(sigName: "notify::min-height-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-height-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-height-set", ...args: any[]): void - connect(sigName: "notify::min-width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-width", ...args: any[]): void - connect(sigName: "notify::min-width-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-width-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-width-set", ...args: any[]): void - connect(sigName: "notify::minification-filter", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::minification-filter", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::minification-filter", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::natural-height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-height", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-height", ...args: any[]): void - connect(sigName: "notify::natural-height-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-height-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-height-set", ...args: any[]): void - connect(sigName: "notify::natural-width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-width", ...args: any[]): void - connect(sigName: "notify::natural-width-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::natural-width-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::natural-width-set", ...args: any[]): void - connect(sigName: "notify::offscreen-redirect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::offscreen-redirect", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::offscreen-redirect", ...args: any[]): void - connect(sigName: "notify::opacity", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::opacity", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::opacity", ...args: any[]): void - connect(sigName: "notify::pivot-point", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pivot-point", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pivot-point", ...args: any[]): void - connect(sigName: "notify::pivot-point-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pivot-point-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pivot-point-z", ...args: any[]): void - connect(sigName: "notify::position", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::position", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::position", ...args: any[]): void - connect(sigName: "notify::reactive", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::reactive", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::reactive", ...args: any[]): void - connect(sigName: "notify::realized", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::realized", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::realized", ...args: any[]): void - connect(sigName: "notify::request-mode", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::request-mode", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::request-mode", ...args: any[]): void - connect(sigName: "notify::rotation-angle-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-x", ...args: any[]): void - connect(sigName: "notify::rotation-angle-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-y", ...args: any[]): void - connect(sigName: "notify::rotation-angle-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::rotation-angle-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::rotation-angle-z", ...args: any[]): void - connect(sigName: "notify::scale-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-x", ...args: any[]): void - connect(sigName: "notify::scale-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-y", ...args: any[]): void - connect(sigName: "notify::scale-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::scale-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::scale-z", ...args: any[]): void - connect(sigName: "notify::show-on-set-parent", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::show-on-set-parent", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::show-on-set-parent", ...args: any[]): void - connect(sigName: "notify::size", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::size", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::size", ...args: any[]): void - connect(sigName: "notify::text-direction", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::text-direction", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::text-direction", ...args: any[]): void - connect(sigName: "notify::transform", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transform", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transform", ...args: any[]): void - connect(sigName: "notify::transform-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::transform-set", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::transform-set", ...args: any[]): void - connect(sigName: "notify::translation-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-x", ...args: any[]): void - connect(sigName: "notify::translation-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-y", ...args: any[]): void - connect(sigName: "notify::translation-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-z", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-z", ...args: any[]): void - connect(sigName: "notify::visible", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::visible", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::visible", ...args: any[]): void - connect(sigName: "notify::width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::width", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::width", ...args: any[]): void - connect(sigName: "notify::x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x", ...args: any[]): void - connect(sigName: "notify::x-align", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-align", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-align", ...args: any[]): void - connect(sigName: "notify::x-expand", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-expand", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-expand", ...args: any[]): void - connect(sigName: "notify::y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y", ...args: any[]): void - connect(sigName: "notify::y-align", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-align", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-align", ...args: any[]): void - connect(sigName: "notify::y-expand", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-expand", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-expand", ...args: any[]): void - connect(sigName: "notify::z-position", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::z-position", callback: (($obj: Clone, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::z-position", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An actor that displays a clone of a source actor - * - * #ClutterClone is a #ClutterActor which draws with the paint - * function of another actor, scaled to fit its own allocation. - * - * #ClutterClone can be used to efficiently clone any other actor. - * - * Unlike clutter_texture_new_from_actor(), #ClutterClone does not require - * the presence of support for FBOs in the underlying GL or GLES - * implementation. - * @class - */ -class Clone extends Actor { - - // Own properties of Clutter-13.Clutter.Clone - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Clone - - constructor(config?: Clone.ConstructorProperties) - /** - * Creates a new #ClutterActor which clones `source/` - * @constructor - * @param source a #ClutterActor, or %NULL - * @returns the newly created #ClutterClone - */ - constructor(source: Actor) - /** - * Creates a new #ClutterActor which clones `source/` - * @constructor - * @param source a #ClutterActor, or %NULL - * @returns the newly created #ClutterClone - */ - static new(source: Actor): Clone - - // Overloads of new - - /** - * Creates a new #ClutterActor. - * - * A newly created actor has a floating reference, which will be sunk - * when it is added to another actor. - * @constructor - * @returns the newly created #ClutterActor - */ - static new(): Actor - _init(config?: Clone.ConstructorProperties): void -} - -interface ColorNode { -} - -class ColorNode extends PipelineNode { - - // Own properties of Clutter-13.Clutter.ColorNode - - static name: string - - // Constructors of Clutter-13.Clutter.ColorNode - - /** - * Creates a new #ClutterPaintNode that will paint a solid color - * fill using `color`. - * @constructor - * @param color the color to paint, or %NULL - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done - */ - constructor(color: Color | null) - /** - * Creates a new #ClutterPaintNode that will paint a solid color - * fill using `color`. - * @constructor - * @param color the color to paint, or %NULL - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done - */ - static new(color: Color | null): ColorNode - - // Overloads of new - - /** - * Creates a new #ClutterPaintNode that will use the `pipeline` to - * paint its contents. - * - * This function will acquire a reference on the passed `pipeline,` - * so it is safe to call cogl_object_unref() when it returns. - * @constructor - * @param pipeline a Cogl pipeline state object, or %NULL - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done. - */ - static new(pipeline: Cogl.Pipeline | null): PipelineNode -} - -module ColorState { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.ColorState - - /** - * Colorspace information of the each color state, - * defaults to sRGB colorspace - */ - colorspace?: Colorspace | null - } - -} - -interface ColorState { - - // Own properties of Clutter-13.Clutter.ColorState - - /** - * Colorspace information of the each color state, - * defaults to sRGB colorspace - */ - readonly colorspace: Colorspace - - // Owm methods of Clutter-13.Clutter.ColorState - - get_colorspace(): Colorspace - - // Class property signals of Clutter-13.Clutter.ColorState - - connect(sigName: "notify::colorspace", callback: (($obj: ColorState, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::colorspace", callback: (($obj: ColorState, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::colorspace", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Color state of each ClutterActor - * - * The #ClutterColorState class contains the colorspace of each color - * states (e.g. sRGB colorspace). - * - * Each [class`Actor]` would own such an object. - * - * A single #ClutterColorState object can be shared by multiple [class`Actor]` - * or maybe a separate color state for each [class`Actor]` (depending on whether - * #ClutterColorState would be statefull or stateless). - * - * #ClutterColorState, if not set during construction, it will default to sRGB - * color state - * - * The #ClutterColorState would have API to get the colorspace, whether the - * actor content is in pq or not, and things like that - * @class - */ -class ColorState extends GObject.Object { - - // Own properties of Clutter-13.Clutter.ColorState - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.ColorState - - constructor(config?: ColorState.ConstructorProperties) - /** - * Create a new ClutterColorState object. - * @constructor - * @param colorspace - * @returns A new ClutterColorState object. - */ - constructor(colorspace: Colorspace) - /** - * Create a new ClutterColorState object. - * @constructor - * @param colorspace - * @returns A new ClutterColorState object. - */ - static new(colorspace: Colorspace): ColorState - _init(config?: ColorState.ConstructorProperties): void -} - -module ColorizeEffect { - - // Constructor properties interface - - interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.ColorizeEffect - - /** - * The tint to apply to the actor - */ - tint?: Color | null - } - -} - -interface ColorizeEffect { - - // Own properties of Clutter-13.Clutter.ColorizeEffect - - /** - * The tint to apply to the actor - */ - tint: Color - - // Owm methods of Clutter-13.Clutter.ColorizeEffect - - /** - * Retrieves the tint used by `effect` - */ - get_tint(): /* tint */ Color - /** - * Sets the tint to be used when colorizing - * @param tint the color to be used - */ - set_tint(tint: Color): void - - // Class property signals of Clutter-13.Clutter.ColorizeEffect - - connect(sigName: "notify::tint", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::tint", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::tint", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: ColorizeEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A colorization effect - * - * #ClutterColorizeEffect is a sub-class of #ClutterEffect that - * colorizes an actor with the given tint. - * @class - */ -class ColorizeEffect extends OffscreenEffect { - - // Own properties of Clutter-13.Clutter.ColorizeEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.ColorizeEffect - - constructor(config?: ColorizeEffect.ConstructorProperties) - /** - * Creates a new #ClutterColorizeEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @param tint the color to be used - * @returns the newly created #ClutterColorizeEffect or %NULL - */ - constructor(tint: Color) - /** - * Creates a new #ClutterColorizeEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @param tint the color to be used - * @returns the newly created #ClutterColorizeEffect or %NULL - */ - static new(tint: Color): ColorizeEffect - _init(config?: ColorizeEffect.ConstructorProperties): void -} - -module Constraint { - - // Constructor properties interface - - interface ConstructorProperties extends ActorMeta.ConstructorProperties { - } - -} - -interface Constraint { - - // Owm methods of Clutter-13.Clutter.Constraint - - /** - * Asks the `constraint` to update the size request of a #ClutterActor. - * @param actor a #ClutterActor - * @param direction a #ClutterOrientation - * @param for_size the size in the opposite direction - * @param minimum_size the minimum size to modify - * @param natural_size the natural size to modify - */ - update_preferred_size(actor: Actor, direction: Orientation, for_size: number, minimum_size: number, natural_size: number): [ /* minimum_size */ number, /* natural_size */ number ] - - // Own virtual methods of Clutter-13.Clutter.Constraint - - vfunc_update_allocation(actor: Actor, allocation: ActorBox): void - /** - * Asks the `constraint` to update the size request of a #ClutterActor. - * @virtual - * @param actor a #ClutterActor - * @param direction a #ClutterOrientation - * @param for_size the size in the opposite direction - * @param minimum_size the minimum size to modify - * @param natural_size the natural size to modify - */ - vfunc_update_preferred_size(actor: Actor, direction: Orientation, for_size: number, minimum_size: number, natural_size: number): [ /* minimum_size */ number, /* natural_size */ number ] - - // Class property signals of Clutter-13.Clutter.Constraint - - connect(sigName: "notify::actor", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Constraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Abstract class for constraints on position or size - * - * #ClutterConstraint is a base abstract class for modifiers of a #ClutterActor - * position or size. - * - * A #ClutterConstraint sub-class should contain the logic for modifying - * the position or size of the #ClutterActor to which it is applied, by - * updating the actor's allocation. Each #ClutterConstraint can change the - * allocation of the actor to which they are applied by overriding the - * #ClutterConstraintClass.update_allocation() virtual function. - * - * ## Using Constraints - * - * Constraints can be used with fixed layout managers, like - * #ClutterFixedLayout, or with actors implicitly using a fixed layout - * manager, like #ClutterGroup and #ClutterStage. - * - * Constraints provide a way to build user interfaces by using - * relations between #ClutterActors, without explicit fixed - * positioning and sizing, similarly to how fluid layout managers like - * #ClutterBoxLayout lay out their children. - * - * Constraints are attached to a #ClutterActor, and are available - * for inspection using clutter_actor_get_constraints(). - * - * Clutter provides different implementation of the #ClutterConstraint - * abstract class, for instance: - * - * - #ClutterAlignConstraint, a constraint that can be used to align - * an actor to another one on either the horizontal or the vertical - * axis, using a normalized value between 0 and 1. - * - #ClutterBindConstraint, a constraint binds the X, Y, width or height - * of an actor to the corresponding position or size of a source actor, - * with or without an offset. - * - #ClutterSnapConstraint, a constraint that "snaps" together the edges - * of two #ClutterActors; if an actor uses two constraints on both its - * horizontal or vertical edges then it can also expand to fit the empty - * space. - * - * The [constraints example](https://git.gnome.org/browse/clutter/tree/examples/constraints.c?h=clutter-1.18) - * uses various types of #ClutterConstraints to lay out three actors on a - * resizable stage. Only the central actor has an explicit size, and no - * actor has an explicit position. - * - * - The #ClutterActor with #ClutterActor:name `layerA` is explicitly - * sized to 100 pixels by 25 pixels, and it's added to the #ClutterStage - * - two #ClutterAlignConstraints are used to anchor `layerA` to the - * center of the stage, by using 0.5 as the alignment #ClutterAlignConstraint:factor on - * both the X and Y axis - * - the #ClutterActor with #ClutterActor:name `layerB` is added to the - * #ClutterStage with no explicit size - * - the #ClutterActor:x and #ClutterActor:width of `layerB` are bound - * to the same properties of `layerA` using two #ClutterBindConstraint - * objects, thus keeping `layerB` aligned to `layerA` - * - the top edge of `layerB` is snapped together with the bottom edge - * of `layerA`; the bottom edge of `layerB` is also snapped together with - * the bottom edge of the #ClutterStage; an offset is given to the two - * #ClutterSnapConstraintss to allow for some padding; since `layerB` is - * snapped between two different #ClutterActors, its height is stretched - * to match the gap - * - the #ClutterActor with #ClutterActor:name `layerC` mirrors `layerB`, - * snapping the top edge of the #ClutterStage to the top edge of `layerC` - * and the top edge of `layerA` to the bottom edge of `layerC` - * - * You can try resizing interactively the #ClutterStage and verify - * that the three #ClutterActors maintain the same position and - * size relative to each other, and to the #ClutterStage. - * - * It is important to note that Clutter does not avoid loops or - * competing constraints; if two or more #ClutterConstraints - * are operating on the same positional or dimensional attributes of an - * actor, or if the constraints on two different actors depend on each - * other, then the behavior is undefined. - * - * ## Implementing a ClutterConstraint - * - * Creating a sub-class of #ClutterConstraint requires the - * implementation of the #ClutterConstraintClass.update_allocation() - * virtual function. - * - * The `update_allocation()` virtual function is called during the - * allocation sequence of a #ClutterActor, and allows any #ClutterConstraint - * attached to that actor to modify the allocation before it is passed to - * the actor's #ClutterActorClass.allocate() implementation. - * - * The #ClutterActorBox passed to the `update_allocation()` implementation - * contains the original allocation of the #ClutterActor, plus the eventual - * modifications applied by the other #ClutterConstraints, in the same order - * the constraints have been applied to the actor. - * - * It is not necessary for a #ClutterConstraint sub-class to chain - * up to the parent's implementation. - * - * If a #ClutterConstraint is parametrized - i.e. if it contains - * properties that affect the way the constraint is implemented - it should - * call clutter_actor_queue_relayout() on the actor to which it is attached - * to whenever any parameter is changed. The actor to which it is attached - * can be recovered at any point using clutter_actor_meta_get_actor(). - * @class - */ -class Constraint extends ActorMeta { - - // Own properties of Clutter-13.Clutter.Constraint - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Constraint - - constructor(config?: Constraint.ConstructorProperties) - _init(config?: Constraint.ConstructorProperties): void -} - -module DeformEffect { - - // Constructor properties interface - - interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.DeformEffect - - /** - * The number of horizontal tiles. The bigger the number, the - * smaller the tiles - */ - x_tiles?: number | null - /** - * The number of vertical tiles. The bigger the number, the - * smaller the tiles - */ - y_tiles?: number | null - } - -} - -interface DeformEffect { - - // Own properties of Clutter-13.Clutter.DeformEffect - - /** - * The number of horizontal tiles. The bigger the number, the - * smaller the tiles - */ - x_tiles: number - /** - * The number of vertical tiles. The bigger the number, the - * smaller the tiles - */ - y_tiles: number - - // Owm methods of Clutter-13.Clutter.DeformEffect - - /** - * Retrieves the handle to the back face material used by `effect` - * @returns a handle for the material, or %NULL. The returned material is owned by the #ClutterDeformEffect and it should not be freed directly - */ - get_back_material(): Cogl.Handle - /** - * Retrieves the number of horizontal and vertical tiles used to sub-divide - * the actor's geometry during the effect - */ - get_n_tiles(): [ /* x_tiles */ number, /* y_tiles */ number ] - /** - * Invalidates the `effect`'s vertices and, if it is associated - * to an actor, it will queue a redraw - */ - invalidate(): void - /** - * Sets the material that should be used when drawing the back face - * of the actor during a deformation - * - * The #ClutterDeformEffect will take a reference on the material's - * handle - * @param material a handle to a Cogl material - */ - set_back_material(material: Cogl.Handle | null): void - /** - * Sets the number of horizontal and vertical tiles to be used - * when applying the effect - * - * More tiles allow a finer grained deformation at the expenses - * of computation - * @param x_tiles number of horizontal tiles - * @param y_tiles number of vertical tiles - */ - set_n_tiles(x_tiles: number, y_tiles: number): void - - // Own virtual methods of Clutter-13.Clutter.DeformEffect - - vfunc_deform_vertex(width: number, height: number, vertex: Cogl.TextureVertex): void - - // Class property signals of Clutter-13.Clutter.DeformEffect - - connect(sigName: "notify::x-tiles", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-tiles", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-tiles", ...args: any[]): void - connect(sigName: "notify::y-tiles", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-tiles", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-tiles", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: DeformEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A base class for effects deforming the geometry of an actor - * - * #ClutterDeformEffect is an abstract class providing all the plumbing - * for creating effects that result in the deformation of an actor's - * geometry. - * - * #ClutterDeformEffect uses offscreen buffers to render the contents of - * a #ClutterActor and then the Cogl vertex buffers API to submit the - * geometry to the GPU. - * - * ## Implementing ClutterDeformEffect - * - * Sub-classes of #ClutterDeformEffect should override the - * #ClutterDeformEffectClass.deform_vertex() virtual function; this function - * is called on every vertex that needs to be deformed by the effect. - * Each passed vertex is an in-out parameter that initially contains the - * position of the vertex and should be modified according to a specific - * deformation algorithm. - * @class - */ -class DeformEffect extends OffscreenEffect { - - // Own properties of Clutter-13.Clutter.DeformEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.DeformEffect - - constructor(config?: DeformEffect.ConstructorProperties) - _init(config?: DeformEffect.ConstructorProperties): void -} - -module DesaturateEffect { - - // Constructor properties interface - - interface ConstructorProperties extends OffscreenEffect.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.DesaturateEffect - - /** - * The desaturation factor, between 0.0 (no desaturation) and 1.0 (full - * desaturation). - */ - factor?: number | null - } - -} - -interface DesaturateEffect { - - // Own properties of Clutter-13.Clutter.DesaturateEffect - - /** - * The desaturation factor, between 0.0 (no desaturation) and 1.0 (full - * desaturation). - */ - factor: number - - // Owm methods of Clutter-13.Clutter.DesaturateEffect - - /** - * Retrieves the desaturation factor of `effect` - * @returns the desaturation factor - */ - get_factor(): number - /** - * Sets the desaturation factor for `effect,` with 0.0 being "do not desaturate" - * and 1.0 being "fully desaturate" - * @param factor the desaturation factor, between 0.0 and 1.0 - */ - set_factor(factor: number): void - - // Class property signals of Clutter-13.Clutter.DesaturateEffect - - connect(sigName: "notify::factor", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::factor", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::factor", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: DesaturateEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A desaturation effect - * - * #ClutterDesaturateEffect is a sub-class of #ClutterEffect that - * desaturates the color of an actor and its contents. The strength - * of the desaturation effect is controllable and animatable through - * the #ClutterDesaturateEffect:factor property. - * @class - */ -class DesaturateEffect extends OffscreenEffect { - - // Own properties of Clutter-13.Clutter.DesaturateEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.DesaturateEffect - - constructor(config?: DesaturateEffect.ConstructorProperties) - /** - * Creates a new #ClutterDesaturateEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @param factor the desaturation factor, between 0.0 and 1.0 - * @returns the newly created #ClutterDesaturateEffect or %NULL - */ - constructor(factor: number) - /** - * Creates a new #ClutterDesaturateEffect to be used with - * clutter_actor_add_effect() - * @constructor - * @param factor the desaturation factor, between 0.0 and 1.0 - * @returns the newly created #ClutterDesaturateEffect or %NULL - */ - static new(factor: number): DesaturateEffect - _init(config?: DesaturateEffect.ConstructorProperties): void -} - -module Effect { - - // Constructor properties interface - - interface ConstructorProperties extends ActorMeta.ConstructorProperties { - } - -} - -interface Effect { - - // Owm methods of Clutter-13.Clutter.Effect - - /** - * Queues a repaint of the effect. The effect can detect when the ‘paint’ - * method is called as a result of this function because it will not - * have the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY flag set. In that case the - * effect is free to assume that the actor has not changed its - * appearance since the last time it was painted so it doesn't need to - * call clutter_actor_continue_paint() if it can draw a cached - * image. This is mostly intended for effects that are using a - * %CoglOffscreen to redirect the actor (such as - * %ClutterOffscreenEffect). In that case the effect can save a bit of - * rendering time by painting the cached texture without causing the - * entire actor to be painted. - * - * This function can be used by effects that have their own animatable - * parameters. For example, an effect which adds a varying degree of a - * red tint to an actor by redirecting it through a CoglOffscreen - * might have a property to specify the level of tint. When this value - * changes, the underlying actor doesn't need to be redrawn so the - * effect can call clutter_effect_queue_repaint() to make sure the - * effect is repainted. - * - * Note however that modifying the position of the parent of an actor - * may change the appearance of the actor because its transformation - * matrix would change. In this case a redraw wouldn't be queued on - * the actor itself so the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY would still - * not be set. The effect can detect this case by keeping track of the - * last modelview matrix that was used to render the actor and - * verifying that it remains the same in the next paint. - * - * Any other effects that are layered on top of the passed in effect - * will still be passed the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY flag. If - * anything queues a redraw on the actor without specifying an effect - * or with an effect that is lower in the chain of effects than this - * one then that will override this call. In that case this effect - * will instead be called with the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY - * flag set. - */ - queue_repaint(): void - - // Own virtual methods of Clutter-13.Clutter.Effect - - vfunc_modify_paint_volume(volume: PaintVolume): boolean - vfunc_paint(node: PaintNode, paint_context: PaintContext, flags: EffectPaintFlags): void - vfunc_paint_node(node: PaintNode, paint_context: PaintContext, flags: EffectPaintFlags): void - vfunc_pick(pick_context: PickContext): void - vfunc_post_paint(node: PaintNode, paint_context: PaintContext): void - vfunc_pre_paint(node: PaintNode, paint_context: PaintContext): boolean - - // Class property signals of Clutter-13.Clutter.Effect - - connect(sigName: "notify::actor", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: Effect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Base class for actor effects - * - * The #ClutterEffect class provides a default type and API for creating - * effects for generic actors. - * - * Effects are a #ClutterActorMeta sub-class that modify the way an actor - * is painted in a way that is not part of the actor's implementation. - * - * Effects should be the preferred way to affect the paint sequence of an - * actor without sub-classing the actor itself and overriding the - * #ClutterActorClass.paint()_ virtual function. - * - * ## Implementing a ClutterEffect - * - * Creating a sub-class of #ClutterEffect requires overriding the - * #ClutterEffectClass.paint() method. The implementation of the function should look - * something like this: - * - * ```c - * void effect_paint (ClutterEffect *effect, ClutterEffectPaintFlags flags) - * { - * // Set up initialisation of the paint such as binding a - * // CoglOffscreen or other operations - * - * // Chain to the next item in the paint sequence. This will either call - * // ‘paint’ on the next effect or just paint the actor if this is - * // the last effect. - * ClutterActor *actor = - * clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (effect)); - * - * clutter_actor_continue_paint (actor); - * - * // perform any cleanup of state, such as popping the CoglOffscreen - * } - * ``` - * - * The effect can optionally avoid calling clutter_actor_continue_paint() to skip any - * further stages of the paint sequence. This is useful for example if the effect - * contains a cached image of the actor. In that case it can optimise painting by - * avoiding the actor paint and instead painting the cached image. - * - * The %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY flag is useful in this case. Clutter will set - * this flag when a redraw has been queued on the actor since it was last painted. The - * effect can use this information to decide if the cached image is still valid. - * - * ## A simple ClutterEffect implementation - * - * The example below creates two rectangles: one will be painted "behind" the actor, - * while another will be painted "on top" of the actor. - * - * The #ClutterActorMetaClass.set_actor() implementation will create the two materials - * used for the two different rectangles; the #ClutterEffectClass.paint() implementation - * will paint the first material using cogl_rectangle(), before continuing and then it - * will paint paint the second material after. - * - * ```c - * typedef struct { - * ClutterEffect parent_instance; - * - * CoglHandle rect_1; - * CoglHandle rect_2; - * } MyEffect; - * - * typedef struct _ClutterEffectClass MyEffectClass; - * - * G_DEFINE_TYPE (MyEffect, my_effect, CLUTTER_TYPE_EFFECT); - * - * static void - * my_effect_set_actor (ClutterActorMeta *meta, - * ClutterActor *actor) - * { - * MyEffect *self = MY_EFFECT (meta); - * - * // Clear the previous state // - * if (self->rect_1) - * { - * cogl_object_unref (self->rect_1); - * self->rect_1 = NULL; - * } - * - * if (self->rect_2) - * { - * cogl_object_unref (self->rect_2); - * self->rect_2 = NULL; - * } - * - * // Maintain a pointer to the actor - * self->actor = actor; - * - * // If we've been detached by the actor then we should just bail out here - * if (self->actor == NULL) - * return; - * - * // Create a red material - * self->rect_1 = cogl_material_new (); - * cogl_material_set_color4f (self->rect_1, 1.0, 0.0, 0.0, 1.0); - * - * // Create a green material - * self->rect_2 = cogl_material_new (); - * cogl_material_set_color4f (self->rect_2, 0.0, 1.0, 0.0, 1.0); - * } - * - * static gboolean - * my_effect_paint (ClutterEffect *effect) - * { - * MyEffect *self = MY_EFFECT (effect); - * gfloat width, height; - * - * clutter_actor_get_size (self->actor, &width, &height); - * - * // Paint the first rectangle in the upper left quadrant - * cogl_set_source (self->rect_1); - * cogl_rectangle (0, 0, width / 2, height / 2); - * - * // Continue to the rest of the paint sequence - * clutter_actor_continue_paint (self->actor); - * - * // Paint the second rectangle in the lower right quadrant - * cogl_set_source (self->rect_2); - * cogl_rectangle (width / 2, height / 2, width, height); - * } - * - * static void - * my_effect_class_init (MyEffectClass *klass) - * { - * ClutterActorMetaClass *meta_class = CLUTTER_ACTOR_META_CLASS (klass); - * - * meta_class->set_actor = my_effect_set_actor; - * - * klass->paint = my_effect_paint; - * } - * ``` - * @class - */ -class Effect extends ActorMeta { - - // Own properties of Clutter-13.Clutter.Effect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Effect - - constructor(config?: Effect.ConstructorProperties) - _init(config?: Effect.ConstructorProperties): void -} - -module FixedLayout { - - // Constructor properties interface - - interface ConstructorProperties extends LayoutManager.ConstructorProperties { - } - -} - -interface FixedLayout { - - // Class property signals of Clutter-13.Clutter.FixedLayout - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A fixed layout manager - * - * #ClutterFixedLayout is a layout manager implementing the same - * layout policies as #ClutterGroup. - * @class - */ -class FixedLayout extends LayoutManager { - - // Own properties of Clutter-13.Clutter.FixedLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.FixedLayout - - constructor(config?: FixedLayout.ConstructorProperties) - /** - * Creates a new #ClutterFixedLayout - * @constructor - * @returns the newly created #ClutterFixedLayout - */ - constructor() - /** - * Creates a new #ClutterFixedLayout - * @constructor - * @returns the newly created #ClutterFixedLayout - */ - static new(): FixedLayout - _init(config?: FixedLayout.ConstructorProperties): void -} - -module FlowLayout { - - // Constructor properties interface - - interface ConstructorProperties extends LayoutManager.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.FlowLayout - - /** - * The spacing between columns, in pixels; the value of this - * property is honoured by horizontal non-overflowing layouts - * and by vertical overflowing layouts - */ - column_spacing?: number | null - /** - * Whether each child inside the #ClutterFlowLayout should receive - * the same allocation - */ - homogeneous?: boolean | null - /** - * Maximum width for each column in the layout, in pixels. If - * set to -1 the width will be the maximum child width - */ - max_column_width?: number | null - /** - * Maximum height for each row in the layout, in pixels. If - * set to -1 the width will be the maximum child height - */ - max_row_height?: number | null - /** - * Minimum width for each column in the layout, in pixels - */ - min_column_width?: number | null - /** - * Minimum height for each row in the layout, in pixels - */ - min_row_height?: number | null - /** - * The orientation of the #ClutterFlowLayout. The children - * of the layout will be laid out following the orientation. - * - * This property also controls the overflowing directions - */ - orientation?: FlowOrientation | null - /** - * The spacing between rows, in pixels; the value of this - * property is honoured by vertical non-overflowing layouts and - * by horizontal overflowing layouts - */ - row_spacing?: number | null - /** - * Whether the #ClutterFlowLayout should arrange its children - * on a grid - */ - snap_to_grid?: boolean | null - } - -} - -interface FlowLayout { - - // Own properties of Clutter-13.Clutter.FlowLayout - - /** - * The spacing between columns, in pixels; the value of this - * property is honoured by horizontal non-overflowing layouts - * and by vertical overflowing layouts - */ - column_spacing: number - /** - * Whether each child inside the #ClutterFlowLayout should receive - * the same allocation - */ - homogeneous: boolean - /** - * Maximum width for each column in the layout, in pixels. If - * set to -1 the width will be the maximum child width - */ - max_column_width: number - /** - * Maximum height for each row in the layout, in pixels. If - * set to -1 the width will be the maximum child height - */ - max_row_height: number - /** - * Minimum width for each column in the layout, in pixels - */ - min_column_width: number - /** - * Minimum height for each row in the layout, in pixels - */ - min_row_height: number - /** - * The orientation of the #ClutterFlowLayout. The children - * of the layout will be laid out following the orientation. - * - * This property also controls the overflowing directions - */ - orientation: FlowOrientation - /** - * The spacing between rows, in pixels; the value of this - * property is honoured by vertical non-overflowing layouts and - * by horizontal overflowing layouts - */ - row_spacing: number - /** - * Whether the #ClutterFlowLayout should arrange its children - * on a grid - */ - snap_to_grid: boolean - - // Owm methods of Clutter-13.Clutter.FlowLayout - - /** - * Retrieves the spacing between columns - * @returns the spacing between columns of the #ClutterFlowLayout, in pixels - */ - get_column_spacing(): number - /** - * Retrieves the minimum and maximum column widths - */ - get_column_width(): [ /* min_width */ number, /* max_width */ number ] - /** - * Retrieves whether the `layout` is homogeneous - * @returns %TRUE if the #ClutterFlowLayout is homogeneous - */ - get_homogeneous(): boolean - /** - * Retrieves the orientation of the `layout` - * @returns the orientation of the #ClutterFlowLayout - */ - get_orientation(): FlowOrientation - /** - * Retrieves the minimum and maximum row heights - */ - get_row_height(): [ /* min_height */ number, /* max_height */ number ] - /** - * Retrieves the spacing between rows - * @returns the spacing between rows of the #ClutterFlowLayout, in pixels - */ - get_row_spacing(): number - /** - * Retrieves the value of #ClutterFlowLayout:snap-to-grid property - * @returns %TRUE if the @layout is placing its children on a grid - */ - get_snap_to_grid(): boolean - /** - * Sets the space between columns, in pixels - * @param spacing the space between columns - */ - set_column_spacing(spacing: number): void - /** - * Sets the minimum and maximum widths that a column can have - * @param min_width minimum width of a column - * @param max_width maximum width of a column - */ - set_column_width(min_width: number, max_width: number): void - /** - * Sets whether the `layout` should allocate the same space for - * each child - * @param homogeneous whether the layout should be homogeneous or not - */ - set_homogeneous(homogeneous: boolean): void - /** - * Sets the orientation of the flow layout - * - * The orientation controls the direction used to allocate - * the children: either horizontally or vertically. The - * orientation also controls the direction of the overflowing - * @param orientation the orientation of the layout - */ - set_orientation(orientation: FlowOrientation): void - /** - * Sets the minimum and maximum heights that a row can have - * @param min_height the minimum height of a row - * @param max_height the maximum height of a row - */ - set_row_height(min_height: number, max_height: number): void - /** - * Sets the spacing between rows, in pixels - * @param spacing the space between rows - */ - set_row_spacing(spacing: number): void - /** - * Whether the `layout` should place its children on a grid. - * @param snap_to_grid %TRUE if `layout` should place its children on a grid - */ - set_snap_to_grid(snap_to_grid: boolean): void - - // Class property signals of Clutter-13.Clutter.FlowLayout - - connect(sigName: "notify::column-spacing", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::column-spacing", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::column-spacing", ...args: any[]): void - connect(sigName: "notify::homogeneous", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::homogeneous", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::homogeneous", ...args: any[]): void - connect(sigName: "notify::max-column-width", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-column-width", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-column-width", ...args: any[]): void - connect(sigName: "notify::max-row-height", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::max-row-height", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::max-row-height", ...args: any[]): void - connect(sigName: "notify::min-column-width", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-column-width", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-column-width", ...args: any[]): void - connect(sigName: "notify::min-row-height", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::min-row-height", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::min-row-height", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: "notify::row-spacing", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::row-spacing", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::row-spacing", ...args: any[]): void - connect(sigName: "notify::snap-to-grid", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::snap-to-grid", callback: (($obj: FlowLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::snap-to-grid", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A reflowing layout manager - * - * #ClutterFlowLayout is a layout manager which implements the following - * policy: - * - * - the preferred natural size depends on the value - * of the #ClutterFlowLayout:orientation property; the layout will try - * to maintain all its children on a single row or - * column; - * - if either the width or the height allocated are - * smaller than the preferred ones, the layout will wrap; in this case, - * the preferred height or width, respectively, will take into account - * the amount of columns and rows; - * - each line (either column or row) in reflowing will - * have the size of the biggest cell on that line; if the - * #ClutterFlowLayout:homogeneous property is set to %FALSE the actor - * will be allocated within that area, and if set to %TRUE instead the - * actor will be given exactly that area; - * - the size of the columns or rows can be controlled - * for both minimum and maximum; the spacing can also be controlled - * in both columns and rows. - * - * The [flow-layout example](https://git.gnome.org/browse/clutter/tree/examples/flow-layout.c?h=clutter-1.18) - * shows how to use the #ClutterFlowLayout. - * @class - */ -class FlowLayout extends LayoutManager { - - // Own properties of Clutter-13.Clutter.FlowLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.FlowLayout - - constructor(config?: FlowLayout.ConstructorProperties) - /** - * Creates a new #ClutterFlowLayout with the given `orientation` - * @constructor - * @param orientation the orientation of the flow layout - * @returns the newly created #ClutterFlowLayout - */ - constructor(orientation: FlowOrientation) - /** - * Creates a new #ClutterFlowLayout with the given `orientation` - * @constructor - * @param orientation the orientation of the flow layout - * @returns the newly created #ClutterFlowLayout - */ - static new(orientation: FlowOrientation): FlowLayout - _init(config?: FlowLayout.ConstructorProperties): void -} - -module FrameClock { - - // Signal callback interfaces - - /** - * Signal callback interface for `destroy` - */ - interface DestroySignalCallback { - ($obj: FrameClock): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface FrameClock { - - // Owm methods of Clutter-13.Clutter.FrameClock - - add_timeline(timeline: Timeline): void - destroy(): void - get_max_render_time_debug_info(): GLib.String - get_refresh_rate(): number - inhibit(): void - notify_ready(): void - record_flip_time(flip_time_us: number): void - remove_timeline(timeline: Timeline): void - schedule_update(): void - schedule_update_now(): void - uninhibit(): void - - // Own signals of Clutter-13.Clutter.FrameClock - - connect(sigName: "destroy", callback: FrameClock.DestroySignalCallback): number - connect_after(sigName: "destroy", callback: FrameClock.DestroySignalCallback): number - emit(sigName: "destroy", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.FrameClock - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -class FrameClock extends GObject.Object { - - // Own properties of Clutter-13.Clutter.FrameClock - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.FrameClock - - constructor(config?: FrameClock.ConstructorProperties) - _init(config?: FrameClock.ConstructorProperties): void -} - -module GestureAction { - - // Signal callback interfaces - - /** - * Signal callback interface for `gesture-begin` - */ - interface GestureBeginSignalCallback { - ($obj: GestureAction, actor: Actor): boolean - } - - /** - * Signal callback interface for `gesture-cancel` - */ - interface GestureCancelSignalCallback { - ($obj: GestureAction, actor: Actor): void - } - - /** - * Signal callback interface for `gesture-end` - */ - interface GestureEndSignalCallback { - ($obj: GestureAction, actor: Actor): void - } - - /** - * Signal callback interface for `gesture-progress` - */ - interface GestureProgressSignalCallback { - ($obj: GestureAction, actor: Actor): boolean - } - - - // Constructor properties interface - - interface ConstructorProperties extends Action.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.GestureAction - - /** - * Number of touch points to trigger a gesture action. - */ - n_touch_points?: number | null - /** - * The horizontal trigger distance to be used by the action to either - * emit the [signal`GestureAction:`:gesture-begin] signal or to emit - * the [signal`GestureAction:`:gesture-cancel] signal. - * - * A negative value will be interpreted as the default drag threshold. - */ - threshold_trigger_distance_x?: number | null - /** - * The vertical trigger distance to be used by the action to either - * emit the [signal`GestureAction:`:gesture-begin] signal or to emit - * the [signal`GestureAction:`:gesture-cancel] signal. - * - * A negative value will be interpreted as the default drag threshold. - */ - threshold_trigger_distance_y?: number | null - /** - * The trigger edge to be used by the action to either emit the - * [signal`GestureAction:`:gesture-begin] signal or to emit the - * [signal`GestureAction:`:gesture-cancel] signal. - */ - threshold_trigger_edge?: GestureTriggerEdge | null - } - -} - -interface GestureAction { - - // Own properties of Clutter-13.Clutter.GestureAction - - /** - * Number of touch points to trigger a gesture action. - */ - n_touch_points: number - /** - * The horizontal trigger distance to be used by the action to either - * emit the [signal`GestureAction:`:gesture-begin] signal or to emit - * the [signal`GestureAction:`:gesture-cancel] signal. - * - * A negative value will be interpreted as the default drag threshold. - */ - readonly threshold_trigger_distance_x: number - /** - * The vertical trigger distance to be used by the action to either - * emit the [signal`GestureAction:`:gesture-begin] signal or to emit - * the [signal`GestureAction:`:gesture-cancel] signal. - * - * A negative value will be interpreted as the default drag threshold. - */ - readonly threshold_trigger_distance_y: number - /** - * The trigger edge to be used by the action to either emit the - * [signal`GestureAction:`:gesture-begin] signal or to emit the - * [signal`GestureAction:`:gesture-cancel] signal. - */ - readonly threshold_trigger_edge: GestureTriggerEdge - - // Own fields of Clutter-13.Clutter.GestureAction - - parent_instance: Action & ActorMeta & GObject.InitiallyUnowned & GObject.InitiallyUnowned - - // Owm methods of Clutter-13.Clutter.GestureAction - - /** - * Cancel a #ClutterGestureAction before it begins - */ - cancel(): void - /** - * Retrieves the #ClutterInputDevice of a touch point. - * @param point the touch point index, with 0 being the first touch point received by the action - * @returns the #ClutterInputDevice of a touch point. - */ - get_device(point: number): InputDevice - /** - * Retrieves a reference to the last #ClutterEvent for a touch point. Call - * [method`Event`.copy] if you need to store the reference somewhere. - * @param point index of a point currently active - * @returns the last #ClutterEvent for a touch point. - */ - get_last_event(point: number): Event - /** - * Retrieves the coordinates, in stage space, of the latest motion - * event during the dragging. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_motion_coords(point: number): [ /* motion_x */ number, /* motion_y */ number ] - /** - * Retrieves the incremental delta since the last motion event - * during the dragging. - * @param point the touch point index, with 0 being the first touch point received by the action - * @returns the distance since last motion event - */ - get_motion_delta(point: number): [ /* returnType */ number, /* delta_x */ number, /* delta_y */ number ] - /** - * Retrieves the number of points currently active. - * @returns the number of points currently active. - */ - get_n_current_points(): number - /** - * Retrieves the number of requested points to trigger the gesture. - * @returns the number of points to trigger the gesture. - */ - get_n_touch_points(): number - /** - * Retrieves the coordinates, in stage space, of the press event - * that started the dragging for a specific touch point. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_press_coords(point: number): [ /* press_x */ number, /* press_y */ number ] - /** - * Retrieves the coordinates, in stage space, where the touch point was - * last released. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_release_coords(point: number): [ /* release_x */ number, /* release_y */ number ] - /** - * Retrieves the #ClutterEventSequence of a touch point. - * @param point index of a point currently active - * @returns the #ClutterEventSequence of a touch point. - */ - get_sequence(point: number): EventSequence - /** - * Retrieves the threshold trigger distance of the gesture `action,` - * as set using [method`GestureAction`.set_threshold_trigger_distance]. - */ - get_threshold_trigger_distance(): [ /* x */ number, /* y */ number ] - /** - * Retrieves the edge trigger of the gesture `action,` as set using - * [method`GestureAction`.set_threshold_trigger_edge]. - * @returns the edge trigger0 - */ - get_threshold_trigger_edge(): GestureTriggerEdge - /** - * Retrieves the edge trigger of the gesture `action,` as set using - * [method`GestureAction`.set_threshold_trigger_edge]. - * @returns the edge trigger - */ - get_threshold_trigger_egde(): GestureTriggerEdge - /** - * Retrieves the velocity, in stage pixels per millisecond, of the - * latest motion event during the dragging. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_velocity(point: number): [ /* returnType */ number, /* velocity_x */ number, /* velocity_y */ number ] - /** - * Sets the number of points needed to trigger the gesture. - * @param nb_points a number of points - */ - set_n_touch_points(nb_points: number): void - /** - * Sets the threshold trigger distance for the gesture drag threshold, if any. - * - * This function should only be called by sub-classes of - * #ClutterGestureAction during their construction phase. - * @param x the distance on the horizontal axis - * @param y the distance on the vertical axis - */ - set_threshold_trigger_distance(x: number, y: number): void - /** - * Sets the edge trigger for the gesture drag threshold, if any. - * - * This function should only be called by sub-classes of - * #ClutterGestureAction during their construction phase. - * @param edge the %ClutterGestureTriggerEdge - */ - set_threshold_trigger_edge(edge: GestureTriggerEdge): void - - // Own virtual methods of Clutter-13.Clutter.GestureAction - - vfunc_gesture_begin(actor: Actor): boolean - vfunc_gesture_cancel(actor: Actor): void - vfunc_gesture_end(actor: Actor): void - vfunc_gesture_prepare(actor: Actor): boolean - vfunc_gesture_progress(actor: Actor): boolean - - // Own signals of Clutter-13.Clutter.GestureAction - - connect(sigName: "gesture-begin", callback: GestureAction.GestureBeginSignalCallback): number - connect_after(sigName: "gesture-begin", callback: GestureAction.GestureBeginSignalCallback): number - emit(sigName: "gesture-begin", actor: Actor, ...args: any[]): void - connect(sigName: "gesture-cancel", callback: GestureAction.GestureCancelSignalCallback): number - connect_after(sigName: "gesture-cancel", callback: GestureAction.GestureCancelSignalCallback): number - emit(sigName: "gesture-cancel", actor: Actor, ...args: any[]): void - connect(sigName: "gesture-end", callback: GestureAction.GestureEndSignalCallback): number - connect_after(sigName: "gesture-end", callback: GestureAction.GestureEndSignalCallback): number - emit(sigName: "gesture-end", actor: Actor, ...args: any[]): void - connect(sigName: "gesture-progress", callback: GestureAction.GestureProgressSignalCallback): number - connect_after(sigName: "gesture-progress", callback: GestureAction.GestureProgressSignalCallback): number - emit(sigName: "gesture-progress", actor: Actor, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.GestureAction - - connect(sigName: "notify::n-touch-points", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-touch-points", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-touch-points", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-x", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-y", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-edge", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-edge", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-edge", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: GestureAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Action for gesture gestures - * - * #ClutterGestureAction is a sub-class of [class`Action]` that implements - * the logic for recognizing gesture gestures. It listens for low level - * [struct`Event]` events on the stage to raise - * the [signal`GestureAction:`:gesture-begin], [signal`GestureAction:`:gesture-progress], - * and [signal`GestureAction:`:gesture-end] signals. - * - * To use #ClutterGestureAction you just need to apply it to a [class`Actor]` - * using [method`Actor`.add_action] and connect to the signals: - * - * ```c - * ClutterAction *action = clutter_gesture_action_new (); - * - * clutter_actor_add_action (actor, action); - * - * g_signal_connect (action, "gesture-begin", G_CALLBACK (on_gesture_begin), NULL); - * g_signal_connect (action, "gesture-progress", G_CALLBACK (on_gesture_progress), NULL); - * g_signal_connect (action, "gesture-end", G_CALLBACK (on_gesture_end), NULL); - * ``` - * - * ## Creating Gesture actions - * - * A #ClutterGestureAction provides four separate states that can be - * used to recognize or ignore gestures when writing a new action class: - * - * - Prepare -> Cancel - * - Prepare -> Begin -> Cancel - * - Prepare -> Begin -> End - * - Prepare -> Begin -> Progress -> Cancel - * - Prepare -> Begin -> Progress -> End - * - * Each #ClutterGestureAction starts in the "prepare" state, and calls - * the [vfunc`GestureAction`.gesture_prepare] virtual function; this - * state can be used to reset the internal state of a #ClutterGestureAction - * subclass, but it can also immediately cancel a gesture without going - * through the rest of the states. - * - * The "begin" state follows the "prepare" state, and calls the - * [vfunc`GestureAction`.gesture_begin] virtual function. This state - * signals the start of a gesture recognizing process. From the "begin" state - * the gesture recognition process can successfully end, by going to the - * "end" state; it can continue in the "progress" state, in case of a - * continuous gesture; or it can be terminated, by moving to the "cancel" - * state. - * - * In case of continuous gestures, the #ClutterGestureAction will use - * the "progress" state, calling the [vfunc`GestureAction`.gesture_progress] - * virtual function; the "progress" state will continue until the end of the - * gesture, in which case the "end" state will be reached, or until the - * gesture is cancelled, in which case the "cancel" gesture will be used - * instead. - * @class - */ -class GestureAction extends Action { - - // Own properties of Clutter-13.Clutter.GestureAction - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.GestureAction - - constructor(config?: GestureAction.ConstructorProperties) - /** - * Creates a new #ClutterGestureAction instance. - * @constructor - * @returns the newly created #ClutterGestureAction - */ - constructor() - /** - * Creates a new #ClutterGestureAction instance. - * @constructor - * @returns the newly created #ClutterGestureAction - */ - static new(): GestureAction - _init(config?: GestureAction.ConstructorProperties): void -} - -module GridLayout { - - // Constructor properties interface - - interface ConstructorProperties extends LayoutManager.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.GridLayout - - /** - * Whether all columns of the layout should have the same width - */ - column_homogeneous?: boolean | null - /** - * The amount of space in pixels between two consecutive columns - */ - column_spacing?: number | null - /** - * The orientation of the layout, either horizontal or vertical - */ - orientation?: Orientation | null - /** - * Whether all rows of the layout should have the same height - */ - row_homogeneous?: boolean | null - /** - * The amount of space in pixels between two consecutive rows - */ - row_spacing?: number | null - } - -} - -interface GridLayout { - - // Own properties of Clutter-13.Clutter.GridLayout - - /** - * Whether all columns of the layout should have the same width - */ - column_homogeneous: boolean - /** - * The amount of space in pixels between two consecutive columns - */ - column_spacing: number - /** - * The orientation of the layout, either horizontal or vertical - */ - orientation: Orientation - /** - * Whether all rows of the layout should have the same height - */ - row_homogeneous: boolean - /** - * The amount of space in pixels between two consecutive rows - */ - row_spacing: number - - // Owm methods of Clutter-13.Clutter.GridLayout - - /** - * Adds a widget to the grid. - * - * The position of `child` is determined by `left` and `top`. The - * number of 'cells' that `child` will occupy is determined by - * `width` and `height`. - * @param child the #ClutterActor to add - * @param left the column number to attach the left side of `child` to - * @param top the row number to attach the top side of `child` to - * @param width the number of columns that `child` will span - * @param height the number of rows that `child` will span - */ - attach(child: Actor, left: number, top: number, width: number, height: number): void - /** - * Adds a actor to the grid. - * - * The actor is placed next to `sibling,` on the side determined by - * `side`. When `sibling` is %NULL, the actor is placed in row (for - * left or right placement) or column 0 (for top or bottom placement), - * at the end indicated by `side`. - * - * Attaching widgets labeled [1], [2], [3] with `sibling` == %NULL and - * `side` == %CLUTTER_GRID_POSITION_LEFT yields a layout of [3][2][1]. - * @param child the actor to add - * @param sibling the child of `layout` that `child` will be placed next to, or %NULL to place `child` at the beginning or end - * @param side the side of `sibling` that `child` is positioned next to - * @param width the number of columns that `child` will span - * @param height the number of rows that `child` will span - */ - attach_next_to(child: Actor, sibling: Actor | null, side: GridPosition, width: number, height: number): void - /** - * Gets the child of `layout` whose area covers the grid - * cell whose upper left corner is at `left,` `top`. - * @param left the left edge of the cell - * @param top the top edge of the cell - * @returns the child at the given position, or %NULL - */ - get_child_at(left: number, top: number): Actor - /** - * Returns whether all columns of `layout` have the same width. - * @returns whether all columns of @layout have the same width. - */ - get_column_homogeneous(): boolean - /** - * Retrieves the spacing set using clutter_grid_layout_set_column_spacing() - * @returns the spacing between coluns of @layout - */ - get_column_spacing(): number - /** - * Retrieves the orientation of the `layout`. - * @returns the orientation of the layout - */ - get_orientation(): Orientation - /** - * Returns whether all rows of `layout` have the same height. - * @returns whether all rows of @layout have the same height. - */ - get_row_homogeneous(): boolean - /** - * Retrieves the spacing set using clutter_grid_layout_set_row_spacing() - * @returns the spacing between rows of @layout - */ - get_row_spacing(): number - /** - * Inserts a column at the specified position. - * - * Children which are attached at or to the right of this position - * are moved one column to the right. Children which span across this - * position are grown to span the new column. - * @param position the position to insert the column at - */ - insert_column(position: number): void - /** - * Inserts a row or column at the specified position. - * - * The new row or column is placed next to `sibling,` on the side - * determined by `side`. If `side` is %CLUTTER_GRID_POSITION_LEFT or - * %CLUTTER_GRID_POSITION_BOTTOM, a row is inserted. If `side` is - * %CLUTTER_GRID_POSITION_LEFT of %CLUTTER_GRID_POSITION_RIGHT, - * a column is inserted. - * @param sibling the child of `layout` that the new row or column will be placed next to - * @param side the side of `sibling` that `child` is positioned next to - */ - insert_next_to(sibling: Actor, side: GridPosition): void - /** - * Inserts a row at the specified position. - * - * Children which are attached at or below this position - * are moved one row down. Children which span across this - * position are grown to span the new row. - * @param position the position to insert the row at - */ - insert_row(position: number): void - /** - * Sets whether all columns of `layout` will have the same width. - * @param homogeneous %TRUE to make columns homogeneous - */ - set_column_homogeneous(homogeneous: boolean): void - /** - * Sets the spacing between columns of `layout` - * @param spacing the spacing between columns of the layout, in pixels - */ - set_column_spacing(spacing: number): void - /** - * Sets the orientation of the `layout`. - * - * #ClutterGridLayout uses the orientation as a hint when adding - * children to the #ClutterActor using it as a layout manager via - * clutter_actor_add_child(); changing this value will not have - * any effect on children that are already part of the layout. - * @param orientation the orientation of the #ClutterGridLayout - */ - set_orientation(orientation: Orientation): void - /** - * Sets whether all rows of `layout` will have the same height. - * @param homogeneous %TRUE to make rows homogeneous - */ - set_row_homogeneous(homogeneous: boolean): void - /** - * Sets the spacing between rows of `layout` - * @param spacing the spacing between rows of the layout, in pixels - */ - set_row_spacing(spacing: number): void - - // Class property signals of Clutter-13.Clutter.GridLayout - - connect(sigName: "notify::column-homogeneous", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::column-homogeneous", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::column-homogeneous", ...args: any[]): void - connect(sigName: "notify::column-spacing", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::column-spacing", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::column-spacing", ...args: any[]): void - connect(sigName: "notify::orientation", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::orientation", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::orientation", ...args: any[]): void - connect(sigName: "notify::row-homogeneous", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::row-homogeneous", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::row-homogeneous", ...args: any[]): void - connect(sigName: "notify::row-spacing", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::row-spacing", callback: (($obj: GridLayout, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::row-spacing", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A layout manager for a grid of actors - * - * #ClutterGridLayout is a layout manager which arranges its child widgets in - * rows and columns. It is a very similar to #ClutterBoxLayout, but it - * consistently uses #ClutterActor's alignment and expansion flags instead of - * custom child properties. - * - * Children are added using clutter_grid_layout_attach(). They can span - * multiple rows or columns. It is also possible to add a child next to an - * existing child, using clutter_grid_layout_attach_next_to(). The behaviour of - * #ClutterGridLayout when several children occupy the same grid cell is undefined. - * - * #ClutterGridLayout can be used like a #ClutterBoxLayout by just using - * clutter_actor_add_child(), which will place children next to each other in - * the direction determined by the #ClutterGridLayout:orientation property. - * @class - */ -class GridLayout extends LayoutManager { - - // Own properties of Clutter-13.Clutter.GridLayout - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.GridLayout - - constructor(config?: GridLayout.ConstructorProperties) - /** - * Creates a new #ClutterGridLayout - * @constructor - * @returns the new #ClutterGridLayout - */ - constructor() - /** - * Creates a new #ClutterGridLayout - * @constructor - * @returns the new #ClutterGridLayout - */ - static new(): GridLayout - _init(config?: GridLayout.ConstructorProperties): void -} - -module Image { - - // Constructor properties interface - - interface ConstructorProperties extends Content.ConstructorProperties, GObject.Object.ConstructorProperties { - } - -} - -interface Image extends Content { - - // Own fields of Clutter-13.Clutter.Image - - parent_instance: GObject.Object - - // Owm methods of Clutter-13.Clutter.Image - - /** - * Retrieves a pointer to the Cogl texture used by `image`. - * - * If you change the contents of the returned Cogl texture you will need - * to manually invalidate the `image` with clutter_content_invalidate() - * in order to update the actors using `image` as their content. - * @returns a pointer to the Cogl texture, or %NULL - */ - get_texture(): Cogl.Texture - /** - * Sets the image data to be display by `image,` using `rect` to indicate - * the position and size of the image data to be set. - * - * If the `image` does not have any image data set when this function is - * called, a new texture will be created with the size of the width and - * height of the rectangle, i.e. calling this function on a newly created - * #ClutterImage will be the equivalent of calling clutter_image_set_data(). - * - * If the image data was successfully loaded, the `image` will be invalidated. - * - * In case of error, the `error` value will be set, and this function will - * return %FALSE. - * - * The image data is copied in texture memory. - * @param data the image data, as an array of bytes - * @param pixel_format the Cogl pixel format of the image data - * @param rect a rectangle indicating the area that should be set - * @param row_stride the length of each row inside `data` - * @returns %TRUE if the image data was successfully loaded, and %FALSE otherwise. - */ - set_area(data: Uint8Array, pixel_format: Cogl.PixelFormat, rect: Mtk.Rectangle, row_stride: number): boolean - /** - * Sets the image data stored inside a #GBytes to be displayed by `image`. - * - * If the image data was successfully loaded, the `image` will be invalidated. - * - * In case of error, the `error` value will be set, and this function will - * return %FALSE. - * - * The image data contained inside the #GBytes is copied in texture memory, - * and no additional reference is acquired on the `data`. - * @param data the image data, as a #GBytes - * @param pixel_format the Cogl pixel format of the image data - * @param width the width of the image data - * @param height the height of the image data - * @param row_stride the length of each row inside `data` - * @returns %TRUE if the image data was successfully loaded, and %FALSE otherwise. - */ - set_bytes(data: GLib.Bytes, pixel_format: Cogl.PixelFormat, width: number, height: number, row_stride: number): boolean - /** - * Sets the image data to be displayed by `image`. - * - * If the image data was successfully loaded, the `image` will be invalidated. - * - * In case of error, the `error` value will be set, and this function will - * return %FALSE. - * - * The image data is copied in texture memory. - * - * The image data is expected to be a linear array of RGBA or RGB pixel data; - * how to retrieve that data is left to platform specific image loaders. For - * instance, if you use the GdkPixbuf library: - * - * ```c - * ClutterContent *image = clutter_image_new (); - * - * GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (filename, NULL); - * - * clutter_image_set_data (CLUTTER_IMAGE (image), - * gdk_pixbuf_get_pixels (pixbuf), - * gdk_pixbuf_get_has_alpha (pixbuf) - * ? COGL_PIXEL_FORMAT_RGBA_8888 - * : COGL_PIXEL_FORMAT_RGB_888, - * gdk_pixbuf_get_width (pixbuf), - * gdk_pixbuf_get_height (pixbuf), - * gdk_pixbuf_get_rowstride (pixbuf), - * &error); - * - * g_object_unref (pixbuf); - * ``` - * @param data the image data, as an array of bytes - * @param pixel_format the Cogl pixel format of the image data - * @param width the width of the image data - * @param height the height of the image data - * @param row_stride the length of each row inside `data` - * @returns %TRUE if the image data was successfully loaded, and %FALSE otherwise. - */ - set_data(data: Uint8Array, pixel_format: Cogl.PixelFormat, width: number, height: number, row_stride: number): boolean - - // Overloads of set_data - - /** - * Each object carries around a table of associations from - * strings to pointers. This function lets you set an association. - * - * If the object already had an association with that name, - * the old association will be destroyed. - * - * Internally, the `key` is converted to a #GQuark using g_quark_from_string(). - * This means a copy of `key` is kept permanently (even after `object` has been - * finalized) — so it is recommended to only use a small, bounded set of values - * for `key` in your program, to avoid the #GQuark storage growing unbounded. - * @param key name of the key - * @param data data to associate with that key - */ - set_data(key: string | null, data: any | null): void - - // Class property signals of Clutter-13.Clutter.Image - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Image data content - * - * #ClutterImage is a #ClutterContent implementation that displays - * image data inside a [class`Actor]`. - * - * See [image.c](https://git.gnome.org/browse/clutter/tree/examples/image-content.c?h=clutter-1.18) - * for an example of how to use #ClutterImage.. - * @class - */ -class Image extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Image - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Image - - constructor(config?: Image.ConstructorProperties) - _init(config?: Image.ConstructorProperties): void - /** - * Creates a new #ClutterImage instance. - * @returns the newly created #ClutterImage instance. Use g_object_unref() when done. - */ - static new(): Content -} - -module InputDevice { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.InputDevice - - /** - * The capabilities of the device - */ - capabilities?: InputCapabilities | null - device_mode?: InputMode | null - device_node?: string | null - /** - * The type of the device - */ - device_type?: InputDeviceType | null - /** - * Whether the device has an on screen cursor following its movement. - */ - has_cursor?: boolean | null - n_buttons?: number | null - n_mode_groups?: number | null - n_rings?: number | null - n_strips?: number | null - /** - * The name of the device - */ - name?: string | null - /** - * Product ID of this device.2 - */ - product_id?: string | null - /** - * The #ClutterSeat instance which owns the device - */ - seat?: Seat | null - /** - * Vendor ID of this device.2 - */ - vendor_id?: string | null - } - -} - -interface InputDevice { - - // Own properties of Clutter-13.Clutter.InputDevice - - /** - * The capabilities of the device - */ - readonly capabilities: InputCapabilities - readonly device_mode: InputMode - readonly device_node: string | null - /** - * The type of the device - */ - readonly device_type: InputDeviceType - /** - * Whether the device has an on screen cursor following its movement. - */ - readonly has_cursor: boolean - readonly n_buttons: number - readonly n_mode_groups: number - readonly n_rings: number - readonly n_strips: number - /** - * The name of the device - */ - readonly name: string | null - /** - * Product ID of this device.2 - */ - readonly product_id: string | null - /** - * The #ClutterSeat instance which owns the device - */ - readonly seat: Seat - /** - * Vendor ID of this device.2 - */ - readonly vendor_id: string | null - - // Owm methods of Clutter-13.Clutter.InputDevice - - /** - * Retrieves the capabilities of `device` - * @returns the capabilities of the device - */ - get_capabilities(): InputCapabilities - /** - * Retrieves the #ClutterInputMode of `device`. - * @returns the device mode - */ - get_device_mode(): InputMode - /** - * Retrieves the name of the `device` - * @returns the name of the device, or %NULL. The returned string is owned by the #ClutterInputDevice and should never be modified or freed - */ - get_device_name(): string | null - get_device_node(): string | null - /** - * Retrieves the type of `device` - * @returns the type of the device - */ - get_device_type(): InputDeviceType - get_dimensions(): [ /* returnType */ boolean, /* width */ number, /* height */ number ] - get_group_n_modes(group: number): number - /** - * Retrieves whether `device` has a pointer that follows the - * device motion. - * @returns %TRUE if the device has a cursor - */ - get_has_cursor(): boolean - get_mode_switch_button_group(button: number): number - get_n_buttons(): number - get_n_mode_groups(): number - get_n_rings(): number - get_n_strips(): number - get_pad_feature_group(feature: InputDevicePadFeature, n_feature: number): number - /** - * Gets the product ID of this device. - * @returns the product ID2 - */ - get_product_id(): string | null - /** - * Returns the seat the device belongs to - * @returns the device seat - */ - get_seat(): Seat - /** - * Gets the vendor ID of this device. - * @returns the vendor ID2 - */ - get_vendor_id(): string | null - is_grouped(other_device: InputDevice): boolean - is_mode_switch_button(group: number, button: number): boolean - - // Own virtual methods of Clutter-13.Clutter.InputDevice - - vfunc_get_dimensions(): [ /* returnType */ boolean, /* width */ number, /* height */ number ] - vfunc_get_group_n_modes(group: number): number - vfunc_get_pad_feature_group(feature: InputDevicePadFeature, n_feature: number): number - vfunc_is_grouped(other_device: InputDevice): boolean - vfunc_is_mode_switch_button(group: number, button: number): boolean - - // Class property signals of Clutter-13.Clutter.InputDevice - - connect(sigName: "notify::capabilities", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::capabilities", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::capabilities", ...args: any[]): void - connect(sigName: "notify::device-mode", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::device-mode", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::device-mode", ...args: any[]): void - connect(sigName: "notify::device-node", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::device-node", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::device-node", ...args: any[]): void - connect(sigName: "notify::device-type", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::device-type", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::device-type", ...args: any[]): void - connect(sigName: "notify::has-cursor", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::has-cursor", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::has-cursor", ...args: any[]): void - connect(sigName: "notify::n-buttons", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-buttons", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-buttons", ...args: any[]): void - connect(sigName: "notify::n-mode-groups", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-mode-groups", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-mode-groups", ...args: any[]): void - connect(sigName: "notify::n-rings", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-rings", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-rings", ...args: any[]): void - connect(sigName: "notify::n-strips", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-strips", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-strips", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: "notify::product-id", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::product-id", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::product-id", ...args: any[]): void - connect(sigName: "notify::seat", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::seat", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::seat", ...args: any[]): void - connect(sigName: "notify::vendor-id", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::vendor-id", callback: (($obj: InputDevice, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::vendor-id", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An input device managed by Clutter - * - * #ClutterInputDevice represents an input device known to Clutter. - * - * The #ClutterInputDevice class holds the state of the device, but - * its contents are usually defined by the Clutter backend in use. - * @class - */ -class InputDevice extends GObject.Object { - - // Own properties of Clutter-13.Clutter.InputDevice - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.InputDevice - - constructor(config?: InputDevice.ConstructorProperties) - _init(config?: InputDevice.ConstructorProperties): void -} - -module InputDeviceTool { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.InputDeviceTool - - axes?: InputAxisFlags | null - id?: number | null - serial?: number | null - type?: InputDeviceToolType | null - } - -} - -interface InputDeviceTool { - - // Own properties of Clutter-13.Clutter.InputDeviceTool - - readonly axes: InputAxisFlags - readonly id: number - readonly serial: number - readonly type: InputDeviceToolType - - // Own fields of Clutter-13.Clutter.InputDeviceTool - - parent_instance: GObject.Object - - // Owm methods of Clutter-13.Clutter.InputDeviceTool - - get_axes(): InputAxisFlags - /** - * Gets the ID of this tool, this value can be used to identify a - * physical tool (eg. a tablet pen) across program executions. - * @returns The tool ID for this tool - */ - get_id(): number - /** - * Gets the serial of this tool, this value can be used to identify a - * physical tool (eg. a tablet pen) across program executions. - * @returns The serial ID for this tool8 - */ - get_serial(): number - /** - * Gets the tool type of this tool. - * @returns The tool type of this tool8 - */ - get_tool_type(): InputDeviceToolType - - // Class property signals of Clutter-13.Clutter.InputDeviceTool - - connect(sigName: "notify::axes", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::axes", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::axes", ...args: any[]): void - connect(sigName: "notify::id", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::id", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::id", ...args: any[]): void - connect(sigName: "notify::serial", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::serial", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::serial", ...args: any[]): void - connect(sigName: "notify::type", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::type", callback: (($obj: InputDeviceTool, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::type", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -class InputDeviceTool extends GObject.Object { - - // Own properties of Clutter-13.Clutter.InputDeviceTool - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.InputDeviceTool - - constructor(config?: InputDeviceTool.ConstructorProperties) - _init(config?: InputDeviceTool.ConstructorProperties): void -} - -module InputFocus { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface InputFocus { - - // Own fields of Clutter-13.Clutter.InputFocus - - parent_instance: GObject.Object - - // Owm methods of Clutter-13.Clutter.InputFocus - - filter_event(event: Event): boolean - is_focused(): boolean - process_event(event: Event): boolean - reset(): void - set_can_show_preedit(can_show_preedit: boolean): void - set_content_hints(hint: InputContentHintFlags): void - set_content_purpose(purpose: InputContentPurpose): void - set_cursor_location(rect: Graphene.Rect): void - set_input_panel_state(state: InputPanelState): void - set_surrounding(text: string | null, cursor: number, anchor: number): void - - // Own virtual methods of Clutter-13.Clutter.InputFocus - - vfunc_commit_text(text: string | null): void - vfunc_delete_surrounding(offset: number, len: number): void - vfunc_focus_in(input_method: InputMethod): void - vfunc_focus_out(): void - vfunc_request_surrounding(): void - vfunc_set_preedit_text(preedit: string | null, cursor: number, anchor: number): void - - // Class property signals of Clutter-13.Clutter.InputFocus - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -class InputFocus extends GObject.Object { - - // Own properties of Clutter-13.Clutter.InputFocus - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.InputFocus - - constructor(config?: InputFocus.ConstructorProperties) - _init(config?: InputFocus.ConstructorProperties): void -} - -module InputMethod { - - // Signal callback interfaces - - /** - * Signal callback interface for `commit` - */ - interface CommitSignalCallback { - ($obj: InputMethod, object: string | null): void - } - - /** - * Signal callback interface for `cursor-location-changed` - */ - interface CursorLocationChangedSignalCallback { - ($obj: InputMethod, object: Graphene.Rect): void - } - - /** - * Signal callback interface for `delete-surrounding` - */ - interface DeleteSurroundingSignalCallback { - ($obj: InputMethod, object: number, p0: number): void - } - - /** - * Signal callback interface for `input-panel-state` - */ - interface InputPanelStateSignalCallback { - ($obj: InputMethod, object: InputPanelState): void - } - - /** - * Signal callback interface for `request-surrounding` - */ - interface RequestSurroundingSignalCallback { - ($obj: InputMethod): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.InputMethod - - can_show_preedit?: boolean | null - content_hints?: InputContentHintFlags | null - content_purpose?: InputContentPurpose | null - } - -} - -interface InputMethod { - - // Own properties of Clutter-13.Clutter.InputMethod - - can_show_preedit: boolean - content_hints: InputContentHintFlags - content_purpose: InputContentPurpose - - // Own fields of Clutter-13.Clutter.InputMethod - - parent_instance: GObject.Object - - // Owm methods of Clutter-13.Clutter.InputMethod - - commit(text: string | null): void - delete_surrounding(offset: number, len: number): void - focus_in(focus: InputFocus): void - focus_out(): void - forward_key(keyval: number, keycode: number, state: number, time_: number, press: boolean): void - notify_key_event(event: Event, filtered: boolean): void - request_surrounding(): void - set_input_panel_state(state: InputPanelState): void - /** - * Sets the preedit text on the current input focus. - * @param preedit the preedit text, or %NULL - * @param cursor the cursor - * @param anchor - * @param mode - */ - set_preedit_text(preedit: string | null, cursor: number, anchor: number, mode: PreeditResetMode): void - - // Own virtual methods of Clutter-13.Clutter.InputMethod - - vfunc_filter_key_event(key: Event): boolean - vfunc_focus_in(actor: InputFocus): void - vfunc_focus_out(): void - vfunc_reset(): void - vfunc_set_cursor_location(rect: Graphene.Rect): void - vfunc_set_surrounding(text: string | null, cursor: number, anchor: number): void - vfunc_update_content_hints(hint: InputContentHintFlags): void - vfunc_update_content_purpose(purpose: InputContentPurpose): void - - // Own signals of Clutter-13.Clutter.InputMethod - - connect(sigName: "commit", callback: InputMethod.CommitSignalCallback): number - connect_after(sigName: "commit", callback: InputMethod.CommitSignalCallback): number - emit(sigName: "commit", object: string | null, ...args: any[]): void - connect(sigName: "cursor-location-changed", callback: InputMethod.CursorLocationChangedSignalCallback): number - connect_after(sigName: "cursor-location-changed", callback: InputMethod.CursorLocationChangedSignalCallback): number - emit(sigName: "cursor-location-changed", object: Graphene.Rect, ...args: any[]): void - connect(sigName: "delete-surrounding", callback: InputMethod.DeleteSurroundingSignalCallback): number - connect_after(sigName: "delete-surrounding", callback: InputMethod.DeleteSurroundingSignalCallback): number - emit(sigName: "delete-surrounding", object: number, p0: number, ...args: any[]): void - connect(sigName: "input-panel-state", callback: InputMethod.InputPanelStateSignalCallback): number - connect_after(sigName: "input-panel-state", callback: InputMethod.InputPanelStateSignalCallback): number - emit(sigName: "input-panel-state", object: InputPanelState, ...args: any[]): void - connect(sigName: "request-surrounding", callback: InputMethod.RequestSurroundingSignalCallback): number - connect_after(sigName: "request-surrounding", callback: InputMethod.RequestSurroundingSignalCallback): number - emit(sigName: "request-surrounding", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.InputMethod - - connect(sigName: "notify::can-show-preedit", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::can-show-preedit", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::can-show-preedit", ...args: any[]): void - connect(sigName: "notify::content-hints", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-hints", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-hints", ...args: any[]): void - connect(sigName: "notify::content-purpose", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::content-purpose", callback: (($obj: InputMethod, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::content-purpose", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -class InputMethod extends GObject.Object { - - // Own properties of Clutter-13.Clutter.InputMethod - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.InputMethod - - constructor(config?: InputMethod.ConstructorProperties) - _init(config?: InputMethod.ConstructorProperties): void -} - -module Interval { - - // Constructor properties interface - - interface ConstructorProperties extends Scriptable.ConstructorProperties, GObject.InitiallyUnowned.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Interval - - /** - * The final value of the interval. - */ - final?: any | null - /** - * The initial value of the interval. - */ - initial?: any | null - /** - * The type of the values in the interval. - */ - value_type?: GObject.GType | null - } - -} - -interface Interval extends Scriptable { - - // Own properties of Clutter-13.Clutter.Interval - - /** - * The final value of the interval. - */ - final: any - /** - * The initial value of the interval. - */ - initial: any - /** - * The type of the values in the interval. - */ - readonly value_type: GObject.GType - - // Owm methods of Clutter-13.Clutter.Interval - - /** - * Creates a copy of `interval`. - * @returns the newly created #ClutterInterval - */ - clone(): Interval - /** - * Computes the value between the `interval` boundaries given the - * progress `factor` - * - * Unlike clutter_interval_compute_value(), this function will - * return a const pointer to the computed value - * - * You should use this function if you immediately pass the computed - * value to another function that makes a copy of it, like - * g_object_set_property() - * @param factor the progress factor, between 0 and 1 - * @returns a pointer to the computed value, or %NULL if the computation was not successful - */ - compute(factor: number): any - /** - * Computes the value between the `interval` boundaries given the - * progress `factor` and copies it into `value`. - * @param factor the progress factor, between 0 and 1 - * @returns %TRUE if the operation was successful - */ - compute_value(factor: number): [ /* returnType */ boolean, /* value */ any ] - /** - * Retrieves the final value of `interval` and copies - * it into `value`. - * - * The passed #GValue must be initialized to the value held by - * the #ClutterInterval. - */ - get_final_value(): /* value */ any - /** - * Retrieves the initial value of `interval` and copies - * it into `value`. - * - * The passed #GValue must be initialized to the value held by - * the #ClutterInterval. - */ - get_initial_value(): /* value */ any - /** - * Retrieves the #GType of the values inside `interval`. - * @returns the type of the value, or G_TYPE_INVALID - */ - get_value_type(): GObject.GType - /** - * Checks if the `interval` has a valid initial and final values. - * @returns %TRUE if the #ClutterInterval has an initial and final values, and %FALSE otherwise - */ - is_valid(): boolean - /** - * Gets the pointer to the final value of `interval` - * @returns the final value of the interval. The value is owned by the #ClutterInterval and it should not be modified or freed - */ - peek_final_value(): any - /** - * Gets the pointer to the initial value of `interval` - * @returns the initial value of the interval. The value is owned by the #ClutterInterval and it should not be modified or freed - */ - peek_initial_value(): any - /** - * Sets the final value of `interval` to `value`. The value is - * copied inside the #ClutterInterval. - * @param value a #GValue - */ - set_final(value: any): void - /** - * Sets the initial value of `interval` to `value`. The value is copied - * inside the #ClutterInterval. - * @param value a #GValue - */ - set_initial(value: any): void - /** - * Validates the initial and final values of `interval` against - * a #GParamSpec. - * @param pspec a #GParamSpec - * @returns %TRUE if the #ClutterInterval is valid, %FALSE otherwise - */ - validate(pspec: GObject.ParamSpec): boolean - - // Own virtual methods of Clutter-13.Clutter.Interval - - /** - * Computes the value between the `interval` boundaries given the - * progress `factor` and copies it into `value`. - * @virtual - * @param factor the progress factor, between 0 and 1 - * @returns %TRUE if the operation was successful - */ - vfunc_compute_value(factor: number): [ /* returnType */ boolean, /* value */ any ] - /** - * Validates the initial and final values of `interval` against - * a #GParamSpec. - * @virtual - * @param pspec a #GParamSpec - * @returns %TRUE if the #ClutterInterval is valid, %FALSE otherwise - */ - vfunc_validate(pspec: GObject.ParamSpec): boolean - - // Class property signals of Clutter-13.Clutter.Interval - - connect(sigName: "notify::final", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::final", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::final", ...args: any[]): void - connect(sigName: "notify::initial", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::initial", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::initial", ...args: any[]): void - connect(sigName: "notify::value-type", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::value-type", callback: (($obj: Interval, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::value-type", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An object holding an interval of two values - * - * #ClutterInterval is a simple object that can hold two values - * defining an interval. #ClutterInterval can hold any value that - * can be enclosed inside a #GValue. - * - * Once a #ClutterInterval for a specific #GType has been instantiated - * the #ClutterInterval:value-type property cannot be changed anymore. - * - * #ClutterInterval starts with a floating reference; this means that - * any object taking a reference on a #ClutterInterval instance should - * also take ownership of the interval by using g_object_ref_sink(). - * - * #ClutterInterval can be subclassed to override the validation - * and value computation. - * @class - */ -class Interval extends GObject.InitiallyUnowned { - - // Own properties of Clutter-13.Clutter.Interval - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Interval - - constructor(config?: Interval.ConstructorProperties) - /** - * Creates a new #ClutterInterval of type `gtype,` between `initial` - * and `final`. - * - * This function is useful for language bindings. - * @constructor - * @param gtype the type of the values in the interval - * @param initial a #GValue holding the initial value of the interval - * @param final a #GValue holding the final value of the interval - * @returns the newly created #ClutterInterval - */ - static new_with_values(gtype: GObject.GType, initial: any | null, final: any | null): Interval - _init(config?: Interval.ConstructorProperties): void -} - -module KeyframeTransition { - - // Constructor properties interface - - interface ConstructorProperties extends Scriptable.ConstructorProperties, PropertyTransition.ConstructorProperties { - } - -} - -interface KeyframeTransition extends Scriptable { - - // Owm methods of Clutter-13.Clutter.KeyframeTransition - - /** - * Removes all key frames from `transition`. - */ - clear(): void - /** - * Retrieves the details of the key frame at `index_` inside `transition`. - * - * The `transition` must already have key frames set, and `index_` must be - * smaller than the number of key frames. - * @param index_ the index of the key frame - */ - get_key_frame(index_: number): [ /* key */ number, /* mode */ AnimationMode, /* value */ any ] - /** - * Retrieves the number of key frames inside `transition`. - * @returns the number of key frames - */ - get_n_key_frames(): number - /** - * Sets the details of the key frame at `index_` inside `transition`. - * - * The `transition` must already have a key frame at `index_,` and `index_` - * must be smaller than the number of key frames inside `transition`. - * @param index_ the index of the key frame - * @param key the key of the key frame - * @param mode the easing mode of the key frame - * @param value a #GValue containing the value of the key frame - */ - set_key_frame(index_: number, key: number, mode: AnimationMode, value: any): void - /** - * Sets the keys for each key frame inside `transition`. - * - * If `transition` does not hold any key frame, `n_key_frames` key frames - * will be created; if `transition` already has key frames, `key_frames` must - * have at least as many elements as the number of key frames. - * @param key_frames an array of keys between 0.0 and 1.0, one for each key frame - */ - set_key_frames(key_frames: number[]): void - /** - * Sets the easing modes for each key frame inside `transition`. - * - * If `transition` does not hold any key frame, `n_modes` key frames will - * be created; if `transition` already has key frames, `modes` must have - * at least as many elements as the number of key frames. - * @param modes an array of easing modes, one for each key frame - */ - set_modes(modes: AnimationMode[]): void - /** - * Sets the values for each key frame inside `transition`. - * - * If `transition` does not hold any key frame, `n_values` key frames will - * be created; if `transition` already has key frames, `values` must have - * at least as many elements as the number of key frames. - * @param values an array of values, one for each key frame - */ - set_values(values: any[]): void - - // Class property signals of Clutter-13.Clutter.KeyframeTransition - - connect(sigName: "notify::property-name", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::property-name", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::property-name", ...args: any[]): void - connect(sigName: "notify::animatable", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::animatable", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::animatable", ...args: any[]): void - connect(sigName: "notify::interval", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::interval", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::interval", ...args: any[]): void - connect(sigName: "notify::remove-on-complete", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::remove-on-complete", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::remove-on-complete", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::auto-reverse", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::auto-reverse", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::auto-reverse", ...args: any[]): void - connect(sigName: "notify::delay", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::delay", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::delay", ...args: any[]): void - connect(sigName: "notify::direction", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::direction", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::direction", ...args: any[]): void - connect(sigName: "notify::duration", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::duration", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::duration", ...args: any[]): void - connect(sigName: "notify::frame-clock", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::frame-clock", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::frame-clock", ...args: any[]): void - connect(sigName: "notify::progress-mode", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::progress-mode", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::progress-mode", ...args: any[]): void - connect(sigName: "notify::repeat-count", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::repeat-count", callback: (($obj: KeyframeTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::repeat-count", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Keyframe property transition - * - * #ClutterKeyframeTransition allows animating a property by defining - * "key frames": values at a normalized position on the transition - * duration. - * - * The #ClutterKeyframeTransition interpolates the value of the property - * to which it's bound across these key values. - * - * Setting up a #ClutterKeyframeTransition means providing the times, - * values, and easing modes between these key frames, for instance: - * - * ```c - * ClutterTransition *keyframe; - * - * keyframe = clutter_keyframe_transition_new ("opacity"); - * clutter_transition_set_from (keyframe, G_TYPE_UINT, 255); - * clutter_transition_set_to (keyframe, G_TYPE_UINT, 0); - * clutter_keyframe_transition_set (CLUTTER_KEYFRAME_TRANSITION (keyframe), - * G_TYPE_UINT, - * 1, /* number of key frames */ - * 0.5, 128, CLUTTER_EASE_IN_OUT_CUBIC); - * ``` - * - * The example above sets up a keyframe transition for the #ClutterActor:opacity - * property of a #ClutterActor; the transition starts and sets the value of the - * property to fully transparent; between the start of the transition and its mid - * point, it will animate the property to half opacity, using an easy in/easy out - * progress. Once the transition reaches the mid point, it will linearly fade the - * actor out until it reaches the end of the transition. - * - * The #ClutterKeyframeTransition will add an implicit key frame between the last - * and the 1.0 value, to interpolate to the final value of the transition's - * interval.. - * @class - */ -class KeyframeTransition extends PropertyTransition { - - // Own properties of Clutter-13.Clutter.KeyframeTransition - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.KeyframeTransition - - constructor(config?: KeyframeTransition.ConstructorProperties) - /** - * Creates a new #ClutterKeyframeTransition for `property_name`. - * @constructor - * @param property_name the property to animate - * @returns the newly allocated #ClutterKeyframeTransition instance. Use g_object_unref() when done to free its resources. - */ - constructor(property_name: string | null) - /** - * Creates a new #ClutterKeyframeTransition for `property_name`. - * @constructor - * @param property_name the property to animate - * @returns the newly allocated #ClutterKeyframeTransition instance. Use g_object_unref() when done to free its resources. - */ - static new(property_name: string | null): KeyframeTransition - - // Overloads of new - - /** - * Creates a new #ClutterPropertyTransition. - * @constructor - * @param property_name a property of `animatable,` or %NULL - * @returns the newly created #ClutterPropertyTransition. Use g_object_unref() when done - */ - static new(property_name: string | null): PropertyTransition - /** - * Creates a new #ClutterTimeline with a duration of `duration_ms` milli seconds. - * @constructor - * @param duration_ms Duration of the timeline in milliseconds - * @returns the newly created #ClutterTimeline instance. Use [method@GObject.Object.unref] when done using it - */ - static new(duration_ms: number): Timeline - _init(config?: KeyframeTransition.ConstructorProperties): void - - // Conflicting static methods - - static new_for_actor(...args: any[]): any -} - -module Keymap { - - // Signal callback interfaces - - /** - * Signal callback interface for `state-changed` - */ - interface StateChangedSignalCallback { - ($obj: Keymap): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - } - -} - -interface Keymap { - - // Own properties of Clutter-13.Clutter.Keymap - - readonly caps_lock_state: boolean - readonly num_lock_state: boolean - - // Own fields of Clutter-13.Clutter.Keymap - - parent_instance: GObject.Object - - // Owm methods of Clutter-13.Clutter.Keymap - - get_caps_lock_state(): boolean - get_direction(): Pango.Direction - get_num_lock_state(): boolean - - // Own virtual methods of Clutter-13.Clutter.Keymap - - vfunc_get_direction(): Pango.Direction - - // Own signals of Clutter-13.Clutter.Keymap - - connect(sigName: "state-changed", callback: Keymap.StateChangedSignalCallback): number - connect_after(sigName: "state-changed", callback: Keymap.StateChangedSignalCallback): number - emit(sigName: "state-changed", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.Keymap - - connect(sigName: "notify::caps-lock-state", callback: (($obj: Keymap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::caps-lock-state", callback: (($obj: Keymap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::caps-lock-state", ...args: any[]): void - connect(sigName: "notify::num-lock-state", callback: (($obj: Keymap, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::num-lock-state", callback: (($obj: Keymap, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::num-lock-state", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -class Keymap extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Keymap - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Keymap - - constructor(config?: Keymap.ConstructorProperties) - _init(config?: Keymap.ConstructorProperties): void -} - -interface LayerNode { -} - -class LayerNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.LayerNode - - static name: string - - // Constructors of Clutter-13.Clutter.LayerNode - - constructor(projection: Graphene.Matrix, viewport: cairo.Rectangle, width: number, height: number, opacity: number) - static new(projection: Graphene.Matrix, viewport: cairo.Rectangle, width: number, height: number, opacity: number): LayerNode - /** - * Creates a new #ClutterLayerNode that will redirect drawing at - * `framebuffer`. It will then use `pipeline` to paint the stored - * operations. - * - * When using this constructor, the caller is responsible for setting - * up `framebuffer,` including its modelview and projection matrices, - * and the viewport, and the `pipeline` as well. - * @constructor - * @param framebuffer a #CoglFramebuffer - * @param pipeline a #CoglPipeline - * @returns the newly created #ClutterLayerNode. Use clutter_paint_node_unref() when done. - */ - static new_to_framebuffer(framebuffer: Cogl.Framebuffer, pipeline: Cogl.Pipeline): LayerNode -} - -module LayoutManager { - - // Signal callback interfaces - - /** - * Signal callback interface for `layout-changed` - */ - interface LayoutChangedSignalCallback { - ($obj: LayoutManager): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { - } - -} - -interface LayoutManager { - - // Owm methods of Clutter-13.Clutter.LayoutManager - - /** - * Allocates the children of `container` given an area - * - * See also clutter_actor_allocate() - * @param container the #ClutterContainer using `manager` - * @param allocation the #ClutterActorBox containing the allocated area of `container` - */ - allocate(container: Container, allocation: ActorBox): void - /** - * Gets a property on the #ClutterLayoutMeta created by `manager` and - * attached to a child of `container` - * - * The #GValue must already be initialized to the type of the property - * and has to be unset with g_value_unset() after extracting the real - * value out of it - * @param container a #ClutterContainer using `manager` - * @param actor a #ClutterActor child of `container` - * @param property_name the name of the property to get - * @param value a #GValue with the value of the property to get - */ - child_get_property(container: Container, actor: Actor, property_name: string | null, value: any): void - /** - * Sets a property on the #ClutterLayoutMeta created by `manager` and - * attached to a child of `container` - * @param container a #ClutterContainer using `manager` - * @param actor a #ClutterActor child of `container` - * @param property_name the name of the property to set - * @param value a #GValue with the value of the property to set - */ - child_set_property(container: Container, actor: Actor, property_name: string | null, value: any): void - /** - * Retrieves the #GParamSpec for the layout property `name` inside - * the #ClutterLayoutMeta sub-class used by `manager` - * @param name the name of the property - * @returns a #GParamSpec describing the property, or %NULL if no property with that name exists. The returned #GParamSpec is owned by the layout manager and should not be modified or freed - */ - find_child_property(name: string | null): GObject.ParamSpec - /** - * Retrieves the #ClutterLayoutMeta that the layout `manager` associated - * to the `actor` child of `container,` eventually by creating one if the - * #ClutterLayoutManager supports layout properties - * @param container a #ClutterContainer using `manager` - * @param actor a #ClutterActor child of `container` - * @returns a #ClutterLayoutMeta, or %NULL if the #ClutterLayoutManager does not have layout properties. The returned layout meta instance is owned by the #ClutterLayoutManager and it should not be unreferenced - */ - get_child_meta(container: Container, actor: Actor): LayoutMeta - /** - * Computes the minimum and natural heights of the `container` according - * to `manager`. - * - * See also clutter_actor_get_preferred_height() - * @param container the #ClutterContainer using `manager` - * @param for_width the width for which the height should be computed, or -1 - */ - get_preferred_height(container: Container, for_width: number): [ /* min_height_p */ number, /* nat_height_p */ number ] - /** - * Computes the minimum and natural widths of the `container` according - * to `manager`. - * - * See also clutter_actor_get_preferred_width() - * @param container the #ClutterContainer using `manager` - * @param for_height the height for which the width should be computed, or -1 - */ - get_preferred_width(container: Container, for_height: number): [ /* min_width_p */ number, /* nat_width_p */ number ] - /** - * Emits the #ClutterLayoutManager::layout-changed signal on `manager` - * - * This function should only be called by implementations of the - * #ClutterLayoutManager class - */ - layout_changed(): void - /** - * Retrieves all the `GParamSpec`s for the layout properties - * stored inside the #ClutterLayoutMeta sub-class used by `manager` - * @returns the newly-allocated, %NULL-terminated array of `GParamSpec`s. Use g_free() to free the resources allocated for the array - */ - list_child_properties(): GObject.ParamSpec[] - /** - * If the #ClutterLayoutManager sub-class allows it, allow - * adding a weak reference of the `container` using `manager` - * from within the layout manager - * - * The layout manager should not increase the reference - * count of the `container` - * @param container a #ClutterContainer using `manager` - */ - set_container(container: Container | null): void - - // Own virtual methods of Clutter-13.Clutter.LayoutManager - - /** - * Allocates the children of `container` given an area - * - * See also clutter_actor_allocate() - * @virtual - * @param container the #ClutterContainer using `manager` - * @param allocation the #ClutterActorBox containing the allocated area of `container` - */ - vfunc_allocate(container: Container, allocation: ActorBox): void - vfunc_get_child_meta_type(): GObject.GType - /** - * Computes the minimum and natural heights of the `container` according - * to `manager`. - * - * See also clutter_actor_get_preferred_height() - * @virtual - * @param container the #ClutterContainer using `manager` - * @param for_width the width for which the height should be computed, or -1 - */ - vfunc_get_preferred_height(container: Container, for_width: number): [ /* min_height_p */ number, /* nat_height_p */ number ] - /** - * Computes the minimum and natural widths of the `container` according - * to `manager`. - * - * See also clutter_actor_get_preferred_width() - * @virtual - * @param container the #ClutterContainer using `manager` - * @param for_height the height for which the width should be computed, or -1 - */ - vfunc_get_preferred_width(container: Container, for_height: number): [ /* min_width_p */ number, /* nat_width_p */ number ] - /** - * Emits the #ClutterLayoutManager::layout-changed signal on `manager` - * - * This function should only be called by implementations of the - * #ClutterLayoutManager class - * @virtual - */ - vfunc_layout_changed(): void - /** - * If the #ClutterLayoutManager sub-class allows it, allow - * adding a weak reference of the `container` using `manager` - * from within the layout manager - * - * The layout manager should not increase the reference - * count of the `container` - * @virtual - * @param container a #ClutterContainer using `manager` - */ - vfunc_set_container(container: Container | null): void - - // Own signals of Clutter-13.Clutter.LayoutManager - - connect(sigName: "layout-changed", callback: LayoutManager.LayoutChangedSignalCallback): number - connect_after(sigName: "layout-changed", callback: LayoutManager.LayoutChangedSignalCallback): number - emit(sigName: "layout-changed", ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.LayoutManager - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Layout managers base class - * - * #ClutterLayoutManager is a base abstract class for layout managers. A - * layout manager implements the layouting policy for a composite or a - * container actor: it controls the preferred size of the actor to which - * it has been paired, and it controls the allocation of its children. - * - * Any composite or container #ClutterActor subclass can delegate the - * layouting of its children to a #ClutterLayoutManager. - * - * Clutter provides some simple #ClutterLayoutManager sub-classes, like - * #ClutterFlowLayout and #ClutterBinLayout. - * - * ## Implementing a ClutterLayoutManager - * The implementation of a layout manager does not differ from the - * implementation of the size requisition and allocation bits of - * #ClutterActor, so you should read the relative documentation - * for subclassing #ClutterActor. - * - * The layout manager implementation can hold a back pointer to the - * #ClutterContainer by implementing the #ClutterLayoutManagerClass.set_container() - * virtual function. The layout manager should not hold a real reference (i.e. - * call g_object_ref()) on the container actor, to avoid reference cycles. - * - * If a layout manager has properties affecting the layout policies then it should - * emit the #ClutterLayoutManager::layout-changed signal on itself by using the - * clutter_layout_manager_layout_changed() function whenever one of these properties - * changes. - * - * ## Layout Properties - * - * If a layout manager has layout properties, that is properties that - * should exist only as the result of the presence of a specific (layout - * manager, container actor, child actor) combination, and it wishes to store - * those properties inside a #ClutterLayoutMeta, then it should override the - * #ClutterLayoutManagerClass.get_child_meta_type() virtual function to return - * the #GType of the #ClutterLayoutMeta sub-class used to store the layout - * properties; optionally, the #ClutterLayoutManager sub-class might also - * override the #ClutterLayoutManagerClass.create_child_meta() virtual function - * to control how the #ClutterLayoutMeta instance is created, otherwise the - * default implementation will be equivalent to: - * - * ```c - * ClutterLayoutManagerClass *klass; - * GType meta_type; - * - * klass = CLUTTER_LAYOUT_MANAGER_GET_CLASS (manager); - * meta_type = klass->get_child_meta_type (manager); - * - * return g_object_new (meta_type, - * "manager", manager, - * "container", container, - * "actor", actor, - * NULL); - * ``` - * - * Where `manager` is the #ClutterLayoutManager, `container` is the - * #ClutterContainer using the #ClutterLayoutManager, and `actor` is - * the #ClutterActor child of the #ClutterContainer. - * - * ## Using ClutterLayoutManager with ClutterScript - * - * #ClutterLayoutManager instances can be created in the same way - * as other objects in #ClutterScript; properties can be set using the - * common syntax. - * - * Layout properties can be set on children of a container with - * a #ClutterLayoutManager using the `layout::` modifier on the property - * name, for instance: - * - * ```json - * { - * "type" : "ClutterActor", - * "layout-manager" : { "type" : "ClutterGridLayout" }, - * "children" : [ - * { - * "type" : "ClutterText", - * "text" : "Some text", - * - * "layout::row" : 0, - * "layout::column" : 0, - * "layout::x-align" : "left", - * "layout::y-align" : "center", - * "layout::x-expand" : true, - * "layout::y-expand" : true - * }, - * { - * "type" : "ClutterText", - * "text" : "Some more text", - * - * "layout::row" : 0, - * "layout::column" : 1, - * "layout::x-align" : "right", - * "layout::y-align" : "center", - * "layout::x-expand" : true, - * "layout::y-expand" : true - * } - * ] - * } - * ``` - * @class - */ -class LayoutManager extends GObject.InitiallyUnowned { - - // Own properties of Clutter-13.Clutter.LayoutManager - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.LayoutManager - - constructor(config?: LayoutManager.ConstructorProperties) - _init(config?: LayoutManager.ConstructorProperties): void -} - -module LayoutMeta { - - // Constructor properties interface - - interface ConstructorProperties extends ChildMeta.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.LayoutMeta - - /** - * The [class`LayoutManager]` that created this #ClutterLayoutMeta. - */ - manager?: LayoutManager | null - } - -} - -interface LayoutMeta { - - // Own fields of Clutter-13.Clutter.LayoutMeta - - manager: LayoutManager - - // Owm methods of Clutter-13.Clutter.LayoutMeta - - /** - * Retrieves the actor wrapped by `data` - * @returns a #ClutterLayoutManager - */ - get_manager(): LayoutManager - - // Class property signals of Clutter-13.Clutter.LayoutMeta - - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Wrapper for actors inside a layout manager - * - * #ClutterLayoutMeta is a wrapper object created by [class`LayoutManager]` - * implementations in order to store child-specific data and properties. - * - * A #ClutterLayoutMeta wraps a [class`Actor]` inside a [iface`Container]` - * using a [class`LayoutManager]`. - * @class - */ -class LayoutMeta extends ChildMeta { - - // Own properties of Clutter-13.Clutter.LayoutMeta - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.LayoutMeta - - constructor(config?: LayoutMeta.ConstructorProperties) - _init(config?: LayoutMeta.ConstructorProperties): void -} - -module OffscreenEffect { - - // Constructor properties interface - - interface ConstructorProperties extends Effect.ConstructorProperties { - } - -} - -interface OffscreenEffect { - - // Owm methods of Clutter-13.Clutter.OffscreenEffect - - /** - * Calls the [vfunc`OffscreenEffect`.create_texture] virtual function of the `effect` - * @param width the minimum width of the target texture - * @param height the minimum height of the target texture - * @returns a handle to a Cogl texture, or %NULL. The returned handle has its reference count increased. - */ - create_texture(width: number, height: number): Cogl.Handle - /** - * Retrieves the pipeline used as a render target for the offscreen - * buffer created by `effect` - * - * You should only use the returned [class`Cogl`.Pipeline] when painting. The - * returned pipeline might change between different frames. - * @returns a #CoglPipeline. The pipeline is owned by Clutter and it should not be modified or freed - */ - get_pipeline(): Cogl.Pipeline | null - /** - * Retrieves the size of the offscreen buffer used by `effect` to - * paint the actor to which it has been applied. - * - * This function should only be called by #ClutterOffscreenEffect - * implementations, from within the [vfunc`OffscreenEffect`.paint_target] - * virtual function. - * @returns %TRUE if the offscreen buffer has a valid size, and %FALSE otherwise - */ - get_target_size(): [ /* returnType */ boolean, /* width */ number, /* height */ number ] - /** - * Retrieves the texture used as a render target for the offscreen - * buffer created by `effect` - * - * You should only use the returned texture when painting. The texture - * may change after [vfunc`Effect`.pre_paint] is called so the effect - * implementation should update any references to the texture after - * chaining-up to the parent's pre_paint implementation. This can be - * used instead of [method`OffscreenEffect`.get_texture] when the - * effect subclass wants to paint using its own material. - * @returns a #CoglHandle or %NULL. The returned texture is owned by Clutter and it should not be modified or freed - */ - get_texture(): Cogl.Handle - /** - * Calls the [vfunc`OffscreenEffect`.paint_target] virtual function of the `effect` - * @param node a #ClutterPaintNode - * @param paint_context a #ClutterPaintContext - */ - paint_target(node: PaintNode, paint_context: PaintContext): void - - // Own virtual methods of Clutter-13.Clutter.OffscreenEffect - - /** - * Calls the [vfunc`OffscreenEffect`.create_texture] virtual function of the `effect` - * @virtual - * @param width the minimum width of the target texture - * @param height the minimum height of the target texture - * @returns a handle to a Cogl texture, or %NULL. The returned handle has its reference count increased. - */ - vfunc_create_texture(width: number, height: number): Cogl.Handle - /** - * Calls the [vfunc`OffscreenEffect`.paint_target] virtual function of the `effect` - * @virtual - * @param node a #ClutterPaintNode - * @param paint_context a #ClutterPaintContext - */ - vfunc_paint_target(node: PaintNode, paint_context: PaintContext): void - - // Class property signals of Clutter-13.Clutter.OffscreenEffect - - connect(sigName: "notify::actor", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: OffscreenEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Base class for effects using offscreen buffers - * - * #ClutterOffscreenEffect is an abstract class that can be used by - * [class`Effect]` sub-classes requiring access to an offscreen buffer. - * - * Some effects, like the fragment shader based effects, can only use GL - * textures, and in order to apply those effects to any kind of actor they - * require that all drawing operations are applied to an offscreen framebuffer - * that gets redirected to a texture. - * - * #ClutterOffscreenEffect provides all the heavy-lifting for creating the - * offscreen framebuffer, the redirection and the final paint of the texture on - * the desired stage. - * - * - * ## Implementing a ClutterOffscreenEffect - * - * Creating a sub-class of #ClutterOffscreenEffect requires, in case - * of overriding the [class`Effect]` virtual functions, to chain up to the - * #ClutterOffscreenEffect's implementation. - * - * On top of the [class`Effect]`'s virtual functions, - * #ClutterOffscreenEffect also provides a [vfunc`OffscreenEffect`.paint_target] - * function, which encapsulates the effective painting of the texture that - * contains the result of the offscreen redirection. - * - * The size of the target material is defined to be as big as the - * transformed size of the [class`Actor]` using the offscreen effect. - * Sub-classes of #ClutterOffscreenEffect can change the texture creation - * code to provide bigger textures by overriding the - * [vfunc`OffscreenEffect`.create_texture] virtual function; no chain up - * to the #ClutterOffscreenEffect implementation is required in this - * case. - * - * ## Paint nodes - * - * #ClutterOffscreenEffect generates the following paint node tree: - * - * ``` - * Effect - * ├─────────┐ - * Layer Pipeline - * │ - * Actor - * ``` - * - * When the actor contents are cached, the generated paint node tree - * looks like this: - * - * ``` - * Effect - * │ - * Pipeline - * ``` - * - * In both cases, the "Pipeline" node is created with the return value - * of [vfunc`OffscreenEffect`.create_pipeline]. - * @class - */ -class OffscreenEffect extends Effect { - - // Own properties of Clutter-13.Clutter.OffscreenEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.OffscreenEffect - - constructor(config?: OffscreenEffect.ConstructorProperties) - _init(config?: OffscreenEffect.ConstructorProperties): void -} - -module PageTurnEffect { - - // Constructor properties interface - - interface ConstructorProperties extends DeformEffect.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.PageTurnEffect - - /** - * The angle of the page rotation, in degrees, between 0.0 and 360.0 - */ - angle?: number | null - /** - * The period of the page turn, between 0.0 (no curling) and - * 1.0 (fully curled) - */ - period?: number | null - /** - * The radius of the page curl, in pixels - */ - radius?: number | null - } - -} - -interface PageTurnEffect { - - // Own properties of Clutter-13.Clutter.PageTurnEffect - - /** - * The angle of the page rotation, in degrees, between 0.0 and 360.0 - */ - angle: number - /** - * The period of the page turn, between 0.0 (no curling) and - * 1.0 (fully curled) - */ - period: number - /** - * The radius of the page curl, in pixels - */ - radius: number - - // Owm methods of Clutter-13.Clutter.PageTurnEffect - - /** - * Retrieves the value set using [method`PageTurnEffect`.get_angle] - * @returns the angle of the page curling - */ - get_angle(): number - /** - * Retrieves the value set using [method`PageTurnEffect`.get_period] - * @returns the period of the page curling - */ - get_period(): number - /** - * Retrieves the value set using [method`PageTurnEffect`.set_radius] - * @returns the radius of the page curling - */ - get_radius(): number - /** - * Sets the angle of the page curling, in degrees - * @param angle the angle of the page curl, in degrees - */ - set_angle(angle: number): void - /** - * Sets the period of the page curling, between 0.0 (no curling) - * and 1.0 (fully curled) - * @param period the period of the page curl, between 0.0 and 1.0 - */ - set_period(period: number): void - /** - * Sets the radius of the page curling - * @param radius the radius of the page curling, in pixels - */ - set_radius(radius: number): void - - // Class property signals of Clutter-13.Clutter.PageTurnEffect - - connect(sigName: "notify::angle", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::angle", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::angle", ...args: any[]): void - connect(sigName: "notify::period", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::period", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::period", ...args: any[]): void - connect(sigName: "notify::radius", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::radius", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::radius", ...args: any[]): void - connect(sigName: "notify::x-tiles", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::x-tiles", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::x-tiles", ...args: any[]): void - connect(sigName: "notify::y-tiles", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::y-tiles", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::y-tiles", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PageTurnEffect, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A page turning effect - * - * A simple page turning effect - * @class - */ -class PageTurnEffect extends DeformEffect { - - // Own properties of Clutter-13.Clutter.PageTurnEffect - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.PageTurnEffect - - constructor(config?: PageTurnEffect.ConstructorProperties) - /** - * Creates a new #ClutterPageTurnEffect instance with the given parameters - * @constructor - * @param period the period of the page curl, between 0.0 and 1.0 - * @param angle the angle of the page curl, between 0.0 and 360.0 - * @param radius the radius of the page curl, in pixels - * @returns the newly created #ClutterPageTurnEffect - */ - constructor(period: number, angle: number, radius: number) - /** - * Creates a new #ClutterPageTurnEffect instance with the given parameters - * @constructor - * @param period the period of the page curl, between 0.0 and 1.0 - * @param angle the angle of the page curl, between 0.0 and 360.0 - * @param radius the radius of the page curl, in pixels - * @returns the newly created #ClutterPageTurnEffect - */ - static new(period: number, angle: number, radius: number): PageTurnEffect - _init(config?: PageTurnEffect.ConstructorProperties): void -} - -interface PaintNode { - - // Owm methods of Clutter-13.Clutter.PaintNode - - /** - * Adds `child` to the list of children of `node`. - * - * This function will acquire a reference on `child`. - * @param child the child #ClutterPaintNode to add - */ - add_child(child: PaintNode): void - /** - * Adds a rectangle region to the `node,` with multitexture coordinates. - * @param rect a #ClutterActorBox - * @param text_coords array of multitexture values - * @param text_coords_len number of items of `text_coords` - */ - add_multitexture_rectangle(rect: ActorBox, text_coords: number, text_coords_len: number): void - /** - * Adds a rectangle region to the `node,` as described by the - * passed `rect`. - * @param rect a #ClutterActorBox - */ - add_rectangle(rect: ActorBox): void - /** - * Adds a series of rectangles to `node`. - * - * As a general rule for better performance its recommended to use this API - * instead of calling clutter_paint_node_add_rectangle() separately for - * multiple rectangles if all of the rectangles will be drawn together. - * - * See cogl_framebuffer_draw_rectangles(). - * @param coords array of coordinates containing groups of 4 float values: [x_1, y_1, x_2, y_2] that are interpreted as two position coordinates; one for the top left of the rectangle (x1, y1), and one for the bottom right of the rectangle (x2, y2). - */ - add_rectangles(coords: number[]): void - /** - * Adds a rectangle region to the `node,` with texture coordinates. - * @param rect a #ClutterActorBox - * @param x_1 the left X coordinate of the texture - * @param y_1 the top Y coordinate of the texture - * @param x_2 the right X coordinate of the texture - * @param y_2 the bottom Y coordinate of the texture - */ - add_texture_rectangle(rect: ActorBox, x_1: number, y_1: number, x_2: number, y_2: number): void - /** - * Adds a series of rectangles to `node`. - * - * The given texture coordinates should always be normalized such that - * (0, 0) corresponds to the top left and (1, 1) corresponds to the - * bottom right. To map an entire texture across the rectangle pass - * in s_1=0, t_1=0, s_2=1, t_2=1. - * - * See cogl_framebuffer_draw_textured_rectangles(). - * @param coords array containing groups of 8 float values: [x_1, y_1, x_2, y_2, s_1, t_1, s_2, t_2] that have the same meaning as the arguments for cogl_framebuffer_draw_textured_rectangle(). - */ - add_texture_rectangles(coords: number[]): void - /** - * Retrieves the #CoglFramebuffer that `node` will draw - * into. If `node` doesn't specify a custom framebuffer, - * the first ancestor with a custom framebuffer will be - * used. - * @returns a #CoglFramebuffer or %NULL if no custom one is set. - */ - get_framebuffer(): Cogl.Framebuffer - /** - * Paints the `node` using the class implementation, traversing - * its children, if any. - * @param paint_context - */ - paint(paint_context: PaintContext): void - /** - * Acquires a reference on `node`. - * @returns the #ClutterPaintNode - */ - ref(): PaintNode - /** - * Sets a user-readable `name` for `node`. - * - * The `name` will be used for debugging purposes. - * - * The `node` will intern `name` using g_intern_string(). If you have access to a - * static string, use clutter_paint_node_set_static_name() instead. - * @param name a string annotating the `node` - */ - set_name(name: string | null): void - /** - * Releases a reference on `node`. - */ - unref(): void -} - -/** - * Paint objects - * - * #ClutterPaintNode is an element in the render graph. - * - * The render graph contains all the elements that need to be painted by - * Clutter when submitting a frame to the graphics system. - * - * The render graph is distinct from the scene graph: the scene graph is - * composed by actors, which can be visible or invisible; the scene graph - * elements also respond to events. The render graph, instead, is only - * composed by nodes that will be painted. - * - * Each #ClutterActor can submit multiple `ClutterPaintNode`s to - * the render graph. - * @class - */ -class PaintNode { - - // Own properties of Clutter-13.Clutter.PaintNode - - static name: string -} - -module PanAction { - - // Signal callback interfaces - - /** - * Signal callback interface for `pan` - */ - interface PanSignalCallback { - ($obj: PanAction, actor: Actor, is_interpolated: boolean): boolean - } - - /** - * Signal callback interface for `pan-stopped` - */ - interface PanStoppedSignalCallback { - ($obj: PanAction, actor: Actor): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends GestureAction.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.PanAction - - /** - * The initial acceleration factor - * - * The kinetic momentum measured at the time of releasing the pointer will - * be multiplied by the factor specified by this property before being used - * to generate interpolated ::pan events. - */ - acceleration_factor?: number | null - /** - * The rate at which the interpolated panning will decelerate in - * - * #ClutterPanAction will emit interpolated ::pan events with decreasing - * scroll deltas, using the rate specified by this property. - */ - deceleration?: number | null - /** - * Whether interpolated events emission is enabled. - */ - interpolate?: boolean | null - /** - * Constraints the panning action to the specified axis - */ - pan_axis?: PanAxis | null - } - -} - -interface PanAction { - - // Own properties of Clutter-13.Clutter.PanAction - - /** - * The initial acceleration factor - * - * The kinetic momentum measured at the time of releasing the pointer will - * be multiplied by the factor specified by this property before being used - * to generate interpolated ::pan events. - */ - acceleration_factor: number - /** - * The rate at which the interpolated panning will decelerate in - * - * #ClutterPanAction will emit interpolated ::pan events with decreasing - * scroll deltas, using the rate specified by this property. - */ - deceleration: number - /** - * Whether interpolated events emission is enabled. - */ - interpolate: boolean - /** - * Constraints the panning action to the specified axis - */ - pan_axis: PanAxis - - // Conflicting properties - - parent_instance: Action & ActorMeta & GObject.InitiallyUnowned - - // Owm methods of Clutter-13.Clutter.PanAction - - /** - * Retrieves the initial acceleration factor for interpolated ::pan events. - * @returns The initial acceleration factor for interpolated events. - */ - get_acceleration_factor(): number - /** - * Retrieves the delta, in stage space, dependent on the current state - * of the #ClutterPanAction, and respecting the constraint specified by the - * [property`PanAction:`pan-axis] property. - * @param point the touch point index, with 0 being the first touch point received by the action - * @returns the distance since last motion event4 - */ - get_constrained_motion_delta(point: number): [ /* returnType */ number, /* delta_x */ number, /* delta_y */ number ] - /** - * Retrieves the deceleration rate of interpolated ::pan events. - * @returns The deceleration rate of the interpolated events. - */ - get_deceleration(): number - /** - * Checks if the action should emit ::pan events even after releasing - * the pointer during a panning gesture, to emulate some kind of - * kinetic inertia. - * @returns %TRUE if interpolated events emission is active. - */ - get_interpolate(): boolean - /** - * Retrieves the coordinates, in stage space, of the latest interpolated - * event, analogous to [method`GestureAction`.get_motion_coords]. - */ - get_interpolated_coords(): [ /* interpolated_x */ number, /* interpolated_y */ number ] - /** - * Retrieves the delta, in stage space, since the latest interpolated - * event, analogous to [method`GestureAction`.get_motion_delta]. - * @returns the distance since the latest interpolated event - */ - get_interpolated_delta(): [ /* returnType */ number, /* delta_x */ number, /* delta_y */ number ] - /** - * Retrieves the coordinates, in stage space, dependent on the current state - * of the #ClutterPanAction. If it is inactive, both fields will be - * set to 0. If it is panning by user action, the values will be equivalent - * to those returned by [method`GestureAction`.get_motion_coords]. - * If it is interpolating with some form of kinetic scrolling, the values - * will be equivalent to those returned by - * [method`PanAction`.get_interpolated_coords]. This is a convenience - * method designed to be used in replacement "pan" signal handlers. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_motion_coords(point: number): [ /* motion_x */ number, /* motion_y */ number ] - /** - * Retrieves the delta, in stage space, dependent on the current state - * of the #ClutterPanAction. If it is inactive, both fields will be - * set to 0. If it is panning by user action, the values will be equivalent - * to those returned by [method`GestureAction`.get_motion_delta]. - * If it is interpolating with some form of kinetic scrolling, the values - * will be equivalent to those returned by - * [method`PanAction`.get_interpolated_delta]. This is a convenience - * method designed to be used in replacement "pan" signal handlers. - * @param point the touch point index, with 0 being the first touch point received by the action - */ - get_motion_delta(point: number): [ /* returnType */ number, /* delta_x */ number, /* delta_y */ number ] - /** - * Retrieves the axis constraint set by [method`PanAction`.set_pan_axis] - * @returns the axis constraint - */ - get_pan_axis(): PanAxis - /** - * Factor applied to the momentum velocity at the time of releasing the - * pointer when generating interpolated ::pan events. - * @param factor The acceleration factor - */ - set_acceleration_factor(factor: number): void - /** - * Sets the deceleration rate of the interpolated ::pan events generated - * after a pan gesture. This is approximately the value that the momentum - * at the time of releasing the pointer is divided by every 60th of a second. - * @param rate The deceleration rate - */ - set_deceleration(rate: number): void - /** - * Sets whether the action should emit interpolated ::pan events - * after the drag has ended, to emulate the gesture kinetic inertia. - * @param should_interpolate whether to enable interpolated pan events - */ - set_interpolate(should_interpolate: boolean): void - /** - * Restricts the panning action to a specific axis - * @param axis the axis to constraint the panning to - */ - set_pan_axis(axis: PanAxis): void - - // Own virtual methods of Clutter-13.Clutter.PanAction - - vfunc_pan_stopped(actor: Actor): void - - // Own signals of Clutter-13.Clutter.PanAction - - connect(sigName: "pan", callback: PanAction.PanSignalCallback): number - connect_after(sigName: "pan", callback: PanAction.PanSignalCallback): number - emit(sigName: "pan", actor: Actor, is_interpolated: boolean, ...args: any[]): void - connect(sigName: "pan-stopped", callback: PanAction.PanStoppedSignalCallback): number - connect_after(sigName: "pan-stopped", callback: PanAction.PanStoppedSignalCallback): number - emit(sigName: "pan-stopped", actor: Actor, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.PanAction - - connect(sigName: "notify::acceleration-factor", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::acceleration-factor", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::acceleration-factor", ...args: any[]): void - connect(sigName: "notify::deceleration", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::deceleration", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::deceleration", ...args: any[]): void - connect(sigName: "notify::interpolate", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::interpolate", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::interpolate", ...args: any[]): void - connect(sigName: "notify::pan-axis", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::pan-axis", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::pan-axis", ...args: any[]): void - connect(sigName: "notify::n-touch-points", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-touch-points", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-touch-points", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-x", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-y", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-edge", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-edge", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-edge", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PanAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Action for pan gestures - * - * #ClutterPanAction is a sub-class of [class`GestureAction]` that implements - * the logic for recognizing pan gestures. - * - * The simplest usage of #ClutterPanAction consists in adding it to - * a [class`Actor]` with a child and setting it as reactive; for instance, - * the following code: - * - * ```c - * clutter_actor_add_action (actor, clutter_pan_action_new ()); - * clutter_actor_set_reactive (actor, TRUE); - * ``` - * - * will automatically result in the actor children to be moved - * when dragging. - * @class - */ -class PanAction extends GestureAction { - - // Own properties of Clutter-13.Clutter.PanAction - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.PanAction - - constructor(config?: PanAction.ConstructorProperties) - /** - * Creates a new #ClutterPanAction instance - * @constructor - * @returns the newly created #ClutterPanAction - */ - constructor() - /** - * Creates a new #ClutterPanAction instance - * @constructor - * @returns the newly created #ClutterPanAction - */ - static new(): PanAction - _init(config?: PanAction.ConstructorProperties): void -} - -interface ParamSpecColor { - - // Own fields of Clutter-13.Clutter.ParamSpecColor - - /** - * default color value - * @field - */ - default_value: Color -} - -/** - * A #GParamSpec subclass for defining properties holding - * a #ClutterColor. - * @class - */ -class ParamSpecColor extends GObject.ParamSpec { - - // Own properties of Clutter-13.Clutter.ParamSpecColor - - static name: string -} - -interface ParamSpecUnit { -} - -class ParamSpecUnit extends GObject.ParamSpec { - - // Own properties of Clutter-13.Clutter.ParamSpecUnit - - static name: string -} - -module Path { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.InitiallyUnowned.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Path - - description?: string | null - } - -} - -interface Path { - - // Own properties of Clutter-13.Clutter.Path - - description: string | null - readonly length: number - - // Owm methods of Clutter-13.Clutter.Path - - /** - * Adds a %CLUTTER_PATH_CLOSE type node to the path. This creates a - * straight line from the last node to the last %CLUTTER_PATH_MOVE_TO - * type node. - */ - add_close(): void - /** - * Adds a %CLUTTER_PATH_CURVE_TO type node to the path. This causes - * the actor to follow a bezier from the last node to (`x_3`, `y_3`) using - * (`x_1`, `y_1`) and (`x_2`,`y_2`) as control points. - * @param x_1 the x coordinate of the first control point - * @param y_1 the y coordinate of the first control point - * @param x_2 the x coordinate of the second control point - * @param y_2 the y coordinate of the second control point - * @param x_3 the x coordinate of the third control point - * @param y_3 the y coordinate of the third control point - */ - add_curve_to(x_1: number, y_1: number, x_2: number, y_2: number, x_3: number, y_3: number): void - /** - * Adds a %CLUTTER_PATH_LINE_TO type node to the path. This causes the - * actor to move to the new coordinates in a straight line. - * @param x the x coordinate - * @param y the y coordinate - */ - add_line_to(x: number, y: number): void - /** - * Adds a %CLUTTER_PATH_MOVE_TO type node to the path. This is usually - * used as the first node in a path. It can also be used in the middle - * of the path to cause the actor to jump to the new coordinate. - * @param x the x coordinate - * @param y the y coordinate - */ - add_move_to(x: number, y: number): void - /** - * Adds `node` to the end of the path. - * @param node a #ClutterPathNode - */ - add_node(node: PathNode): void - /** - * Same as [method`Path`.add_curve_to] except the coordinates are - * relative to the previous node. - * @param x_1 the x coordinate of the first control point - * @param y_1 the y coordinate of the first control point - * @param x_2 the x coordinate of the second control point - * @param y_2 the y coordinate of the second control point - * @param x_3 the x coordinate of the third control point - * @param y_3 the y coordinate of the third control point - */ - add_rel_curve_to(x_1: number, y_1: number, x_2: number, y_2: number, x_3: number, y_3: number): void - /** - * Same as [method`Path`.add_line_to] except the coordinates are - * relative to the previous node. - * @param x the x coordinate - * @param y the y coordinate - */ - add_rel_line_to(x: number, y: number): void - /** - * Same as [method`Path`.add_move_to] except the coordinates are - * relative to the previous node. - * @param x the x coordinate - * @param y the y coordinate - */ - add_rel_move_to(x: number, y: number): void - /** - * Adds new nodes to the end of the path as described in `str`. The - * format is a subset of the SVG path format. Each node is represented - * by a letter and is followed by zero, one or three pairs of - * coordinates. The coordinates can be separated by spaces or a - * comma. The types are: - * - * - `M`: Adds a %CLUTTER_PATH_MOVE_TO node. Takes one pair of coordinates. - * - `L`: Adds a %CLUTTER_PATH_LINE_TO node. Takes one pair of coordinates. - * - `C`: Adds a %CLUTTER_PATH_CURVE_TO node. Takes three pairs of coordinates. - * - `z`: Adds a %CLUTTER_PATH_CLOSE node. No coordinates are needed. - * - * The M, L and C commands can also be specified in lower case which - * means the coordinates are relative to the previous node. - * - * For example, to move an actor in a 100 by 100 pixel square centered - * on the point 300,300 you could use the following path: - * - * ``` - * M 250,350 l 0 -100 L 350,250 l 0 100 z - * ``` - * - * If the path description isn't valid %FALSE will be returned and no - * nodes will be added. - * @param str a string describing the new nodes - * @returns %TRUE is the path description was valid or %FALSE otherwise. - */ - add_string(str: string | null): boolean - /** - * Removes all nodes from the path. - */ - clear(): void - /** - * Calls a function for each node of the path. - * @param callback the function to call with each node - */ - foreach(callback: PathCallback): void - /** - * Returns a newly allocated string describing the path in the same - * format as used by [method`Path`.add_string]. - * @returns a string description of the path. Free with g_free(). - */ - get_description(): string | null - /** - * Retrieves an approximation of the total length of the path. - * @returns the length of the path. - */ - get_length(): number - /** - * Retrieves the number of nodes in the path. - * @returns the number of nodes. - */ - get_n_nodes(): number - /** - * Retrieves the node of the path indexed by `index`. - * @param index_ the node number to retrieve - */ - get_node(index_: number): /* node */ PathNode - /** - * Returns a #GSList of [struct`PathNode]`s. - * - * The list should be freed with g_slist_free(). The nodes are owned - * by the path and should not be freed. Altering the path may cause - * the nodes in the list to become invalid so you should copy them - * if you want to keep the list. - * @returns a list of nodes in the path. - */ - get_nodes(): PathNode[] - /** - * The value in `progress` represents a position along the path where - * 0.0 is the beginning and 1.0 is the end of the path. An - * interpolated position is then stored in `position`. - * @param progress a position along the path as a fraction of its length - * @returns index of the node used to calculate the position. - */ - get_position(progress: number): [ /* returnType */ number, /* position */ Knot ] - /** - * Inserts `node` into the path before the node at the given offset. If - * `index_` is negative it will append the node to the end of the path. - * @param index_ offset of where to insert the node - * @param node the node to insert - */ - insert_node(index_: number, node: PathNode): void - /** - * Removes the node at the given offset from the path. - * @param index_ index of the node to remove - */ - remove_node(index_: number): void - /** - * Replaces the node at offset `index_` with `node`. - * @param index_ index to the existing node - * @param node the replacement node - */ - replace_node(index_: number, node: PathNode): void - /** - * Replaces all of the nodes in the path with nodes described by - * `str`. See [method`Path`.add_string] for details of the format. - * - * If the string is invalid then %FALSE is returned and the path is - * unaltered. - * @param str a string describing the path - * @returns %TRUE is the path was valid, %FALSE otherwise. - */ - set_description(str: string | null): boolean - - // Class property signals of Clutter-13.Clutter.Path - - connect(sigName: "notify::description", callback: (($obj: Path, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::description", callback: (($obj: Path, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::description", ...args: any[]): void - connect(sigName: "notify::length", callback: (($obj: Path, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::length", callback: (($obj: Path, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::length", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * An object describing a path with straight lines and bezier curves. - * - * A #ClutterPath contains a description of a path consisting of - * straight lines and bezier curves. - * - * The path consists of a series of nodes. Each node is one of the - * following four types: - * - * - %CLUTTER_PATH_MOVE_TO, changes the position of the path to the - * given pair of coordinates. This is usually used as the first node - * of a path to mark the start position. If it is used in the middle - * of a path then the path will be disjoint and the actor will appear - * to jump to the new position when animated. - * - %CLUTTER_PATH_LINE_TO, creates a straight line from the previous - * point to the given point. - * - %CLUTTER_PATH_CURVE_TO, creates a bezier curve. The end of the - * last node is used as the first control point and the three - * subsequent coordinates given in the node as used as the other three. - * - %CLUTTER_PATH_CLOSE, creates a straight line from the last node to - * the last %CLUTTER_PATH_MOVE_TO node. This can be used to close a - * path so that it will appear as a loop when animated. - * - * The first three types have the corresponding relative versions - * %CLUTTER_PATH_REL_MOVE_TO, %CLUTTER_PATH_REL_LINE_TO and - * %CLUTTER_PATH_REL_CURVE_TO. These are exactly the same except the - * coordinates are given relative to the previous node instead of as - * direct screen positions. - * - * You can build a path using the node adding functions such as - * [method`Path`.add_line_to]. Alternatively the path can be described - * in a string using a subset of the SVG path syntax. See - * [method`Path`.add_string] for details. - * @class - */ -class Path extends GObject.InitiallyUnowned { - - // Own properties of Clutter-13.Clutter.Path - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.Path - - constructor(config?: Path.ConstructorProperties) - /** - * Creates a new #ClutterPath instance with no nodes. - * @constructor - * @returns the newly created #ClutterPath - */ - constructor() - /** - * Creates a new #ClutterPath instance with no nodes. - * @constructor - * @returns the newly created #ClutterPath - */ - static new(): Path - /** - * Creates a new #ClutterPath instance with the nodes described in - * `desc`. See [method`Path`.add_string] for details of the format of - * the string. - * @constructor - * @param desc a string describing the path - * @returns the newly created #ClutterPath - */ - static new_with_description(desc: string | null): Path - _init(config?: Path.ConstructorProperties): void -} - -module PathConstraint { - - // Signal callback interfaces - - /** - * Signal callback interface for `node-reached` - */ - interface NodeReachedSignalCallback { - ($obj: PathConstraint, actor: Actor, index: number): void - } - - - // Constructor properties interface - - interface ConstructorProperties extends Constraint.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.PathConstraint - - /** - * The offset along the #ClutterPathConstraint:path, between -1.0 and 2.0. - */ - offset?: number | null - /** - * The #ClutterPath used to constrain the position of an actor. - */ - path?: Path | null - } - -} - -interface PathConstraint { - - // Own properties of Clutter-13.Clutter.PathConstraint - - /** - * The offset along the #ClutterPathConstraint:path, between -1.0 and 2.0. - */ - offset: number - /** - * The #ClutterPath used to constrain the position of an actor. - */ - path: Path - - // Owm methods of Clutter-13.Clutter.PathConstraint - - /** - * Retrieves the offset along the [class`Path]` used by `constraint`. - * @returns the offset - */ - get_offset(): number - /** - * Retrieves a pointer to the #ClutterPath used by `constraint`. - * @returns the #ClutterPath used by the #ClutterPathConstraint, or %NULL. The returned #ClutterPath is owned by the constraint and it should not be unreferenced - */ - get_path(): Path - /** - * Sets the offset along the #ClutterPath used by `constraint`. - * @param offset the offset along the path - */ - set_offset(offset: number): void - /** - * Sets the `path` to be followed by the #ClutterPathConstraint. - * - * The `constraint` will take ownership of the #ClutterPath passed to this - * function. - * @param path a #ClutterPath - */ - set_path(path: Path | null): void - - // Own signals of Clutter-13.Clutter.PathConstraint - - connect(sigName: "node-reached", callback: PathConstraint.NodeReachedSignalCallback): number - connect_after(sigName: "node-reached", callback: PathConstraint.NodeReachedSignalCallback): number - emit(sigName: "node-reached", actor: Actor, index: number, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.PathConstraint - - connect(sigName: "notify::offset", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::offset", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::offset", ...args: any[]): void - connect(sigName: "notify::path", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::path", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::path", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: PathConstraint, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * A constraint that follows a path - * - * #ClutterPathConstraint is a simple constraint that modifies the allocation - * of the [class`Actor]` to which it has been applied using a [class`Path]`. - * - * By setting the [property`PathConstraint:`offset] property it is possible to - * control how far along the path the [class`Actor]` should be.. - * @class - */ -class PathConstraint extends Constraint { - - // Own properties of Clutter-13.Clutter.PathConstraint - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.PathConstraint - - constructor(config?: PathConstraint.ConstructorProperties) - /** - * Creates a new #ClutterPathConstraint with the given `path` and `offset` - * @constructor - * @param path a #ClutterPath, or %NULL - * @param offset the offset along the #ClutterPath - * @returns the newly created #ClutterPathConstraint - */ - constructor(path: Path | null, offset: number) - /** - * Creates a new #ClutterPathConstraint with the given `path` and `offset` - * @constructor - * @param path a #ClutterPath, or %NULL - * @param offset the offset along the #ClutterPath - * @returns the newly created #ClutterPathConstraint - */ - static new(path: Path | null, offset: number): PathConstraint - _init(config?: PathConstraint.ConstructorProperties): void -} - -interface PipelineNode { -} - -class PipelineNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.PipelineNode - - static name: string - - // Constructors of Clutter-13.Clutter.PipelineNode - - /** - * Creates a new #ClutterPaintNode that will use the `pipeline` to - * paint its contents. - * - * This function will acquire a reference on the passed `pipeline,` - * so it is safe to call cogl_object_unref() when it returns. - * @constructor - * @param pipeline a Cogl pipeline state object, or %NULL - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done. - */ - constructor(pipeline: Cogl.Pipeline | null) - /** - * Creates a new #ClutterPaintNode that will use the `pipeline` to - * paint its contents. - * - * This function will acquire a reference on the passed `pipeline,` - * so it is safe to call cogl_object_unref() when it returns. - * @constructor - * @param pipeline a Cogl pipeline state object, or %NULL - * @returns the newly created #ClutterPaintNode. Use clutter_paint_node_unref() when done. - */ - static new(pipeline: Cogl.Pipeline | null): PipelineNode -} - -module PropertyTransition { - - // Constructor properties interface - - interface ConstructorProperties extends Scriptable.ConstructorProperties, Transition.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.PropertyTransition - - /** - * The name of the property of a [iface`Animatable]` to animate. - */ - property_name?: string | null - } - -} - -interface PropertyTransition extends Scriptable { - - // Own properties of Clutter-13.Clutter.PropertyTransition - - /** - * The name of the property of a [iface`Animatable]` to animate. - */ - property_name: string | null - - // Owm methods of Clutter-13.Clutter.PropertyTransition - - /** - * Retrieves the value of the [property`PropertyTransition:`property-name] - * property. - * @returns the name of the property being animated, or %NULL if none is set. The returned string is owned by the @transition and it should not be freed. - */ - get_property_name(): string | null - /** - * Sets the [property`PropertyTransition:`property-name] property of `transition`. - * @param property_name a property name - */ - set_property_name(property_name: string | null): void - - // Class property signals of Clutter-13.Clutter.PropertyTransition - - connect(sigName: "notify::property-name", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::property-name", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::property-name", ...args: any[]): void - connect(sigName: "notify::animatable", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::animatable", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::animatable", ...args: any[]): void - connect(sigName: "notify::interval", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::interval", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::interval", ...args: any[]): void - connect(sigName: "notify::remove-on-complete", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::remove-on-complete", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::remove-on-complete", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::auto-reverse", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::auto-reverse", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::auto-reverse", ...args: any[]): void - connect(sigName: "notify::delay", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::delay", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::delay", ...args: any[]): void - connect(sigName: "notify::direction", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::direction", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::direction", ...args: any[]): void - connect(sigName: "notify::duration", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::duration", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::duration", ...args: any[]): void - connect(sigName: "notify::frame-clock", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::frame-clock", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::frame-clock", ...args: any[]): void - connect(sigName: "notify::progress-mode", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::progress-mode", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::progress-mode", ...args: any[]): void - connect(sigName: "notify::repeat-count", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::repeat-count", callback: (($obj: PropertyTransition, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::repeat-count", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Property transitions - * - * #ClutterPropertyTransition is a specialized [class`Transition]` that - * can be used to tween a property of a [iface`Animatable]` instance. - * @class - */ -class PropertyTransition extends Transition { - - // Own properties of Clutter-13.Clutter.PropertyTransition - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.PropertyTransition - - constructor(config?: PropertyTransition.ConstructorProperties) - /** - * Creates a new #ClutterPropertyTransition. - * @constructor - * @param property_name a property of `animatable,` or %NULL - * @returns the newly created #ClutterPropertyTransition. Use g_object_unref() when done - */ - constructor(property_name: string | null) - /** - * Creates a new #ClutterPropertyTransition. - * @constructor - * @param property_name a property of `animatable,` or %NULL - * @returns the newly created #ClutterPropertyTransition. Use g_object_unref() when done - */ - static new(property_name: string | null): PropertyTransition - - // Overloads of new - - /** - * Creates a new #ClutterTimeline with a duration of `duration_ms` milli seconds. - * @constructor - * @param duration_ms Duration of the timeline in milliseconds - * @returns the newly created #ClutterTimeline instance. Use [method@GObject.Object.unref] when done using it - */ - static new(duration_ms: number): Timeline - /** - * Creates a new #ClutterPropertyTransition. - * @constructor - * @param actor a #ClutterActor - * @param property_name a property of `animatable,` or %NULL - * @returns the newly created #ClutterPropertyTransition. Use g_object_unref() when done - */ - static new_for_actor(actor: Actor, property_name: string | null): PropertyTransition - - // Overloads of new_for_actor - - /** - * Creates a new #ClutterTimeline with a duration of `duration` milli seconds. - * @constructor - * @param actor The #ClutterActor the timeline is associated with - * @param duration_ms Duration of the timeline in milliseconds - * @returns the newly created #ClutterTimeline instance. Use [method@GObject.Object.unref] when done using it - */ - static new_for_actor(actor: Actor, duration_ms: number): Timeline - _init(config?: PropertyTransition.ConstructorProperties): void -} - -interface RootNode { -} - -class RootNode extends PaintNode { - - // Own properties of Clutter-13.Clutter.RootNode - - static name: string - - // Constructors of Clutter-13.Clutter.RootNode - - constructor(framebuffer: Cogl.Framebuffer, clear_color: Color, clear_flags: Cogl.BufferBit) - static new(framebuffer: Cogl.Framebuffer, clear_color: Color, clear_flags: Cogl.BufferBit): RootNode -} - -module RotateAction { - - // Signal callback interfaces - - /** - * Signal callback interface for `rotate` - */ - interface RotateSignalCallback { - ($obj: RotateAction, actor: Actor, angle: number): boolean - } - - - // Constructor properties interface - - interface ConstructorProperties extends GestureAction.ConstructorProperties { - } - -} - -interface RotateAction { - - // Conflicting properties - - parent_instance: Action & ActorMeta & GObject.InitiallyUnowned - - // Own signals of Clutter-13.Clutter.RotateAction - - connect(sigName: "rotate", callback: RotateAction.RotateSignalCallback): number - connect_after(sigName: "rotate", callback: RotateAction.RotateSignalCallback): number - emit(sigName: "rotate", actor: Actor, angle: number, ...args: any[]): void - - // Class property signals of Clutter-13.Clutter.RotateAction - - connect(sigName: "notify::n-touch-points", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::n-touch-points", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::n-touch-points", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-x", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-x", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-distance-y", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-distance-y", ...args: any[]): void - connect(sigName: "notify::threshold-trigger-edge", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::threshold-trigger-edge", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::threshold-trigger-edge", ...args: any[]): void - connect(sigName: "notify::actor", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::actor", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::actor", ...args: any[]): void - connect(sigName: "notify::enabled", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::enabled", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::enabled", ...args: any[]): void - connect(sigName: "notify::name", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::name", callback: (($obj: RotateAction, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::name", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Action to rotate an actor - * - * #ClutterRotateAction is a sub-class of [class`GestureAction]` that implements - * the logic for recognizing rotate gestures using two touch points. - * @class - */ -class RotateAction extends GestureAction { - - // Own properties of Clutter-13.Clutter.RotateAction - - static name: string - static $gtype: GObject.GType - - // Constructors of Clutter-13.Clutter.RotateAction - - constructor(config?: RotateAction.ConstructorProperties) - /** - * Creates a new #ClutterRotateAction instance - * @constructor - * @returns the newly created #ClutterRotateAction - */ - constructor() - /** - * Creates a new #ClutterRotateAction instance - * @constructor - * @returns the newly created #ClutterRotateAction - */ - static new(): RotateAction - _init(config?: RotateAction.ConstructorProperties): void -} - -module Script { - - // Constructor properties interface - - interface ConstructorProperties extends GObject.Object.ConstructorProperties { - - // Own constructor properties of Clutter-13.Clutter.Script - - /** - * The translation domain, used to localize strings marked as translatable - * inside a UI definition. - * - * If [property`Script:`translation-domain] is set to %NULL, #ClutterScript - * will use gettext(), otherwise g_dgettext() will be used. - */ - translation_domain?: string | null - } - -} - -interface Script { - - // Own properties of Clutter-13.Clutter.Script - - /** - * The path of the currently parsed file. If [property`Script:`filename-set] - * is %FALSE then the value of this property is undefined. - */ - readonly filename: string | null - /** - * Whether the [property`Script:`filename] property is set. If this property - * is %TRUE then the currently parsed data comes from a file, and the - * file name is stored inside the [property`Script:`filename] property. - */ - readonly filename_set: boolean - /** - * The translation domain, used to localize strings marked as translatable - * inside a UI definition. - * - * If [property`Script:`translation-domain] is set to %NULL, #ClutterScript - * will use gettext(), otherwise g_dgettext() will be used. - */ - translation_domain: string | null - - // Owm methods of Clutter-13.Clutter.Script - - /** - * Adds `paths` to the list of search paths held by `script`. - * - * The search paths are used by [method`Script`.lookup_filename], which - * can be used to define search paths for the textures source file name - * or other custom, file-based properties. - * @param paths an array of strings containing different search paths - */ - add_search_paths(paths: string[]): void - /** - * Connects all the signals defined into a UI definition file to their - * handlers. - * - * This method invokes [method`Script`.connect_signals_full] internally - * and uses #GModule's introspective features (by opening the current - * module's scope) to look at the application's symbol table. - * - * Note that this function will not work if #GModule is not supported by - * the platform Clutter is running on. - * @param user_data data to be passed to the signal handlers, or %NULL - */ - connect_signals(user_data: any | null): void - /** - * Connects all the signals defined into a UI definition file to their - * handlers. - * - * This function allows to control how the signal handlers are - * going to be connected to their respective signals. It is meant - * primarily for language bindings to allow resolving the function - * names using the native API, but it can also be used on platforms - * that do not support GModule. - * - * Applications should use [method`Script`.connect_signals]. - * @param func signal connection function - */ - connect_signals_full(func: ScriptConnectFunc): void - /** - * Ensure that every object defined inside `script` is correctly - * constructed. You should rarely need to use this function. - */ - ensure_objects(): void - /** - * Retrieves the object bound to `name`. This function does not increment - * the reference count of the returned object. - * @param name the name of the object to retrieve - * @returns the named object, or %NULL if no object with the given name was available - */ - get_object(name: string | null): GObject.Object - /** - * Retrieves the translation domain set using - * [method`Script`.set_translation_domain]. - * @returns the translation domain, if any is set, or %NULL - */ - get_translation_domain(): string | null - /** - * Looks up a type by name, using the virtual function that - * #ClutterScript has for that purpose. This function should - * rarely be used. - * @param type_name name of the type to look up - * @returns the type for the requested type name, or %G_TYPE_INVALID if not corresponding type was found. - */ - get_type_from_name(type_name: string | null): GObject.GType - /** - * Retrieves all the objects created by `script`. - * - * Note: this function does not increment the reference count of the - * objects it returns. - * @returns a list of `GObject`s, or %NULL. The objects are owned by the #ClutterScript instance. Use g_list_free() on the returned list when done. - */ - list_objects(): GObject.Object[] - /** - * Loads the definitions from `data` into `script` and merges with - * the currently loaded ones, if any. - * @param data a buffer containing the definitions - * @param length the length of the buffer, or -1 if `data` is a NUL-terminated buffer - * @returns on error, zero is returned and @error is set accordingly. On success, the merge id for the UI definitions is returned. You can use the merge id with [method@Script.unmerge_objects]. - */ - load_from_data(data: string | null, length: number): number - /** - * Loads the definitions from `filename` into `script` and merges with - * the currently loaded ones, if any. - * @param filename the full path to the definition file - * @returns on error, zero is returned and @error is set accordingly. On success, the merge id for the UI definitions is returned. You can use the merge id with [method@Script.unmerge_objects]. - */ - load_from_file(filename: string | null): number - /** - * Loads the definitions from a resource file into `script` and merges with - * the currently loaded ones, if any. - * @param resource_path the resource path of the file to parse - * @returns on error, zero is returned and @error is set accordingly. On success, the merge id for the UI definitions is returned. You can use the merge id with [method@Script.unmerge_objects]. - */ - load_from_resource(resource_path: string | null): number - /** - * Looks up `filename` inside the search paths of `script`. If `filename` - * is found, its full path will be returned . - * @param filename the name of the file to lookup - * @returns the full path of @filename or %NULL if no path was found. - */ - lookup_filename(filename: string | null): string | null - /** - * Sets the translation domain for `script`. - * @param domain the translation domain, or %NULL - */ - set_translation_domain(domain: string | null): void - /** - * Unmerges the objects identified by `merge_id`. - * @param merge_id merge id returned when loading a UI definition - */ - unmerge_objects(merge_id: number): void - - // Own virtual methods of Clutter-13.Clutter.Script - - /** - * Looks up a type by name, using the virtual function that - * #ClutterScript has for that purpose. This function should - * rarely be used. - * @virtual - * @param type_name name of the type to look up - * @returns the type for the requested type name, or %G_TYPE_INVALID if not corresponding type was found. - */ - vfunc_get_type_from_name(type_name: string | null): GObject.GType - - // Class property signals of Clutter-13.Clutter.Script - - connect(sigName: "notify::filename", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::filename", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::filename", ...args: any[]): void - connect(sigName: "notify::filename-set", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::filename-set", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::filename-set", ...args: any[]): void - connect(sigName: "notify::translation-domain", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - connect_after(sigName: "notify::translation-domain", callback: (($obj: Script, pspec: GObject.ParamSpec) => void)): number - emit(sigName: "notify::translation-domain", ...args: any[]): void - connect(sigName: string, callback: (...args: any[]) => void): number - connect_after(sigName: string, callback: (...args: any[]) => void): number - emit(sigName: string, ...args: any[]): void - disconnect(id: number): void -} - -/** - * Loads a scene from UI definition data - * - * #ClutterScript is an object used for loading and building parts or a - * complete scenegraph from external definition data in forms of string - * buffers or files. - * - * The UI definition format is JSON, the JavaScript Object Notation as - * described by RFC 4627. #ClutterScript can load a JSON data stream, - * parse it and build all the objects defined into it. Each object must - * have an "id" and a "type" properties defining the name to be used - * to retrieve it from #ClutterScript with clutter_script_get_object(), - * and the class type to be instantiated. Every other attribute will - * be mapped to the class properties. - * - * A #ClutterScript holds a reference on every object it creates from - * the definition data, except for the stage. Every non-actor object - * will be finalized when the #ClutterScript instance holding it will - * be finalized, so they need to be referenced using g_object_ref() in - * order for them to survive. - * - * A simple object might be defined as: - * - * ```json - * { - * "id" : "red-button", - * "type" : "ClutterActor", - * "width" : 100, - * "height" : 100, - * "background-color" : "#ff0000ff" - * } - * ``` - * - * This will produce a red [class`Actor]`, 100x100 pixels wide, and - * with a ClutterScript id of "red-button"; it can be retrieved by calling: - * - * ```c - * ClutterActor *red_button; - * - * red_button = CLUTTER_ACTOR (clutter_script_get_object (script, "red-button")); - * ``` - * - * and then manipulated with the Clutter API. For every object created - * using ClutterScript it is possible to check the id by calling - * [method`Scriptable`.get_id]. - * - * Packing can be represented using the "children" member, and passing an - * array of objects or ids of objects already defined (but not packed: the - * packing rules of Clutter still apply, and an actor cannot be packed - * in multiple containers without unparenting it in between). - * - * Signal handlers can be defined inside a Clutter UI definition file and - * then autoconnected to their respective signals using the - * [method`Script`.connect_signals] function: - * - * ```json - * ... - * "signals" : [ - * { "name" : "button-press-event", "handler" : "on_button_press" }, - * { - * "name" : "foo-signal", - * "handler" : "after_foo", - * "after" : true - * }, - * ], - * ... - * ``` - * - * Signal handler definitions must have a "name" and a "handler" members; - * they can also have the "after" and "swapped" boolean members (for the - * signal connection flags %G_CONNECT_AFTER and %G_CONNECT_SWAPPED - * respectively) and the "object" string member for calling - * g_signal_connect_object() instead of g_signal_connect(). - * - * Clutter reserves the following names, so classes defining properties - * through the usual GObject registration process should avoid using these - * names to avoid collisions: - * - * ``` - * "id" := the unique name of a ClutterScript object - * "type" := the class literal name, also used to infer the type - * function - * "type_func" := the GType function name, for non-standard classes - * "children" := an array of names or objects to add as children - * "signals" := an array of signal definitions to connect to an object - * "is-default" := a boolean flag used when defining the #ClutterStage; - * if set to "true" the default stage will be used instead - * of creating a new #ClutterStage instance - * ``` - * @class - */ -class Script extends GObject.Object { - - // Own properties of Clutter-13.Clutter.Script - - static name: string - static $gtype: GObject.GType